/* FIFO Stage 2: WooCommerce cart and checkout responsive refinements.
 * Draft theme only; no transactional code or changes to order processing.
 */
body.fifo-preview-enhanced.woocommerce-cart,
body.fifo-preview-enhanced.woocommerce-checkout{
 --fifo-cart-ink:#153e2d;--fifo-cart-primary:#137b48;
 --fifo-cart-border:#dbe9df;--fifo-cart-bg:#f4f9f5;
 background-color:var(--fifo-cart-bg);
}
body.fifo-preview-enhanced.woocommerce-cart .shopengine,
body.fifo-preview-enhanced.woocommerce-checkout .shopengine,
body.fifo-preview-enhanced.woocommerce-cart .woocommerce,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce{
 box-sizing:border-box;max-width:100%;min-width:0;
}
body.fifo-preview-enhanced.woocommerce-cart .shopengine-empty-cart-container{
 width:min(1160px,100%);margin:25px auto 38px;
 background:#fff;border:1px solid var(--fifo-cart-border);
 border-radius:19px;padding:30px;box-shadow:0 8px 26px rgba(30,70,43,.05);
 box-sizing:border-box;
}
body.fifo-preview-enhanced.woocommerce-cart .shopengine-empty-cart-container .woocommerce-info,
body.fifo-preview-enhanced.woocommerce-cart .shopengine-empty-cart-container .shopengine-woocommerce-info{
 font-size:16px;line-height:1.6;color:#22593a;background:#edf7f0;
 border:1px solid #c7e2cf;border-radius:12px;padding:25px 17px!important;
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce-cart-form,
body.fifo-preview-enhanced.woocommerce-cart .shopengine-cart-table,
body.fifo-preview-enhanced.woocommerce-cart .cart-collaterals,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce-checkout,
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-main,
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-sidebar{
 background:#fff;border:1px solid var(--fifo-cart-border);
 border-radius:15px;box-shadow:0 6px 22px rgba(27,65,42,.045);
 padding:clamp(15px,2vw,27px);box-sizing:border-box;
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce table.shop_table,
body.fifo-preview-enhanced.woocommerce-cart .woocommerce table.shop_table td,
body.fifo-preview-enhanced.woocommerce-cart .woocommerce table.shop_table th{
 border-color:var(--fifo-cart-border);
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce-cart-form img,
body.fifo-preview-enhanced.woocommerce-cart .shopengine-cart-table img.wp-post-image{
 width:min(90px,100%);height:auto;object-fit:contain;border-radius:9px;
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce-cart-form .quantity input.qty,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce-checkout input.input-text,
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-text-input input{
 min-height:43px;min-width:0;max-width:100%;
 border:1px solid #bad7c5;border-radius:8px;background:#fff;
 color:var(--fifo-cart-ink);
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce .button,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce .button,
body.fifo-preview-enhanced.woocommerce-cart .wc-block-cart__submit-button,
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.fifo-preview-enhanced.woocommerce-cart a.wc-backward.button{
 background:var(--fifo-cart-primary)!important;color:#fff!important;
 border:0!important;border-radius:11px!important;
 padding:12px 19px!important;line-height:1.45!important;
 min-height:44px!important;font-weight:800!important;
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce .button:hover,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce .button:hover,
body.fifo-preview-enhanced.woocommerce-cart .wc-block-cart__submit-button:hover,
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover{
 background:#0a6339!important;color:#fff!important;
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce .button:disabled,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce .button:disabled{
 opacity:.53!important;cursor:not-allowed;
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce-error,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce-error,
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-notice-banner.is-error{
 border-radius:11px;min-width:0;
 /* Preserve the native error colours so blocked checkout states remain obvious. */
}
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-checkout__main,
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-checkout__sidebar{
 min-width:0;max-width:100%;box-sizing:border-box;
}
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-totals-wrapper{
 border-color:var(--fifo-cart-border);
}
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-product-name,
body.fifo-preview-enhanced.woocommerce-cart .wc-block-cart-item__product .wc-block-components-product-name{
 font-weight:750;color:var(--fifo-cart-ink);
}
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-checkout-step__heading-title{
 color:var(--fifo-cart-ink);font-weight:850;
}
body.fifo-preview-enhanced.woocommerce-cart .woocommerce-notices-wrapper,
body.fifo-preview-enhanced.woocommerce-checkout .woocommerce-notices-wrapper{
 max-width:1160px;margin:12px auto;
}
body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-radio-control__option:focus-within,
body.fifo-preview-enhanced.woocommerce-cart a:focus-visible{
 outline:3px solid #2f9460;outline-offset:2px;
}
@media(max-width:820px){
 body.fifo-preview-enhanced.woocommerce-cart,
 body.fifo-preview-enhanced.woocommerce-checkout{overflow-x:clip}
 body.fifo-preview-enhanced.woocommerce-cart .shopengine-empty-cart-container{
  margin:14px auto 20px;padding:19px 14px;border-radius:13px;
 }
 body.fifo-preview-enhanced.woocommerce-cart .shopengine-cart-table,
 body.fifo-preview-enhanced.woocommerce-cart .woocommerce-cart-form{
  max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;
 }
 body.fifo-preview-enhanced.woocommerce-cart table.shop_table{max-width:100%}
 body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-sidebar,
 body.fifo-preview-enhanced.woocommerce-checkout .wc-block-components-main{
  width:100%;padding:14px;
 }
 body.fifo-preview-enhanced.woocommerce-cart .woocommerce,
 body.fifo-preview-enhanced.woocommerce-checkout .woocommerce{
  width:100%;min-width:0;max-width:100%;
 }
}
@media(max-width:480px){
 body.fifo-preview-enhanced.woocommerce-cart .woocommerce .button,
 body.fifo-preview-enhanced.woocommerce-checkout .woocommerce .button{
  font-size:14px!important;
 }
 body.fifo-preview-enhanced.woocommerce-cart .shopengine-empty-cart-container .woocommerce-info{
  font-size:14px;line-height:1.5;
 }
}
