.pay-page { max-width: 1080px; padding-top: 35px; }
.pay-heading { margin-bottom: 26px; }
.pay-eyebrow { display: block; margin-bottom: 8px; color: #7a704e; font-size: .7rem; font-weight: 600; letter-spacing: .14em; direction: ltr; text-align: right; }
.pay-demo-badge { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e9d9ad; border-radius: 30px; padding: 7px 13px; color: #755813; background: #fffbef; font-size: .79rem; }
.pay-steps { max-width: 750px; margin: 0 auto 34px; }
.pay-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr); align-items: start; gap: 28px; }
.pay-layout > *, .pay-layout h3 { min-width: 0; }
.pay-main { padding: 32px; border: 1px solid #dfe4ed; border-top: 3px solid var(--gold); border-radius: 13px; background: #fff; }
.pay-gateway-head { display: flex; align-items: center; gap: 13px; margin-bottom: 28px; }
.pay-gateway-head h2 { font-size: 1.15rem; margin: 0; }
.pay-gateway-head p { color: var(--muted); font-size: .8rem; margin: 4px 0 0; }
.pay-gateway-icon { width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px; background: #eff3f9; color: var(--navy); }
.pay-gateway-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; margin-inline-start: auto; box-shadow: 0 0 0 5px #f8f2e7; flex-shrink: 0; }
.pay-amount { display: flex; flex-direction: column; align-items: center; padding: 24px 12px 27px; gap: 8px; background: #f6f8fb; border: 1px solid #e9edf3; border-radius: 9px; text-align: center; }
.pay-amount > span { color: var(--muted); font-size: .88rem; }
.pay-amount strong { color: var(--navy); font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
.pay-amount small { color: var(--muted); font-size: .74rem; }
.pay-notice { display: flex; align-items: flex-start; gap: 11px; margin: 24px 0; font-size: .85rem; color: #5e6571; }
.pay-notice > .app-icon { margin-top: 3px; color: #9a7528; }
.pay-notice p { margin: 0; line-height: 1.95; }
.pay-notice strong { display: block; color: #334159; margin-bottom: 3px; }
.pay-attempt-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; color: #667184; font-size: .74rem; overflow-wrap: anywhere; }
.pay-confirm { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 53px; font-size: .95rem; }
.pay-secondary-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.pay-secondary-actions .btn { font-size: .8rem; padding: 10px 12px; min-height: 44px; }
.pay-secondary-actions .co-text-button { font-size: .8rem; min-height: 44px; }
.pay-stock-note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: .75rem; line-height: 1.9; }
.pay-summary { border: 1px solid #e2e6ed; border-radius: 12px; background: #fff; padding: 24px; }
.pay-summary-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.pay-summary-heading h2 { margin: 0; font-size: 1rem; }
.pay-summary-heading bdi { color: var(--muted); font-size: .76rem; }
.pay-items { max-height: 400px; overflow-y: auto; margin: 6px 0 22px; }
.pay-items article { display: flex; gap: 13px; align-items: center; border-bottom: 1px solid #eef0f4; padding: 17px 0; }
.pay-items article:last-child { border-bottom: 0; }
.pay-items .asset-image { width: 72px; flex: 0 0 72px; border-radius: 7px; background: #f2f2ef; }
.pay-items article > div { min-width: 0; }
.pay-items h3 { margin: 0 0 4px; font-size: .86rem; }
.pay-items p { font-size: .72rem; color: var(--muted); margin: 0 0 7px; }
.pay-items strong { font-size: .81rem; font-weight: 600; color: var(--navy); }
.pay-detail-link { width: 100%; margin-top: 14px; }
.pay-bottom-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 25px auto 0; font-size: .76rem; color: var(--muted); max-width: 680px; text-align: center; }
.pay-bottom-note .app-icon { flex-shrink: 0; }
.pay-result { text-align: center; margin-bottom: 25px; }
.pay-result-icon { display: inline-flex; align-items: center; justify-content: center; width: 87px; height: 87px; border-radius: 50%; color: var(--navy); background: #eff3f9; margin-bottom: 18px; }
.pay-result h2 { font-size: 1.3rem; margin-bottom: 11px; }
.pay-result p { font-size: .86rem; line-height: 2; color: var(--muted); margin: 0 auto; max-width: 430px; }
.pay-result-success .pay-result-icon { color: #22674d; background: #eaf5ef; }
.pay-result-danger .pay-result-icon { color: #a2473e; background: #fff0ee; }
.pay-result-neutral .pay-result-icon { color: #6b7380; background: #f1f3f5; }
.pay-result-pending .pay-result-icon { color: #907020; background: #fcf6e6; }
.pay-receipt { margin: 24px 0; padding: 4px 17px; border: 1px solid #e3e8f0; border-radius: 8px; background: #fafbfd; }
.pay-receipt > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #e8ecf2; padding: 13px 0; font-size: .8rem; }
.pay-receipt > div:last-child { border: 0; }
.pay-receipt dt { color: var(--muted); font-weight: 400; }
.pay-receipt dd { margin: 0; color: var(--navy); text-align: left; min-width: 0; overflow-wrap: anywhere; }
.pay-reference { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.pay-reference bdi { overflow-wrap: anywhere; }
.pay-reference button { width: 30px; flex: 0 0 30px; }
.pay-actions { display: flex; flex-direction: column; gap: 11px; }
.pay-actions .btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 49px; }
.pay-error { padding: 13px; background: #fff2f0; border-radius: 7px; margin-top: 20px; }
.pay-result-note { display: flex; justify-content: center; align-items: flex-start; gap: 7px; text-align: center; font-size: .74rem; color: var(--muted); margin: 23px 0 0; }
.pay-result-note .app-icon { flex-shrink: 0; }
@media (max-width: 767.98px) {
  .pay-page { padding-top: 23px; }
  .pay-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pay-main { padding: 24px; }
  .pay-summary { padding: 22px; }
  .pay-steps { margin-bottom: 24px; }
}
@media (max-width: 374.98px) {
  .pay-main, .pay-summary { padding: 18px; }
  .pay-receipt { padding-inline: 12px; }
  .pay-receipt > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .pay-secondary-actions { flex-direction: column; }
  .pay-secondary-actions .btn { width: 100%; }
  .pay-items .asset-image { width: 57px; flex-basis: 57px; }
  .pay-gateway-head h2 { font-size: 1rem; }
  .pay-gateway-icon { width: 49px; height: 49px; }
}
