/* ============================================================
   Cart, checkout, order-review, thank-you
   ============================================================ */

/* ---------- CART ---------- */
/* Scope to #bnk-cart (page container) — NOT the bare .bnk-cart class, which is
   also the header cart icon. Using the class here leaked margin-bottom:60px onto
   the header icon and pushed it out of alignment on cart/checkout/account pages. */
#bnk-cart { margin-bottom: 60px; transition: opacity .2s ease; }
#bnk-cart.is-loading { opacity: .5; pointer-events: none; }
.bnk-cart__h1 { font-size: 32px; font-weight: 800; margin: 4px 0 24px; letter-spacing: -.4px; }
.bnk-cart__h1-count { font-size: 18px; color: var(--bnk-muted); font-weight: 600; }
.bnk-cart__grid { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.bnk-cart__items { border: 1px solid var(--bnk-border); border-radius: 12px; overflow: hidden; }
.bnk-cart__row { display: grid; grid-template-columns: 1fr 150px 160px 40px; gap: 16px; padding: 20px 22px; border-top: 1px solid var(--bnk-border-3); align-items: center; }
.bnk-cart__row--head { background: var(--bnk-soft-2); padding: 16px 22px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--bnk-text-3); border-top: none; }
.bnk-cart__row--head .bnk-cart__c-qty { text-align: center; }
.bnk-cart__row--head .bnk-cart__c-total { text-align: right; }
.bnk-cart__product { display: flex; gap: 16px; align-items: center; }
.bnk-cart__thumb { width: 74px; height: 74px; flex-shrink: 0; background: linear-gradient(155deg, #f7f8f9, #eceff1); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #c2c8cc; overflow: hidden; }
.bnk-cart__thumb img { width: 100%; height: 100%; object-fit: contain; }
.bnk-cart__name { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.bnk-cart__name a:hover { color: var(--bnk-red); }
.bnk-cart__sku { font-size: 12.5px; color: var(--bnk-muted); }
.bnk-cart__unit, .bnk-cart__unit .woocommerce-Price-amount { font-size: 13.5px; color: var(--bnk-red); font-weight: 700; margin-top: 4px; }
.bnk-cart__qty-cell { display: flex; justify-content: center; }
.bnk-cart__stepper .bnk-qty__btn { width: 34px; height: 38px; font-size: 17px; }
.bnk-qty__val { width: 40px; text-align: center; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.bnk-cart__line, .bnk-cart__line .woocommerce-Price-amount { text-align: right; font-size: 16px; font-weight: 800; color: var(--bnk-ink); justify-content: flex-end; }
.bnk-cart__remove { border: none; background: none; cursor: pointer; color: var(--bnk-muted-2); display: flex; align-items: center; justify-content: center; }
.bnk-cart__remove:hover { color: var(--bnk-red); }
.bnk-cart__continue { padding: 18px 22px; border-top: 1px solid var(--bnk-border-3); }
.bnk-cart__continue a { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--bnk-ink); }
.bnk-cart__continue a:hover { color: var(--bnk-red); }

.bnk-cart__summary { border: 1px solid var(--bnk-border); border-radius: 12px; padding: 24px; position: sticky; top: 20px; }
.bnk-cart__summary h2 { font-size: 18px; font-weight: 800; margin: 0 0 18px; }
.bnk-cart__coupon { display: flex; gap: 10px; margin-bottom: 12px; }
.bnk-cart__coupon input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--bnk-input-border); border-radius: 7px; padding: 0 14px; font-size: 13.5px; outline: none; }
.bnk-cart__coupon .bnk-btn { height: 44px; padding: 0 18px; }
.bnk-cart__coupon-msg { font-size: 12.5px; font-weight: 600; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bnk-cart__coupon-msg.is-ok { color: var(--bnk-success); }
.bnk-cart__coupon-remove { border: none; background: none; color: var(--bnk-muted); text-decoration: underline; cursor: pointer; font-size: 12px; }
.bnk-cart__totals { display: flex; flex-direction: column; gap: 13px; font-size: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--bnk-border-3); margin-top: 4px; }
.bnk-cart__total-row { display: flex; justify-content: space-between; color: var(--bnk-text-2); }
.bnk-cart__total-val, .bnk-cart__total-val .woocommerce-Price-amount { font-weight: 600; color: var(--bnk-ink); }
.bnk-cart__total-discount, .bnk-cart__total-free { font-weight: 600; color: var(--bnk-success); }
.bnk-cart__grand { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0 4px; }
.bnk-cart__grand span:first-child { font-size: 16px; font-weight: 700; }
.bnk-cart__grand-val, .bnk-cart__grand-val .woocommerce-Price-amount { font-size: 26px; font-weight: 800; color: var(--bnk-red); }
.bnk-cart__vat { font-size: 12.5px; color: var(--bnk-muted); margin-bottom: 18px; }
.bnk-cart__secure { display: flex; align-items: center; gap: 9px; justify-content: center; margin-top: 16px; font-size: 12.5px; color: var(--bnk-text-3); }

.bnk-cart-empty { text-align: center; padding: 60px 20px 80px; }
.bnk-cart-empty__icon { color: var(--bnk-muted-2); margin-bottom: 20px; display: flex; justify-content: center; }
.bnk-cart-empty h1 { font-size: 26px; margin-bottom: 10px; }
.bnk-cart-empty p { color: var(--bnk-text-3); margin-bottom: 24px; }

/* ---------- CHECKOUT ---------- */
.bnk-checkout__h1 { font-size: 32px; font-weight: 800; margin: 4px 0 24px; letter-spacing: -.4px; }
.bnk-checkout__grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; margin-bottom: 60px; }
.bnk-checkout__main { display: flex; flex-direction: column; gap: 24px; }
.bnk-checkout__card { border: 1px solid var(--bnk-border); border-radius: 12px; padding: 26px; }
.bnk-checkout__step { font-size: 17px; font-weight: 800; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.bnk-checkout__num { width: 26px; height: 26px; border-radius: 50%; background: var(--bnk-red); color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* WC billing fields → 2-col grid */
.bnk-checkout .woocommerce-billing-fields h3 { display: none; }
.bnk-checkout .woocommerce-billing-fields__field-wrapper, .bnk-checkout__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.bnk-checkout .form-row { float: none !important; width: auto !important; margin: 0; padding: 0; }
.bnk-checkout .woocommerce-input-wrapper { display: block; width: 100%; }
.bnk-checkout .form-row-wide { grid-column: span 2; }
.bnk-checkout .form-row > label { font-size: 13px; font-weight: 600; color: #5b6166; display: block; margin-bottom: 6px; }
.bnk-checkout .form-row .required { color: var(--bnk-red); border: none; text-decoration: none; }
.bnk-checkout .form-row .optional { color: var(--bnk-muted); }
.bnk-checkout .form-row input.input-text, .bnk-checkout .form-row textarea, .bnk-checkout .form-row select { width: 100%; height: 46px; border: 1px solid var(--bnk-input-border); border-radius: 7px; padding: 0 14px; font-size: 14px; font-family: inherit; outline: none; background: #fff; color: var(--bnk-ink); }
.bnk-checkout .form-row textarea { height: auto; min-height: 90px; padding: 12px 14px; }
.bnk-checkout .form-row input:focus, .bnk-checkout .form-row textarea:focus, .bnk-checkout .form-row select:focus { border-color: var(--bnk-red); box-shadow: 0 0 0 3px var(--bnk-red-soft); }
/* Hide the top error summary box — WooCommerce already shows each error inline. */
.woocommerce-NoticeGroup-checkout { display: none; }
.checkout-inline-error-message { margin: 6px 0 0; font-size: 12.5px; font-weight: 600; color: var(--bnk-red); }
.bnk-checkout .form-row.woocommerce-invalid input.input-text, .bnk-checkout .form-row.woocommerce-invalid textarea, .bnk-checkout .form-row.woocommerce-invalid select { border-color: var(--bnk-red); }
.bnk-checkout .woocommerce-additional-fields { margin-top: 16px; }
.bnk-checkout .woocommerce-additional-fields h3 { font-size: 14px; font-weight: 700; margin: 0 0 10px; }

/* Payment methods */
/* WooCommerce payment methods → brand cards: radio + icon + title/description.
   (Real markup is ul.wc_payment_methods; payment-method.php override adds the icon + text.) */
.bnk-checkout #payment, .bnk-checkout .woocommerce-checkout-payment { background: transparent !important; border: none; padding: 0; }
.bnk-checkout .wc_payment_methods { list-style: none; margin: 0 !important; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.bnk-checkout .wc_payment_method { display: flex; align-items: center; border: 1.5px solid var(--bnk-border-2, #e0e3e5); border-radius: 9px; background: #fff; transition: border-color .15s ease, background .15s ease; }
.bnk-checkout .wc_payment_method:has(input:checked) { border-color: var(--bnk-red); background: var(--bnk-red-soft, #fbf2f3); }
.bnk-checkout .wc_payment_method input[type=radio] { width: 18px; height: 18px; accent-color: var(--bnk-red); flex-shrink: 0; margin: 0 0 0 18px !important; }
.bnk-checkout .wc_payment_method > label { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; padding: 13px 18px; margin: 0; cursor: pointer; }
.bnk-pay__ico { width: 36px; height: 36px; border-radius: 8px; background: var(--bnk-soft, #f5f6f7); color: var(--bnk-red); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.bnk-pay__ico svg { width: 20px; height: 20px; }
.bnk-checkout .wc_payment_method:has(input:checked) .bnk-pay__ico { background: #fff; }
.bnk-pay__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.bnk-pay__title { font-size: 14.5px; font-weight: 700; color: var(--bnk-ink); line-height: 1.3; }
.bnk-pay__desc { font-size: 13px; color: #6b7176; font-weight: 400; line-height: 1.35; }
.bnk-checkout .wc_payment_method img { display: none; }
.bnk-checkout .wc_payment_method .payment_box { background: transparent !important; margin: 0; padding: 0 18px 14px 67px; font-size: 13px; color: #6b7176; }
.bnk-checkout .wc_payment_method .payment_box::before { display: none !important; }
.bnk-checkout .wc_payment_method .payment_box p { margin: 0; padding: 0; background: transparent; }
/* Shipping methods as cards (left column, step 2) */
.bnk-checkout__ship { display: flex; flex-direction: column; gap: 12px; }
.bnk-ship-opt { display: flex; align-items: center; gap: 14px; border: 1.5px solid var(--bnk-border-2, #e0e3e5); background: #fff; border-radius: 9px; padding: 15px 18px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.bnk-ship-opt.is-selected, .bnk-ship-opt:has(input:checked) { border-color: var(--bnk-red); background: var(--bnk-red-soft, #fbf2f3); }
.bnk-ship-opt input { width: 18px; height: 18px; accent-color: var(--bnk-red); flex-shrink: 0; margin: 0; }
.bnk-ship-opt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bnk-ship-opt__title { font-size: 14.5px; font-weight: 700; color: var(--bnk-ink); }
.bnk-ship-opt__desc { font-size: 13px; color: #6b7176; }
.bnk-ship-opt__price { font-weight: 700; color: var(--bnk-success); white-space: nowrap; }
.bnk-order-review__free { color: var(--bnk-success); font-weight: 600; }

.bnk-checkout__pay-soon { margin-top: 12px; }
.bnk-checkout__pay-soon-item { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--bnk-border-2); border-radius: 9px; padding: 15px 18px; }
.bnk-checkout__pay-soon-item > .bnk-icon { color: var(--bnk-muted); flex-shrink: 0; }
.bnk-checkout__pay-soon-item div { flex: 1; }
.bnk-checkout__pay-soon-item strong { display: block; font-size: 14px; }
.bnk-checkout__pay-soon-item span { font-size: 12.5px; color: var(--bnk-muted); }
.bnk-checkout__pay-soon-tag { font-size: 11px; font-weight: 700; color: var(--bnk-warning); background: var(--bnk-warning-bg); padding: 4px 8px; border-radius: 4px; white-space: nowrap; }

/* Summary / order review */
.bnk-checkout__summary { border: 1px solid var(--bnk-border); border-radius: 12px; padding: 24px; position: sticky; top: 20px; }
.bnk-checkout__summary h2 { font-size: 18px; font-weight: 800; margin: 0 0 18px; }
.bnk-order-review__items { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--bnk-border-3); }
.bnk-order-item { display: flex; gap: 12px; align-items: center; }
.bnk-order-item__thumb { width: 52px; height: 52px; flex-shrink: 0; background: linear-gradient(155deg, #f7f8f9, #eceff1); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #c2c8cc; position: relative; overflow: visible; }
.bnk-order-item__thumb img { width: 100%; height: 100%; object-fit: contain; border-radius: 7px; }
.bnk-order-item__qty { position: absolute; top: -7px; right: -7px; background: var(--bnk-ink); color: #fff; font-size: 11px; font-weight: 700; width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.bnk-order-item__name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.35; }
.bnk-order-item__line, .bnk-order-item__line .woocommerce-Price-amount { font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.bnk-order-review__shipping { padding: 16px 0; border-bottom: 1px solid var(--bnk-border-3); }
.bnk-shipping__label { font-size: 13px; font-weight: 700; color: #33383d; margin-bottom: 10px; }
.bnk-shipping__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bnk-shipping__item { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--bnk-border-2); border-radius: 8px; padding: 10px 12px; }
.bnk-shipping__item:has(input:checked), .bnk-shipping__item.is-active { border-color: var(--bnk-red); background: var(--bnk-red-soft); }
.bnk-shipping__item input { accent-color: var(--bnk-red); flex-shrink: 0; }
.bnk-shipping__item label { font-size: 13.5px; font-weight: 600; cursor: pointer; margin: 0; flex: 1; }
.bnk-order-review__totals { display: flex; flex-direction: column; gap: 11px; font-size: 14px; padding: 18px 0; border-bottom: 1px solid var(--bnk-border-3); }
.bnk-order-review__row { display: flex; justify-content: space-between; color: var(--bnk-text-2); }
.bnk-order-review__row span:last-child, .bnk-order-review__row .woocommerce-Price-amount { font-weight: 600; color: var(--bnk-ink); }
.bnk-order-review__row--discount span:last-child { color: var(--bnk-success); }
.bnk-order-review__grand { display: flex; justify-content: space-between; align-items: baseline; padding: 18px 0; }
.bnk-order-review__grand span:first-child { font-size: 16px; font-weight: 700; }
.bnk-order-review__grand span:last-child, .bnk-order-review__grand .woocommerce-Price-amount { font-size: 25px; font-weight: 800; color: var(--bnk-red); }
.bnk-checkout__terms { font-size: 12px; color: var(--bnk-muted); margin: 14px 0 0; text-align: center; line-height: 1.5; }
.bnk-checkout__terms a { color: var(--bnk-ink); font-weight: 600; }
#order_review.processing, .processing > #order_review { opacity: .55; }

/* ---------- THANK YOU ---------- */
@keyframes bnk-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.bnk-thankyou { max-width: 760px; margin: 0 auto 60px; padding-top: 56px; }
.bnk-thankyou__head { text-align: center; }
.bnk-thankyou__check { width: 88px; height: 88px; border-radius: 50%; background: var(--bnk-success-bg); color: var(--bnk-success); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; animation: bnk-pop .5s ease; }
.bnk-thankyou__head h1 { font-size: 32px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.4px; }
.bnk-thankyou__head p { font-size: 16px; color: var(--bnk-text-2); margin: 0 0 8px; }
.bnk-thankyou__code { font-size: 15px; color: var(--bnk-text-3); }
.bnk-thankyou__code strong { color: var(--bnk-red); font-size: 17px; }
.bnk-thankyou__card { border: 1px solid var(--bnk-border); border-radius: 12px; overflow: hidden; margin-top: 34px; }
.bnk-thankyou__metarow { padding: 20px 26px; background: var(--bnk-soft-2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.bnk-thankyou__metarow > div { display: flex; flex-direction: column; gap: 3px; }
.bnk-thankyou__mlabel { font-size: 12px; color: var(--bnk-muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.bnk-thankyou__mval { font-size: 14.5px; font-weight: 700; }
.bnk-thankyou__mtotal, .bnk-thankyou__mtotal .woocommerce-Price-amount { color: var(--bnk-red); }
.bnk-thankyou__items { padding: 8px 26px; }
.bnk-thankyou__item { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--bnk-border-3); }
.bnk-thankyou__item:last-child { border-bottom: none; }
.bnk-thankyou__ithumb { width: 56px; height: 56px; flex-shrink: 0; background: linear-gradient(155deg, #f7f8f9, #eceff1); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: #c2c8cc; overflow: hidden; }
.bnk-thankyou__ithumb img { width: 100%; height: 100%; object-fit: contain; }
.bnk-thankyou__iname { flex: 1; font-size: 14px; font-weight: 700; }
.bnk-thankyou__iname span { display: block; font-size: 12.5px; color: var(--bnk-muted); font-weight: 400; margin-top: 2px; }
.bnk-thankyou__iline, .bnk-thankyou__iline .woocommerce-Price-amount { font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.bnk-thankyou__instructions { margin-top: 24px; border: 1px solid var(--bnk-border); border-radius: 12px; padding: 20px 24px; font-size: 14px; color: var(--bnk-text-2); }
.bnk-thankyou__instructions h2, .bnk-thankyou__instructions h3 { font-size: 16px; margin: 0 0 10px; color: var(--bnk-ink); }
.bnk-thankyou__instructions ul { list-style: none; padding: 0; }
.bnk-thankyou__instructions li { padding: 3px 0; }
.bnk-thankyou__timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 32px 0; }
.bnk-thankyou__step { text-align: center; }
.bnk-thankyou__dot { width: 48px; height: 48px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; background: #f0f1f3; color: var(--bnk-muted-2); }
.bnk-thankyou__step.is-on .bnk-thankyou__dot { background: var(--bnk-red); color: #fff; }
.bnk-thankyou__steplabel { font-size: 12.5px; font-weight: 700; margin-top: 8px; color: var(--bnk-muted-2); }
.bnk-thankyou__step.is-on .bnk-thankyou__steplabel { color: var(--bnk-ink); }
.bnk-thankyou__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
	.bnk-cart__grid, .bnk-checkout__grid { grid-template-columns: 1fr; }
	.bnk-cart__summary, .bnk-checkout__summary { position: static; }
}
@media (max-width: 600px) {
	.bnk-cart__row { grid-template-columns: 1fr auto; gap: 10px 12px; position: relative; }
	.bnk-cart__row--head { display: none; }
	.bnk-cart__product { grid-column: 1 / -1; padding-right: 46px; }
	.bnk-cart__qty-cell { justify-content: flex-start; }
	.bnk-cart__line { text-align: right; }
	.bnk-cart__remove { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 9px; background: var(--bnk-soft); color: var(--bnk-muted); }
	.bnk-cart__remove:hover, .bnk-cart__remove:active { background: var(--bnk-red-soft); color: var(--bnk-red); }
	.bnk-cart__remove svg { width: 18px; height: 18px; }
	.bnk-checkout .woocommerce-billing-fields__field-wrapper, .bnk-checkout__fields { grid-template-columns: 1fr; }
	.bnk-checkout .form-row-wide { grid-column: span 1; }
	.bnk-thankyou { padding-top: 36px; }
	.bnk-thankyou__head h1 { font-size: 26px; }
	.bnk-thankyou__steplabel { font-size: 11px; }
}
