.cart-pending-payment { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem 1.5rem; border: 1px solid #a8d3b3; border-radius: 12px; background: #eef8f0; }
.cart-pending-payment.hidden { display: none; }
.cart-pending-payment-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 8px; color: #fff; background: #08783d; }
.cart-pending-payment-icon svg { width: 1.3rem; height: 1.3rem; }
.cart-pending-payment span { color: #08783d; font-size: .66rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.cart-pending-payment h2 { margin: .3rem 0; color: #203b2a; font-size: 1rem; line-height: 1.35; }
.cart-pending-payment p { margin: 0; color: #526c59; font-size: .75rem; line-height: 1.5; }
.cart-pending-payment button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 42px; padding: .7rem 1rem; border: 0; border-radius: 7px; color: #fff; background: #08783d; font: inherit; font-size: .78rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.cart-pending-payment button:hover { background: #065e32; }
.cart-pending-payment button svg { width: 1rem; height: 1rem; }
@media (max-width: 760px) { .cart-pending-payment { grid-template-columns: auto 1fr; } .cart-pending-payment button { grid-column: 1 / -1; } }
.cart-transfer-guide { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); gap: clamp(1.5rem, 4vw, 4rem); margin: 2.25rem 0 1rem; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #e3e9e4; border-radius: 12px; background: #f4f8f3; }
.cart-transfer-intro > span { color: #1c7141; font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.cart-transfer-intro h2 { margin: .6rem 0; color: #203126; font-family: Merriweather, Georgia, serif; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.25; }
.cart-transfer-intro p, .cart-transfer-guide li p { margin: .35rem 0 0; color: #627267; font-size: .78rem; line-height: 1.6; }
.cart-transfer-guide ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.cart-transfer-guide li { padding: 1rem 0 0; border-top: 2px solid #b8d0be; }
.cart-transfer-guide li b { display: block; margin-bottom: .75rem; color: #98704b; font-size: .7rem; }
.cart-transfer-guide li strong { color: #25362b; font-size: .84rem; }
.checkout-transfer-steps { display: grid; gap: .65rem; padding: 0; margin: 1.15rem 0; list-style: none; }
.checkout-transfer-steps li { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; border: 1px solid #e4eae4; border-radius: 8px; background: #fff; color: #5b6a60; font-size: .8rem; line-height: 1.45; }
.checkout-transfer-steps li b { display: grid; flex: 0 0 1.6rem; width: 1.6rem; height: 1.6rem; place-items: center; border-radius: 50%; background: #eaf5ed; color: #17713d; }
.checkout-transfer-steps strong { color: #25362b; }
.payment-process { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; padding: 0; margin: 1.75rem 0 .25rem; list-style: none; }
.payment-process li { display: flex; align-items: center; gap: .5rem; color: #6a776d; font-size: .75rem; font-weight: 650; }
.payment-process li span { display: grid; width: 1.6rem; height: 1.6rem; place-items: center; border: 1px solid #c6dacb; border-radius: 50%; color: #19743e; }
.payment-process li:first-child { color: #19743e; }
.payment-process li:first-child span { background: #19743e; color: #fff; }
.payment-next-step { padding: 1rem 1.2rem; margin: 1.25rem 0 1rem; border-left: 3px solid #27804b; background: #edf6ef; color: #344c3b; font-size: .83rem; line-height: 1.65; }
.payment-finish-button { display: flex; justify-content: center; align-items: center; gap: .65rem; width: 100%; min-height: 48px; margin: .8rem 0 0; border: 1px solid #207446; border-radius: 9px; background: #fff; color: #1a653b; font: inherit; font-size: .85rem; font-weight: 750; cursor: pointer; }
.payment-finish-button svg { width: 1rem; height: 1rem; }
.payment-finish-button:hover { background: #edf6ef; }
.payment-finish-button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 760px) { .cart-transfer-guide { grid-template-columns: 1fr; } .cart-transfer-guide ol { grid-template-columns: 1fr; gap: .75rem; } .cart-transfer-guide li { display: flex; gap: 1rem; padding-top: .7rem; } .cart-transfer-guide li b { margin: 0; } .payment-process { gap: .65rem; } }

.checkout-summary-card { padding: clamp(16px, 2.5vw, 24px); border-radius: 12px; box-shadow: 0 4px 16px rgba(25, 39, 29, .045); }
.checkout-summary-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.checkout-summary-heading h2 { color: #171b19; font-size: 22px; font-weight: 750; letter-spacing: -.035em; }
.checkout-summary-heading > span { margin: 0; padding: .25rem .55rem; border-radius: 999px; color: #68756d; background: #f2f4f2; font-size: .68rem; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.checkout-summary-items { max-height: 300px; }
.checkout-order-item { grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 13px 0; }
.checkout-order-image { width: 60px; height: 60px; border: 1px solid #e8ece7; border-radius: 8px; }
.checkout-order-title { font-size: .78rem; line-height: 1.4; }
.checkout-order-meta { margin-top: 5px; font-size: .69rem; }
.checkout-order-total { color: #212a23; font-size: .8rem; }
.checkout-coupon { padding: 13px 0; }
.checkout-coupon > div { gap: .6rem; }
.checkout-coupon input { height: 44px; border-right: 1px solid #dfe5df; border-radius: 8px; padding-inline: .85rem; }
.checkout-coupon button { min-height: 44px; padding-inline: 1rem; border-radius: 8px; background: #fff; font-size: .76rem; }
.checkout-summary-totals { gap: .75rem; padding: 14px 0 8px; }
.checkout-summary-totals > div { font-size: .82rem; }
.checkout-summary-totals strong { font-size: .84rem; }
.checkout-summary-totals .checkout-delivery-estimate { color: #78837b; font-size: .74rem; }
.checkout-summary-totals .checkout-delivery-estimate strong { color: #68756d; font-size: .74rem; font-weight: 550; }
.checkout-summary-totals .checkout-grand-total { align-items: center; padding-top: 12px; margin-top: 3px; font-size: 1rem; }
.checkout-summary-totals .checkout-grand-total strong { color: #bb590e; font-size: clamp(1.75rem, 7vw, 2.15rem); font-weight: 800; }
.checkout-tax-note { padding-bottom: 8px; font-size: .72rem; }
.checkout-summary-assurance { align-items: flex-start; gap: .65rem; padding: .85rem .9rem; margin-top: .65rem; border: 1px solid #e4e9e3; border-radius: 9px; background: #f5f7f4; color: #29342c; font-size: .76rem; line-height: 1.55; }
.checkout-summary-assurance svg { width: 18px; height: 18px; flex-basis: 18px; margin-top: .08rem; color: #08783d; }
.checkout-summary-assurance strong { color: #1d2620; }
.checkout-summary-help { padding: .8rem 0 .1rem; }
.checkout-summary-help summary { display: flex; align-items: center; gap: .5rem; color: #168047; font-size: .85rem; font-weight: 700; line-height: 1.35; cursor: pointer; list-style: none; }
.checkout-summary-help summary::-webkit-details-marker { display: none; }
.checkout-summary-help summary svg:first-child { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.checkout-summary-help summary svg:last-child { width: .95rem; height: .95rem; flex: 0 0 auto; margin-left: auto; transition: transform .18s ease; }
.checkout-summary-help[open] summary svg:last-child { transform: rotate(180deg); }
.checkout-summary-help > p { margin: .55rem 0 0 1.6rem; color: #647168; font-size: .76rem; line-height: 1.55; }
.checkout-terms-area { padding-top: 12px; margin-top: 12px; }
.checkout-order-button { min-height: 54px; justify-content: center; gap: .65rem; padding: .8rem 1rem; margin-top: 14px; border: 0; border-radius: 10px; background: #bb590e; color: #fff; font-size: .95rem; font-weight: 750; }
.checkout-order-button:hover { background: #a64b08; }
.checkout-order-button svg { width: 1.05rem; height: 1.05rem; }
.checkout-summary-legal { margin-top: .7rem; font-size: .72rem; }
@media (max-width: 540px) {
  .checkout-summary-card { padding: 16px; }
  .checkout-summary-heading h2 { font-size: 20px; }
  .checkout-summary-items { max-height: 260px; }
  .checkout-order-item { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 9px; }
  .checkout-order-image { width: 54px; height: 54px; }
  .checkout-order-total { font-size: .76rem; }
  .checkout-coupon > div { grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; }
  .checkout-coupon button { padding-inline: .75rem; }
  .checkout-summary-assurance { padding: .75rem; font-size: .74rem; }
  .checkout-summary-help summary { font-size: .81rem; }
  .checkout-summary-totals .checkout-grand-total strong { font-size: clamp(1.7rem, 7vw, 2rem); }
}

/* Payment confirmation follows a clear, two-step transfer flow. */
.payment-page-content { width: min(100% - 36px, 760px); padding: 36px 0 56px; }
.payment-page-intro { gap: 16px; }
.payment-page-intro h2 { font-size: clamp(28px, 4vw, 38px); }
.payment-amount { margin: 22px 0 25px; padding: 20px 24px; border-color: #e2e8e2; border-radius: 10px; background: #fff; }
.payment-amount strong { color: #171b19; font-size: clamp(32px, 5vw, 40px); }
.payment-transfer-flow { display: grid; gap: 12px; }
.payment-flow-title { margin: 0 0 2px; color: #202822; font-size: 18px; font-weight: 750; }
.payment-step-card { padding: 16px 18px; border: 1px solid #e3e9e3; border-radius: 9px; background: #fff; }
.payment-step-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.payment-step-heading > span { display: grid; flex: 0 0 26px; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #27332a; background: #f0f3ef; font-size: 12px; font-weight: 750; }
.payment-step-heading h3 { margin: 0; color: #202822; font-size: 14px; font-weight: 700; }
.payment-step-card > p { margin: .45rem 0 0; color: #5f6b62; font-size: 13px; line-height: 1.55; }
.payment-step-card > p strong { color: #26342a; }
.payment-step-card .payment-details { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.payment-step-card .payment-detail-row { min-height: 57px; padding: 10px 0; }
.payment-step-card .payment-detail-row:first-child { border-top: 1px solid #eef1ee; }
.payment-step-card .payment-detail-row button { min-width: 76px; min-height: 32px; border-radius: 5px; }
.payment-step-card .payment-detail-row button span { display: inline; margin: 0; color: inherit; font-size: inherit; }
.payment-speed-callout { padding: 14px 16px; border-left: 3px solid #168044; border-radius: 0 7px 7px 0; background: #f1f7f2; }
.payment-speed-callout-heading { display: flex; align-items: center; gap: 8px; color: #1c6f40; font-size: 14px; }
.payment-speed-callout-heading svg { width: 17px; height: 17px; }
.payment-speed-callout p { margin: 6px 0 0; color: #4e5f53; font-size: 12px; line-height: 1.5; }
.payment-speed-callout p + p { color: #69766d; }
.payment-secondary-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.payment-secondary-actions .payment-document { width: auto; min-height: 42px; padding: 0 12px; margin: 0; border-radius: 6px; font-size: 13px; }
.payment-secondary-actions .payment-finish-button { width: auto; min-height: 42px; padding: 0 10px; margin: 0; border: 0; background: transparent; color: #5c6b60; font-size: 12px; }
.payment-secondary-actions .payment-finish-button:hover { color: #08783d; background: #f1f7f2; }
.payment-order-details { margin-top: 12px; border-radius: 9px; }
.payment-order-details summary { min-height: 56px; padding: 14px 16px; font-size: 14px; }
.payment-order-details summary span:first-child { margin-left: 0; color: #253128; font-size: 14px; font-weight: 700; }
.payment-order-details summary span:nth-child(2) { margin-left: auto; color: #778279; font-size: 12px; font-weight: 500; }
#payment-order-items { padding: 0 16px 10px; }
.payment-order-totals { padding-top: 4px; margin-top: 3px; border-top: 1px solid #e9eeea; }
.payment-order-totals .payment-order-line { padding: 9px 0; }
.payment-order-totals .payment-order-line.is-total { border-top: 1px solid #e9eeea; color: #1c251f; font-weight: 750; }
.payment-shipping-summary { padding: 12px 16px 14px; border-top: 1px solid #e9eeea; color: #67736a; font-size: 12px; line-height: 1.55; }
.payment-shipping-summary p { margin: 0; }
.payment-shipping-summary p + p { margin-top: 4px; }
.payment-shipping-summary strong { color: #2a382e; }
.payment-proof-open { min-height: 54px; margin-top: 14px; border-radius: 9px; font-size: 15px; }
.payment-privacy { min-height: 42px; margin: 7px 0 0; background: transparent; font-size: 12px; }
.payment-help { margin-top: 18px; font-size: 12px; }
@media (max-width: 640px) {
  .payment-page-header { min-height: 62px; }
  .payment-page-content { width: min(100% - 28px, 500px); padding: 24px 0 38px; }
  .payment-page-intro h2 { font-size: 25px; }
  .payment-page-intro p { font-size: 13px; }
  .payment-amount { margin: 18px 0 20px; padding: 17px; }
  .payment-step-card { padding: 13px; }
  .payment-step-card .payment-detail-row { gap: 9px; }
  .payment-step-card .payment-detail-row button { min-width: 40px; width: 40px; padding: 0; font-size: 0; }
  .payment-step-card .payment-detail-row button svg { width: 15px; height: 15px; }
  .payment-secondary-actions { align-items: stretch; flex-direction: column; gap: 6px; }
  .payment-secondary-actions .payment-document,
  .payment-secondary-actions .payment-finish-button { width: 100%; justify-content: flex-start; }
  .payment-order-details summary { padding: 13px; font-size: 13px; }
  .payment-order-details summary span:first-child { font-size: 13px; }
  .payment-order-details summary span:nth-child(2) { font-size: 11px; }
  .payment-proof-open { min-height: 54px; font-size: 14px; }
}

.payment-page {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f1f3f4;
  color: #202327;
  font-family: Inter, Arial, sans-serif;
  display: flex;
  flex-direction: column;
}
.payment-page.hidden { display: none !important; }
body.payment-open { overflow: hidden; }
.payment-page-header { box-sizing: border-box; width: min(calc(100% - 40px), 920px); min-height: 68px; margin: 0 auto; padding: 12px 0; border: 0; background: transparent; }
.payment-page-brand { font-size: 18px; }
.payment-page-brand img { width: 38px; height: 38px; }
.payment-page-header a { color: #626970; font-size: 14px; }
.payment-page-header a strong { color: #25292d; }
.payment-page-content { box-sizing: border-box; width: calc(100% - 40px); max-width: 880px; padding: clamp(30px, 4vw, 48px) clamp(22px, 4vw, 48px) 48px; margin: 0 auto 28px; border-radius: 15px; background: #fff; box-shadow: 0 12px 36px rgba(28, 37, 43, .06); }
.payment-page-intro { display: block; }
.payment-page-intro h2 { margin: 0 0 10px; color: #202327; font-family: Inter, Arial, sans-serif; font-size: clamp(32px, 3vw, 44px); font-weight: 650; letter-spacing: -.035em; line-height: 1.15; }
.payment-page-intro p { max-width: 100%; color: #71777d; font-size: clamp(16px, 1.55vw, 21px); line-height: 1.5; }
.payment-page-intro p strong { color: #24282c; font-weight: 700; }
.payment-amount { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; margin: 32px 0 44px; border: 0; border-top: 1px solid #e1e4e7; border-bottom: 1px solid #e1e4e7; border-radius: 0; background: transparent; }
.payment-amount > span { color: #70777e; font-size: clamp(16px, 1.7vw, 21px); font-weight: 500; }
.payment-amount strong { color: #202327; font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: -.025em; }
.payment-amount small { display: none; }
.payment-transfer-flow { gap: 16px; }
.payment-flow-title { margin: 0 0 2px; color: #202327; font-size: clamp(20px, 2vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.payment-step-card { padding: 21px 26px; border-color: #e1e4e7; border-radius: 10px; box-shadow: none; }
.payment-bank-step { padding: 0; overflow: hidden; }
.payment-step-heading { gap: 16px; margin-bottom: 14px; }
.payment-step-heading > span { flex-basis: 38px; width: 38px; height: 38px; background: #f2f3f4; color: #24282b; font-size: 15px; }
.payment-step-heading h3 { color: #25292d; font-size: clamp(17px, 1.7vw, 22px); font-weight: 600; }
.payment-bank-step > summary { min-height: 86px; padding: 20px 28px; margin: 0; list-style: none; cursor: pointer; }
.payment-bank-step > summary::-webkit-details-marker { display: none; }
.payment-bank-step > summary > svg { width: 21px; height: 21px; margin-left: auto; color: #777e84; transition: transform .18s ease; }
.payment-bank-step[open] > summary > svg { transform: rotate(180deg); }
.payment-bank-step > .payment-bank-details { padding: 12px 28px 16px !important; margin: 0 24px 24px; border: 0 !important; border-radius: 8px !important; background: #f3f4f5 !important; box-shadow: none !important; }
.payment-bank-step .payment-detail-row { min-height: 82px; padding: 13px 10px; border: 0; }
.payment-bank-step .payment-detail-row:first-child { border-top: 0; }
.payment-bank-step .payment-detail-row > div { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.payment-bank-step .payment-detail-row span { margin: 0; color: #777e84; font-size: 15px; line-height: 1.25; }
.payment-bank-step .payment-detail-row strong { color: #24282c; font-size: clamp(15px, 1.65vw, 20px); font-weight: 500; line-height: 1.3; }
.payment-bank-step .payment-detail-row strong.payment-bank-code { font-size: clamp(14px, 1.45vw, 18px); letter-spacing: .025em; }
.payment-bank-step .payment-detail-row button { flex: 0 0 58px; width: 58px; min-width: 58px; height: 52px; min-height: 52px; padding: 0; border: 1px solid #e0e3e6; border-radius: 7px; background: transparent; color: #6f777e; }
.payment-bank-step .payment-detail-row button:hover { border-color: #bbc1c6; background: #fff; color: #293036; }
.payment-bank-step .payment-detail-row button svg { width: 22px; height: 22px; }
.payment-speed-callout { padding: 17px 22px; border-left: 3px solid #168044; border-radius: 0 8px 8px 0; background: #f3f7f4; }
.payment-speed-callout-heading { font-size: 16px; }
.payment-speed-callout p { font-size: 14px; }
.payment-step-instructions > p { font-size: 15px; }
.payment-secondary-actions { margin-top: 4px; }
.payment-secondary-actions .payment-document { min-height: 56px; padding: 0 18px; border-radius: 8px; font-size: 15px; }
.payment-secondary-actions .payment-finish-button { font-size: 13px; }
.payment-order-details { border-radius: 9px; box-shadow: none; }
.payment-order-details summary { min-height: 64px; padding: 17px 20px; font-size: 17px; }
.payment-order-details summary span:first-child { font-size: 17px; }
.payment-order-details summary span:nth-child(2) { font-size: 14px; }
#payment-order-items { padding: 0 20px 14px; }
.payment-order-line { font-size: 14px; }
.payment-order-totals .payment-order-line { padding: 11px 0; }
.payment-shipping-summary { padding: 15px 20px; font-size: 14px; }
.payment-proof-open { min-height: 60px; margin-top: 18px; border-radius: 9px; font-size: 17px; }
.payment-privacy { min-height: 44px; background: transparent; font-size: 13px; }
.payment-help { margin-top: 22px; font-size: 13px; }
.payment-policy-panel { padding: 18px 22px; margin-top: 14px; border: 1px solid #e1e4e7; border-radius: 10px; background: #fff; }
.payment-policy-panel h3 { margin: 0; color: #202327; font-size: 16px; font-weight: 700; }
.payment-policy-panel p { margin: 9px 0 0; color: #5f6b62; font-size: 13px; line-height: 1.55; }
.payment-policy-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; }
.payment-policy-links a { color: #08783d; font-size: 13px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .payment-page-header { width: calc(100% - 28px); min-height: 60px; padding: 9px 0; }
  .payment-page-brand { font-size: 15px; }
  .payment-page-brand img { width: 32px; height: 32px; }
  .payment-page-header a { max-width: 145px; font-size: 11px; }
  .payment-page-content { width: calc(100% - 20px); padding: 24px 16px 32px; margin-bottom: 12px; border-radius: 10px; }
  .payment-page-intro h2 { margin-bottom: 8px; font-size: clamp(27px, 8vw, 34px); }
  .payment-page-intro p { font-size: 14px; }
  .payment-amount { gap: 12px; padding: 17px 0; margin: 23px 0 30px; }
  .payment-amount > span { font-size: 15px; }
  .payment-amount strong { font-size: clamp(23px, 7vw, 31px); text-align: right; }
  .payment-transfer-flow { gap: 12px; }
  .payment-flow-title { font-size: 19px; }
  .payment-step-card { padding: 16px; }
  .payment-bank-step { padding: 0; }
  .payment-bank-step > summary { min-height: 66px; padding: 14px 13px; gap: 10px; }
  .payment-step-heading > span { flex-basis: 31px; width: 31px; height: 31px; font-size: 13px; }
  .payment-step-heading h3 { font-size: 15px; }
  .payment-bank-step > .payment-bank-details { padding: 8px 10px !important; margin: 0 9px 10px; }
  .payment-bank-step .payment-detail-row { min-height: 68px; gap: 8px; padding: 9px 3px; }
  .payment-bank-step .payment-detail-row span { font-size: 12px; }
  .payment-bank-step .payment-detail-row strong { font-size: 14px; overflow-wrap: anywhere; }
  .payment-bank-step .payment-detail-row strong.payment-bank-code { font-size: clamp(11px, 3.35vw, 14px); }
  .payment-bank-step .payment-detail-row button { flex-basis: 42px; width: 42px; min-width: 42px; height: 42px; min-height: 42px; }
  .payment-bank-step .payment-detail-row button svg { width: 18px; height: 18px; }
  .payment-speed-callout { padding: 13px 14px; }
  .payment-speed-callout-heading { align-items: flex-start; font-size: 14px; }
  .payment-speed-callout p { font-size: 12px; }
  .payment-secondary-actions { align-items: stretch; flex-direction: column; gap: 6px; }
  .payment-secondary-actions .payment-document,
  .payment-secondary-actions .payment-finish-button { width: 100%; justify-content: flex-start; }
  .payment-order-details summary { min-height: 58px; padding: 13px; font-size: 14px; }
  .payment-order-details summary span:first-child { font-size: 14px; }
  .payment-order-details summary span:nth-child(2) { font-size: 11px; }
  #payment-order-items { padding: 0 13px 10px; }
  .payment-shipping-summary { padding: 12px 13px; font-size: 12px; }
  .payment-proof-open { min-height: 54px; font-size: 14px; }
}

/* ===== Correctifs d'affichage de la page de paiement (RIB) ===== */
body:has(.payment-page:not(.hidden)) { overflow: hidden; }
.payment-page { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: env(safe-area-inset-bottom, 0); }
.payment-page :focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }

/* En-tête aligné sur la carte de contenu */
.payment-page-header { width: min(calc(100% - 40px), 880px); gap: 12px; }
.payment-page-brand { min-width: 0; }
.payment-page-header a { text-align: right; }
.payment-page-intro h2 { overflow-wrap: anywhere; }

/* Montant : ne casse plus quand le libellé est long */
.payment-amount { flex-wrap: wrap; }
.payment-amount > span { min-width: 0; }
.payment-amount strong { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Coordonnées bancaires */
.payment-bank-step .payment-detail-row + .payment-detail-row { border-top: 1px solid #e3e6e8; }
.payment-bank-step .payment-detail-row span { color: #5f666c; }
.payment-bank-step .payment-detail-row strong { overflow-wrap: anywhere; }
.payment-bank-step .payment-detail-row strong.payment-bank-code { user-select: all; font-variant-numeric: tabular-nums; }
.payment-bank-step .payment-detail-row button:active { background: #e9ecee; }

/* Actions secondaires, récapitulatif, justificatif */
.payment-secondary-actions { flex-wrap: wrap; }
.payment-secondary-actions .payment-document,
.payment-secondary-actions .payment-finish-button { white-space: normal; line-height: 1.25; text-align: left; }
.payment-order-details summary { min-width: 0; }
.payment-order-details summary span:nth-child(2) { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.payment-order-line { align-items: baseline; }
.payment-order-line span { min-width: 0; overflow-wrap: anywhere; }
.payment-order-line strong { flex: none; white-space: nowrap; }
.payment-policy-panel p { max-width: 72ch; }
.payment-proof-open { line-height: 1.25; text-align: left; }
.payment-proof-drop { position: relative; min-width: 0; }
.payment-proof-drop > span { min-width: 0; }
.payment-proof-drop small { overflow-wrap: anywhere; }
.payment-proof-form > button { min-height: 48px; }

@media (max-width: 640px) {
  .payment-page-header { width: calc(100% - 20px); flex-wrap: nowrap; }
  .payment-page-header a { max-width: none; font-size: 11px; line-height: 1.35; }
  .payment-page-header a strong { white-space: nowrap; overflow-wrap: normal; }
  .payment-page-content { padding-inline: 14px; }

  /* RIB : libellé + bouton copier sur une ligne, valeur pleine largeur dessous */
  .payment-bank-step > summary { padding: 14px 14px; }
  .payment-bank-step > .payment-bank-details { margin: 0 8px 8px; padding: 2px 12px !important; }
  .payment-bank-step .payment-detail-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label copy" "value value"; align-items: center; gap: 2px 10px; min-height: 0; padding: 12px 0; }
  .payment-bank-step .payment-detail-row > div { display: contents; }
  .payment-bank-step .payment-detail-row span { grid-area: label; align-self: end; font-size: 13px; }
  .payment-bank-step .payment-detail-row strong { grid-area: value; font-size: 16px; line-height: 1.4; }
  .payment-bank-step .payment-detail-row strong.payment-bank-code { font-size: clamp(14px, 4.1vw, 17px); letter-spacing: .02em; }
  .payment-bank-step .payment-detail-row small { grid-column: 1 / -1; }
  .payment-bank-step .payment-detail-row button { grid-area: copy; flex: none; width: 44px; min-width: 44px; height: 44px; min-height: 44px; }

  .payment-amount { gap: 4px 12px; }
  .payment-policy-panel { padding: 14px 16px; }
  .payment-proof-form { padding: 14px; }
}
@media (max-width: 360px) {
  .payment-page-header a { font-size: 10px; }
  .payment-page-brand { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .payment-page *, .payment-page *::before, .payment-page *::after { transition: none !important; } }
