.payment-page {
  overflow-x: hidden;
}

.payment-method-panel[hidden],
.final-payment-button[hidden],
.payment-modal[hidden] {
  display: none;
}

.payment-view {
  margin-top: 95px;
  width: calc(100% - 48px);
}

.payment-heading {
  margin-inline: auto;
  max-width: 650px;
  text-align: center;
}

.payment-heading h1 {
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(42px, 3.9vw, 56px);
  font-weight: 800;
  line-height: 1.12;
}

.payment-heading p {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.18;
  margin-top: 8px;
}

.deposit-panel,
.payment-method-panel {
  border: 2px solid var(--gold);
  border-radius: 15px;
  margin: 32px auto 0;
  max-width: 932px;
}

.deposit-panel {
  min-height: 326px;
  padding: 28px 31px 32px;
}

.deposit-panel h2,
.payment-method-panel h2 {
  color: #ffffff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
}

.deposit-grid {
  align-items: start;
  display: grid;
  gap: 29px;
  grid-template-columns: minmax(0, 537px) minmax(260px, 291px);
  margin-top: 32px;
}

.deposit-form label {
  color: #ffffff;
  display: block;
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 12px;
}

.deposit-form input {
  background: #000000;
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 24px;
  font-weight: 600;
  height: 56px;
  outline: none;
  padding: 0 20px;
  width: 100%;
}

.deposit-quick {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
}

.deposit-quick button,
.continue-payment-method {
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.deposit-quick button {
  font-size: 14px;
  font-weight: 500;
  min-height: 38px;
}

.deposit-note {
  align-items: start;
  background: rgba(255, 204, 128, 0.27);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 24px minmax(0, 1fr);
  min-height: 106px;
  padding: 20px 18px;
}

.deposit-note img {
  height: 18px;
  margin-top: 3px;
  width: 18px;
}

.deposit-note strong,
.deposit-note span,
.deposit-note p {
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
}

.deposit-note strong {
  color: var(--gold);
  font-size: 15px;
  font-weight: 700;
}

.deposit-note span,
.deposit-note p {
  color: #ffffff;
  font-size: 12px;
  font-weight: 300;
}

.deposit-note p {
  margin-top: 14px;
}

.continue-payment-method {
  display: block;
  font-size: 20px;
  font-weight: 400;
  height: 57px;
  margin: 31px auto 0;
  text-transform: uppercase;
  width: 386px;
}

.deposit-quick button:hover,
.continue-payment-method:hover {
  background: var(--coffee);
}

.payment-method-panel {
  opacity: 0;
  padding: 31px;
  transform: translateY(16px);
  transition:
    opacity 260ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.payment-method-panel.is-open {
  opacity: 1;
  transform: translateY(0);
}

.payment-method {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(169, 120, 48, 0.45);
  color: #ffffff;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: 30px minmax(0, 1fr) 34px;
  min-height: 64px;
  padding: 0;
  text-align: left;
  width: 100%;
}

.payment-method:first-of-type {
  margin-top: 24px;
}

.payment-method > img:first-child {
  height: 24px;
  object-fit: contain;
  width: 24px;
}

.method-state-icon {
  height: 22px;
  justify-self: end;
  width: 12px;
}

.payment-method.selected .method-state-icon {
  height: 31px;
  width: 31px;
}

.payment-method strong {
  color: var(--gold);
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
}

.payment-method small {
  color: #ffffff;
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 12px;
  font-weight: 200;
}

.payment-method:hover,
.payment-method.selected {
  background: rgba(169, 120, 48, 0.08);
}

.final-payment-button {
  background: rgba(169, 120, 48, 0.34);
  border: 0;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.58);
  cursor: not-allowed;
  display: block;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 36px;
  font-weight: 600;
  height: 78px;
  margin: 32px auto 0;
  max-width: 932px;
  opacity: 0;
  text-transform: uppercase;
  transform: translateY(16px);
  transition:
    background 180ms ease,
    color 180ms ease,
    opacity 260ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.final-payment-button.is-open {
  opacity: 1;
  transform: translateY(0);
}

.final-payment-button.is-ready {
  background: var(--gold);
  color: #ffffff;
  cursor: pointer;
}

.final-payment-button.is-ready:hover {
  background: var(--coffee);
}

.payment-modal {
  align-items: center;
  display: grid;
  inset: 0;
  justify-items: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease;
  z-index: 90;
}

.payment-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.payment-modal-backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(3px);
  inset: 0;
  position: absolute;
}

.payment-modal-card {
  background: #000000;
  border: 2px solid var(--gold);
  border-radius: 15px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
  max-width: 520px;
  padding: 30px;
  position: relative;
  transform: translateY(18px) scale(0.98);
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms ease;
  width: min(100%, 520px);
  z-index: 1;
}

.payment-modal.is-open .payment-modal-card {
  transform: translateY(0) scale(1);
}

.payment-modal-close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(169, 120, 48, 0.65);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 17px;
  height: 32px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 32px;
}

.payment-modal-kicker {
  color: var(--gold);
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.payment-modal-card h2 {
  color: #ffffff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  margin-top: 8px;
}

.payment-modal-card p:not(.payment-modal-kicker) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
  margin-top: 8px;
}

.payment-option-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.payment-option {
  align-items: center;
  background: rgba(169, 120, 48, 0.08);
  border: 1px solid rgba(169, 120, 48, 0.7);
  border-radius: 10px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  text-align: left;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.payment-option img {
  height: 28px;
  width: 28px;
}

.payment-option:hover,
.payment-option.selected {
  background: rgba(184, 129, 47, 0.36);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.payment-page .footer {
  padding-top: 250px;
}

@media (max-width: 1120px) {
  .deposit-grid {
    grid-template-columns: 1fr;
  }

  .deposit-note {
    max-width: 420px;
  }
}

@media (max-width: 700px) {
  .payment-heading p {
    font-size: 18px;
  }

  .deposit-panel,
  .payment-method-panel {
    padding: 24px 18px;
  }

  .deposit-quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .continue-payment-method,
  .final-payment-button {
    width: 100%;
  }

  .continue-payment-method {
    font-size: 15px;
  }

  .final-payment-button {
    font-size: 26px;
  }

  .payment-modal-card {
    padding: 26px 18px;
  }

  .payment-modal-card h2 {
    font-size: 26px;
  }
}
