/* =============================================================================
   LED Controls Cart - stylesheet (v1.0.3)
   Brand tokens mirror the Kit Manager plugin. Scoped under .ledc-cart/.ledc-app.
   Includes overrides (!important) to beat Divi / WooCommerce defaults.
   ============================================================================= */

.ledc-cart, .ledc-app {
    --ledc-primary:#1B3A2D;
    --ledc-primary-hover:#142E22;
    --ledc-primary-light:#EBF2EE;
    --ledc-primary-soft:#F4F8F6;
    --ledc-surface:#ffffff;
    --ledc-surface-alt:#F7FAF8;
    --ledc-border:#E3ECE7;
    --ledc-border-strong:#BDD0C7;
    --ledc-text:#1A1A1A;
    --ledc-text-muted:#5A6F68;
    --ledc-text-faint:#8FA49D;
    --ledc-green:#2D7A4F;
    --ledc-amber:#B25E00;
    --ledc-red:#C0392B;
    --ledc-yellow:#F4C430;
    --ledc-yellow-hover:#E0B121;
    --ledc-radius:8px;
    --ledc-radius-lg:12px;
    --ledc-radius-pill:999px;
    --ledc-shadow-sm:0 1px 2px rgba(16,38,28,.04);
}
.ledc-app, .ledc-app *, .ledc-app *::before, .ledc-app *::after { box-sizing: border-box; }
.ledc-app { font-family: inherit; color: var(--ledc-text); line-height: 1.5; max-width: 1180px; margin: 0 auto; }
.ledc-app a { text-decoration: none; color: inherit; }
.ledc-app svg { display: inline-block; vertical-align: middle; }
.ledc-app p { margin: 0; }

/* Header */
.ledc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.ledc-title { font-size: 1.9rem; font-weight: 700; color: var(--ledc-primary); margin: 0 0 .35rem; line-height: 1.12; }
.ledc-subtitle { margin: 0; color: var(--ledc-text-muted); font-size: .95rem; }

/* Stepper */
.ledc-steps { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 1.5rem; }
.ledc-step { display: flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 600; color: var(--ledc-text-faint); }
.ledc-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ledc-primary-light); color: var(--ledc-text-muted); font-size: .8rem; }
.ledc-step.active { color: var(--ledc-primary); }
.ledc-step.active .n { background: var(--ledc-primary); color: #fff; }
.ledc-steps .bar { width: 34px; height: 2px; background: var(--ledc-border); border-radius: 2px; }
@media (max-width: 560px) { .ledc-steps .bar { width: 14px; } .ledc-step { font-size: .76rem; } }

/* Buttons */
.ledc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.1rem; border: 1px solid transparent; border-radius: var(--ledc-radius); font-size: .875rem; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s; line-height: 1.4; font-family: inherit; }
.ledc-btn:disabled { opacity: .5; cursor: not-allowed; }
.ledc-btn svg { flex-shrink: 0; }
.ledc-btn-block { width: 100%; }
.ledc-btn-primary { background: var(--ledc-primary); color: #fff; border-color: var(--ledc-primary); }
.ledc-btn-primary:hover:not(:disabled) { background: var(--ledc-primary-hover); border-color: var(--ledc-primary-hover); color: #fff; }
.ledc-btn-outline { background: var(--ledc-surface); color: var(--ledc-text); border-color: var(--ledc-border-strong); }
.ledc-btn-outline:hover:not(:disabled) { background: var(--ledc-surface-alt); border-color: var(--ledc-primary); color: var(--ledc-primary); }
.ledc-btn-ghost { background: transparent; color: var(--ledc-text-muted); border-color: var(--ledc-border); }
.ledc-btn-ghost:hover:not(:disabled) { background: var(--ledc-surface-alt); color: var(--ledc-text); }

/* Layout */
.ledc-grid { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 1.5rem; align-items: start; margin: 0; }
.ledc-col-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.ledc-col-side { min-width: 0; }
.ledc-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 1.1rem; }
@media (max-width: 980px) { .ledc-grid { grid-template-columns: 1fr; } .ledc-sticky { position: static; } }

/* Panels */
.ledc-panel { background: var(--ledc-surface); border: 1px solid var(--ledc-border); border-radius: var(--ledc-radius-lg); box-shadow: var(--ledc-shadow-sm); }
.ledc-panel-head { padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--ledc-border); }
.ledc-panel-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ledc-text); }

/* Items */
.ledc-items { display: flex; flex-direction: column; }
.ledc-item { display: grid; grid-template-columns: 76px minmax(0,1fr) 150px; gap: 1.25rem; padding: 1.4rem; border-bottom: 1px solid var(--ledc-border); }
.ledc-item:last-child { border-bottom: 0; }
.ledc-thumb img { width: 76px; height: 76px; object-fit: contain; border-radius: var(--ledc-radius); border: 1px solid var(--ledc-border); background: #fff; padding: 5px; display: block; }
.ledc-item-main { min-width: 0; }
.ledc-brandtag { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ledc-primary); }
.ledc-item-name { margin: .2rem 0 .35rem; font-size: .95rem; line-height: 1.4; color: var(--ledc-text); font-weight: 600; }
.ledc-item-name a { color: var(--ledc-text); }
.ledc-item-name a:hover { color: var(--ledc-primary); }
.ledc-sku { font-size: .76rem; color: var(--ledc-text-muted); font-family: ui-monospace,"SFMono-Regular",Menlo,Consolas,monospace; word-break: break-word; }
.ledc-sku-label { font-family: inherit; font-weight: 600; color: var(--ledc-text-faint); text-transform: uppercase; letter-spacing: .04em; font-size: .68rem; }
.ledc-badges { display: flex; gap: .35rem .9rem; margin-top: .7rem; flex-wrap: wrap; }
.ledc-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 500; color: var(--ledc-text); }
.ledc-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--ledc-border-strong); }
.ledc-badge.found::before { background: var(--ledc-green); }
.ledc-badge.low_stock::before { background: var(--ledc-amber); }
.ledc-badge.on_backorder::before { background: var(--ledc-amber); }
.ledc-badge.out_of_stock { color: var(--ledc-red); }
.ledc-badge.out_of_stock::before { background: var(--ledc-red); }
.ledc-badge.flat { color: var(--ledc-text-muted); }
.ledc-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; text-align: right; }
.ledc-price { font-size: .9rem; font-weight: 600; color: var(--ledc-text-muted); }
.ledc-subtotal { font-size: 1.05rem; font-weight: 700; color: var(--ledc-text); }
.ledc-qty .quantity { display: inline-flex; align-items: center; border: 1px solid var(--ledc-border-strong); border-radius: var(--ledc-radius); overflow: hidden; background: #fff; }
.ledc-qty .quantity input.qty { width: 46px; height: 34px; border: 0; text-align: center; font-size: .9rem; font-weight: 700; color: var(--ledc-text); background: #fff; -moz-appearance: textfield; appearance: textfield; font-family: inherit; }
.ledc-qty .quantity input.qty::-webkit-outer-spin-button,
.ledc-qty .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ledc-qbtn { width: 32px; height: 34px; border: 0; background: #fff; font-size: 1.05rem; color: var(--ledc-text-muted); cursor: pointer; line-height: 1; }
.ledc-qbtn:hover { background: var(--ledc-surface-alt); color: var(--ledc-primary); }
@media (max-width: 600px) {
    .ledc-item { grid-template-columns: 60px minmax(0,1fr); gap: 1rem; padding: 1.1rem; }
    .ledc-item-right { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; gap: .75rem; padding-top: .25rem; }
    .ledc-thumb img { width: 60px; height: 60px; }
}

/* Cart actions */
.ledc-cart-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; padding: 1.1rem 1.4rem; border-top: 1px solid var(--ledc-border); background: var(--ledc-surface-alt); border-radius: 0 0 var(--ledc-radius-lg) var(--ledc-radius-lg); }
.ledc-coupon { display: flex; gap: .5rem; flex: 1; min-width: 240px; }
.ledc-coupon input { flex: 1; min-width: 0; border: 1px solid var(--ledc-border-strong); border-radius: var(--ledc-radius); padding: .6rem .7rem; font-size: .85rem; font-family: inherit; color: var(--ledc-text); background: #fff; }
.ledc-coupon input:focus { outline: none; border-color: var(--ledc-primary); box-shadow: 0 0 0 3px rgba(27,58,45,.1); }
.ledc-update { margin-left: auto; }

/* Trust panel */
.ledc-trust { padding: 1.25rem 1.4rem; }
.ledc-trust .ledc-panel-title { margin-bottom: .25rem; }
.ledc-trust ul { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.ledc-trust li { display: flex; gap: .85rem; align-items: flex-start; font-size: .85rem; color: var(--ledc-text-muted); line-height: 1.5; }
.ledc-trust li b { color: var(--ledc-text); display: block; font-size: .85rem; margin-bottom: .1rem; }
.ledc-trust .ic { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--ledc-primary-light); color: var(--ledc-primary); display: grid; place-items: center; }

/* Order summary */
.ledc-summary { padding: 1.4rem; }
.ledc-summary-title { margin: 0 0 1rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ledc-text-muted); font-weight: 700; }
.ledc-totals-table { width: 100%; border-collapse: collapse; margin: 0; }
.ledc-totals-table th, .ledc-totals-table td { border: 0; padding: .5rem 0; font-weight: 400; font-size: .88rem; color: var(--ledc-text-muted); text-align: left; vertical-align: top; }
.ledc-totals-table td { text-align: right; font-weight: 600; color: var(--ledc-text); padding-left: 1rem; }
.ledc-line-total th { border-top: 1px solid var(--ledc-border); padding-top: .9rem; font-size: 1rem; font-weight: 700; color: var(--ledc-primary); }
.ledc-line-total td { border-top: 1px solid var(--ledc-border); padding-top: .9rem; font-size: 1.35rem; font-weight: 700; color: var(--ledc-primary); }
.ledc-line-total small { display: block; font-size: .7rem; color: var(--ledc-text-muted); font-weight: 500; margin-top: .15rem; }

/* free-shipping progress */
.ledc-ship-prog { margin: 0 0 1.1rem; padding: .85rem; background: var(--ledc-primary-soft); border: 1px solid var(--ledc-border); border-radius: var(--ledc-radius); }
.ledc-ship-prog .meter { height: 8px; background: #fff; border: 1px solid var(--ledc-border); border-radius: 6px; overflow: hidden; }
.ledc-ship-prog .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--ledc-primary), var(--ledc-green)); border-radius: 6px; transition: width .4s ease; }
.ledc-ship-prog p { margin: .55rem 0 0; font-size: .8rem; color: var(--ledc-text-muted); line-height: 1.4; }
.ledc-ship-prog b { color: var(--ledc-text); }

/* checkout + secondary CTA */
.ledc-checkout { margin-top: 1.25rem; }
.ledc-quote-btn { margin-top: .65rem; }
.ledc-secure-note { display: flex; align-items: center; justify-content: center; gap: .45rem; font-size: .78rem; color: var(--ledc-text-muted); margin-top: 1rem; }
.ledc-pay { display: flex; gap: .4rem; justify-content: center; margin-top: .85rem; flex-wrap: wrap; }
.ledc-pay span { font-size: .58rem; font-weight: 800; letter-spacing: .04em; color: var(--ledc-text-muted); border: 1px solid var(--ledc-border); border-radius: 4px; padding: 4px 7px; background: var(--ledc-surface-alt); }

/* Support card */
.ledc-support { padding: 1.4rem; background: linear-gradient(160deg, var(--ledc-primary), #244A39); color: #d6e4dc; border-radius: var(--ledc-radius-lg); }
.ledc-support h3 { margin: 0 0 .4rem; color: #fff; font-size: 1rem; }
.ledc-support p { margin: 0 0 1.1rem; font-size: .83rem; color: #acc3b8; line-height: 1.5; }
.ledc-call { display: flex; align-items: center; gap: .85rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: var(--ledc-radius); padding: .85rem .95rem; }
.ledc-call .ph { width: 42px; height: 42px; border-radius: var(--ledc-radius); background: var(--ledc-yellow); display: grid; place-items: center; flex: 0 0 42px; }
.ledc-call .ph svg { stroke: var(--ledc-primary); }
.ledc-call b { color: #fff; font-size: 1.15rem; display: block; line-height: 1.15; }
.ledc-call small { color: #acc3b8; font-size: .76rem; display: block; margin-bottom: .1rem; }
.ledc-hours { margin-top: .85rem; font-size: .74rem; color: #acc3b8; display: flex; align-items: center; gap: .45rem; }
.ledc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ledc-green); box-shadow: 0 0 0 3px rgba(45,122,79,.22); display: inline-block; flex-shrink: 0; }

/* Empty cart */
.ledc-empty { max-width: 620px; margin: 1.5rem auto; text-align: center; padding: 2.8rem 1.5rem; background: var(--ledc-surface); border: 1px solid var(--ledc-border); border-radius: var(--ledc-radius-lg); box-shadow: var(--ledc-shadow-sm); }
.ledc-empty-icon { width: 74px; height: 74px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--ledc-primary-light); color: var(--ledc-primary); display: grid; place-items: center; }
.ledc-empty h1 { margin: 0 0 .5rem; font-size: 1.5rem; color: var(--ledc-primary); }
.ledc-empty p { margin: 0 auto 1.4rem; max-width: 440px; color: var(--ledc-text-muted); font-size: .9rem; }
.ledc-empty-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.6rem; }
.ledc-empty-cats { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin-bottom: 1.6rem; }
.ledc-empty-cats a { font-size: .8rem; font-weight: 600; color: var(--ledc-text-muted); border: 1px solid var(--ledc-border); border-radius: var(--ledc-radius-pill); padding: .5rem .9rem; }
.ledc-empty-cats a:hover { border-color: var(--ledc-primary); color: var(--ledc-primary); }
.ledc-empty-trust { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; border-top: 1px solid var(--ledc-border); padding-top: 1.25rem; color: var(--ledc-text-muted); font-size: .76rem; font-weight: 600; }
.ledc-empty-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.ledc-empty-trust .ledc-tick { color: var(--ledc-green); }
.ledc-tick { vertical-align: -2px; }

/* =============================================================================
   OVERRIDES - beat Divi / WooCommerce defaults
   ============================================================================= */
.ledc-app .ledc-item-right a.remove,
.ledc-app .ledc-item-right a.ledc-remove {
    position: static !important; display: inline-flex !important; align-items: center !important;
    width: auto !important; height: auto !important; min-width: 0 !important;
    margin: 0 !important; padding: 0 !important;
    font-size: .76rem !important; font-weight: 600 !important; line-height: 1.4 !important;
    color: var(--ledc-text-muted) !important; background: none !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important; text-decoration: none !important;
}
.ledc-app .ledc-item-right a.remove:hover,
.ledc-app .ledc-item-right a.ledc-remove:hover { color: var(--ledc-red) !important; background: none !important; }

.ledc-app .ledc-summary .ledc-checkout a.checkout-button,
.ledc-app .ledc-summary .ledc-checkout a.checkout-button.button,
.ledc-app .ledc-summary .ledc-checkout a.checkout-button.button.alt {
    display: block !important; width: 100% !important; margin: 0 !important;
    padding: .85rem 1rem !important; border-radius: var(--ledc-radius) !important;
    background: var(--ledc-yellow) !important; color: var(--ledc-primary) !important;
    border: 1px solid var(--ledc-yellow) !important;
    font-size: .98rem !important; font-weight: 700 !important; text-align: center !important;
    text-decoration: none !important; text-transform: none !important; letter-spacing: 0 !important; line-height: 1.4 !important;
}
.ledc-app .ledc-summary .ledc-checkout a.checkout-button:hover {
    background: var(--ledc-yellow-hover) !important; border-color: var(--ledc-yellow-hover) !important; color: var(--ledc-primary) !important;
}
.ledc-app .ledc-line-total small { display: block !important; }
.ledc-app .return-to-shop { display: none; }

/* Kit Manager "trade pricing applied" notice row (fix tofu glyph + spacing) */
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice th,
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice td { padding-top: .7rem !important; vertical-align: middle !important; }
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice th span { font-size: 0 !important; }
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice th { white-space: nowrap; }
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice th::before {
    content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--ledc-green); margin-right: .45rem; vertical-align: middle;
}
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice th::after {
    content: "Trade pricing applied"; font-size: .85rem; color: var(--ledc-green); font-weight: 600; vertical-align: middle;
}
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice td,
.ledc-app .ledc-totals-table .lkm-trade-pricing-notice td small { font-size: .72rem !important; color: var(--ledc-text-muted) !important; line-height: 1.35; }

/* =============================================================================
   CHECKOUT (classic) - styles WooCommerce checkout markup to match the cart
   ============================================================================= */
.ledc-checkout-page .ledc-checkout-grid { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: 1.5rem; align-items: start; }
@media (max-width: 980px) { .ledc-checkout-page .ledc-checkout-grid { grid-template-columns: 1fr; } }
.ledc-checkout-left { min-width: 0; display: flex; flex-direction: column; gap: 1.25rem; }
.ledc-checkout-right { min-width: 0; }
.ledc-checkout-panel { padding: 1.5rem; }
.ledc-checkout-notices { margin-bottom: 1.25rem; }
.ledc-checkout-notices:empty { display: none; }

/* Headings */
.ledc-checkout-page h3,
.ledc-checkout-page .woocommerce-billing-fields h3,
.ledc-checkout-page .woocommerce-shipping-fields h3,
.ledc-checkout-page .woocommerce-additional-fields h3 {
    font-size: 1.05rem; font-weight: 700; color: var(--ledc-primary); margin: 0 0 1rem; line-height: 1.2;
}
.ledc-checkout-page .woocommerce-shipping-fields,
.ledc-checkout-page .woocommerce-additional-fields { margin-top: 1.5rem; }

/* Field wrappers: clean two-up grid (first/last name pair, rest full width).
   Reset WooCommerce/Divi float widths that otherwise squash the columns. */
.ledc-checkout-page .woocommerce-billing-fields__field-wrapper,
.ledc-checkout-page .woocommerce-shipping-fields__field-wrapper,
.ledc-checkout-page .woocommerce-additional-fields__field-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem;
}
.ledc-checkout-page .form-row {
    float: none !important; width: auto !important; margin: 0 0 1rem !important; padding: 0 !important;
    display: flex; flex-direction: column; gap: .3rem; grid-column: 1 / -1;
}
.ledc-checkout-page .form-row-first { grid-column: 1; }
.ledc-checkout-page .form-row-last  { grid-column: 2; }
@media (max-width: 520px) {
    .ledc-checkout-page .woocommerce-billing-fields__field-wrapper,
    .ledc-checkout-page .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
    .ledc-checkout-page .form-row-first, .ledc-checkout-page .form-row-last { grid-column: 1 / -1; }
}

.ledc-checkout-page .form-row label { font-size: .8rem; font-weight: 600; color: var(--ledc-text-muted); }
.ledc-checkout-page .form-row .required { color: var(--ledc-red); border: 0; text-decoration: none; }
.ledc-checkout-page .form-row .optional { color: var(--ledc-text-faint); font-weight: 400; }
.ledc-checkout-page input.input-text,
.ledc-checkout-page textarea,
.ledc-checkout-page select,
.ledc-checkout-page .select2-selection {
    width: 100% !important; padding: .65rem .75rem; border: 1px solid var(--ledc-border-strong); border-radius: var(--ledc-radius);
    font-size: .9rem; font-family: inherit; color: var(--ledc-text); background: #fff; line-height: 1.4; box-sizing: border-box;
}
.ledc-checkout-page input.input-text:focus,
.ledc-checkout-page textarea:focus,
.ledc-checkout-page select:focus { outline: none; border-color: var(--ledc-primary); box-shadow: 0 0 0 3px rgba(27,58,45,.1); }
.ledc-checkout-page .select2-container { width: 100% !important; }
.ledc-checkout-page .select2-container .select2-selection--single { height: auto; min-height: 44px; display: flex; align-items: center; border-color: var(--ledc-border-strong); }
.ledc-checkout-page .select2-container--default .select2-selection--single .select2-selection__arrow { height: 100%; }

/* "Ship to a different address" toggle */
.ledc-checkout-page #ship-to-different-address { font-size: 1.05rem; }
.ledc-checkout-page #ship-to-different-address label { color: var(--ledc-primary); font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }

/* Order review table */
.ledc-order-review { padding: 1.5rem; }
.ledc-checkout-page .woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; margin: 0 0 1.1rem; font-size: .9rem; }
.ledc-checkout-page .woocommerce-checkout-review-order-table th,
.ledc-checkout-page .woocommerce-checkout-review-order-table td { padding: .55rem 0; text-align: left; border-bottom: 1px solid var(--ledc-border); vertical-align: top; }
.ledc-checkout-page .woocommerce-checkout-review-order-table td { text-align: right; font-weight: 600; color: var(--ledc-text); }
.ledc-checkout-page .woocommerce-checkout-review-order-table .product-name { font-weight: 500; color: var(--ledc-text); text-align: left; padding-right: 1rem; }
.ledc-checkout-page .woocommerce-checkout-review-order-table .product-total { white-space: nowrap; }
.ledc-checkout-page .woocommerce-checkout-review-order-table thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ledc-text-muted); font-weight: 700; }
.ledc-checkout-page .woocommerce-checkout-review-order-table tfoot th { color: var(--ledc-text-muted); font-weight: 400; }
.ledc-checkout-page .woocommerce-checkout-review-order-table tfoot td { font-weight: 700; }
.ledc-checkout-page .woocommerce-checkout-review-order-table tfoot .order-total th { color: var(--ledc-primary); font-weight: 700; padding-top: .8rem; }
.ledc-checkout-page .woocommerce-checkout-review-order-table tfoot .order-total td { color: var(--ledc-primary); font-size: 1.3rem; padding-top: .8rem; }

/* Kit Manager trade-pricing row inside the review table */
.ledc-checkout-page .woocommerce-checkout-review-order-table .lkm-trade-pricing-notice th span { font-size: 0 !important; }
.ledc-checkout-page .woocommerce-checkout-review-order-table .lkm-trade-pricing-notice th { white-space: nowrap; }
.ledc-checkout-page .woocommerce-checkout-review-order-table .lkm-trade-pricing-notice th::before {
    content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ledc-green); margin-right: .45rem; vertical-align: middle;
}
.ledc-checkout-page .woocommerce-checkout-review-order-table .lkm-trade-pricing-notice th::after {
    content: "Trade pricing applied"; font-size: .82rem; color: var(--ledc-green); font-weight: 600; vertical-align: middle;
}
.ledc-checkout-page .woocommerce-checkout-review-order-table .lkm-trade-pricing-notice td,
.ledc-checkout-page .woocommerce-checkout-review-order-table .lkm-trade-pricing-notice td small { font-size: .72rem !important; color: var(--ledc-text-muted) !important; font-weight: 400 !important; }

/* Payment box */
.ledc-checkout-page #payment { background: var(--ledc-surface-alt); border: 1px solid var(--ledc-border); border-radius: var(--ledc-radius); padding: 1rem; }
.ledc-checkout-page #payment ul.payment_methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ledc-checkout-page #payment ul.payment_methods li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.ledc-checkout-page #payment ul.payment_methods li label { font-weight: 600; color: var(--ledc-text); margin: 0; }
.ledc-checkout-page #payment .payment_box { flex-basis: 100%; background: #fff; border: 1px solid var(--ledc-border); border-radius: var(--ledc-radius); padding: .85rem; font-size: .82rem; color: var(--ledc-text-muted); }
.ledc-checkout-page #payment .woocommerce-privacy-policy-text { font-size: .78rem; color: var(--ledc-text-muted); margin-top: .75rem; }

/* Place order -> yellow brand CTA */
.ledc-checkout-page #payment .place-order { margin-top: 1rem; padding: 0; }
.ledc-checkout-page #place_order,
.ledc-checkout-page button#place_order {
    display: block !important; width: 100% !important; margin: 0 !important; padding: .9rem 1rem !important;
    border-radius: var(--ledc-radius) !important; background: var(--ledc-yellow) !important; color: var(--ledc-primary) !important;
    border: 1px solid var(--ledc-yellow) !important; font-size: 1rem !important; font-weight: 700 !important;
    text-transform: none !important; letter-spacing: 0 !important; cursor: pointer; line-height: 1.4 !important;
}
.ledc-checkout-page #place_order:hover { background: var(--ledc-yellow-hover) !important; border-color: var(--ledc-yellow-hover) !important; }

/* Notices (coupon bar, login prompt, "no payment methods") -> on-brand, beat Divi blue */
.ledc-checkout-page .woocommerce-info,
.ledc-checkout-page .woocommerce-message,
.ledc-checkout-page .woocommerce-error,
.ledc-checkout-page .woocommerce-NoticeGroup .woocommerce-info,
.ledc-checkout-page #payment .woocommerce-info {
    background: var(--ledc-primary-soft) !important; border: 1px solid var(--ledc-border) !important;
    border-left: 3px solid var(--ledc-primary) !important; border-radius: var(--ledc-radius) !important;
    color: var(--ledc-text) !important; list-style: none !important; margin: 0 0 1rem !important;
    padding: .8rem 1rem !important; font-size: .85rem !important;
}
.ledc-checkout-page .woocommerce-error { border-left-color: var(--ledc-red) !important; }
.ledc-checkout-page .woocommerce-info::before,
.ledc-checkout-page .woocommerce-message::before,
.ledc-checkout-page .woocommerce-error::before { display: none !important; }
.ledc-checkout-page .woocommerce-info a,
.ledc-checkout-page .woocommerce-error a,
.ledc-checkout-page .woocommerce-message a { color: var(--ledc-primary) !important; font-weight: 600 !important; }

/* Support card heading colour (beat theme h3 styling) */
.ledc-checkout-page .ledc-support h3 { color: #fff !important; }

/* =============================================================================
   ORDER SUMMARY: delivery options, address form, live updates (LEDC Master)
   The summary now carries WooCommerce's .cart_totals class (so cart.js can
   refresh it in place), which also brings WooCommerce's float / border /
   label rules for .cart_totals: they're reset here.
   ============================================================================= */
.ledc-app .cart-collaterals { width: auto !important; float: none !important; }
.ledc-app .cart-collaterals .cart_totals { float: none !important; width: auto !important; margin: 0 !important; }
.ledc-app .cart-collaterals .cart_totals table { border: 0 !important; border-collapse: collapse !important; margin: 0 !important; padding: 0 !important; }
.ledc-app .cart-collaterals .cart_totals table th,
.ledc-app .cart-collaterals .cart_totals table td { border-top: 0 !important; background: none !important; }
.ledc-app .cart-collaterals .cart_totals table .ledc-line-total th,
.ledc-app .cart-collaterals .cart_totals table .ledc-line-total td { border-top: 1px solid var(--ledc-border) !important; }

/* WooCommerce's .shop_table padding indented the labels: line them up with "Delivery" */
.ledc-app .cart_totals table.ledc-totals-table th { padding: .5rem 0 !important; }
.ledc-app .cart_totals table.ledc-totals-table td { padding: .5rem 0 .5rem 1rem !important; }
.ledc-app .cart_totals table.ledc-totals-table tr.ledc-line-total th,
.ledc-app .cart_totals table.ledc-totals-table tr.ledc-line-total td { padding-top: .9rem !important; }
.ledc-app .ledc-line-total small { white-space: nowrap; }

/* Live updates: the line total changes at once, the summary dims until saved */
.ledc-subtotal.is-pending { color: var(--ledc-text-muted); }
.ledc-summary .ledc-totals-table td { transition: opacity .15s; }
.ledc-summary.is-updating .ledc-totals-table td { opacity: .45; }
.ledc-app .blockUI.blockOverlay { border-radius: var(--ledc-radius-lg); }

/* Delivery block: full width under the subtotal, options as cards */
.ledc-app .ledc-totals-table tr.ledc-ship-row > td,
.ledc-app .cart_totals table.ledc-totals-table tr.ledc-ship-row > td {
    display: table-cell !important; padding: .8rem 0 .6rem !important; text-align: left !important;
    font-weight: 400 !important; color: var(--ledc-text) !important;
}
.ledc-app .ledc-totals-table tr.ledc-ship-row > td::before { display: none !important; content: none !important; }
.ledc-ship-head { margin: 0 0 .55rem; font-size: .88rem; color: var(--ledc-text-muted); }

.ledc-app ul.ledc-ship-options { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: .5rem; }
.ledc-app ul.ledc-ship-options li.ledc-ship-opt { position: relative; margin: 0 !important; padding: 0 !important; list-style: none !important; line-height: 1.4 !important; }
.ledc-app .ledc-ship-opt input[type="radio"] {
    position: absolute !important; opacity: 0; width: 1px; height: 1px; margin: 0 !important; pointer-events: none;
}
.ledc-app ul.ledc-ship-options li.ledc-ship-opt label {
    display: flex !important; align-items: center; gap: .7rem; margin: 0 !important; padding: .7rem .8rem;
    border: 1px solid var(--ledc-border-strong); border-radius: var(--ledc-radius); background: #fff;
    cursor: pointer; font-size: .86rem; font-weight: 400; color: var(--ledc-text); text-align: left;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.ledc-app .ledc-ship-opt label::before {
    content: ""; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid var(--ledc-border-strong); background: #fff; box-sizing: border-box;
}
.ledc-app .ledc-ship-opt label:hover { border-color: var(--ledc-primary); }
.ledc-app .ledc-ship-opt input:checked + label {
    border-color: var(--ledc-primary); background: var(--ledc-primary-soft); box-shadow: inset 0 0 0 1px var(--ledc-primary);
}
.ledc-app .ledc-ship-opt input:checked + label::before { border-color: var(--ledc-primary); background: var(--ledc-primary); box-shadow: inset 0 0 0 3px #fff; }
.ledc-app .ledc-ship-opt input:focus-visible + label { outline: 2px solid var(--ledc-yellow); outline-offset: 2px; }
.ledc-app .ledc-ship-opt.is-single label { cursor: default; background: var(--ledc-primary-soft); }
.ledc-app .ledc-ship-opt.is-single label::before { display: none; }
.ledc-ship-opt__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .05rem; }
.ledc-ship-opt__name { font-weight: 600; color: var(--ledc-text); line-height: 1.3; }
.ledc-ship-opt__eta { font-size: .76rem; color: var(--ledc-text-muted); line-height: 1.35; }
.ledc-ship-opt__cost { flex: 0 0 auto; font-weight: 700; color: var(--ledc-text); white-space: nowrap; }
.ledc-ship-opt__cost.is-free { color: var(--ledc-green); }
.ledc-ship-opt__cost small { display: block; font-size: .68rem; font-weight: 500; color: var(--ledc-text-muted); text-align: right; }

/* "Delivering to … Change" line + the address form under it */
.ledc-ship-addr { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .3rem .75rem; margin-top: .75rem; font-size: .8rem; color: var(--ledc-text-muted); line-height: 1.45; }
.ledc-ship-dest { flex: 1 1 0; min-width: 0; display: flex; align-items: flex-start; gap: .4rem; margin: 0 !important; }
.ledc-ship-dest svg { flex: 0 0 15px; margin-top: .1rem; color: var(--ledc-primary); }
.ledc-ship-dest strong { color: var(--ledc-text); font-weight: 600; }
.ledc-ship-note { flex: 1 1 0; min-width: 0; margin: 0 !important; font-size: .8rem; color: var(--ledc-text-muted); }
.ledc-app form.ledc-calc-form { display: contents; }
.ledc-app .cart-collaterals a.ledc-ship-change,
.ledc-app a.ledc-ship-change {
    flex: 0 0 auto; display: inline !important; float: none !important; margin: 0 !important;
    font-weight: 600; color: var(--ledc-primary) !important; text-decoration: underline !important; text-underline-offset: 2px;
}
.ledc-app .cart-collaterals a.ledc-ship-change::after,
.ledc-app a.ledc-ship-change::after { content: none !important; display: none !important; }
.ledc-app a.ledc-ship-change:hover { color: var(--ledc-primary-hover) !important; }
.ledc-app a.ledc-ship-change:focus { outline: none; }
.ledc-app a.ledc-ship-change:focus-visible { outline: 2px solid var(--ledc-yellow); outline-offset: 2px; border-radius: 2px; }

.ledc-app .ledc-calc { flex: 1 1 100%; margin: .45rem 0 0; padding: .9rem; background: var(--ledc-surface-alt); border: 1px solid var(--ledc-border); border-radius: var(--ledc-radius); }
.ledc-app .ledc-calc .form-row {
    float: none !important; width: auto !important; margin: 0 0 .7rem !important; padding: 0 !important;
    display: flex; flex-direction: column; gap: .25rem; text-align: left;
}
.ledc-app .ledc-calc .form-row > span { display: flex; flex-direction: column; gap: .25rem; }
.ledc-app .ledc-calc label { display: block; margin: 0 !important; font-size: .76rem; font-weight: 600; color: var(--ledc-text-muted); text-align: left; line-height: 1.3; }
.ledc-app .ledc-calc .required { color: var(--ledc-red); text-decoration: none; border: 0; }
.ledc-app .ledc-calc .optional { color: var(--ledc-text-faint); font-weight: 400; }
.ledc-app .ledc-calc input.input-text,
.ledc-app .ledc-calc select:not(.select2-hidden-accessible) {
    width: 100% !important; min-height: 40px; margin: 0 !important; padding: .5rem .65rem !important;
    border: 1px solid var(--ledc-border-strong) !important; border-radius: var(--ledc-radius) !important;
    background: #fff !important; color: var(--ledc-text) !important; font-size: .86rem !important; font-family: inherit;
    line-height: 1.4; box-shadow: none !important; text-align: left;
}
.ledc-app .ledc-calc input.input-text:focus,
.ledc-app .ledc-calc select:not(.select2-hidden-accessible):focus { outline: none; border-color: var(--ledc-primary) !important; box-shadow: 0 0 0 3px rgba(27,58,45,.12) !important; }
.ledc-app .ledc-calc .select2-container { width: 100% !important; }
.ledc-app .ledc-calc .select2-container .select2-selection--single {
    height: auto; min-height: 40px; display: flex; align-items: center; border: 1px solid var(--ledc-border-strong); border-radius: var(--ledc-radius); background: #fff;
}
.ledc-app .ledc-calc .select2-container .select2-selection--single .select2-selection__rendered { padding: 0 1.8rem 0 .65rem; color: var(--ledc-text); font-size: .86rem; line-height: 1.4; text-align: left; }
.ledc-app .ledc-calc .select2-container .select2-selection--single .select2-selection__arrow { height: 100%; top: 0; }
.ledc-app .ledc-calc-actions { margin: .15rem 0 0 !important; }

/* Our green button, whatever the theme does to buttons (it showed theme blue) */
.ledc-app .ledc-summary button.ledc-calc-submit,
.ledc-app .ledc-summary button.ledc-calc-submit:hover,
.ledc-app .ledc-summary button.ledc-calc-submit:focus,
.ledc-app .ledc-summary button.ledc-calc-submit:active {
    display: flex !important; width: 100% !important; margin: 0 !important; padding: .7rem 1rem !important;
    background: var(--ledc-primary) !important; color: #fff !important; border: 1px solid var(--ledc-primary) !important;
    border-radius: var(--ledc-radius) !important; box-shadow: none !important; text-shadow: none !important;
    font-size: .88rem !important; font-weight: 700 !important; line-height: 1.4 !important;
    text-transform: none !important; letter-spacing: 0 !important; font-family: inherit !important;
}
.ledc-app .ledc-summary button.ledc-calc-submit::after,
.ledc-app .ledc-summary button.ledc-calc-submit::before { content: none !important; display: none !important; }
.ledc-app .ledc-summary button.ledc-calc-submit:hover { background: var(--ledc-primary-hover) !important; border-color: var(--ledc-primary-hover) !important; }
.ledc-app .ledc-summary button.ledc-calc-submit:focus-visible { outline: 2px solid var(--ledc-yellow) !important; outline-offset: 2px; }

/* Totals rows stay label-left / amount-right at every width (the table is no
   longer shop_table_responsive), with room to breathe on a phone. */
@media (max-width: 980px) {
    .ledc-sticky { gap: 1rem; }
    /* One column: items, then the order summary, then "Why buy from us"
       (the summary used to come after the trust panel). */
    .ledc-col-main { display: contents; }
    .ledc-cart-form { order: 1; min-width: 0; }
    .ledc-col-side { order: 2; }
    .ledc-trust { order: 3; }
}
@media (max-width: 480px) {
    .ledc-summary { padding: 1.1rem; }
    .ledc-app ul.ledc-ship-options li.ledc-ship-opt label { padding: .65rem .7rem; gap: .6rem; }
}

/* Quantity box: the theme greyed it out (looked disabled) and 4-digit
   quantities were cut off ("110C" for 1100). */
.ledc-app .ledc-qty .quantity input.qty {
    width: 58px !important; height: 34px !important; margin: 0 !important; padding: 0 2px !important;
    border: 0 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important;
    color: var(--ledc-text) !important; font-size: .9rem !important; font-weight: 700 !important; text-align: center !important;
}
.ledc-app .ledc-qty .quantity input.qty:focus { outline: none; background: var(--ledc-primary-soft) !important; }
.ledc-app .ledc-qty .quantity:focus-within { border-color: var(--ledc-primary); box-shadow: 0 0 0 3px rgba(27,58,45,.1); }

/* Quantities save themselves (ledc-cart.js), so "Update basket" is visually hidden
   while scripts run; it stays for screen readers and as the no-JS fallback. */
.ledc-app.ledc-js .ledc-update {
    position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important;
    overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* The Remove link sits in .product-remove (so cart.js removes in place);
   WooCommerce sizes that cell for its table layout. */
.ledc-app .ledc-item-right .product-remove {
    display: inline-flex !important; width: auto !important; min-width: 0 !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
}

/* Checkout "Your order": the delivery row uses the basket's cards (cart-shipping.php),
   full width and left-aligned instead of squeezed into the right-hand column. */
.ledc-checkout-page .woocommerce-checkout-review-order-table tr.ledc-ship-row > td {
    text-align: left !important; padding: .85rem 12px .75rem !important; font-weight: 400 !important; color: var(--ledc-text) !important;
}
.ledc-checkout-page .woocommerce-checkout-review-order-table tr.ledc-ship-row .ledc-ship-head { color: var(--ledc-text-muted); font-size: .88rem; }
.ledc-checkout-page .woocommerce-checkout-review-order-table tr.ledc-ship-row .ledc-ship-opt__name,
.ledc-checkout-page .woocommerce-checkout-review-order-table tr.ledc-ship-row .ledc-ship-opt__cost { font-size: .86rem; }
.ledc-checkout-page .woocommerce-checkout-review-order-table tr.ledc-ship-row .ledc-ship-addr { margin-top: .6rem; }

/* LEDC Master 1.13.4: lead-time note under Subtotal (basket + checkout). */
.ledc-leadtime-row td,
.ledc-app .ledc-totals-table .ledc-leadtime-row td,
.woocommerce-checkout-review-order-table .ledc-leadtime-row td { padding: 0 0 .6rem !important; border: 0 !important; text-align: left !important; }
.ledc-leadtime-note { margin: 0; padding: .55rem .7rem; border-left: 3px solid #9B4F07; border-radius: 4px; background: #fdf4ea; color: #9B4F07; font-size: .8rem; font-weight: 500; line-height: 1.45; }
.ledc-co-lead { display: block; margin-top: .2rem; color: #9B4F07; font-size: .75rem; font-weight: 600; }
.ledc-co-lead::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: .35rem; border-radius: 50%; background: #9B4F07; vertical-align: 1px; }
/* LEDC Master 1.13.8: lead time in the category pages' orange (#d97706), text and dot. */
.ledc-badge.on_backorder,
.ledc-badge.low_stock { color: #d97706; font-weight: 600; }
.ledc-badge.on_backorder::before,
.ledc-badge.low_stock::before { background: #d97706; }
.ledc-co-lead { color: #d97706; }
.ledc-co-lead::before { background: #d97706; }
