/* BANUK Atelier Final Polish v9 — staging cart/checkout only.
 * Additive, accessible and reversible. Does not change Woo financial logic.
 */
body.woocommerce-cart,
body.woocommerce-checkout{
 --b9-bg:#fcfaf8;--b9-card:#fffdfb;--b9-ink:#261d27;
 --b9-plum:#3e2346;--b9-muted:#7a7079;--b9-line:#eae3df;
 --b9-wash:#f7f3ef;--b9-shadow:0 15px 42px rgba(47,33,42,.042);
}

/* Consistent floating-surface system for both steps */
body.woocommerce-cart .woocommerce .woocommerce-cart-form,
body.woocommerce-cart .woocommerce .cart_totals,
body.woocommerce-checkout #order_review #payment,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table{
 border:1px solid var(--b9-line)!important;
 background:var(--b9-card)!important;
 box-shadow:var(--b9-shadow)!important;
 border-radius:12px!important;
}
body.woocommerce-cart .woocommerce .woocommerce-cart-form{
 padding:clamp(18px,2.1vw,29px)!important;
}
body.woocommerce-cart .woocommerce-cart-form .bnv8-cart-heading{
 padding:0 0 17px!important;margin:0 0 2px!important;
 border-bottom:1px solid var(--b9-line)!important;
}
body.woocommerce-cart .woocommerce-cart-form .bnv8-cart-heading h2{
 font-size:19px!important;line-height:1.8!important;
 color:var(--b9-ink)!important;font-weight:650!important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table thead th{
 font-size:11px!important;color:#8a7e86!important;
 border-bottom:1px solid var(--b9-line)!important;
 padding:13px 7px!important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table tbody td{
 padding-block:17px!important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-thumbnail img{
 width:96px!important;max-width:96px!important;height:124px!important;
 border-radius:8px!important;object-fit:cover!important;
 object-position:center 24%!important;
 background:var(--b9-wash)!important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table .product-thumbnail{
 width:107px!important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-name a{
 color:var(--b9-ink)!important;font-weight:650!important;
 font-size:14px!important;line-height:1.9!important;
}
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-price,
body.woocommerce-cart .woocommerce-cart-form .shop_table td.product-subtotal{
 font-size:12px!important;font-weight:600!important;
 color:var(--b9-ink)!important;
}
body.woocommerce-cart .woocommerce-cart-form .quantity.bnv8-qty-ready{
 border-radius:8px!important;background:#f6f2f0!important;
}
body.woocommerce-cart .woocommerce-cart-form .quantity.bnv8-qty-ready .qty{
 height:36px!important;color:var(--b9-ink)!important;
}
body.woocommerce-cart .woocommerce-cart-form .quantity.bnv8-qty-ready .bnv8-qty-btn{
 height:36px!important;
}

/* Coupon: no wasted space, clear input/action hierarchy */
body.woocommerce-cart .woocommerce-cart-form .shop_table td.actions{
 padding:15px 0 0!important;border:0!important;
}
body.woocommerce-cart .woocommerce-cart-form .coupon{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 gap:9px 10px!important;align-items:center!important;
 padding:17px 0 0!important;border-top:1px solid var(--b9-line)!important;
 margin:0!important;width:100%!important;
}
body.woocommerce-cart .woocommerce-cart-form .coupon:before{
 grid-column:1/-1!important;grid-row:1!important;
 content:"کد تخفیف";font-size:13px!important;
 font-weight:650!important;color:var(--b9-ink)!important;
 padding-bottom:1px!important;
}
body.woocommerce-cart .woocommerce-cart-form .coupon .input-text,
body.woocommerce-cart .woocommerce-cart-form .coupon input#coupon_code{
 grid-column:1!important;grid-row:2!important;
 flex:none!important;width:100%!important;min-width:0!important;
 height:47px!important;border:1px solid #ded4d3!important;
 border-radius:7px!important;background:#fff!important;
 color:var(--b9-ink)!important;
 font-size:13px!important;padding:0 14px!important;box-shadow:none!important;
}
body.woocommerce-cart .woocommerce-cart-form .coupon .input-text::placeholder{
 color:#998f94!important;opacity:1;
}
body.woocommerce-cart .woocommerce-cart-form .coupon button.button,
body.woocommerce-cart .woocommerce-cart-form .coupon input[type=submit]{
 grid-column:2!important;grid-row:2!important;
 float:none!important;min-width:126px!important;
 height:47px!important;min-height:47px!important;
 padding:0 16px!important;
 margin:0!important;border:0!important;border-radius:7px!important;
 background:var(--b9-plum)!important;color:#fff!important;
 font-size:12px!important;font-weight:700!important;
 transition:background-color .2s ease!important;
}
body.woocommerce-cart .woocommerce-cart-form .coupon button.button:hover{
 background:#57365e!important;
}
body.woocommerce-cart .woocommerce-cart-form .coupon input:focus-visible{
 outline:2px solid var(--b9-plum)!important;outline-offset:2px!important;
}
/* Cart totals are calm, readable, not overdecorated */
body.woocommerce-cart .woocommerce .cart_totals{
 padding:clamp(20px,2vw,29px)!important;
}
body.woocommerce-cart .cart_totals>h2{
 font-size:20px!important;margin-bottom:13px!important;
 padding-bottom:15px!important;
}
body.woocommerce-cart .cart_totals .shop_table tr th,
body.woocommerce-cart .cart_totals .shop_table tr td{
 padding:14px 0!important;
}
body.woocommerce-cart .cart_totals .order-total .amount{
 font-size:19px!important;color:var(--b9-ink)!important;
}
body.woocommerce-cart .cart_totals .wc-proceed-to-checkout{
 padding-top:11px!important;
}
body.woocommerce-cart .cart_totals a.checkout-button{
 min-height:56px!important;border-radius:7px!important;
 font-size:14px!important;
 background:var(--b9-plum)!important;
}
body.woocommerce-cart .cart_totals .bnv8-delivery-note{
 background:var(--b9-wash)!important;color:#746c71!important;
 font-size:11px!important;padding:13px 12px!important;
}

/* Checkout typography & card alignment */
body.woocommerce-checkout .bnv8-steps{margin-bottom:21px!important}
body.woocommerce-checkout .bn-zero-heading{margin-bottom:25px!important}
body.woocommerce-checkout #order_review #payment{
 padding:clamp(22px,2.3vw,31px)!important;
}
body.woocommerce-checkout #order_review #payment:before{
 display:block!important;margin-bottom:20px!important;
 font-size:20px!important;line-height:1.7!important;font-weight:700!important;
}
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table{
 border-top:0!important;border-radius:0 0 12px 12px!important;
 overflow:visible!important;
}
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table>caption.bnv8-summary-caption{
 border-color:var(--b9-line)!important;
 border-radius:12px 12px 0 0!important;
 color:var(--b9-ink)!important;font-size:20px!important;
 padding:20px 22px!important;
}
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody td,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tbody th,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot th,
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table tfoot td{
 padding:14px 18px!important;border-color:var(--b9-line)!important;
}
body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table .order-total{
 background:var(--b9-wash)!important;
}
body.woocommerce-checkout .bn-zero-item-image{
 border-radius:8px!important;background:var(--b9-wash)!important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method{
 border:1px solid #e3d9e3!important;
 border-radius:10px!important;
 background:#fbf8fb!important;
 padding:18px 19px!important;margin:0 0 17px!important;
 transition:border-color .15s ease,background-color .15s ease!important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input:checked){
 background:#f8f3f8!important;
 border-color:#8c728f!important;
 box-shadow:inset 0 0 0 1px rgba(62,35,70,.06)!important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method>label{
 font-size:13px!important;font-weight:700!important;
 line-height:2!important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box{
 background:#f4f0ed!important;
 border-radius:8px!important;margin-top:13px!important;
 padding:15px 16px!important;
 font-size:12px!important;color:#6d6269!important;
 line-height:2!important;
}
body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method .payment_box p{
 margin:0!important;
}
body.woocommerce-checkout #payment .bnv8-payment-guide{
 position:relative!important;
 margin:3px 0 14px!important;
 border:1px solid #e8dfe5!important;
 background:#fcf9fb!important;color:#6f646f!important;
 border-radius:10px!important;
 padding:18px 20px!important;line-height:2.05!important;
 box-shadow:none!important;
}
body.woocommerce-checkout #payment .bnv8-payment-guide .bnv9-guide-label{
 display:inline-flex!important;align-items:center!important;
 font-size:10px!important;line-height:1.8!important;
 border:1px solid #dfd3e0!important;
 background:#f5eef6!important;color:var(--b9-plum)!important;
 border-radius:20px!important;padding:3px 10px!important;
 margin:0 0 10px!important;
}
body.woocommerce-checkout #payment .bnv8-payment-guide strong{
 font-size:14px!important;color:var(--b9-ink)!important;
 font-weight:700!important;line-height:1.9!important;
 margin:0 0 5px!important;
}
body.woocommerce-checkout #payment .bnv8-payment-guide p{
 font-size:12px!important;color:#736971!important;
 line-height:2.05!important;
}
body.woocommerce-checkout #payment .bn-zero-pay-unavailable{
 border:1px solid var(--b9-line)!important;
 border-radius:9px!important;background:var(--b9-wash)!important;
 color:#777076!important;
 padding:18px!important;
}
body.woocommerce-checkout #payment #place_order{
 background:var(--b9-plum)!important;border-radius:8px!important;
 min-height:56px!important;font-size:14px!important;font-weight:700!important;
}
body.woocommerce-checkout #payment #place_order:disabled{
 cursor:not-allowed!important;opacity:.6!important;
}
body.woocommerce-checkout #payment .form-row.place-order{
 padding-top:12px!important;
}

/* Coupon should look like a premium disclosure rather than an alert */
body.woocommerce-checkout .woocommerce-form-coupon-toggle
 .wc-block-components-notice-banner.is-info{
 border:1px solid var(--b9-line)!important;
 background:var(--b9-card)!important;
 padding:12px 17px!important;
 border-radius:9px!important;min-height:45px!important;
 box-shadow:none!important;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle
 .wc-block-components-notice-banner.is-info>svg{
 width:18px!important;height:18px!important;
 fill:var(--b9-plum)!important;
}
body.woocommerce-checkout .woocommerce-form-coupon-toggle
 .wc-block-components-notice-banner.is-info a{
 color:var(--b9-plum)!important;font-weight:650!important;
 text-underline-offset:4px;
}

/* Responsive refinement, independently tested down to 320px */
@media(max-width:1000px){
 body.woocommerce-cart .woocommerce .cart_totals,
 body.woocommerce-checkout #order_review #payment{
  position:static!important;
 }
 body.woocommerce-checkout form.checkout #order_review{
  gap:20px!important;
 }
}
@media(max-width:650px){
 body.woocommerce-cart .woocommerce .woocommerce-cart-form,
 body.woocommerce-cart .woocommerce .cart_totals,
 body.woocommerce-checkout #order_review #payment{
  padding:18px 16px!important;border-radius:11px!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .bnv8-cart-heading h2,
 body.woocommerce-cart .cart_totals>h2{
  font-size:18px!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .shop_table tbody tr.cart_item{
  grid-template-columns:31px 92px minmax(0,1fr)!important;
  gap:10px!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item td.product-thumbnail img{
  width:90px!important;height:117px!important;max-width:90px!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .coupon{
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:9px!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .coupon button.button{
  min-width:112px!important;padding-inline:10px!important;
 }
 body.woocommerce-checkout .bnv8-steps{
  margin-bottom:14px!important;
 }
 body.woocommerce-checkout .bn-zero-heading{
  margin-bottom:20px!important;
 }
 body.woocommerce-checkout #order_review table.woocommerce-checkout-review-order-table>caption.bnv8-summary-caption{
  font-size:18px!important;padding:15px 17px!important;
 }
 body.woocommerce-checkout #order_review #payment:before{
  font-size:18px!important;margin-bottom:14px!important;
 }
 body.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method{
  padding:15px 14px!important;
 }
 body.woocommerce-checkout #payment .bnv8-payment-guide{
  padding:16px!important;margin-bottom:12px!important;
 }
 body.woocommerce-checkout #payment #place_order{
  width:100%!important;min-height:55px!important;
 }
}
@media(max-width:375px){
 body.woocommerce-cart .woocommerce-cart-form .shop_table tbody tr.cart_item{
  grid-template-columns:29px 69px minmax(0,1fr)!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .shop_table tr.cart_item td.product-thumbnail img{
  width:69px!important;height:91px!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .coupon button.button{
  min-width:94px!important;font-size:11px!important;
 }
 body.woocommerce-cart .woocommerce-cart-form .coupon input#coupon_code{
  font-size:12px!important;padding-inline:9px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.woocommerce-cart *,
 body.woocommerce-checkout *{transition:none!important;}
}

/* Guest state: keep WooCommerce availability warning, styled neutrally. */
body.woocommerce-checkout #payment .wc-block-components-notice-banner.is-info,
body.woocommerce-checkout #payment .woocommerce-info{
 background:#f6f2ef!important;
 border:1px solid #e6dcd6!important;
 border-radius:9px!important;
 color:#685e66!important;
 box-shadow:none!important;
 padding:15px 17px!important;
 font-size:12px!important;
 line-height:2!important;
}
body.woocommerce-checkout #payment .wc-block-components-notice-banner.is-info>svg{
 fill:#3e2346!important;color:#3e2346!important;
 flex:0 0 18px!important;width:18px!important;height:18px!important;
}
body.woocommerce-checkout #payment .wc-block-components-notice-banner.is-info .wc-block-components-notice-banner__content{
 color:#685e66!important;font-size:12px!important;line-height:2!important;
}

/* v9.1 — Woo's native inline coupon validation is accessible; make it readable. */
body.woocommerce-cart .woocommerce-cart-form .coupon .coupon-error-notice{
 grid-column:1/-1!important;grid-row:3!important;
 display:block!important;margin:1px 0 0!important;
 padding:10px 12px!important;min-width:0!important;
 border:1px solid #efd8de!important;border-radius:6px!important;
 background:#fff8fa!important;color:#933e51!important;
 font-size:12px!important;font-weight:500!important;line-height:1.9!important;
 text-align:right!important;overflow-wrap:anywhere;
}
body.woocommerce-cart .woocommerce-cart-form .coupon input.has-error{
 border-color:#bc7788!important;
 background:#fffdfd!important;
}
