/* ═══════════════════════════════════════════════════════════
   SecuritPro — WooCommerce: shop, product, cart, checkout, account
   ═══════════════════════════════════════════════════════════ */

/* Re-skin the SecuritPro plugin's components (cart drawer, product extras) */
.sp-theme {
  --ux-amber: var(--sp-yellow); --ux-amber-dk: var(--sp-yellow-dk); --ux-amber-lt: var(--sp-yellow-lt);
  --ux-dark: var(--sp-dark); --ux-text: var(--sp-text); --ux-muted: var(--sp-muted); --ux-border: var(--sp-line);
  --ux-bg: var(--sp-surface); --ux-white: #fff; --ux-font: var(--sp-font);
  --sp-amber: var(--sp-yellow); --sp-amber-l: var(--sp-yellow-lt); --sp-amber-m: #FFE08A; --sp-amber-d: var(--sp-yellow-dk);
  --sp-dark2: var(--sp-dark-2); --sp-border: var(--sp-line); --sp-bg: var(--sp-surface); --sp-radius: var(--sp-r); --sp-radius-s: 10px;
  --sp-head: var(--sp-font);
}

/* ───────── Breadcrumb ───────── */
.sp-crumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--sp-muted); margin-bottom: 14px; }
.sp-crumb a { color: var(--sp-muted); text-decoration: none; }
.sp-crumb a:hover { color: #000; text-decoration: underline; }
.sp-crumb__sep { color: #B6BCC2; }

/* ───────── Archive ───────── */
.sp-shop { padding-top: 28px; }
.sp-shop__head { margin-bottom: 28px; }
.sp-shop__title { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; font-stretch: 108%; }
.sp-shop__desc { margin-top: 10px; max-width: 70ch; color: var(--sp-muted); }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.sp-chips a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border: 1px solid var(--sp-line); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; background: #fff; }
.sp-chips a span { color: var(--sp-muted); font-size: 12px; }
.sp-chips a:hover { border-color: #000; }
.sp-shop__layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.sp-shop__side { position: sticky; top: 160px; }
.sp-side__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sp-side__title { font-size: 15px; font-weight: 650; }
.sp-side__close { display: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--sp-surface); cursor: pointer; place-items: center; }
@media (max-width: 1120px) {
  .sp-side__close { display: grid; } .sp-side__title { font-size: 18px; }
  /* touch: category links at least 44px tall */
  .sp-side > ul > li > a { padding: 13px 0; }
  .sp-side li ul a { padding: 11px 8px; font-size: 15px; }
}
.sp-side ul { list-style: none; margin: 0; padding: 0; }
.sp-side > ul > li { border-bottom: 1px solid var(--sp-line); }
.sp-side > ul > li > a { display: block; padding: 11px 0; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--sp-black); }
.sp-side__row { display: flex; align-items: center; gap: 6px; }
.sp-side__row > a { flex: 1; display: block; padding: 11px 0; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--sp-black); border-radius: 8px; }
.sp-side__toggle { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: var(--sp-text); cursor: pointer; }
.sp-side__toggle:hover { background: var(--sp-surface); }
.sp-side__toggle svg { transition: transform .2s; }
.sp-side li.is-open > .sp-side__row .sp-side__toggle svg { transform: rotate(180deg); }
.sp-side li ul { display: none; padding: 0 0 10px 10px; }
.sp-side li.is-open ul { display: block; }
.sp-side li ul a { display: flex; justify-content: space-between; padding: 5px 8px; border-radius: 8px; font-size: 14px; text-decoration: none; color: var(--sp-text); }
.sp-side li ul a span { color: var(--sp-muted); font-size: 12px; }
.sp-side a:hover { background: var(--sp-surface); }
.sp-side a[aria-current="page"] { background: var(--sp-yellow-lt); color: #000; }
.sp-side__help { margin-top: 24px; padding: 18px; border-radius: var(--sp-r); background: var(--sp-surface); display: grid; gap: 8px; font-size: 14px; }
.sp-side__help strong { color: #000; }

.sp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 20px; }
.sp-toolbar__filter { display: none !important; }
.sp-toolbar .woocommerce-result-count { margin: 0; color: var(--sp-muted); font-size: 14px; }
.sp-toolbar .woocommerce-ordering { margin: 0 0 0 auto; }
.sp-toolbar select, .woocommerce-ordering select { min-height: 42px; padding: 0 36px 0 14px; border: 1px solid #C9CED3; border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-size: 14px; }

.sp-theme ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important; margin: 0 0 32px !important; padding: 0 !important; list-style: none; }
.sp-theme ul.products::before, .sp-theme ul.products::after { display: none !important; }
.sp-theme ul.products.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.sp-theme ul.products li.product { width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important; text-align: left; }
.sp-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (min-width: 1400px) { .sp-shop .sp-shop__main ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }

.woocommerce-pagination { margin: 8px 0 0; }
.woocommerce-pagination ul.page-numbers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; border: 0 !important; }
.woocommerce-pagination ul.page-numbers li { border: 0 !important; }
.woocommerce-pagination .page-numbers a, .woocommerce-pagination .page-numbers span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--sp-line); border-radius: 10px; text-decoration: none; font-weight: 600; color: #000; }
.woocommerce-pagination .page-numbers .current { background: #000; color: #fff; border-color: #000; }
.woocommerce-pagination .page-numbers a:hover { border-color: #000; }
.sp-empty__more a { font-weight: 600; }

/* ───────── Notices ───────── */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice { list-style: none; margin: 0 0 20px !important; padding: 14px 18px !important; border-radius: 12px; border: 1px solid var(--sp-line); background: var(--sp-surface); color: var(--sp-text); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 15px; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message { border-left: 4px solid var(--sp-green); }
.woocommerce-error { border-left: 4px solid var(--sp-red); }
.woocommerce-info { border-left: 4px solid var(--sp-yellow); }
.woocommerce-message .button, .woocommerce-info .button { margin-left: auto; order: 2; }

/* ───────── Buttons (WooCommerce) ───────── */
.sp-theme .button, .sp-theme button.button, .sp-theme a.button, .sp-theme input.button, .sp-theme .single_add_to_cart_button, .sp-theme #place_order, .sp-theme .checkout-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 10px; border: 1.5px solid #000; background: #fff; color: #000; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s;
}
.sp-theme .button:hover { background: #000; color: #fff; }
.sp-theme .single_add_to_cart_button, .sp-theme #place_order, .sp-theme .checkout-button, .sp-theme .button.alt { background: var(--sp-yellow) !important; border-color: var(--sp-yellow) !important; color: #000 !important; }
.sp-theme .single_add_to_cart_button:hover, .sp-theme #place_order:hover, .sp-theme .checkout-button:hover, .sp-theme .button.alt:hover { background: var(--sp-yellow-dk) !important; border-color: var(--sp-yellow-dk) !important; }
.sp-theme .button:disabled, .sp-theme .button.disabled { opacity: .5; cursor: not-allowed; }

/* ───────── Forms ───────── */
.sp-theme .input-text, .sp-theme input[type="text"], .sp-theme input[type="email"], .sp-theme input[type="tel"], .sp-theme input[type="password"], .sp-theme input[type="number"], .sp-theme textarea, .sp-theme .woocommerce select, .sp-theme .select2-container .select2-selection--single {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #BFC5CB; border-radius: 10px; background: #fff; color: #000; font-size: 16px; box-shadow: none;
}
.sp-config input, .sp-config select, .sp-search input, .sp-404__search input { width: auto; }
.sp-config .sp-config__form input, .sp-config .sp-config__form select { width: 100%; background: var(--sp-dark-2); color: #fff; border-color: #444C54; }
.sp-theme .select2-container .select2-selection--single { display: flex; align-items: center; }
.sp-theme .select2-container--default .select2-selection--single .select2-selection__arrow { height: 46px; }
.sp-theme .input-text:focus, .sp-theme textarea:focus, .sp-theme select:focus { outline: 0; border-color: #000; box-shadow: 0 0 0 1px #000; }
.sp-theme .form-row { margin: 0 0 16px; padding: 0; }
.sp-theme .form-row label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: #000; }
.sp-theme .required { color: var(--sp-red); text-decoration: none; }
.sp-theme .quantity .qty { width: 84px; min-height: 48px; text-align: center; }

/* ───────── Single product ───────── */
.sp-theme.single-product .sp-shop { padding-top: 24px; }
.sp-theme div.product, .sp-theme .spmm-product-page > .product { display: block !important; position: relative; } /* plugin forced a 2-column grid here */
/* Gallery + summary side by side; the gallery is sticky only within this block */
.sp-theme .sp-product-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; position: relative; }
.sp-theme .sp-product-top > .woocommerce-product-gallery, .sp-theme .sp-product-top > .images { grid-column: 1; width: 100% !important; float: none !important; margin: 0 !important; position: sticky; top: 150px; }
.sp-theme .sp-product-top > .summary { grid-column: 2; width: 100% !important; float: none !important; margin: 0 !important; }
.sp-theme .sp-product-top > .onsale { position: absolute; z-index: 6; top: 16px; left: 16px; }
.sp-theme div.product > .woocommerce-tabs, .sp-theme div.product > .related, .sp-theme div.product > .upsells, .sp-theme div.product > .up-sells { clear: both; }
.spmm-product-page { padding: 0 !important; background: none !important; }
.sp-theme .woocommerce-product-gallery { background: var(--sp-surface); border-radius: var(--sp-r-lg); padding: 24px; }
.sp-theme .woocommerce-product-gallery__wrapper { margin: 0; }
.sp-theme .woocommerce-product-gallery__image img { border-radius: 10px; background: #fff; width: 100%; height: auto; }
.sp-theme .woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.sp-theme .woocommerce-product-gallery .flex-control-thumbs li { width: auto !important; margin: 0 !important; }
.sp-theme .woocommerce-product-gallery .flex-control-thumbs img { border-radius: 8px; background: #fff; border: 2px solid transparent; opacity: .7; cursor: pointer; }
.sp-theme .woocommerce-product-gallery .flex-control-thumbs img.flex-active, .sp-theme .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; border-color: var(--sp-yellow); }
.sp-theme .woocommerce-product-gallery__trigger { position: absolute; top: 34px; right: 34px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .3); font-size: 0; text-decoration: none; }
.sp-theme .woocommerce-product-gallery__trigger::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / contain no-repeat; }
.sp-theme .summary .product_title { font-size: clamp(26px, 2.8vw, 38px); font-weight: 700; font-stretch: 106%; margin-bottom: 14px; }
.sp-theme .summary .woocommerce-product-details__short-description { color: var(--sp-text); margin: 16px 0; }
.sp-theme .summary form.cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 22px 0; padding: 20px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); }
.sp-theme .summary form.variations_form { display: block; }
.sp-theme table.variations { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.sp-theme table.variations th, .sp-theme table.variations td { display: block; padding: 0; text-align: left; }
.sp-theme table.variations th label { display: block; font-size: 14px; font-weight: 600; margin: 10px 0 6px; }
.sp-theme table.variations select { width: 100%; min-height: 48px; padding: 0 36px 0 14px; border: 1px solid #BFC5CB; border-radius: 10px; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; font-size: 16px; }
.sp-theme .reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--sp-muted); }
.sp-theme .woocommerce-variation-add-to-cart { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }
.sp-theme .woocommerce-variation-price { margin: 4px 0 6px; }
.sp-theme .woocommerce-variation-price .sp-price { flex-direction: row; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.sp-theme .woocommerce-variation-price .sp-price__ht { font-size: 24px; }
.sp-theme .woocommerce-variation-price .sp-price__ttc { font-size: 17px; font-weight: 600; color: var(--sp-text); }
.sp-theme .product_meta { display: grid; gap: 4px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--sp-line); font-size: 14px; color: var(--sp-muted); }
.sp-theme .product_meta a { color: #000; }

/* Tabs */
.sp-theme .woocommerce-tabs { margin-top: 48px; }
.sp-theme .woocommerce-tabs ul.tabs { display: flex; gap: 6px; margin: 0 0 0 !important; padding: 0 !important; list-style: none; border-bottom: 1px solid var(--sp-line); overflow-x: auto; }
.sp-theme .woocommerce-tabs ul.tabs::before, .sp-theme .woocommerce-tabs ul.tabs li::before, .sp-theme .woocommerce-tabs ul.tabs li::after { display: none !important; }
.sp-theme .woocommerce-tabs ul.tabs li { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; }
.sp-theme .woocommerce-tabs ul.tabs li a { display: block; padding: 14px 16px; font-weight: 600; text-decoration: none; color: var(--sp-muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.sp-theme .woocommerce-tabs ul.tabs li.active a { color: #000; border-color: var(--sp-yellow); }
.sp-theme .woocommerce-tabs .panel { padding: 28px 0 0; margin: 0; max-width: 85ch; line-height: 1.7; }
.sp-theme .woocommerce-tabs .panel > h2:first-child { font-size: 22px; margin-bottom: 14px; }
.sp-theme .woocommerce-tabs table.shop_attributes { width: 100%; border-collapse: collapse; border: 0; }
.sp-theme table.shop_attributes th, .sp-theme table.shop_attributes td { padding: 12px 14px; border-bottom: 1px solid var(--sp-line); text-align: left; font-style: normal; }
.sp-theme table.shop_attributes th { width: 220px; color: #000; font-weight: 600; background: var(--sp-surface); }
.sp-theme .related > h2, .sp-theme .upsells > h2, .sp-theme .up-sells > h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 64px 0 24px; font-stretch: 108%; }

/* Reviews */
.sp-theme #reviews .commentlist { list-style: none; padding: 0; display: grid; gap: 16px; }
.sp-theme #reviews .comment_container { display: flex; gap: 14px; padding: 18px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); }
.sp-theme #reviews .avatar { width: 44px; height: 44px; border-radius: 50%; }
.sp-theme .star-rating { color: #F2A900; }

/* ───────── Cart & checkout ───────── */
.sp-theme table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--sp-line); border-radius: var(--sp-r); overflow: hidden; margin-bottom: 24px; }
.sp-theme table.shop_table th { background: var(--sp-surface); color: #000; font-size: 14px; font-weight: 600; text-align: left; padding: 14px 16px; }
.sp-theme table.shop_table td { padding: 16px; border-top: 1px solid var(--sp-line); vertical-align: middle; }
.sp-theme table.shop_table .product-thumbnail img { width: 72px; height: 72px; object-fit: contain; background: var(--sp-surface); border-radius: 8px; padding: 4px; }
.sp-theme table.shop_table .product-name a { font-weight: 600; text-decoration: none; color: #000; }
.sp-theme table.shop_table .product-remove a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; text-decoration: none; color: var(--sp-muted) !important; font-size: 20px; }
.sp-theme table.shop_table .product-remove a:hover { background: var(--sp-red); color: #fff !important; }
.sp-theme table.shop_table td.actions { background: #fff; }
.sp-theme .coupon { display: inline-flex; gap: 8px; align-items: center; }
.sp-theme .coupon .input-text { width: 200px; }
.sp-theme .cart-collaterals { display: flex; justify-content: flex-end; }
.sp-theme .cart_totals { width: min(440px, 100%); padding: 24px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); background: var(--sp-surface); }
.sp-theme .cart_totals h2 { font-size: 20px; margin-bottom: 14px; }
.sp-theme .cart_totals table.shop_table { border: 0; background: transparent; margin-bottom: 16px; }
.sp-theme .cart_totals table.shop_table th, .sp-theme .cart_totals table.shop_table td { background: transparent; padding: 10px 0; }
.sp-theme .cart_totals .order-total .amount { font-size: 22px; font-weight: 700; color: #000; }
.sp-theme .wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 54px; font-size: 16px; }
.sp-theme form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 48px; align-items: start; }
.sp-theme form.checkout > .woocommerce-NoticeGroup, .sp-theme form.checkout > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.sp-theme form.checkout #customer_details { grid-column: 1; }
.sp-theme form.checkout #order_review_heading, .sp-theme form.checkout #order_review { grid-column: 2; }
.sp-theme form.checkout #order_review_heading { font-size: 22px; margin-bottom: 14px; }
.sp-theme #order_review { padding: 24px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); background: var(--sp-surface); position: sticky; top: 150px; }
.sp-theme #customer_details .col-1, .sp-theme #customer_details .col-2 { width: 100% !important; float: none !important; }
.sp-theme #customer_details h3 { font-size: 20px; margin: 0 0 16px; }
.sp-theme .woocommerce-billing-fields__field-wrapper, .sp-theme .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sp-theme .form-row-wide, .sp-theme .form-row.notes, .sp-theme #billing_address_1_field, .sp-theme #billing_address_2_field { grid-column: 1 / -1; }
.sp-theme #payment { background: #fff !important; border-radius: 12px; padding: 16px; margin-top: 16px; }
.sp-theme #payment ul.payment_methods { list-style: none; padding: 0 0 12px; margin: 0; border-bottom: 1px solid var(--sp-line); }
.sp-theme #payment .payment_box { background: var(--sp-surface) !important; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.sp-theme #payment .payment_box::before { display: none; }
.sp-theme #place_order { width: 100%; min-height: 54px; margin-top: 16px; font-size: 16px; }

/* ───────── Cart & checkout blocks (WooCommerce Blocks) ───────── */
/* Say clearly which amounts are HT and which is TTC (prices are entered HT, VAT 19 % added) */
.sp-theme .wp-block-woocommerce-cart-order-summary-subtotal-block .wc-block-components-totals-item__label::after,
.sp-theme .wp-block-woocommerce-checkout-order-summary-subtotal-block .wc-block-components-totals-item__label::after,
.sp-theme .wc-block-components-totals-shipping .wc-block-components-totals-item__label::after { content: " HT"; font-weight: 600; }
.sp-theme .wc-block-components-totals-taxes .wc-block-components-totals-item__label::after { content: " (19 %)"; }
.sp-theme .wc-block-components-totals-footer-item .wc-block-components-totals-item__label::after { content: " TTC"; }
.sp-theme .wc-block-components-button:not(.is-link) { min-height: 52px; border-radius: 10px !important; font-weight: 650; }
.sp-theme .wc-block-cart__submit-button, .sp-theme .wc-block-components-checkout-place-order-button, .sp-theme .wc-block-components-button.contained {
  background: var(--sp-yellow) !important; color: #000 !important; border: 0 !important;
}
.sp-theme .wc-block-cart__submit-button:hover, .sp-theme .wc-block-components-checkout-place-order-button:hover, .sp-theme .wc-block-components-button.contained:hover { background: var(--sp-yellow-dk) !important; }
.sp-theme .wc-block-components-text-input input, .sp-theme .wc-block-components-combobox .wc-block-components-combobox-control input, .sp-theme .wc-blocks-components-select .wc-blocks-components-select__select { border-radius: 10px !important; }
.sp-theme .wc-block-components-text-input.is-active input:focus, .sp-theme .wc-block-components-text-input input:focus { box-shadow: 0 0 0 1px #000 !important; border-color: #000 !important; }
/* touch targets in the cart / checkout blocks */
.sp-theme .wc-block-components-panel__button { min-height: 44px; display: flex; align-items: center; }
.sp-theme .wc-block-components-address-card__edit { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 8px; }
.sp-theme .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] { width: 22px; height: 22px; min-width: 22px; }
.sp-theme .wc-block-components-checkbox label { min-height: 32px; align-items: center; }
.sp-theme .wc-block-components-sidebar .wc-block-components-panel, .sp-theme .wp-block-woocommerce-checkout-order-summary-block { border-radius: var(--sp-r); }
.sp-theme .wc-block-cart-item__product a, .sp-theme .wc-block-components-product-name { color: #000; text-decoration-color: var(--sp-yellow); }
.sp-theme .wc-block-components-radio-control__option--checked-option-highlighted, .sp-theme .wc-block-components-radio-control-accordion-option--checked-option-highlighted { box-shadow: inset 0 0 0 2px var(--sp-yellow) !important; border-radius: 10px; }

/* ───────── My account ───────── */
.sp-theme .woocommerce-account .woocommerce, .sp-theme.woocommerce-account .sp-content > .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.sp-theme .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sp-theme .woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--sp-text); }
.sp-theme .woocommerce-MyAccount-navigation a:hover { background: var(--sp-surface); }
.sp-theme .woocommerce-MyAccount-navigation .is-active a { background: var(--sp-yellow-lt); color: #000; font-weight: 600; }
.sp-theme .woocommerce-MyAccount-navigation, .sp-theme .woocommerce-MyAccount-content { width: auto !important; float: none !important; }
.sp-theme.woocommerce-account:not(.logged-in) .sp-content > .woocommerce { display: block; }
.sp-theme .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.sp-theme .u-columns .col-1, .sp-theme .u-columns .col-2 { width: auto !important; float: none !important; padding: 28px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); }
.sp-theme .woocommerce form.login, .sp-theme .woocommerce form.register { border: 0; padding: 0; margin: 0; max-width: 480px; }
.sp-theme .woocommerce-form-login__submit, .sp-theme .woocommerce-form-register__submit { background: #000 !important; color: #fff !important; min-width: 160px; }
.sp-theme .woocommerce-form-login__submit:hover, .sp-theme .woocommerce-form-register__submit:hover { background: #2b2b2b !important; }
.sp-theme .woocommerce-form-login .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-size: 14px; }

/* ───────── Log-in and sign-up (sp-auth) ───────── */
.sp-auth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 28px; align-items: start; max-width: 1120px; margin: 0 0 48px; }
.sp-auth--login { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1000px; }
.sp-auth--single { display: block; max-width: 640px; }
.sp-auth__card { padding: clamp(22px, 3vw, 36px); border: 1px solid var(--sp-line); border-radius: var(--sp-r-lg); background: #fff; box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .35); }
.sp-auth__kicker { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted); }
.sp-auth__title { margin: 0 0 20px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 750; line-height: 1.15; color: #000; }
.sp-auth .woocommerce form.login, .sp-auth form.login, .sp-auth form.register { max-width: none; margin: 0; padding: 0; border: 0; }
.sp-auth .form-row { padding: 0; margin: 0 0 14px; }
.sp-auth label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 15px; color: #000; }
.sp-auth .input-text { width: 100%; }
.sp-auth__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 2px 0 18px; }
.sp-auth__row .woocommerce-form-login__rememberme { display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; font-weight: 500; min-height: 32px; }
.sp-auth__row input[type="checkbox"] { width: 20px; height: 20px; accent-color: #000; }
.sp-auth__lost { font-size: 15px; font-weight: 600; color: #1D5FA8; }
.sp-auth .woocommerce-form-login__submit, .sp-auth .sp-reg__submit { width: 100%; min-height: 54px; font-size: 17px; border-radius: 12px !important; }
.sp-auth .sp-reg__submit { background: var(--sp-yellow) !important; color: #000 !important; border-color: var(--sp-yellow) !important; }
.sp-auth .sp-reg__submit:hover { background: var(--sp-yellow-dk) !important; }
.sp-auth__alt { margin: 16px 0 0; text-align: center; font-size: 15px; }
.sp-auth__alt a { font-weight: 700; color: #000; text-decoration-color: var(--sp-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sp-auth__btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
/* side panel */
.sp-auth__side { position: sticky; top: 140px; padding: clamp(22px, 3vw, 36px); border-radius: var(--sp-r-lg); background: var(--sp-dark); color: #E9ECEE; }
.sp-auth__side .sp-auth__kicker { color: var(--sp-yellow); }
.sp-auth__side-title { margin: 0 0 18px; font-size: clamp(21px, 2vw, 26px); font-weight: 750; line-height: 1.2; color: #fff; }
.sp-auth__perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sp-auth__perks li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: #C9CFD4; }
.sp-auth__perks strong { display: block; color: #fff; font-size: 16px; margin-bottom: 2px; }
.sp-auth__tick { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sp-yellow); color: #000; }
.sp-auth__note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--sp-dark-line); font-size: 14.5px; color: #C9CFD4; }
.sp-auth__side a:not(.sp-btn) { color: var(--sp-yellow); font-weight: 600; }
.sp-auth__side .sp-auth__btns .sp-btn { width: 100%; }
/* sign-up form */
.sp-reg__type { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.sp-reg__type legend { grid-column: 1 / -1; padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 15px; color: #000; }
.sp-choice { position: relative; margin: 0 !important; cursor: pointer; }
.sp-choice input { position: absolute; opacity: 0; }
.sp-choice > span { display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 12px 14px 12px 44px; border: 2px solid var(--sp-line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.sp-choice > span::before { content: ""; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid #9AA2A9; border-radius: 50%; background: #fff; }
.sp-choice strong { font-size: 15.5px; color: #000; }
.sp-choice small { font-size: 13px; font-weight: 500; color: var(--sp-muted); }
.sp-choice input:checked + span { border-color: #000; background: var(--sp-yellow-lt); }
.sp-choice input:checked + span::before { border-color: #000; box-shadow: inset 0 0 0 4px #fff; background: #000; }
.sp-choice input:focus-visible + span { outline: 3px solid #1D5FA8; outline-offset: 2px; }
.sp-reg__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sp-reg__company { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.sp-reg__company[hidden] { display: none; }
.sp-field { margin: 0 0 14px; }
.sp-field__hint { display: block; margin-top: 6px; font-size: 13.5px; color: var(--sp-muted); }
.sp-auth .woocommerce-privacy-policy-text { margin: 4px 0 16px; font-size: 13.5px; line-height: 1.5; color: var(--sp-muted); }
.sp-auth .woocommerce-privacy-policy-text p { margin: 0; }
.sp-auth .woocommerce-privacy-policy-text a { color: #000; }
/* show / hide password (button added by WooCommerce) */
.sp-theme .password-input { position: relative; display: block; }
.sp-theme .password-input .input-text { padding-right: 52px; }
.sp-theme .show-password-input { position: absolute; top: 0; right: 0; width: 48px; height: 100%; min-height: 46px; border: 0; background: transparent; cursor: pointer; color: var(--sp-muted); }
.sp-theme .show-password-input:focus-visible { outline: 2px solid #000; outline-offset: -4px; border-radius: 8px; }

/* ───────── Customer area (logged in) ───────── */
.sp-theme.woocommerce-account.logged-in .sp-content > .woocommerce { grid-template-columns: 270px minmax(0, 1fr); gap: 36px; align-items: start; }
.sp-acc-nav { position: sticky; top: 140px; padding: 10px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-lg); background: #fff; }
.sp-acc-nav__who { display: flex; align-items: center; gap: 12px; padding: 12px 10px 16px; margin-bottom: 8px; border-bottom: 1px solid var(--sp-line); }
.sp-acc-nav__avatar { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sp-yellow); color: #000; font-weight: 800; font-size: 17px; }
.sp-acc-nav__id { min-width: 0; display: grid; }
.sp-acc-nav__id strong { font-size: 16px; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-acc-nav__id small { font-size: 13px; color: var(--sp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-theme .sp-acc-nav a { display: flex !important; align-items: center; gap: 12px; min-height: 46px; padding: 10px 12px !important; }
.sp-theme .sp-acc-nav a svg { flex: none; color: var(--sp-muted); }
.sp-theme .sp-acc-nav .is-active a svg { color: #000; }
.sp-theme .sp-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--sp-line); }
.sp-theme .sp-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--sp-red); }
.sp-theme .sp-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout a svg { color: var(--sp-red); }
.sp-theme .woocommerce-MyAccount-content { min-width: 0; }
.sp-theme .woocommerce-MyAccount-content > h2, .sp-theme .woocommerce-MyAccount-content h2 { font-size: 22px; }
.sp-account-intro { margin: 0 0 16px; color: var(--sp-muted); }
.sp-muted { color: var(--sp-muted); }

/* dashboard */
.sp-dash { display: grid; gap: 22px; }
.sp-dash__welcome { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--sp-r); background: #E8F5EE; border-left: 4px solid var(--sp-green); color: #14432C; }
.sp-dash__welcome svg { flex: none; color: var(--sp-green); margin-top: 2px; }
.sp-dash__welcome p { margin: 2px 0 0; font-size: 15px; }
.sp-dash__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.sp-dash__hello { margin: 0; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: #000; }
.sp-dash__hello strong { font-weight: 750; }
.sp-dash__meta { margin: 6px 0 0; color: var(--sp-muted); font-size: 15px; }
.sp-dash__logout { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--sp-muted); text-decoration: none; }
.sp-dash__logout:hover { color: var(--sp-red); }
.sp-dash__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-tile { position: relative; display: grid; gap: 2px; padding: 18px 18px 16px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); background: #fff; color: #000; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s var(--sp-ease); }
.sp-tile:hover { border-color: #000; box-shadow: 0 14px 28px -22px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.sp-tile__icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: var(--sp-yellow-lt); color: #000; }
.sp-tile__big { font-size: 26px; font-weight: 800; line-height: 1.1; }
.sp-tile__label { font-size: 14px; color: var(--sp-muted); }
.sp-dash__todo { padding: 14px 18px; border-radius: var(--sp-r); background: var(--sp-yellow-lt); border: 1px solid #F3D57A; }
.sp-dash__todo p { margin: 0; }
.sp-dash__todo a { font-weight: 700; color: #000; }
.sp-dash__block { padding: 22px; border: 1px solid var(--sp-line); border-radius: var(--sp-r-lg); background: #fff; }
.sp-dash__block h2 { margin: 0 0 14px; font-size: 20px !important; }
.sp-dash__block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.sp-dash__block-head a { font-weight: 600; color: #1D5FA8; }
.sp-dash__orders { list-style: none; margin: 0; padding: 0; }
.sp-dash__orders li + li { border-top: 1px solid var(--sp-line); }
.sp-dash__orders a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto; gap: 8px 16px; align-items: center; min-height: 56px; padding: 8px 4px; color: inherit; text-decoration: none; }
.sp-dash__orders a:hover .sp-dash__onum { text-decoration: underline; }
.sp-dash__onum { font-weight: 700; color: #000; }
.sp-dash__odate { color: var(--sp-muted); font-size: 14.5px; }
.sp-dash__ototal { font-weight: 700; text-align: right; color: #000; }
.sp-status { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--sp-surface); color: #3A4148; white-space: nowrap; }
.sp-status--processing, .sp-status--on-hold, .sp-status--pending { background: var(--sp-yellow-lt); color: #5C4300; }
.sp-status--completed { background: #E8F5EE; color: #14623C; }
.sp-status--cancelled, .sp-status--failed, .sp-status--refunded { background: #FCEDEE; color: #8E1E22; }
.sp-dash__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-quick { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px; border-radius: var(--sp-r); background: var(--sp-surface); color: #000; text-decoration: none; transition: background .15s; }
.sp-quick:hover { background: var(--sp-yellow-lt); }
.sp-quick svg { flex: none; }
.sp-quick strong { display: block; font-size: 15.5px; }
.sp-quick small { display: block; font-size: 13.5px; color: var(--sp-muted); }
.sp-quick--wa svg { color: var(--sp-green); }
.sp-empty { padding: 22px; border: 1px dashed #C9CED3; border-radius: var(--sp-r); background: #FAFAF8; text-align: center; }
.sp-empty p { margin: 0 0 6px; }
.sp-empty__title { font-weight: 700; font-size: 18px; color: #000; }
.sp-empty .sp-auth__btns { justify-content: center; }
.sp-quotes-table td small { font-size: 13px; }

/* profile */
.sp-theme .woocommerce-EditAccountForm { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; max-width: 760px; }
.sp-theme .woocommerce-EditAccountForm > *, .sp-theme .woocommerce-EditAccountForm fieldset { grid-column: 1 / -1; }
.sp-theme .woocommerce-EditAccountForm > .form-row-first { grid-column: 1; }
.sp-theme .woocommerce-EditAccountForm > .form-row-last { grid-column: 2; }
.sp-theme .woocommerce-EditAccountForm .form-row { width: auto !important; float: none !important; margin: 0 0 14px; }
.sp-theme .woocommerce-EditAccountForm .clear { display: none; }
.sp-theme .woocommerce-EditAccountForm fieldset { margin: 10px 0 14px; padding: 18px 18px 4px; border: 1px solid var(--sp-line); border-radius: var(--sp-r); }
.sp-theme .woocommerce-EditAccountForm legend { padding: 0 6px; font-weight: 700; font-size: 16px; color: #000; }
.sp-profile-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.sp-profile-extra legend { grid-column: 1 / -1; }
.sp-theme .woocommerce-EditAccountForm button[name="save_account_details"] { min-height: 52px; padding: 0 28px; border-radius: 10px; background: #000 !important; color: #fff !important; font-weight: 700; }
.sp-theme #account_display_name_description { display: block; margin-top: 6px; font-size: 13.5px; color: var(--sp-muted); }
.sp-profile-danger { max-width: 760px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--sp-line); }
.sp-profile-danger h2 { font-size: 20px !important; margin: 0 0 8px; }
.sp-profile-danger p { color: var(--sp-muted); font-size: 15px; }
.sp-profile-danger__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-btn--ghost-red { border-color: #E3A9AB; color: var(--sp-red); background: #fff; }
.sp-btn--ghost-red:hover { background: var(--sp-red); border-color: var(--sp-red); color: #fff; }

@media (max-width: 1120px) {
  .sp-theme.woocommerce-account.logged-in .sp-content > .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sp-acc-nav { position: static; }
  .sp-acc-nav ul { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
  .sp-dash__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sp-auth, .sp-auth--login { grid-template-columns: minmax(0, 1fr); }
  .sp-auth__side { position: static; }
}
@media (max-width: 640px) {
  .sp-reg__grid, .sp-reg__company, .sp-profile-extra, .sp-dash__actions { grid-template-columns: minmax(0, 1fr); }
  .sp-reg__type { grid-template-columns: 1fr 1fr; }
  .sp-choice > span { padding-left: 40px; min-height: 56px; justify-content: center; }
  .sp-choice small { display: none; }
  .sp-auth__title { font-size: 22px; }
  .sp-theme .woocommerce-EditAccountForm { grid-template-columns: minmax(0, 1fr); }
  .sp-theme .woocommerce-EditAccountForm > .form-row-first, .sp-theme .woocommerce-EditAccountForm > .form-row-last { grid-column: 1; }
  .sp-acc-nav { padding: 8px; }
  .sp-acc-nav__who { padding: 6px 6px 10px; margin-bottom: 8px; }
  .sp-acc-nav__avatar { width: 38px; height: 38px; font-size: 15px; }
  .sp-theme .sp-acc-nav ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sp-theme .sp-acc-nav ul::-webkit-scrollbar { display: none; }
  .sp-acc-nav li { flex: none; }
  .sp-theme .sp-acc-nav a { white-space: nowrap; gap: 8px; padding: 8px 12px !important; background: var(--sp-surface); }
  .sp-theme .sp-acc-nav .woocommerce-MyAccount-navigation-link--customer-logout { margin: 0; padding: 0; border: 0; }
  .sp-dash__logout { display: none; }
  .sp-tile { padding: 14px; }
  .sp-tile__icon { width: 36px; height: 36px; margin-bottom: 6px; }
  .sp-tile__big { font-size: 21px; }
  .sp-tile__label { font-size: 13px; }
  .sp-dash__orders a { grid-template-columns: minmax(0, 1fr) auto; }
  .sp-dash__odate { grid-column: 1; }
  .sp-dash__block { padding: 16px; }
}

/* ───────── Plugin product extras (stock, dual price, highlights, CTA) ───────── */
.sp-theme .spmm-product-price-wrap { margin: 6px 0 4px; }
.sp-theme .spmm-product-quote-btn { border-radius: 10px !important; }
.sp-theme .spmm-product-highlights { border-radius: var(--sp-r) !important; }
/* ───────── Readability of the plugin's product blocks (UI audit) ─────────
   The brand yellow is too light for text on white: HT amounts and tags go dark. */
.sp-theme .spmm-price-col--ht .woocommerce-Price-amount,
.sp-theme .spmm-price-col--ht bdi,
.sp-theme .spmm-price-col--ht .woocommerce-Price-currencySymbol { color: #000 !important; }
.sp-theme .spmm-price-pill--ht { background: var(--sp-yellow-lt) !important; color: #5C4300 !important; font-size: 11.5px !important; }
.sp-theme .spmm-price-pill--ttc { font-size: 11.5px !important; }
.sp-theme .spmm-price-label-text { font-size: 12px !important; }
.sp-theme .spmm-price-col--ttc .spmm-price-label-text { color: rgba(255, 255, 255, .78) !important; }
.sp-theme .spmm-stock-badge, .sp-theme .spmm-product-sku-badge, .sp-theme .spmm-product-sku-badge strong { font-size: 12px !important; }
.sp-theme .spmm-product-hl-item strong { font-size: 12px !important; letter-spacing: .02em !important; }
.sp-theme .spmm-product-hl-item span { font-size: 12px !important; }
.sp-theme .product_meta .posted_in a, .sp-theme .product_meta .tagged_as a {
  display: inline-block; min-height: 30px; padding: 5px 12px !important; border-radius: 999px !important;
  background: var(--sp-surface) !important; color: #000 !important; font-size: 13px !important; line-height: 20px !important;
  text-transform: none !important; letter-spacing: 0 !important; text-decoration: none;
}
.sp-theme .product_meta .posted_in a:hover { background: var(--sp-yellow-lt) !important; }
.sp-theme .wc-block-components-product-details__name, .sp-theme .wc-block-components-product-details__value { font-size: 12.5px; }
.sp-theme table.variations th label, .sp-theme table.variations label { font-size: 13px !important; letter-spacing: .01em !important; color: #000 !important; }
.sp-theme .spmm-tva-note, .sp-theme .spmm-product-share-label, .sp-theme .product_meta .sku, .sp-theme .product_meta { font-size: 12.5px !important; }
@media (max-width: 640px) {
  /* Cart block: the 3-column table was 35px wider than a 375px phone */
  .sp-theme table.wc-block-cart-items { width: 100% !important; table-layout: fixed; }
  .sp-theme .wc-block-cart-items .wc-block-cart-item__image { width: 64px !important; padding-right: 10px !important; }
  .sp-theme .wc-block-cart-items .wc-block-cart-item__product { min-width: 0; }
  .sp-theme .wc-block-cart-items .wc-block-cart-item__total { width: 76px !important; padding-right: 0 !important; }
  .sp-theme .wc-block-cart-items td, .sp-theme .wc-block-cart-items th { padding-left: 0 !important; }
  .sp-theme .wc-block-components-product-name, .sp-theme .wc-block-components-product-metadata { overflow-wrap: anywhere; }
  .sp-theme .wc-block-cart { padding: 0 !important; }
}

/* Products on quote: hide the empty price block and sticky cart bar, show the quote box */
.sp-quote-only .spmm-product-price-wrap, .sp-quote-only .spmm-sticky-atc, .sp-quote-only .spmm-stock-badge, .sp-quote-only .summary .price:empty { display: none !important; }
.sp-quote-box { margin: 18px 0; padding: 22px; border-radius: var(--sp-r); background: var(--sp-yellow-lt); border: 1px solid #F3D57A; display: grid; gap: 10px; }
.sp-quote-box__title { font-size: 19px; font-weight: 700; color: #000; }
.sp-quote-box__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Plugin sticky add-to-cart bar (z 99998) sat above the cart drawer (z 99990) and hid its checkout button. */
.sp-theme .spmm-sticky-atc { z-index: 99980 !important; }
#spmm-cart-drawer { z-index: 100000 !important; }
.sp-theme .spmm-product-trust { display: none !important; } /* duplicates the highlights strip above it */
.sp-theme .spmm-product-rating--none i { color: #D6DADE !important; }
.sp-theme .spmm-product-rating--none span { color: var(--sp-muted); }

/* ───────── Responsive ───────── */
@media (max-width: 1120px) {
  .sp-theme ul.products, .sp-shop ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .sp-shop__layout { grid-template-columns: minmax(0, 1fr); }
  .sp-toolbar__filter { display: inline-flex !important; }
  .sp-shop__side { position: fixed; inset: 0; z-index: 210; top: 0 !important; display: none; background: rgba(15, 18, 21, .5); }
  .sp-shop__side.is-open { display: block; }
  .sp-shop__side .sp-side { position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: #fff; padding: 24px 20px; overflow-y: auto; }
  .sp-theme .sp-product-top { grid-template-columns: minmax(0, 1fr); }
  /* !important: the mega-menu plugin forces .summary into column 2, which squeezed the photo into a 40 px column */
  body.sp-theme .sp-product-top > .summary.entry-summary, body.sp-theme .sp-product-top > .woocommerce-product-gallery.images { grid-column: 1 !important; position: static; }
  body.sp-theme .sp-product-top > .woocommerce-product-gallery.images { max-width: 640px !important; margin: 0 auto !important; }
  .sp-theme form.checkout { grid-template-columns: minmax(0, 1fr); }
  .sp-theme form.checkout #order_review_heading, .sp-theme form.checkout #order_review { grid-column: 1; position: static; }
  .sp-theme.woocommerce-account .sp-content > .woocommerce { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .sp-theme ul.products, .sp-shop ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .sp-card__media img { inset: 12px; width: calc(100% - 24px) !important; height: calc(100% - 24px) !important; }
  .sp-card__body { padding: 10px 12px 12px; }
  .sp-card__foot { flex-direction: column; align-items: stretch; }
  .sp-card__cta { text-align: center; }
  .sp-toolbar .woocommerce-ordering { margin-left: 0; width: 100%; }
  .sp-toolbar .woocommerce-ordering select { width: 100%; }
  .sp-theme .woocommerce-product-gallery { padding: 12px; }
  .sp-theme .woocommerce-billing-fields__field-wrapper, .sp-theme .woocommerce-shipping-fields__field-wrapper, .sp-theme .u-columns.col2-set { grid-template-columns: 1fr; }
  .sp-theme table.shop_table_responsive thead { display: none; }
  .sp-theme table.shop_table_responsive tr { display: block; border-top: 1px solid var(--sp-line); }
  .sp-theme table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 8px 16px; text-align: right; }
  .sp-theme table.shop_table_responsive td::before { content: attr(data-title); font-weight: 600; color: #000; text-align: left; }
  .sp-theme table.shop_table_responsive td.product-remove::before, .sp-theme table.shop_table_responsive td.product-thumbnail::before, .sp-theme table.shop_table_responsive td.actions::before { display: none; }
  .sp-theme .coupon { display: flex; width: 100%; }
  .sp-theme .coupon .input-text { width: auto; flex: 1; }
}


/* Personalisation (logo) offer under add-to-cart on priced EPI products */
.sp-perso { margin: 18px 0 6px; padding: 14px 16px; border: 1px dashed #C9CED3; border-radius: 12px; background: #FAFAF8; font-size: 15px; }
.sp-perso p { margin: 0; }
.sp-perso__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px !important; }
.sp-perso__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-weight: 600; color: var(--sp-black); text-decoration: underline; text-underline-offset: 3px; }
.sp-perso .sp-btn, .sp-perso .sp-btn:visited { color: #fff !important; text-decoration: none; }

/* Content link colours must not override buttons in the customer area */
.woocommerce-MyAccount-content a.sp-btn--dark, .sp-auth a.sp-btn--dark { color: #fff !important; }
.woocommerce-MyAccount-content a.sp-btn--yellow, .sp-auth a.sp-btn--yellow, .woocommerce-MyAccount-content a.sp-btn:not(.sp-btn--dark), .sp-auth a.sp-btn:not(.sp-btn--dark) { color: #000 !important; text-decoration: none; }
.woocommerce-MyAccount-content a.sp-btn:not(.sp-btn--dark):not(.sp-btn--yellow):hover, .sp-auth a.sp-btn:not(.sp-btn--dark):not(.sp-btn--yellow):hover { color: #fff !important; }

/* ── Filter bar ───────────────────────────── */
.sp-fbar { margin-bottom: 22px; }
.sp-fbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--sp-line); border-radius: 16px; background: #fff; }
.sp-fbar__btn { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid #C9CED3; border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sp-dd { position: relative; }
.sp-dd > summary { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px 0 16px; border: 1px solid #C9CED3; border-radius: 999px; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; user-select: none; white-space: nowrap; }
.sp-dd > summary::-webkit-details-marker { display: none; }
.sp-dd > summary:hover { border-color: #000; }
.sp-dd > summary:focus-visible { outline: 3px solid var(--sp-yellow); outline-offset: 2px; }
.sp-dd > summary b { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #000; color: var(--sp-yellow); font-size: 12px; }
.sp-dd > summary svg { transition: transform .2s; }
.sp-dd[open] > summary { border-color: #000; background: var(--sp-surface); }
.sp-dd[open] > summary svg { transform: rotate(180deg); }
.sp-dd.is-active > summary { border-color: #000; }
.sp-dd__panel { position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; min-width: 260px; max-height: min(60vh, 420px); overflow-y: auto; padding: 10px; border: 1px solid var(--sp-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); }
.sp-dd__title { display: none; margin: 4px 8px 10px; font-size: 17px; font-weight: 700; color: #000; }
.sp-dd__panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.sp-opt { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--sp-text); font-size: 14.5px; line-height: 1.3; }
.sp-opt:hover { background: var(--sp-surface); }
.sp-opt__box { flex: none; width: 20px; height: 20px; border: 2px solid #9AA2A9; border-radius: 6px; background: #fff center / 14px no-repeat; }
.sp-opt--radio .sp-opt__box { border-radius: 50%; }
.sp-opt.is-on { color: #000; font-weight: 600; }
.sp-opt.is-on .sp-opt__box { border-color: #000; background-color: #000; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFC928' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.sp-opt--radio.is-on .sp-opt__box { background-image: none; box-shadow: inset 0 0 0 4px #fff; }
.sp-opt__txt { flex: 1; }
.sp-opt small { color: var(--sp-muted); font-size: 12.5px; font-weight: 500; }
.sp-fbar__sort { margin-left: auto; }
.sp-fbar__sort .woocommerce-ordering { margin: 0; }
.sp-fbar__sort select { border-radius: 999px; }
.sp-fbar__state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; }
.sp-fbar__state .woocommerce-result-count { margin: 0; color: var(--sp-muted); font-size: 14px; }
.sp-fchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sp-fchips a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px 0 14px; border-radius: 999px; background: var(--sp-yellow-lt); color: #000; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.sp-fchips a:hover { background: var(--sp-yellow); }
.sp-fchips .sp-fchips__all { padding: 0 6px; background: none; text-decoration: underline; font-weight: 500; }
@media (max-width: 1024px) {
  .sp-fbar__btn { display: inline-flex; }
}
@media (max-width: 640px) {
  .sp-fbar__row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 10px 16px; border: 0; border-radius: 0; border-block: 1px solid var(--sp-line); scrollbar-width: none; }
  .sp-fbar__row::-webkit-scrollbar { display: none; }
  .sp-dd, .sp-fbar__btn { flex: none; }
  .sp-dd[open]::before { content: ""; position: fixed; inset: 0; z-index: 205; background: rgba(15, 18, 21, .5); }
  .sp-dd__panel { position: fixed; z-index: 206; top: auto; left: 0; right: 0; bottom: 0; min-width: 0; max-height: 75vh; padding: 16px 16px max(20px, env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .sp-dd__title { display: block; }
  .sp-opt { padding: 13px 10px; font-size: 16px; }
  .sp-fbar__sort { flex: none; margin-left: 0; }
  .sp-fbar__sort select { width: auto; }
  .sp-toolbar .woocommerce-ordering select { width: auto; }
}
html.sp-dd-open { overflow: hidden; }
@media (min-width: 641px) { html.sp-dd-open { overflow: visible; } }

/* Code printed on the sign (product page) */
.sp-code { display: inline-flex; align-items: center; gap: 6px; margin: 0 8px 8px 0; padding: 4px 10px; border-radius: 8px; background: var(--sp-yellow-lt); font-size: 13px; color: #3A4148; }
.sp-code b { color: #000; letter-spacing: .03em; }

/* Cart: quote / purchase order PDF */
.sp-qpdf { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px 40px; margin: 40px 0 8px; padding: 28px; border: 1px solid var(--sp-line); border-radius: 20px; background: var(--sp-surface); }
.sp-qpdf h2 { font-size: 22px; font-weight: 750; line-height: 1.2; color: #000; }
.sp-qpdf__intro p { margin-top: 10px; color: var(--sp-text); font-size: 15px; line-height: 1.55; }
.sp-qpdf__form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sp-qpdf__form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 600; color: #000; }
.sp-qpdf__form input { min-height: 44px; padding: 8px 12px; border: 1px solid #C9CED3; border-radius: 10px; background: #fff; font: inherit; font-size: 15px; font-weight: 400; }
.sp-qpdf__wide, .sp-qpdf__btns { grid-column: 1 / -1; }
.sp-qpdf__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.sp-qpdf .sp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 900px) { .sp-qpdf { grid-template-columns: minmax(0, 1fr); padding: 20px; } }
@media (max-width: 560px) { .sp-qpdf__form { grid-template-columns: minmax(0, 1fr); } .sp-qpdf__btns .sp-btn { flex: 1 1 100%; } }
/* Product page: « Quel support choisir ? » / « Comment fixer mon panneau ? » */
.sp-pose-links { margin: 16px 0 4px; }
.sp-pose-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-pose-links a { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--sp-line, #E3E5E8); border-radius: 12px; background: #fff; color: inherit; text-decoration: none; position: relative; transition: border-color .2s, box-shadow .2s; }
.sp-pose-links a::before { content: ""; position: absolute; left: 14px; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: #F9A600 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 4l4 4-4 4' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.sp-pose-links a:hover, .sp-pose-links a:focus-visible { border-color: #F9A600; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.sp-pose-links strong { font-size: 15px; font-weight: 700; }
.sp-pose-links span { font-size: 13px; color: var(--sp-muted, #5B6470); line-height: 1.35; }
@media (max-width: 480px) { .sp-pose-links ul { grid-template-columns: minmax(0, 1fr); } }
/* Kits prêts à commander: contents on the product page */
.sp-kit { margin: 14px 0 18px; padding: 16px; border: 1px solid var(--sp-line, #E3E5E8); border-radius: 14px; background: #FAFAF8; }
.sp-kit__title { margin: 0 0 10px; font-weight: 750; font-size: 16px; }
.sp-kit__title span { font-weight: 500; font-size: 13px; color: var(--sp-muted, #5B6470); margin-left: 6px; }
.sp-kit__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sp-kit__list a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: #fff; color: inherit; text-decoration: none; border: 1px solid transparent; }
.sp-kit__list a:hover { border-color: #F9A600; }
.sp-kit__list img { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; }
.sp-kit__name { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.3; }
.sp-kit__name small { display: block; font-size: 11.5px; color: var(--sp-muted, #5B6470); letter-spacing: .02em; }
.sp-kit__qty { font-weight: 750; font-size: 14px; white-space: nowrap; }
.sp-kit__saving { margin: 12px 0 0; font-size: 15px; }
.sp-kit__saving s { color: var(--sp-muted, #5B6470); }
.sp-kit__saving strong { color: #1E7A3C; }
.sp-kit__note { margin: 6px 0 0; font-size: 13px; color: var(--sp-muted, #5B6470); }
@media (max-width: 560px) { .sp-kit__list { grid-template-columns: minmax(0, 1fr); } }
