/* EBC Commerce Frontend v1.3 */
:root{--ebc-commerce-navy:#153c7b;--ebc-commerce-blue:#2563eb;--ebc-commerce-text:#172033;--ebc-commerce-muted:#64748b;--ebc-commerce-border:#dbe3ed;--ebc-commerce-soft:#f7f9fc;--ebc-commerce-green:#16884a;--ebc-commerce-shadow:0 12px 32px rgba(15,23,42,.07)}
body.ebc-commerce .site-main,body.ebc-commerce main{box-sizing:border-box}body.ebc-commerce .entry-content,body.ebc-commerce .wp-block-woocommerce-cart,body.ebc-commerce .wp-block-woocommerce-checkout,body.ebc-commerce .woocommerce{max-width:1280px;margin-left:auto;margin-right:auto}body.ebc-commerce .wc-block-components-title,body.ebc-commerce h1,body.ebc-commerce h2,body.ebc-commerce h3{color:var(--ebc-commerce-text);letter-spacing:-.02em}
/* Cart */
body.ebc-commerce--cart .wc-block-cart{gap:28px}body.ebc-commerce--cart .wc-block-cart-items{border-collapse:separate;border-spacing:0}body.ebc-commerce--cart .wc-block-cart-items__row{border-bottom:1px solid var(--ebc-commerce-border)}body.ebc-commerce--cart .wc-block-cart-item__image img{border-radius:12px;background:#fff;object-fit:contain}body.ebc-commerce--cart .wc-block-components-product-name{color:var(--ebc-commerce-navy);font-weight:800;text-decoration:none}body.ebc-commerce--cart .wc-block-components-product-price{font-weight:800;color:var(--ebc-commerce-text)}body.ebc-commerce--cart .wc-block-components-quantity-selector{border-color:#cbd5e1;border-radius:10px;overflow:hidden}body.ebc-commerce--cart .wc-block-cart__totals-title{font-size:13px!important;font-weight:900!important;letter-spacing:.05em;text-transform:uppercase;color:var(--ebc-commerce-navy)}body.ebc-commerce--cart .wc-block-components-totals-wrapper{border-color:var(--ebc-commerce-border)}body.ebc-commerce--cart .wc-block-components-totals-item__label{color:#475569}body.ebc-commerce--cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label,body.ebc-commerce--cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{font-weight:900;color:var(--ebc-commerce-text)}
body.ebc-commerce .ebc-commerce-primary,body.ebc-commerce--cart .wc-block-cart__submit-button,body.ebc-commerce--checkout .wc-block-components-checkout-place-order-button{min-height:54px!important;border:0!important;border-radius:11px!important;background:var(--ebc-commerce-navy)!important;color:#fff!important;font-weight:900!important;box-shadow:0 8px 20px rgba(21,60,123,.18)!important;text-decoration:none!important}
/* Checkout */
body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout{gap:32px}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-checkout-step{margin-bottom:22px;padding:20px;border:1px solid var(--ebc-commerce-border);border-radius:15px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.035)}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-checkout-step__heading{margin-bottom:14px}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-checkout-step__title{font-weight:900;color:var(--ebc-commerce-text)}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-text-input input,body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-combobox .wc-block-components-combobox-control input,body.ebc-commerce--checkout:not(.ebc-commerce--received) select{min-height:52px;border-color:#cbd5e1!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control__option{padding:15px!important;border:1px solid var(--ebc-commerce-border)!important;border-radius:11px!important;margin-bottom:8px!important;background:#fff!important;overflow:visible!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control__option-checked,body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control__option.ebc-is-selected{border-color:#1f5fbf!important;background:#f5f9ff!important;box-shadow:0 0 0 1px #1f5fbf inset!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-checkout-order-summary{border:1px solid var(--ebc-commerce-border);border-radius:15px;background:#fff;box-shadow:var(--ebc-commerce-shadow);overflow:hidden}body.ebc-commerce--checkout:not(.ebc-commerce--received) .ebc-checkout-summary--duplicate{display:none!important}
/* Order received */
body.ebc-commerce--received .woocommerce-order{max-width:1120px;margin:0 auto;padding:8px 0 48px}body.ebc-commerce--received .ebc-order-success{display:grid;grid-template-columns:54px minmax(0,1fr);gap:16px;align-items:center;margin:0 0 20px;padding:20px 22px;border:1px solid #bfe7cf;border-radius:16px;background:#f3fbf6;box-shadow:0 8px 24px rgba(22,136,74,.07)}body.ebc-commerce--received .ebc-order-success__icon{display:grid;place-items:center;width:54px;height:54px;border-radius:14px;background:var(--ebc-commerce-green);color:#fff;font-size:27px;font-weight:900}body.ebc-commerce--received .ebc-order-success small{display:block;margin-bottom:3px;color:var(--ebc-commerce-green);font-size:11px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}body.ebc-commerce--received .ebc-order-success strong{display:block;color:var(--ebc-commerce-text);font-size:22px;line-height:1.25}body.ebc-commerce--received .ebc-order-success em{display:block;margin-top:5px;color:var(--ebc-commerce-muted);font-size:13px;font-style:normal}body.ebc-commerce--received .woocommerce-order-overview{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 22px!important;padding:0!important;border:1px solid var(--ebc-commerce-border);border-radius:15px;background:#fff;overflow:hidden}body.ebc-commerce--received .woocommerce-order-overview li{float:none!important;width:auto!important;margin:0!important;padding:16px 18px!important;border:0!important;border-right:1px solid var(--ebc-commerce-border)!important;color:var(--ebc-commerce-muted)!important;font-size:10px!important;font-weight:800!important;text-transform:uppercase!important;min-width:0!important}body.ebc-commerce--received .woocommerce-order-overview li strong{display:block!important;margin-top:5px;color:var(--ebc-commerce-text)!important;font-size:17px!important;text-transform:none!important;overflow-wrap:anywhere}body.ebc-commerce--received .woocommerce-bacs-bank-details,body.ebc-commerce--received .ebc-order-bank-card{margin:0 0 22px!important;padding:22px!important;border:1px solid #cbdcf2;border-radius:16px;background:#f7faff}body.ebc-commerce--received .woocommerce-bacs-bank-details .wc-bacs-bank-details{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px!important;margin:0!important;padding:0!important}body.ebc-commerce--received .woocommerce-bacs-bank-details .wc-bacs-bank-details li{float:none!important;width:auto!important;margin:0!important;padding:13px 14px!important;border:1px solid #dbe6f4!important;border-radius:10px;background:#fff;min-width:0}body.ebc-commerce--received .woocommerce-bacs-bank-details .wc-bacs-bank-details li strong{display:block;overflow-wrap:anywhere}body.ebc-commerce--received .woocommerce-order-details,body.ebc-commerce--received .woocommerce-customer-details{margin:0 0 22px!important;border:1px solid var(--ebc-commerce-border);border-radius:16px;background:#fff;overflow:hidden}body.ebc-commerce--received .woocommerce-order-details h2,body.ebc-commerce--received .woocommerce-customer-details h2{margin:0!important;padding:18px 20px!important;border-bottom:1px solid var(--ebc-commerce-border);font-size:20px!important}body.ebc-commerce--received .woocommerce-table--order-details{margin:0!important;border:0!important}body.ebc-commerce--received .woocommerce-table--order-details th,body.ebc-commerce--received .woocommerce-table--order-details td{padding:13px 18px!important;border-color:#edf1f5!important;background:#fff!important;font-size:13px!important}body.ebc-commerce--received .woocommerce-columns--addresses{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;margin:0!important;padding:18px!important}body.ebc-commerce--received .woocommerce-column--billing-address,body.ebc-commerce--received .woocommerce-column--shipping-address{float:none!important;width:auto!important;max-width:none!important;padding:0!important;border:1px solid var(--ebc-commerce-border);border-radius:12px;overflow:hidden}body.ebc-commerce--received address{padding:16px!important;font-size:13px!important;line-height:1.7!important;color:#334155!important;border:0!important}
@media(max-width:782px){
body.ebc-commerce{overflow-x:hidden!important}body.ebc-commerce .site-main,body.ebc-commerce main,body.ebc-commerce .entry-content,body.ebc-commerce .wp-block-woocommerce-cart,body.ebc-commerce .wp-block-woocommerce-checkout,body.ebc-commerce .woocommerce{width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;margin-left:0!important;margin-right:0!important}
/* cart */ body.ebc-commerce--cart .wc-block-cart-items,body.ebc-commerce--cart .wc-block-cart-items tbody{display:block!important;width:100%!important}body.ebc-commerce--cart .wc-block-cart-items__row{display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;gap:12px!important;width:100%!important;padding:15px 0!important;box-sizing:border-box!important}body.ebc-commerce--cart .wc-block-cart-item__image{grid-column:1!important;width:88px!important;padding:0!important}body.ebc-commerce--cart .wc-block-cart-item__image a,body.ebc-commerce--cart .wc-block-cart-item__image img{display:block!important;width:88px!important;height:88px!important;max-width:88px!important;object-fit:contain!important}body.ebc-commerce--cart .wc-block-cart-item__product{grid-column:2!important;width:auto!important;min-width:0!important;padding:0!important}body.ebc-commerce--cart .wc-block-cart-item__total{display:none!important}body.ebc-commerce--cart .wc-block-cart__main,body.ebc-commerce--cart .wc-block-cart__sidebar{width:100%!important;max-width:100%!important;padding-left:0!important;padding-right:0!important}body.ebc-commerce--cart .wc-block-cart__sidebar{margin-top:14px!important;padding:14px!important;border:1px solid var(--ebc-commerce-border)!important;border-radius:14px!important;background:#fff!important}body.ebc-commerce--cart .wc-block-cart__submit-container{position:sticky!important;bottom:0!important;z-index:20!important;padding:10px 0 max(10px,env(safe-area-inset-bottom))!important;background:rgba(255,255,255,.96)!important}
/* checkout responsive layout */
body.ebc-commerce--checkout:not(.ebc-commerce--received) .entry-content{
    width:100%!important;
    max-width:none!important;
}

body.ebc-commerce--checkout:not(.ebc-commerce--received) .wp-block-woocommerce-checkout{
    width:100%!important;
    max-width:1380px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box!important;
}

@media (min-width: 1100px){
    body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout{
        display:flex!important;
        align-items:flex-start!important;
        width:100%!important;
        max-width:none!important;
        gap:32px!important;
        margin:0!important;
        box-sizing:border-box!important;
    }

    body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout__main{
        display:block!important;
        flex:1 1 0!important;
        width:auto!important;
        max-width:none!important;
        min-width:0!important;
        margin:0!important;
        padding-left:0!important;
        padding-right:0!important;
        box-sizing:border-box!important;
    }

    body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout__sidebar{
        display:block!important;
        flex:0 0 390px!important;
        width:390px!important;
        max-width:390px!important;
        min-width:0!important;
        margin:0!important;
        padding-left:0!important;
        padding-right:0!important;
        box-sizing:border-box!important;
    }
}

@media (max-width: 1099px){
    body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout,
    body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout__main,
    body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout__sidebar{
        display:block!important;
        width:100%!important;
        max-width:100%!important;
        min-width:0!important;
        margin:0!important;
        padding-left:0!important;
        padding-right:0!important;
        box-sizing:border-box!important;
    }

    body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-checkout__sidebar{
        margin-top:14px!important;
    }
}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-checkout-step{width:100%!important;max-width:100%!important;box-sizing:border-box!important;margin:0 0 12px!important;padding:15px 13px!important;border-radius:12px!important;box-shadow:none!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-address-form{display:block!important;width:100%!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-address-form>*,body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-text-input,body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-combobox,body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-country-input,body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-state-input{display:block!important;float:none!important;width:100%!important;max-width:100%!important;min-width:0!important;margin-left:0!important;margin-right:0!important;box-sizing:border-box!important}
/* correct radio geometry */ body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control__option{position:relative!important;width:100%!important;min-height:58px!important;box-sizing:border-box!important;padding:15px 16px 15px 58px!important;margin:0 0 8px!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control__input{position:absolute!important;left:18px!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important;width:22px!important;height:22px!important;z-index:2!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control__label{display:flex!important;align-items:center!important;min-height:26px!important;width:100%!important;margin:0!important;padding:0!important;line-height:1.3!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control-accordion-option .wc-block-components-radio-control__option{border-radius:11px 11px 0 0!important;margin-bottom:0!important}body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-radio-control-accordion-content{margin:0 0 8px!important;padding:12px 16px!important;border:1px solid #1f5fbf!important;border-top:0!important;border-radius:0 0 11px 11px!important;background:#f8fbff!important;font-size:14px!important;line-height:1.45!important;color:#475569!important}
/* WooCommerce owns checkout summary and totals.
   EBC styles the native components only; no duplicate hiding or DOM replacement. */
body.ebc-commerce--checkout:not(.ebc-commerce--received) .wc-block-components-checkout-order-summary{
    width:100%!important;
    box-sizing:border-box!important;
}

/* received */ body.ebc-commerce--received .woocommerce-order{width:100%!important;max-width:100%!important;padding:0 12px 32px!important;box-sizing:border-box!important}body.ebc-commerce--received .woocommerce-order-overview{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ebc-commerce--received .woocommerce-bacs-bank-details .wc-bacs-bank-details{grid-template-columns:1fr!important}body.ebc-commerce--received .woocommerce-columns--addresses{grid-template-columns:1fr!important;gap:9px!important;padding:11px!important}body.ebc-commerce--received .woocommerce-table--order-details thead{display:none!important}body.ebc-commerce--received .woocommerce-table--order-details tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important}body.ebc-commerce--received .woocommerce-table--order-details th,body.ebc-commerce--received .woocommerce-table--order-details td{padding:11px 12px!important;font-size:12px!important;overflow-wrap:anywhere!important}
}

/* ==========================================================
   EBC CHECKOUT DESKTOP LAYOUT FIX
   WooCommerce sidebar-layout is the actual two-column wrapper.
   ========================================================== */

@media (min-width:1100px){

    body.ebc-commerce--checkout:not(.ebc-commerce--received)
    .wc-block-components-sidebar-layout.wc-block-checkout{
        display:flex!important;
        flex-wrap:nowrap!important;
        align-items:flex-start!important;
        gap:32px!important;
        width:100%!important;
        max-width:none!important;
    }

    body.ebc-commerce--checkout:not(.ebc-commerce--received)
    .wc-block-checkout__main{
        display:block!important;
        flex:1 1 auto!important;
        width:calc(100% - 480px)!important;
        max-width:none!important;
        min-width:0!important;
        margin:0!important;
    }

    body.ebc-commerce--checkout:not(.ebc-commerce--received)
    .wc-block-checkout__sidebar{
        display:block!important;
        flex:0 0 448px!important;
        width:448px!important;
        max-width:448px!important;
        min-width:0!important;
        margin:0!important;
        align-self:flex-start!important;
    }
}

