body.bgcc-checkout-active{
    --bgcc-accent:#2563eb;
    --bgcc-accent-hover:#1d4ed8;
    --bgcc-accent-soft:#eff6ff;
    --bgcc-border:#dfe5ee;
    --bgcc-border-strong:#cbd5e1;
    --bgcc-muted:#64748b;
    --bgcc-text:#0f172a;
    --bgcc-surface:#ffffff;
    --bgcc-surface-soft:#f8fafc;
    --bgcc-success:#15803d;
    --bgcc-danger:#b91c1c;
    --bgcc-radius:18px;
    --bgcc-radius-sm:11px;
    --bgcc-shadow:0 14px 40px rgba(15,23,42,.08);
    --bgcc-shadow-soft:0 6px 20px rgba(15,23,42,.06);
}

/* Block themes often constrain shortcode content to 620-700 px. Break only the
   WooCommerce checkout out of that content column and keep the rest of the theme intact. */
body.bgcc-checkout-active .wp-block-post-content,
body.bgcc-checkout-active .entry-content,
body.bgcc-checkout-active .site-main,
body.bgcc-checkout-active main{
    overflow:visible!important;
}
body.bgcc-checkout-active .wp-block-post-content>.woocommerce,
body.bgcc-checkout-active .entry-content>.woocommerce,
body.bgcc-checkout-active main>.woocommerce,
body.bgcc-checkout-active .woocommerce{
    width:min(1220px,calc(100vw - 48px))!important;
    max-width:1220px!important;
    margin-left:auto!important;
    margin-right:auto!important;
    box-sizing:border-box;
}
body.bgcc-checkout-active .wp-block-post-content>.woocommerce,
body.bgcc-checkout-active .entry-content>.woocommerce{
    position:relative;
    left:50%;
    transform:translateX(-50%);
}

body.bgcc-checkout-active .woocommerce form.checkout.woocommerce-checkout{
    display:grid!important;
    grid-template-columns:minmax(0,1.45fr) minmax(380px,.85fr);
    grid-template-rows:auto;
    gap:32px;
    align-items:start;
    width:100%;
    max-width:none;
    margin:0;
}
body.bgcc-checkout-active .woocommerce form.checkout .woocommerce-NoticeGroup-checkout,
body.bgcc-checkout-active .woocommerce form.checkout .woocommerce-error,
body.bgcc-checkout-active .woocommerce form.checkout .woocommerce-message,
body.bgcc-checkout-active .woocommerce form.checkout .woocommerce-info{
    grid-column:1/-1;
}
body.bgcc-checkout-active .woocommerce form.checkout #customer_details{
    grid-column:1;
    grid-row:1;
    display:block;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:none!important;
    float:none!important;
    order:initial!important;
    margin:0!important;
    box-sizing:border-box!important;
}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column{
    grid-column:2;
    grid-row:1;
    position:sticky;
    top:24px;
    align-self:start;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex:none!important;
    float:none!important;
    order:initial!important;
    margin:0!important;
    padding:0!important;
    overflow:visible;
    color:var(--bgcc-text);
    background:var(--bgcc-surface);
    border:1px solid var(--bgcc-border);
    border-radius:var(--bgcc-radius);
    box-shadow:var(--bgcc-shadow);
    box-sizing:border-box;
}
body.admin-bar.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column{top:56px}

/* Theme compatibility: some WooCommerce themes replace the standard col2-set
   and pre-wrap the order review. BGCC normalizes only layout geometry while
   keeping the theme outside the checkout untouched. */
body.bgcc-checkout-active .woocommerce form.checkout>#customer_details,
body.bgcc-checkout-active .woocommerce form.checkout>.bgcc-order-column{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    flex-basis:auto!important;
    box-sizing:border-box!important;
}
body.bgcc-checkout-active .woocommerce form.checkout #customer_details.customer-details{
    padding:28px!important;
    background:var(--bgcc-surface);
    border:1px solid var(--bgcc-border);
    border-radius:var(--bgcc-radius);
    box-shadow:var(--bgcc-shadow-soft);
}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column>.wd-table-wrapper,
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column #order_review>.wd-table-wrapper{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    box-sizing:border-box!important;
}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column.checkout-order-review:before,
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column.checkout-order-review:after{
    content:none!important;
    display:none!important;
}
body.bgcc-checkout-active .woocommerce form.checkout #order_review_heading{
    margin:0;
    padding:25px 26px 18px;
    color:var(--bgcc-text);
    background:var(--bgcc-surface);
    border:0;
    border-bottom:1px solid var(--bgcc-border);
    border-radius:0;
    font-size:1.25rem;
    line-height:1.25;
    font-weight:750;
    box-shadow:none;
}
body.bgcc-checkout-active .woocommerce form.checkout #order_review{
    position:static;
    min-width:0;
    padding:20px 26px 26px;
    color:var(--bgcc-text);
    background:transparent;
    border:0;
    border-radius:0;
    box-shadow:none;
    box-sizing:border-box;
}

body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-1,
body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-2{
    float:none!important;
    width:100%!important;
    min-width:0;
    margin:0;
    padding:0;
}
body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-1,
body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-2{
    padding:28px;
    background:var(--bgcc-surface);
    border:1px solid var(--bgcc-border);
    border-radius:var(--bgcc-radius);
    box-shadow:var(--bgcc-shadow-soft);
    box-sizing:border-box;
}
body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-2{margin-top:22px}
body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-2:empty{display:none}

body.bgcc-checkout-active .woocommerce .woocommerce-billing-fields>h3,
body.bgcc-checkout-active .woocommerce .woocommerce-shipping-fields>h3,
body.bgcc-checkout-active .woocommerce .woocommerce-additional-fields>h3{
    margin:0 0 22px;
    color:var(--bgcc-text);
    font-size:1.25rem;
    line-height:1.3;
    font-weight:750;
}
body.bgcc-checkout-active .woocommerce .woocommerce-billing-fields>h3:before{
    content:"1";
    display:inline-grid;
    place-items:center;
    width:32px;
    height:32px;
    margin-right:11px;
    border-radius:999px;
    color:#fff;
    background:var(--bgcc-accent);
    font-size:.9rem;
    vertical-align:middle;
}
body.bgcc-checkout-active .woocommerce form.checkout .woocommerce-billing-fields__field-wrapper{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
body.bgcc-checkout-active .woocommerce form.checkout .woocommerce-billing-fields__field-wrapper .form-row{
    float:none!important;
    width:auto!important;
    margin:0!important;
}
body.bgcc-checkout-active .woocommerce form.checkout #billing_phone_field,
body.bgcc-checkout-active .woocommerce form.checkout #billing_email_field,
body.bgcc-checkout-active .woocommerce form.checkout #billing_company_field{
    grid-column:auto;
}
body.bgcc-checkout-active .woocommerce form.checkout #billing_company_field{grid-column:1/-1}

body.bgcc-checkout-active .woocommerce form.checkout label{
    color:#334155;
    font-size:.92rem;
    font-weight:650;
    line-height:1.35;
}
body.bgcc-checkout-active .woocommerce form.checkout .form-row .required{color:#dc2626}
body.bgcc-checkout-active .woocommerce form.checkout input.input-text,
body.bgcc-checkout-active .woocommerce form.checkout textarea,
body.bgcc-checkout-active .woocommerce form.checkout select,
body.bgcc-checkout-active .bgcc-courier-card input[type=text]{
    display:block;
    width:100%!important;
    min-width:0;
    min-height:50px;
    margin:7px 0 0;
    padding:11px 14px;
    color:var(--bgcc-text);
    background:#fff;
    border:1px solid var(--bgcc-border-strong);
    border-radius:var(--bgcc-radius-sm);
    box-shadow:none;
    box-sizing:border-box;
    font-size:1rem;
    line-height:1.35;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
body.bgcc-checkout-active .woocommerce form.checkout textarea{min-height:108px;resize:vertical}
body.bgcc-checkout-active .woocommerce form.checkout input.input-text:focus,
body.bgcc-checkout-active .woocommerce form.checkout textarea:focus,
body.bgcc-checkout-active .woocommerce form.checkout select:focus,
body.bgcc-checkout-active .bgcc-courier-card input[type=text]:focus{
    outline:0;
    border-color:var(--bgcc-accent);
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

body.bgcc-checkout-active .bgcc-courier-card{
    margin:26px 0 0;
    padding:26px;
    color:var(--bgcc-text);
    background:linear-gradient(180deg,#fbfdff 0%,#f8fbff 100%);
    border:1px solid #d9e5f5;
    border-radius:var(--bgcc-radius);
    box-sizing:border-box;
}
body.bgcc-checkout-active .bgcc-card-heading{display:flex;gap:13px;align-items:flex-start;margin-bottom:22px}
body.bgcc-checkout-active .bgcc-card-heading h3{margin:0 0 4px;font-size:1.22rem;line-height:1.3;font-weight:750}
body.bgcc-checkout-active .bgcc-card-heading p{margin:0;color:var(--bgcc-muted);font-size:.93rem;line-height:1.45}
body.bgcc-checkout-active .bgcc-step{display:grid;place-items:center;flex:0 0 32px;height:32px;border-radius:999px;background:var(--bgcc-accent);color:#fff;font-size:.9rem;font-weight:750}
body.bgcc-checkout-active .bgcc-field-group{position:relative;margin-top:20px}
body.bgcc-checkout-active .bgcc-label{display:block;margin-bottom:8px!important;color:#334155;font-size:.92rem;font-weight:700!important}
body.bgcc-checkout-active .bgcc-label span{font-weight:450;color:var(--bgcc-muted)}
body.bgcc-checkout-active .bgcc-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.bgcc-checkout-active .bgcc-choice:first-child:last-child{grid-column:1/-1}
body.bgcc-checkout-active .bgcc-choice{position:relative;cursor:pointer}
body.bgcc-checkout-active .bgcc-choice input{position:absolute;opacity:0;pointer-events:none}
body.bgcc-checkout-active .bgcc-choice>span{
    display:flex;
    flex-direction:column;
    justify-content:center;
    min-height:70px;
    gap:3px;
    padding:14px 16px;
    background:#fff;
    border:1px solid var(--bgcc-border-strong);
    border-radius:13px;
    box-sizing:border-box;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease,transform .18s ease;
}
body.bgcc-checkout-active .bgcc-choice strong{color:var(--bgcc-text);font-size:.98rem}
body.bgcc-checkout-active .bgcc-choice small{color:var(--bgcc-muted);font-size:.82rem;line-height:1.35}
body.bgcc-checkout-active .bgcc-choice--courier>span{
    flex-direction:row;
    align-items:center;
    justify-content:flex-start;
    min-height:84px;
    gap:15px;
}
body.bgcc-checkout-active .bgcc-courier-logo{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 118px;
    height:48px;
    padding:4px 8px;
    background:#fff;
    border:1px solid #e7ebf1;
    border-radius:10px;
    box-sizing:border-box;
}
body.bgcc-checkout-active .bgcc-courier-logo img{
    display:block;
    width:100%;
    max-width:108px;
    height:40px;
    object-fit:contain;
}
body.bgcc-checkout-active .bgcc-choice-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
body.bgcc-checkout-active .woocommerce-privacy-policy-text{display:none!important}
body.bgcc-checkout-active .bgcc-choice:hover>span{border-color:#94a3b8;transform:translateY(-1px)}
body.bgcc-checkout-active .bgcc-choice.is-disabled{cursor:not-allowed}
body.bgcc-checkout-active .bgcc-choice.is-disabled>span{opacity:.62;background:#f1f5f9;border-color:#e2e8f0;transform:none}
body.bgcc-checkout-active .bgcc-choice.is-selected>span,
body.bgcc-checkout-active .bgcc-choice:has(input:checked)>span{
    background:var(--bgcc-accent-soft);
    border-color:var(--bgcc-accent);
    box-shadow:0 0 0 3px rgba(37,99,235,.09);
}
body.bgcc-checkout-active .bgcc-results{
    display:none;
    position:absolute;
    z-index:99999;
    top:100%;
    right:0;
    left:0;
    max-height:300px;
    overflow:auto;
    margin-top:7px;
    padding:7px;
    background:#fff;
    border:1px solid var(--bgcc-border);
    border-radius:12px;
    box-shadow:0 18px 40px rgba(15,23,42,.18);
}
body.bgcc-checkout-active .bgcc-results.is-open{display:block}
body.bgcc-checkout-active .bgcc-result{display:flex;width:100%;padding:11px 12px;color:var(--bgcc-text);background:transparent;border:0;border-radius:9px;text-align:left;line-height:1.4;cursor:pointer;align-items:flex-start;gap:9px}
body.bgcc-checkout-active .bgcc-result-type{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;min-width:58px;margin-top:1px;padding:2px 7px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;font-weight:750;line-height:1.35}
body.bgcc-checkout-active .bgcc-result-type.is-locker{border-color:#c4b5fd;background:#f5f3ff;color:#6d28d9}
body.bgcc-checkout-active .bgcc-result-label{min-width:0;overflow-wrap:anywhere}

body.bgcc-checkout-active .bgcc-boxnow-map-tools{display:flex;width:100%;min-width:0;flex-wrap:wrap;gap:10px;margin-top:10px;box-sizing:border-box}
body.bgcc-checkout-active .bgcc-boxnow-map-tools[hidden]{display:none!important}
body.bgcc-checkout-active .bgcc-boxnow-map-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 16px;color:#fff;background:#2563eb;border:1px solid #2563eb;border-radius:10px;font-weight:700;line-height:1.2;cursor:pointer}
body.bgcc-checkout-active .bgcc-boxnow-map-toggle:hover,body.bgcc-checkout-active .bgcc-boxnow-map-toggle:focus{background:#1d4ed8;border-color:#1d4ed8;outline:0;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
body.bgcc-checkout-active .bgcc-boxnow-nearby-message{flex:1 0 100%;margin:0}
body.bgcc-checkout-active .bgcc-boxnow-nearby-message:empty{display:none}
body.bgcc-checkout-active .bgcc-boxnow-nearest{flex:1 0 100%;margin-top:2px}
body.bgcc-boxnow-map-open{overflow:hidden!important}
#bgcc-boxnow-map-overlay{position:fixed;z-index:999998;inset:0;width:100%;height:100%;padding:0;background:rgba(15,23,42,.62);border:0;cursor:pointer}
#bgcc-boxnow-map-dialog{position:fixed;z-index:999999;top:50%;left:50%;width:min(1100px,92vw);height:min(760px,88vh);overflow:hidden;background:#fff;border-radius:18px;box-shadow:0 30px 90px rgba(0,0,0,.35);transform:translate(-50%,-50%)}
#bgcc-boxnow-map-dialog iframe{display:block;width:100%;height:100%;border:0}
#bgcc-boxnow-map-dialog .bgcc-boxnow-map-close{position:absolute;z-index:2;top:10px;right:10px;display:grid;width:42px;height:42px;padding:0;place-items:center;color:#0f172a;background:#fff;border:1px solid #cbd5e1;border-radius:999px;box-shadow:0 4px 14px rgba(15,23,42,.18);font-size:28px;line-height:1;cursor:pointer}
body.bgcc-checkout-active .bgcc-econt-map-tools{margin-top:12px}
body.bgcc-checkout-active .bgcc-econt-map-tools[hidden],
body.bgcc-checkout-active .bgcc-econt-map-shell[hidden],
body.bgcc-checkout-active .bgcc-econt-map-selection[hidden],
body.bgcc-checkout-active .bgcc-econt-nearest[hidden],
body.bgcc-checkout-active .bgcc-location-confirmation[hidden],
body.bgcc-checkout-active .bgcc-boxnow-nearest-selection[hidden]{display:none!important}
body.bgcc-checkout-active .bgcc-location-confirmation{display:none}
body.bgcc-checkout-active .bgcc-econt-map-tools.is-selection-collapsed .bgcc-econt-locate,
body.bgcc-checkout-active .bgcc-econt-map-tools.is-selection-collapsed .bgcc-econt-map-message,
body.bgcc-checkout-active .bgcc-econt-map-tools.is-selection-collapsed .bgcc-econt-map-shell,
body.bgcc-checkout-active .bgcc-econt-map-tools.is-selection-collapsed .bgcc-econt-nearest{display:none!important}
body.bgcc-checkout-active .bgcc-boxnow-map-tools.is-selection-collapsed .bgcc-boxnow-map-toggle,
body.bgcc-checkout-active .bgcc-boxnow-map-tools.is-selection-collapsed .bgcc-boxnow-locate,
body.bgcc-checkout-active .bgcc-boxnow-map-tools.is-selection-collapsed .bgcc-boxnow-nearby-message,
body.bgcc-checkout-active .bgcc-boxnow-map-tools.is-selection-collapsed .bgcc-boxnow-nearest{display:none!important}
body.bgcc-checkout-active .bgcc-econt-map-tools.is-selection-collapsed .bgcc-location-confirmation,
body.bgcc-checkout-active .bgcc-boxnow-map-tools.is-selection-collapsed .bgcc-location-confirmation{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:11px;
    align-items:center;
    padding:14px;
    background:#f0fdf4;
    border:1px solid #86efac;
    border-radius:12px;
    box-shadow:0 5px 16px rgba(22,163,74,.08);
}
body.bgcc-checkout-active .bgcc-boxnow-map-tools.is-selection-collapsed .bgcc-location-confirmation{flex:1 1 100%;width:100%;max-width:100%;min-width:0;box-sizing:border-box}
body.bgcc-checkout-active .bgcc-location-confirmation__icon{display:grid;width:32px;height:32px;place-items:center;color:#fff;background:var(--bgcc-success);border-radius:999px;font-size:1rem;font-weight:800;line-height:1}
body.bgcc-checkout-active .bgcc-location-confirmation__copy{display:flex;min-width:0;flex-direction:column;gap:2px;color:var(--bgcc-text);line-height:1.35}
body.bgcc-checkout-active .bgcc-location-confirmation__copy strong{color:var(--bgcc-success);font-size:.84rem}
body.bgcc-checkout-active .bgcc-location-confirmation__copy span{font-size:.9rem;font-weight:750;overflow-wrap:anywhere}
body.bgcc-checkout-active .bgcc-location-confirmation__copy small{color:var(--bgcc-muted);font-size:.76rem;overflow-wrap:anywhere}
body.bgcc-checkout-active .bgcc-location-confirmation__copy small:empty{display:none}
body.bgcc-checkout-active .bgcc-location-confirmation__change{min-height:38px;padding:7px 11px;color:var(--bgcc-accent);background:#fff;border:1px solid var(--bgcc-accent);border-radius:9px;font-size:.78rem;font-weight:750;cursor:pointer}
body.bgcc-checkout-active .bgcc-location-confirmation__change:hover,
body.bgcc-checkout-active .bgcc-location-confirmation__change:focus{color:#fff;background:var(--bgcc-accent);outline:0;box-shadow:0 0 0 3px rgba(37,99,235,.1)}
body.bgcc-checkout-active .bgcc-econt-locate{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:9px 16px;
    color:#fff;
    background:var(--bgcc-accent);
    border:1px solid var(--bgcc-accent);
    border-radius:10px;
    font-weight:700;
    line-height:1.2;
    cursor:pointer;
}
body.bgcc-checkout-active .bgcc-econt-locate:hover,
body.bgcc-checkout-active .bgcc-econt-locate:focus{background:var(--bgcc-accent-hover);border-color:var(--bgcc-accent-hover);outline:0;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
body.bgcc-checkout-active .bgcc-econt-locate:disabled{opacity:.68;cursor:wait}
body.bgcc-checkout-active .bgcc-econt-locate>span{margin-right:7px;font-size:1.15em;line-height:1}
body.bgcc-checkout-active .bgcc-econt-map-message{min-height:20px;margin:8px 0 0;color:var(--bgcc-muted);font-size:.82rem;line-height:1.45}
body.bgcc-checkout-active .bgcc-econt-map-message.is-success{color:var(--bgcc-success)}
body.bgcc-checkout-active .bgcc-econt-map-message.is-error{color:var(--bgcc-danger)}
body.bgcc-checkout-active .bgcc-econt-map-shell{display:grid;grid-template-columns:minmax(0,1fr);height:390px;margin-top:10px;overflow:hidden;background:#eef3f8;border:1px solid var(--bgcc-border);border-radius:14px}
body.bgcc-checkout-active .bgcc-econt-map-shell.has-selection{grid-template-columns:minmax(0,1.45fr) minmax(220px,.75fr)}
body.bgcc-checkout-active .bgcc-econt-map-frame{width:100%;height:100%;min-width:0;background:#e8eef5}
body.bgcc-checkout-active .bgcc-econt-map-selection{display:flex;min-width:0;padding:20px 18px;flex-direction:column;align-items:flex-start;justify-content:center;background:#fff;border-left:1px solid var(--bgcc-border)}
body.bgcc-checkout-active .bgcc-econt-map-selection__type{display:inline-flex;margin-bottom:10px;padding:4px 9px;color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;font-size:.7rem;font-weight:750;line-height:1.2}
body.bgcc-checkout-active .bgcc-econt-map-selection__type.is-locker{color:#6d28d9;background:#f5f3ff;border-color:#c4b5fd}
body.bgcc-checkout-active .bgcc-econt-map-selection__name{color:var(--bgcc-text);font-size:.95rem;line-height:1.35}
body.bgcc-checkout-active .bgcc-econt-map-selection__address{margin-top:7px;color:var(--bgcc-muted);font-size:.8rem;line-height:1.45;overflow-wrap:anywhere}
body.bgcc-checkout-active .bgcc-econt-map-selection__distance{margin-top:10px;color:var(--bgcc-success);font-size:.78rem;font-weight:750;line-height:1.3}
body.bgcc-checkout-active .bgcc-econt-map-select{width:100%;min-height:42px;margin-top:18px;padding:9px 14px;color:#fff;background:var(--bgcc-accent);border:1px solid var(--bgcc-accent);border-radius:10px;font-weight:750;cursor:pointer}
body.bgcc-checkout-active .bgcc-econt-map-select:hover,body.bgcc-checkout-active .bgcc-econt-map-select:focus{background:var(--bgcc-accent-hover);border-color:var(--bgcc-accent-hover);outline:0;box-shadow:0 0 0 4px rgba(37,99,235,.12)}
body.bgcc-checkout-active .bgcc-econt-map-select:disabled{opacity:.58;cursor:not-allowed;box-shadow:none}
body.bgcc-checkout-active .bgcc-econt-map-marker-host{background:transparent;border:0}
body.bgcc-checkout-active .bgcc-econt-map-marker{display:grid;width:34px;height:34px;place-items:center;color:#fff;background:#174ea6;border:3px solid #fff;border-radius:50% 50% 50% 0;box-shadow:0 4px 12px rgba(15,23,42,.32);font-size:.75rem;font-weight:800;line-height:1;transform:rotate(-45deg);transition:filter .16s ease,transform .16s ease}
body.bgcc-checkout-active .bgcc-econt-map-marker>span{transform:rotate(45deg)}
body.bgcc-checkout-active .bgcc-econt-map-marker.is-speedy{background:#d60432}
body.bgcc-checkout-active .bgcc-econt-map-marker.is-locker{background:#6d28d9}
body.bgcc-checkout-active .bgcc-econt-map-marker-host.is-focused .bgcc-econt-map-marker{filter:brightness(1.18);transform:rotate(-45deg) scale(1.14)}
body.bgcc-checkout-active .bgcc-econt-map-marker-host.is-selected .bgcc-econt-map-marker{box-shadow:0 0 0 4px rgba(22,163,74,.3),0 5px 14px rgba(15,23,42,.34)}
body.bgcc-checkout-active .bgcc-econt-map-frame .leaflet-control-attribution{font-size:9px}
body.bgcc-checkout-active .bgcc-econt-nearest{margin-top:14px}
body.bgcc-checkout-active .bgcc-econt-nearest__title{display:block;margin-bottom:8px;color:var(--bgcc-text);font-size:.9rem;line-height:1.4}
body.bgcc-checkout-active .bgcc-econt-nearest__list{display:grid;gap:8px}
body.bgcc-checkout-active .bgcc-econt-nearest__item{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    width:100%;
    padding:10px 12px;
    color:var(--bgcc-text);
    background:#fff;
    border:1px solid var(--bgcc-border);
    border-radius:11px;
    text-align:left;
    cursor:pointer;
    transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
body.bgcc-checkout-active .bgcc-econt-nearest__item:hover,
body.bgcc-checkout-active .bgcc-econt-nearest__item:focus{border-color:var(--bgcc-accent);outline:0;box-shadow:0 0 0 3px rgba(37,99,235,.08)}
body.bgcc-checkout-active .bgcc-econt-nearest__item.is-pending{background:#eff6ff;border-color:var(--bgcc-accent);box-shadow:0 0 0 3px rgba(37,99,235,.08)}
body.bgcc-checkout-active .bgcc-econt-nearest__item.is-selected{background:var(--bgcc-accent-soft);border-color:var(--bgcc-accent)}
body.bgcc-checkout-active .bgcc-econt-nearest__type{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:3px 7px;color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;font-size:.7rem;font-weight:750;line-height:1.3}
body.bgcc-checkout-active .bgcc-econt-nearest__type.is-locker{color:#6d28d9;background:#f5f3ff;border-color:#c4b5fd}
body.bgcc-checkout-active .bgcc-econt-nearest__copy{display:flex;min-width:0;flex-direction:column;gap:2px}
body.bgcc-checkout-active .bgcc-econt-nearest__name{font-size:.86rem;font-weight:750;line-height:1.35}
body.bgcc-checkout-active .bgcc-econt-nearest__address{color:var(--bgcc-muted);font-size:.76rem;line-height:1.35;overflow-wrap:anywhere}
body.bgcc-checkout-active .bgcc-econt-nearest__distance{padding-left:6px;color:var(--bgcc-text);font-size:.8rem;font-weight:750;white-space:nowrap}
body.bgcc-checkout-active .bgcc-boxnow-nearest-selection{display:flex;margin-top:10px;padding:14px;flex-direction:column;align-items:flex-start;background:#fff;border:1px solid var(--bgcc-border);border-radius:12px;box-shadow:0 5px 16px rgba(15,23,42,.06)}
body.bgcc-checkout-active button.bgcc-result:hover,
body.bgcc-checkout-active button.bgcc-result:focus{background:#f1f5f9;outline:0}
body.bgcc-checkout-active .bgcc-result--empty{color:var(--bgcc-muted)}
body.bgcc-checkout-active .bgcc-address-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-top:15px}
body.bgcc-checkout-active .bgcc-address-grid label span{display:block;margin-bottom:6px;color:#475569;font-size:.84rem;font-weight:650}
body.bgcc-checkout-active .bgcc-address-grid input{margin-top:0!important}
body.bgcc-checkout-active .bgcc-status{min-height:21px;margin-top:13px;color:var(--bgcc-muted);font-size:.9rem;line-height:1.45}
body.bgcc-checkout-active .bgcc-status.is-error{color:var(--bgcc-danger)}
body.bgcc-checkout-active .bgcc-status.is-success{color:var(--bgcc-success)}
body.bgcc-checkout-active .bgcc-status.is-loading{color:var(--bgcc-accent)}

body.bgcc-checkout-active .bgcc-free-shipping-progress{
    margin-top:16px;
    padding:14px 15px;
    background:#fff;
    border:1px solid #dbe5f1;
    border-radius:12px;
}
body.bgcc-checkout-active .bgcc-free-shipping-progress[hidden],
body.bgcc-checkout-active .bgcc-shipping-price-preview[hidden]{display:none!important}
body.bgcc-checkout-active .bgcc-free-shipping-progress__copy{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
body.bgcc-checkout-active .bgcc-free-shipping-progress__copy strong{color:#0f172a;font-size:.9rem;line-height:1.4}
body.bgcc-checkout-active .bgcc-free-shipping-progress__copy span{color:#64748b;font-size:.78rem;line-height:1.4;text-align:right}
body.bgcc-checkout-active .bgcc-free-shipping-progress__track{height:6px;margin-top:10px;overflow:hidden;background:#e8eef6;border-radius:999px}
body.bgcc-checkout-active .bgcc-free-shipping-progress__track>span{display:block;height:100%;background:#2563eb;border-radius:inherit;transition:width .28s ease}
body.bgcc-checkout-active .bgcc-free-shipping-progress.is-complete{border-color:#bbf7d0;background:#f7fef9}
body.bgcc-checkout-active .bgcc-free-shipping-progress.is-complete .bgcc-free-shipping-progress__track>span{background:#16a34a}

body.bgcc-checkout-active .bgcc-shipping-price-preview{
    margin-top:11px;
    color:#334155;
}
body.bgcc-checkout-active .bgcc-shipping-price-preview__mark{flex:0 0 8px;width:8px;height:8px;margin-top:6px;background:#94a3b8;border-radius:50%}
body.bgcc-checkout-active .bgcc-shipping-price-preview__pending{
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:10px 12px;
    background:rgba(255,255,255,.72);
    border:1px solid #e2e8f0;
    border-radius:10px;
}
body.bgcc-checkout-active .bgcc-shipping-price-preview__pending>span:last-child{display:flex;min-width:0;flex-direction:column;gap:2px}
body.bgcc-checkout-active .bgcc-shipping-price-preview__pending strong,
body.bgcc-checkout-active .bgcc-shipping-offers__heading strong,
body.bgcc-checkout-active .bgcc-shipping-offer strong{color:#0f172a;font-size:.88rem;line-height:1.4}
body.bgcc-checkout-active .bgcc-shipping-price-preview__pending small{color:#64748b;font-size:.78rem;line-height:1.4}
body.bgcc-checkout-active .bgcc-shipping-offers{margin-top:10px;overflow:hidden;background:#fff;border:1px solid #dbe5f1;border-radius:12px}
body.bgcc-checkout-active .bgcc-shipping-price-preview__pending:first-child+.bgcc-shipping-offers{margin-top:10px}
body.bgcc-checkout-active .bgcc-shipping-offers:first-child{margin-top:0}
body.bgcc-checkout-active .bgcc-shipping-offers__heading{padding:10px 12px;background:#f8fafc;border-bottom:1px solid #e8edf3}
body.bgcc-checkout-active .bgcc-shipping-offer{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:10px;align-items:start;padding:11px 12px}
body.bgcc-checkout-active .bgcc-shipping-offer+.bgcc-shipping-offer{border-top:1px solid #edf1f5}
body.bgcc-checkout-active .bgcc-shipping-offer.is-selected{background:#f8fbff}
body.bgcc-checkout-active .bgcc-shipping-offer .bgcc-shipping-price-preview__mark{background:#16a34a}
body.bgcc-checkout-active .bgcc-shipping-offer.is-pending .bgcc-shipping-price-preview__mark{background:#94a3b8}
body.bgcc-checkout-active .bgcc-shipping-offer__copy{display:block;min-width:0}
body.bgcc-checkout-active .bgcc-shipping-offer.is-pending .bgcc-shipping-offer__copy{display:flex;flex-direction:column;gap:2px}
body.bgcc-checkout-active .bgcc-shipping-offer__copy>strong{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
body.bgcc-checkout-active .bgcc-shipping-offer__copy small{color:#64748b;font-size:.78rem;line-height:1.4}
body.bgcc-checkout-active .bgcc-shipping-offer__badge{display:inline-flex;padding:1px 6px;color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:999px;font-size:.66rem;font-weight:750;line-height:1.35}
body.bgcc-checkout-active .bgcc-shipping-offer__price{padding-left:8px;white-space:nowrap;text-align:right}

body.bgcc-checkout-active .woocommerce form.checkout table.shop_table{
    width:100%;
    table-layout:fixed!important;
    margin:0 0 20px;
    border:0;
    border-collapse:collapse;
}
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table th,
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table td{
    padding:14px 0;
    color:var(--bgcc-text);
    border-top:0;
    border-right:0;
    border-bottom:1px solid #edf0f4;
    border-left:0;
    font-size:.94rem;
    line-height:1.45;
    min-width:0!important;
    max-width:100%;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    white-space:normal!important;
}
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table th:first-child,
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table td:first-child{padding-right:18px;text-align:left}
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table th:last-child,
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table td:last-child{width:34%;min-width:0!important;text-align:right;white-space:normal!important}
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table .shipping td{white-space:normal!important;text-align:left;overflow-wrap:anywhere!important}
body.bgcc-checkout-active .woocommerce form.checkout #order_review,
body.bgcc-checkout-active .woocommerce form.checkout #order_review .shop_table,
body.bgcc-checkout-active .woocommerce form.checkout #order_review .shop_table tbody,
body.bgcc-checkout-active .woocommerce form.checkout #order_review .shop_table tfoot,
body.bgcc-checkout-active .woocommerce form.checkout #order_review .shop_table tr{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
}
body.bgcc-checkout-active .woocommerce form.checkout #shipping_method,
body.bgcc-checkout-active .woocommerce form.checkout #shipping_method li,
body.bgcc-checkout-active .woocommerce form.checkout #shipping_method label{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    box-sizing:border-box!important;
}
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table .amount{white-space:nowrap!important}

/* Keep the checkout usable when page builders/themes add clipping or fixed widths. */
body.bgcc-checkout-active .et_pb_section,
body.bgcc-checkout-active .et_pb_row,
body.bgcc-checkout-active .et_pb_column,
body.bgcc-checkout-active .et_pb_module,
body.bgcc-checkout-active .et_pb_module_inner,
body.bgcc-checkout-active .et_pb_text_inner,
body.bgcc-checkout-active .et_pb_code_inner{overflow:visible!important}
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table .order-total th,
body.bgcc-checkout-active .woocommerce form.checkout table.shop_table .order-total td{padding-top:18px;border-bottom:0;font-size:1.05rem}
body.bgcc-checkout-active .woocommerce form.checkout #payment{margin-top:18px;background:var(--bgcc-surface-soft);border:1px solid #e8edf3;border-radius:14px}
body.bgcc-checkout-active .woocommerce form.checkout #payment ul.payment_methods{padding:18px}
body.bgcc-checkout-active .woocommerce form.checkout #payment div.form-row{padding:18px}
body.bgcc-checkout-active .woocommerce form.checkout #payment div.payment_box{background:#eef2f7;border-radius:10px}
body.bgcc-checkout-active .woocommerce form.checkout #payment div.payment_box:before{border-bottom-color:#eef2f7}
body.bgcc-checkout-active .woocommerce form.checkout #place_order{
    width:100%;
    min-height:54px;
    margin-top:8px;
    padding:13px 18px;
    color:#fff;
    background:var(--bgcc-accent);
    border:0;
    border-radius:12px;
    box-shadow:0 8px 18px rgba(37,99,235,.2);
    font-size:1rem;
    font-weight:750;
    transition:background .18s ease,transform .18s ease,box-shadow .18s ease;
}
body.bgcc-checkout-active .woocommerce form.checkout #place_order:hover{background:var(--bgcc-accent-hover);transform:translateY(-1px);box-shadow:0 10px 22px rgba(37,99,235,.24)}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-hidden-checkout-field{display:none!important}
body.bgcc-checkout-active .woocommerce .woocommerce-info{padding:14px 18px 14px 48px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1e3a8a}
body.bgcc-checkout-active .woocommerce .woocommerce-error{border-radius:12px}

@media(max-width:980px){
    body.bgcc-checkout-active .wp-block-post-content>.woocommerce,
    body.bgcc-checkout-active .entry-content>.woocommerce,
    body.bgcc-checkout-active main>.woocommerce,
    body.bgcc-checkout-active .woocommerce{width:min(100%,calc(100vw - 32px))!important}
    body.bgcc-checkout-active .woocommerce form.checkout.woocommerce-checkout{display:block!important}
    body.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column{position:static;margin-top:24px!important}
    body.bgcc-checkout-active .bgcc-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
    body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-1,
    body.bgcc-checkout-active .woocommerce form.checkout #customer_details>.col-2,
    body.bgcc-checkout-active .bgcc-courier-card{padding:20px}
    body.bgcc-checkout-active .woocommerce form.checkout #customer_details.customer-details{padding:20px!important}
    body.bgcc-checkout-active .woocommerce form.checkout .woocommerce-billing-fields__field-wrapper{grid-template-columns:1fr}
    body.bgcc-checkout-active .woocommerce form.checkout #billing_company_field{grid-column:auto}
    body.bgcc-checkout-active .bgcc-choice-grid{grid-template-columns:1fr}
    body.bgcc-checkout-active .bgcc-choice-grid--courier{grid-template-columns:1fr}
    body.bgcc-checkout-active .bgcc-choice-grid--courier .bgcc-choice:first-child:last-child{grid-column:1/-1}
    body.bgcc-checkout-active .woocommerce form.checkout #order_review_heading{padding:21px 20px 16px}
    body.bgcc-checkout-active .woocommerce form.checkout #order_review{padding:16px 20px 20px}
    body.bgcc-checkout-active .bgcc-free-shipping-progress__copy{display:block}
    body.bgcc-checkout-active .bgcc-free-shipping-progress__copy span{display:block;margin-top:3px;text-align:left}
    body.bgcc-checkout-active .bgcc-econt-map-shell,body.bgcc-checkout-active .bgcc-econt-map-shell.has-selection{grid-template-columns:1fr;height:auto}
    body.bgcc-checkout-active .bgcc-econt-map-frame{height:320px}
    body.bgcc-checkout-active .bgcc-econt-map-selection{padding:16px;border-top:1px solid var(--bgcc-border);border-left:0}
    body.bgcc-checkout-active .bgcc-econt-map-select{margin-top:14px}
    body.bgcc-checkout-active .bgcc-econt-locate{width:100%}
    body.bgcc-checkout-active .bgcc-econt-nearest__item{grid-template-columns:auto minmax(0,1fr)}
    body.bgcc-checkout-active .bgcc-econt-nearest__distance{grid-column:2;padding-left:0}
}
@media(max-width:420px){
    body.bgcc-checkout-active .bgcc-choice-grid--courier{grid-template-columns:1fr}
    body.bgcc-checkout-active .bgcc-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    body.bgcc-checkout-active .bgcc-shipping-offer{grid-template-columns:8px minmax(0,1fr)}
    body.bgcc-checkout-active .bgcc-shipping-offer__price{grid-column:2;padding:0;text-align:left}
    body.bgcc-checkout-active .bgcc-econt-map-tools.is-selection-collapsed .bgcc-location-confirmation,
    body.bgcc-checkout-active .bgcc-boxnow-map-tools.is-selection-collapsed .bgcc-location-confirmation{grid-template-columns:auto minmax(0,1fr)}
    body.bgcc-checkout-active .bgcc-location-confirmation__change{grid-column:1/-1;width:100%}
}

/* Product thumbnails in the checkout order summary. */
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-product-line{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-product-image{
    display:block;
    flex:0 0 52px;
    width:52px;
    height:52px;
    overflow:hidden;
    background:#f8fafc;
    border:1px solid #e5eaf0;
    border-radius:10px;
}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-product-thumb{
    display:block;
    width:100%;
    height:100%;
    margin:0;
    object-fit:cover;
}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-product-title{
    display:block;
    min-width:0;
    line-height:1.4;
}


body.bgcc-checkout-active .woocommerce form.checkout #billing_invoice_requested_field{
    grid-column:1/-1;
    margin-top:2px!important;
    padding:14px 16px;
    background:#f8fafc;
    border:1px solid #dbe5f1;
    border-radius:12px;
}
body.bgcc-checkout-active .woocommerce form.checkout #billing_invoice_requested_field label{
    display:flex;align-items:center;gap:11px;margin:0;cursor:pointer;font-weight:700;color:#0f172a;
}
body.bgcc-checkout-active .woocommerce form.checkout #billing_invoice_requested{
    appearance:none;width:42px;height:24px;margin:0;flex:0 0 auto;border:1px solid #cbd5e1;border-radius:999px;background:#e2e8f0;position:relative;transition:.2s ease;
}
body.bgcc-checkout-active .woocommerce form.checkout #billing_invoice_requested:before{
    content:"";position:absolute;width:18px;height:18px;left:2px;top:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.25);transition:.2s ease;
}
body.bgcc-checkout-active .woocommerce form.checkout #billing_invoice_requested:checked{background:var(--bgcc-accent);border-color:var(--bgcc-accent)}
body.bgcc-checkout-active .woocommerce form.checkout #billing_invoice_requested:checked:before{transform:translateX(18px)}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-company-field{display:none;opacity:0;transform:translateY(-4px)}
body.bgcc-checkout-active .woocommerce form.checkout .bgcc-company-field.is-visible{display:block;opacity:1;transform:none;animation:bgccReveal .18s ease}
body.bgcc-checkout-active .woocommerce form.checkout #billing_company_field{grid-column:1/-1}
@keyframes bgccReveal{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}

/* Theme hardening: keep autocomplete result content left-aligned. */
body.bgcc-checkout-active .bgcc-autocomplete .bgcc-results .bgcc-result{
    justify-content:flex-start!important;
    text-align:left!important;
}
body.bgcc-checkout-active .bgcc-autocomplete .bgcc-results .bgcc-result>.bgcc-result-label,
body.bgcc-checkout-active .bgcc-autocomplete .bgcc-results .bgcc-result--empty{
    text-align:left!important;
}

/* Desktop sticky order-summary compatibility.
   A theme wrapper with overflow hidden/auto/scroll becomes the sticky scroll
   container and can make the purchase summary move with the page instead of
   sticking to the viewport. Normalize only the checkout ancestor chain and
   reinforce the intended BGCC sticky geometry on desktop. */
@media(min-width:981px){
    body.bgcc-checkout-active .wd-page-content,
    body.bgcc-checkout-active .main-page-wrapper,
    body.bgcc-checkout-active .wd-content-layout,
    body.bgcc-checkout-active .content-layout-wrapper,
    body.bgcc-checkout-active .wd-content-area,
    body.bgcc-checkout-active .site-content,
    body.bgcc-checkout-active .entry-content,
    body.bgcc-checkout-active .woocommerce,
    body.bgcc-checkout-active .woocommerce form.checkout.woocommerce-checkout{
        overflow:visible!important;
    }
    body.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column{
        position:-webkit-sticky!important;
        position:sticky!important;
        top:24px!important;
    }
    body.admin-bar.bgcc-checkout-active .woocommerce form.checkout .bgcc-order-column{
        top:56px!important;
    }
}
