.hh-pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 14px;
  margin: 0;
  text-align: left;
}
.hh-pay-grid.hh-pay-list {
  grid-template-columns: 1fr;
  gap: 12px;
}
.hh-pay-grid .hh-pay-opt,
.hh-pay-grid .hh-pay-opt + .hh-pay-opt {
  margin: 0;
}
.hh-pay-opt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "plate plate" "txt mark";
  align-items: start;
  gap: 14px 12px;
  min-width: 0;
  padding: 12px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.hh-pay-opt:not(:has(.hh-pay-plate)) {
  grid-template-areas: "txt mark";
}
.hh-pay-opt:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.3);
}
.hh-pay-opt:has(input:checked),
.hh-pay-opt:has(.checked) {
  border-color: rgba(167, 139, 250, 0.95);
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.24), rgba(124, 58, 237, 0.08));
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.6), 0 16px 36px rgba(76, 29, 149, 0.38);
}
.hh-pay-opt:focus-within,
.hh-pay-opt:has(.focus) {
  outline: 2px solid #c4b5fd;
  outline-offset: 3px;
}
.hh-pay-opt > input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.hh-pay-plate {
  grid-area: plate;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.hh-logo {
  display: block;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}
.hh-logo--visa {
  height: 20px;
}
.hh-logo--mastercard {
  height: 30px;
}
.hh-logo--gpay,
.hh-logo--apay {
  height: 36px;
}
.hh-logo--paypal {
  height: 32px;
}
.hh-logo--psc {
  height: 24px;
}
.hh-logo--skrill {
  height: 17px;
}
.hh-logo--neteller {
  height: 14px;
}
.hh-pay-txt {
  grid-area: txt;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 0 4px;
}
.hh-pay-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.hh-pay-sub {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  line-height: 1.45;
}
.hh-pay-ring,
.hh-pay-opt .iradio_square-blue {
  grid-area: mark;
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  margin: 1px 4px 0 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.hh-pay-opt:hover .hh-pay-ring,
.hh-pay-opt .iradio_square-blue.hover {
  border-color: rgba(196, 181, 253, 0.85);
}
.hh-pay-opt input:checked + .hh-pay-ring,
.hh-pay-opt .iradio_square-blue.checked {
  border-color: transparent;
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
}
.hh-pay-opt input:checked + .hh-pay-ring::after,
.hh-pay-opt .iradio_square-blue.checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 7px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}
.hh-pay-note {
  display: block;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.8rem;
  text-align: center;
}
.hh-pay-note i {
  margin-right: 6px;
  color: rgba(167, 139, 250, 0.85);
}
.hh-pay-list .hh-pay-opt {
  grid-template-columns: auto minmax(0, 1fr) 320px;
  grid-template-areas: "mark txt plate";
  align-items: center;
  gap: 16px;
  padding: 12px 12px 12px 18px;
}
.hh-pay-list .hh-pay-opt:not(:has(.hh-pay-plate)) {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "mark txt";
}
.hh-pay-list .hh-pay-ring,
.hh-pay-list .iradio_square-blue {
  margin: 0;
}
.hh-pay-list .hh-pay-plate {
  min-height: 60px;
}
@media (prefers-reduced-motion: reduce) {
  .hh-pay-opt,
  .hh-pay-ring,
  .hh-pay-opt .iradio_square-blue {
    transition: none;
  }
  .hh-pay-opt:hover {
    transform: none;
  }
}
#paymentGatewaysContainer,
.hh-inv-pay-form {
  container-type: inline-size;
}
@container (max-width: 920px) {
  .hh-pay-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hh-pay-grid .hh-pay-opt {
    grid-template-columns: auto minmax(0, 1fr) 320px;
    grid-template-areas: "mark txt plate";
    align-items: center;
    gap: 16px;
    padding: 12px 12px 12px 18px;
  }
  .hh-pay-grid .hh-pay-opt:not(:has(.hh-pay-plate)) {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "mark txt";
  }
  .hh-pay-grid .hh-pay-ring,
  .hh-pay-grid .iradio_square-blue {
    margin: 0;
  }
  .hh-pay-grid .hh-pay-plate {
    min-height: 60px;
  }
}
@container (max-width: 600px) {
  .hh-pay-grid .hh-pay-opt {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "plate plate" "txt mark";
    align-items: start;
    gap: 14px 12px;
    padding: 12px 12px 16px;
  }
  .hh-pay-grid .hh-pay-opt:not(:has(.hh-pay-plate)) {
    grid-template-areas: "txt mark";
  }
  .hh-pay-grid .hh-pay-ring,
  .hh-pay-grid .iradio_square-blue {
    margin: 1px 4px 0 0;
  }
  .hh-pay-grid .hh-pay-plate {
    min-height: 68px;
    gap: 10px 12px;
    padding: 10px;
  }
  .hh-pay-grid .hh-logo--psc {
    height: 21px;
  }
  .hh-pay-grid .hh-logo--skrill {
    height: 16px;
  }
  .hh-pay-grid .hh-logo--neteller {
    height: 13px;
  }
}
@container (max-width: 309px) {
  .hh-pay-grid .hh-pay-opt {
    padding: 10px 10px 14px;
  }
  .hh-pay-grid .hh-pay-plate {
    gap: 8px 10px;
  }
  .hh-pay-grid .hh-logo--visa {
    height: 17px;
  }
  .hh-pay-grid .hh-logo--mastercard {
    height: 26px;
  }
  .hh-pay-grid .hh-logo--gpay,
  .hh-pay-grid .hh-logo--apay {
    height: 30px;
  }
  .hh-pay-grid .hh-logo--paypal {
    height: 30px;
  }
  .hh-pay-grid .hh-logo--psc {
    height: 18px;
  }
  .hh-pay-grid .hh-logo--skrill {
    height: 14px;
  }
  .hh-pay-grid .hh-logo--neteller {
    height: 11px;
  }
}
@container (max-width: 268px) {
  .hh-pay-grid .hh-pay-plate {
    gap: 8px;
  }
  .hh-pay-grid .hh-logo--visa {
    height: 15px;
  }
  .hh-pay-grid .hh-logo--psc {
    height: 16px;
  }
  .hh-pay-grid .hh-logo--skrill {
    height: 12px;
  }
  .hh-pay-grid .hh-logo--neteller {
    height: 9.5px;
  }
  .hh-pay-grid .hh-logo--mastercard {
    height: 23px;
  }
  .hh-pay-grid .hh-logo--gpay,
  .hh-pay-grid .hh-logo--apay {
    height: 26px;
  }
}
@media (max-width: 640px) {
  .hh-pay-grid {
    grid-template-columns: 1fr;
  }
}
