/* Screen 05: bank-transfer checkout. Presentation only; order authority stays desktop-side. */
.checkout-progress {
  max-width: 680px;
  margin-inline: auto;
}

body:has(#checkoutForm:not([hidden])) .checkout-progress,
body:has(#paymentStep:not([hidden])) .checkout-progress,
body:has(#orderSuccess:not([hidden])) .checkout-progress {
  display: flex;
}

.checkout-progress span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 86px;
  color: #6c5c50;
  font-size: .78rem !important;
  font-weight: 650 !important;
}

.checkout-progress span em {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: #4d4037;
  background: #d8d5cf;
  font-style: normal;
  font-weight: 800;
}

.checkout-progress span.is-active em {
  color: #fff;
  background: #1f1712;
}

.checkout-progress i {
  height: 1px;
  background: rgba(74, 55, 42, .25);
}

body:has(#checkoutForm:not([hidden])) .checkout-form {
  max-width: 920px;
  padding: 20px;
}

body:has(#checkoutForm:not([hidden])) .checkout-fields,
body:has(#checkoutForm:not([hidden])) .checkout-payment-note {
  padding: 16px;
}

body:has(#checkoutForm:not([hidden])) .checkout-fields h3,
body:has(#checkoutForm:not([hidden])) .checkout-payment-note h3 {
  font-size: .95rem;
}

body:has(#checkoutForm:not([hidden])) .checkout-fields label,
body:has(#checkoutForm:not([hidden])) .consent-row {
  font-size: .78rem;
}

body:has(#checkoutForm:not([hidden])) .checkout-fields input,
body:has(#checkoutForm:not([hidden])) .checkout-fields textarea {
  min-height: 42px;
  font-size: .84rem;
}

body:has(#checkoutForm:not([hidden])) .checkout-payment-note p,
body:has(#checkoutForm:not([hidden])) .checkout-summary,
body:has(#checkoutForm:not([hidden])) .checkout-summary small {
  font-size: .78rem;
  line-height: 1.5;
}

.payment-step {
  color: #211914;
  background: linear-gradient(145deg, #fffaf1 0%, #f7efe3 100%);
  border: 1px solid rgba(77, 55, 38, .16);
  border-radius: 14px;
  box-shadow: 0 22px 56px rgba(45, 31, 20, .13);
  overflow: hidden;
}

.payment-step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid rgba(77, 55, 38, .12);
}

.payment-step-head h2 {
  margin: 3px 0 5px;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
}

.payment-step-head p {
  margin: 0;
  color: #6d5c50;
}

.payment-status-badge {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid #d9b36d;
  border-radius: 999px;
  color: #6d4613;
  background: #f8e7c8;
  font-size: .82rem;
  font-weight: 750;
}

.payment-status-badge.is-reported {
  border-color: #6d866b;
  color: #304c32;
  background: #e6efe3;
}

.payment-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(310px, .72fr);
  gap: 0;
}

.payment-information,
.payment-order-summary {
  padding: 28px 30px 30px;
}

.payment-information {
  border-right: 1px solid rgba(77, 55, 38, .12);
}

.payment-information h3,
.payment-order-summary h3 {
  margin: 0 0 18px;
  font-size: 1.12rem;
  font-weight: 800;
}

.payment-information > p {
  margin: -7px 0 20px;
  color: #655449;
  line-height: 1.6;
}

.payment-information dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.payment-information dl > div {
  padding: 14px 15px;
  border: 1px solid rgba(83, 60, 42, .15);
  border-radius: 9px;
  background: rgba(255, 255, 255, .58);
}

.payment-information dt {
  margin-bottom: 5px;
  color: #806c5b;
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.payment-information dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  color: #241a14;
  font-size: 1rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.copy-action {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 4px 9px;
  border: 1px solid #b89150;
  border-radius: 6px;
  color: #60400f;
  background: #fff8e9;
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
}

.copy-action:hover,
.copy-action:focus-visible {
  background: #f5dfb5;
  outline: 2px solid transparent;
}

.payment-safety-note,
.payment-unavailable {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 16px;
  padding: 14px 15px;
  border-radius: 9px;
  color: #5c3e17;
  background: #f8e8cc;
}

.payment-safety-note > span {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.payment-safety-note p,
.payment-unavailable span {
  margin: 0;
  line-height: 1.48;
}

.payment-unavailable {
  flex-direction: column;
  background: #f7e4dc;
  color: #6d3326;
}

.payment-order-summary {
  background: rgba(255, 255, 255, .3);
}

.payment-order-items {
  display: grid;
  gap: 9px;
  max-height: 230px;
  margin-bottom: 18px;
  overflow: auto;
}

.payment-order-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(77, 55, 38, .1);
}

.payment-order-item img {
  width: 48px;
  height: 48px;
  border-radius: 7px;
  object-fit: cover;
  background: #eee4d6;
}

.payment-order-item strong,
.payment-order-item span {
  display: block;
}

.payment-order-item strong {
  font-size: .86rem;
  line-height: 1.25;
}

.payment-order-item span,
.payment-order-item > b {
  color: #756356;
  font-size: .75rem;
}

.payment-preview-line,
.payment-grand-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.payment-preview-line {
  color: #746154;
  font-size: .85rem;
  border-top: 1px solid rgba(77, 55, 38, .12);
}

.payment-grand-total {
  align-items: flex-end;
  margin-top: 2px;
  padding: 15px 0;
  border-top: 1px solid rgba(77, 55, 38, .18);
  font-size: 1.03rem;
  font-weight: 800;
}

.payment-grand-total strong {
  color: #18110d;
  font-size: 1.45rem;
}

#paymentTrustedHint {
  min-height: 38px;
  margin: 0 0 13px;
  color: #746154;
  font-size: .78rem;
  line-height: 1.45;
}

#paymentReportButton {
  min-height: 48px;
  border-radius: 7px;
  background: #1f1712;
}

#paymentReportButton:disabled {
  color: #8f8177;
  background: #ded4c8;
  cursor: not-allowed;
}

.payment-support-link {
  display: block;
  width: max-content;
  margin: 14px auto 0;
}

@media (max-width: 820px) {
  .payment-reference-grid {
    grid-template-columns: 1fr;
  }
  .payment-information {
    border-right: 0;
    border-bottom: 1px solid rgba(77, 55, 38, .12);
  }
}

@media (max-width: 560px) {
  .checkout-progress span {
    min-width: 0;
  }
  .checkout-progress span b {
    display: none;
  }
  .payment-step-head,
  .payment-information,
  .payment-order-summary {
    padding-left: 18px;
    padding-right: 18px;
  }
  .payment-step-head {
    flex-direction: column;
    gap: 12px;
  }
  .payment-information dd {
    align-items: flex-start;
    flex-direction: column;
  }
  .payment-order-item {
    grid-template-columns: 44px minmax(0, 1fr) auto;
  }
}
