/* Align the top-up confirmation step with the customer account surfaces. */
#wallet-app > .wallet-back-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 0 0 14px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

#wallet-app > .wallet-back-link:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.customer-content .wallet-confirm-content {
  width: 100%;
  max-width: 840px;
  margin: 0 auto 36px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 8px 30px rgb(35 29 32 / 5%);
}

.wallet-confirm-content > .eyebrow {
  margin: 0 0 10px;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wallet-confirm-content > h2 {
  margin: 0 0 17px;
  color: var(--ink);
  font: 700 25px/1.3 Arial, sans-serif;
}

.wallet-confirm-content > .wallet-amount {
  display: block;
  margin: 0;
  color: var(--wine);
  font: 700 clamp(28px, 4vw, 36px)/1.2 Arial, sans-serif;
  letter-spacing: -.03em;
}

.wallet-confirm-content > .wallet-amount + p {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin: 8px 0 4px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.wallet-confirm-form {
  gap: 18px;
  margin-top: 24px;
}

.wallet-confirm-form > label {
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.wallet-confirm-form input:not([type=checkbox]),
.wallet-confirm-form textarea {
  box-sizing: border-box;
  min-height: 48px;
  border-color: var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font: 14px/1.5 Arial, sans-serif;
}

.wallet-confirm-form textarea {
  min-height: 104px;
}

.wallet-confirm-form input[type=file] {
  min-height: 52px;
  padding: 7px;
  background: var(--soft);
  cursor: pointer;
}

.wallet-confirm-form input[type=file]::file-selector-button {
  min-height: 36px;
  margin: 0 10px 0 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font: 600 12px Arial, sans-serif;
  cursor: pointer;
}

.wallet-confirm-form input[type=file]::file-selector-button:hover {
  border-color: var(--wine);
  color: var(--wine);
}

.wallet-confirm-form #upload-status:empty {
  display: none;
}

.wallet-confirm-form #upload-status:not(:empty) {
  margin: -8px 0 0;
  color: #167446;
  font-size: 13px;
}

.wallet-confirm-content .wallet-instructions {
  margin: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}

.wallet-confirm-content .wallet-instructions p {
  margin: 0 0 10px;
}

.wallet-confirm-content .wallet-instructions b {
  color: var(--wine);
  overflow-wrap: anywhere;
}

.wallet-confirm-form .wallet-whatsapp-sent,
.wallet-confirm-form .wallet-instructions > label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.wallet-confirm-form .wallet-instructions > label input[type=checkbox] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--wine);
}

.wallet-confirm-form .button {
  justify-self: stretch;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.wallet-confirm-form .wallet-back-link {
  justify-self: center;
  min-height: 40px;
  border: 0;
  background: transparent;
}

.wallet-confirm-form [role=alert]:not(:empty) {
  margin: 0;
  color: #a32929;
  font-size: 13px;
}

@media (max-width: 700px) {
  .customer-content .wallet-confirm-content {
    max-width: none;
    margin-bottom: 20px;
    padding: 22px 17px;
    border-radius: 12px;
  }

  .wallet-confirm-content > h2 {
    font-size: 22px;
  }

  .wallet-confirm-form {
    gap: 15px;
  }
}

/* Keep the shared header readable at the requested serif size without overflow. */
.header {
  gap: 12px;
  padding-inline: clamp(16px, 2vw, 28px);
}

.header > .brand {
  flex: 0 0 auto;
  min-width: 0;
  max-width: 200px;
}

.header > .brand > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header > .brand svg,
.header > .brand img {
  flex-shrink: 0;
}

.header .nav {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  gap: clamp(6px, .8vw, 12px);
}

.header .header-actions {
  flex: 0 0 auto;
  gap: clamp(7px, .8vw, 11px);
  font: 14px/1.3 Georgia, "Times New Roman", serif;
}

.header-actions .language {
  font: inherit;
}

.header-actions .language button {
  font: inherit;
}

.header-actions > .account-link,
.header-actions .account-menu > summary {
  font: inherit;
}

.header-admin-link {
  display: inline-grid;
  width: 28px;
  height: 32px;
  place-items: center;
  color: var(--wine);
}

.header-admin-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.header-admin-link:hover {
  color: var(--gold);
}

.wallet-step.wallet-payment-card > .wallet-payment-footer {
  grid-template-columns: minmax(0, 1fr);
}

.wallet-payment-footer > .wallet-payment-confirm {
  box-sizing: border-box;
  width: 100%;
}

.wallet-payment-footer > .wallet-payment-cancel {
  box-sizing: border-box;
  justify-self: stretch;
  width: 100%;
  min-height: 48px;
  border: 1px solid #c94444;
  border-radius: 9px;
  background: #c94444;
  color: #fff;
  font: 700 14px/1.3 Arial, sans-serif;
}

.wallet-payment-footer > .wallet-payment-cancel:hover {
  border-color: #a82f36;
  background: #a82f36;
}

.wallet-payment-phone.wallet-kaspi-logo {
  width: 110px;
  height: 52px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: #e63d36;
  font: 800 18px/1 Arial, sans-serif;
  letter-spacing: -.5px;
}

@media (min-width: 1380px) {
  .header .nav {
    flex-wrap: nowrap;
  }

  .header .nav.open {
    position: static;
    display: flex;
    flex-direction: row;
  }

  .header .mobile-menu {
    display: none;
  }
}

@media (max-width: 1379px) and (min-width: 751px) {
  .header {
    position: relative;
  }

  .header .nav {
    display: none;
  }

  .header .nav.open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 12px 24px rgb(48 41 42 / 7%);
  }

  .header .mobile-menu {
    display: grid;
  }
}

@media (max-width: 1150px) {
  .header .header-actions {
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .header {
    gap: 8px;
    padding-inline: 14px;
  }

  .header .header-actions {
    gap: 8px;
    font-size: 14px;
  }

  .wallet-payment-phone.wallet-kaspi-logo {
    grid-row: 1 / 4;
    width: 76px;
    height: 46px;
    font-size: 14px;
  }

  .wallet-payment-summary {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .wallet-step.wallet-payment-card > .wallet-payment-footer {
    grid-template-columns: minmax(0, 1fr);
  }
}
