/*
 * Sewandgrow — Product Page Phase 1 styles (responsive)
 *
 * All rules scoped under body.single-product.sng-compact-addons so they
 * never leak outside machine product pages. Mobile-first; tablet picks
 * up at 769px, desktop at 1024px.
 *
 * Z-INDEX STACK (Sew & Grow product page):
 *   megamenu mobile overlay : 10000000000   (always wins — menu must overlay everything)
 *   .sng-fab-wa             : 9999          (pill above sticky bar)
 *   .sng-sticky-bar         : 9998          (above page content, below pill)
 *   Avada sliding bar       : 99999         (no overlap — different region)
 *
 * Colour reference (from approved mockups):
 *   coral       #ee8585   coral-dark  #eb787a   coral-soft #fde6e6
 *   rose        #dd9492   paper       #faf7f3   taupe      #d1cac4
 *   grey        #878685   dark        #4a4a4a   charcoal   #3d3d3d
 *   border      #ece8e4
 */

/* ============================================================
   0. Page-level overrides on machine product pages
   ------------------------------------------------------------
   These rules tune Avada/WooCommerce defaults that conflict
   with the mockup hierarchy. All scoped under sng-compact-addons.
   ============================================================ */

/* Re-balance price — Avada's default is 16px / weight 400 which
   loses to any H3 in the short description. Push price back to
   the visual top of the buy column. */
body.single-product.sng-compact-addons .summary .price {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #3d3d3d;
    margin: 6px 0 16px;
}
body.single-product.sng-compact-addons .summary .price .woocommerce-Price-amount,
body.single-product.sng-compact-addons .summary .price .amount,
body.single-product.sng-compact-addons .summary .price bdi,
body.single-product.sng-compact-addons .summary .price .woocommerce-Price-currencySymbol {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    /* Explicit charcoal instead of inherit — Avada injects per-span
       colour rules on `.amount` / `bdi` that beat the inherit cascade. */
    color: #3d3d3d;
}
@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .summary .price {
        font-size: 38px;
    }
}

/* Demote the H3 inside hand-pasted short descriptions
   (e.g. "FREE Shipping On All Orders!") so it reads as a small
   helper line below the price — matches the mockup's VAT helper
   slot ("incl. VAT · FREE express delivery"). */
body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description h3 {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 10px;
    color: #878685;
    letter-spacing: 0;
}
body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description h3 strong {
    font-weight: 500;
    color: #878685;
}

/* Brochure link inside the short description — style text-only
   anchors as a pill chip matching `.sng-quick-link` (the future
   _sng_brochure_url pill). The `:not(:has(*))` filter restricts the
   rule to anchors whose only child is text, so we don't pillify
   image/picture wrappers that products sometimes nest in the short
   description (e.g. FS60X has both a text brochure link AND an
   image-wrapper anchor pointing at the same PDF). */
body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description a:not(:has(*)) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    margin: 4px 0;
    background: #fff;
    border: 1px solid #ece8e4;
    border-radius: 99px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #3d3d3d;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description a:not(:has(*))::before {
    content: '\1F4C4'; /* 📄 page-facing-up */
    font-size: 14px;
    line-height: 1;
}
body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description a:not(:has(*)):hover,
body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description a:not(:has(*)):focus-visible {
    border-color: #ee8585;
    color: #ee8585;
    text-decoration: none;
}
@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description a:not(:has(*)) {
        font-size: 12.5px;
        padding: 8px 14px;
    }
}

/* ============================================================
   1. Certified Brother Dealer card
   ============================================================ */
body.single-product.sng-compact-addons .sng-brother-banner {
    margin: 0 0 18px;
    padding: 14px 16px;
    background: #fff;
    border: 1.5px solid #ee8585;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(238, 133, 133, 0.12);
}
body.single-product.sng-compact-addons .sng-brother-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px dashed #d1cac4;
    margin-bottom: 11px;
}
body.single-product.sng-compact-addons .sng-brother-seal {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ee8585 0%, #dd9492 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(238, 133, 133, 0.35);
    position: relative;
}
body.single-product.sng-compact-addons .sng-brother-seal::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1.5px dashed rgba(238, 133, 133, 0.4);
}
body.single-product.sng-compact-addons .sng-brother-titles {
    flex: 1;
    min-width: 0;
}
body.single-product.sng-compact-addons .sng-brother-title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #3d3d3d;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
body.single-product.sng-compact-addons .sng-brother-title em {
    font-style: normal;
    color: #ee8585;
}
body.single-product.sng-compact-addons .sng-brother-subtitle {
    font-size: 11px;
    color: #878685;
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
body.single-product.sng-compact-addons .sng-brother-explain {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.55;
    color: #4a4a4a;
}
body.single-product.sng-compact-addons .sng-brother-explain strong {
    color: #3d3d3d;
    font-weight: 700;
}
body.single-product.sng-compact-addons .sng-brother-explain em {
    font-style: normal;
    color: #ee8585;
    font-weight: 700;
}

/* Desktop scales the seal up a touch and tightens leading. */
@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .sng-brother-banner {
        padding: 16px 18px;
    }
    body.single-product.sng-compact-addons .sng-brother-seal {
        width: 46px;
        height: 46px;
    }
    body.single-product.sng-compact-addons .sng-brother-title {
        font-size: 15px;
    }
    body.single-product.sng-compact-addons .sng-brother-explain {
        font-size: 12.5px;
    }
}

/* ============================================================
   2. Brochure / quick-actions row
   ============================================================ */
body.single-product.sng-compact-addons .sng-quick-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 14px;
    flex-wrap: wrap;
}
body.single-product.sng-compact-addons .sng-quick-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #ece8e4;
    border-radius: 99px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    color: #3d3d3d;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}
body.single-product.sng-compact-addons .sng-quick-link:hover,
body.single-product.sng-compact-addons .sng-quick-link:focus-visible {
    border-color: #ee8585;
    color: #ee8585;
}
body.single-product.sng-compact-addons .sng-qi {
    font-size: 14px;
    line-height: 1;
}
@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .sng-quick-link {
        font-size: 12.5px;
        padding: 8px 14px;
    }
}

/* ============================================================
   2b. Payment options card (PayJustNow + Payflex installment maths)
   Phase 1.1 — replaces the native PJN + Payflex product widgets.
   Logo background colours are each provider's own brand identity
   (PJN navy, Payflex purple), not Sew & Grow accents.
   ============================================================ */
body.single-product.sng-compact-addons .sng-pay-options {
    background: #faf7f3;
    border: 1px solid #ece8e4;
    border-radius: 12px;
    padding: 12px 14px;
    margin: 8px 0 16px;
    font-family: 'Poppins', system-ui, sans-serif;
}
body.single-product.sng-compact-addons .sng-pay-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}
body.single-product.sng-compact-addons .sng-pay-row + .sng-pay-row {
    border-top: 1px dashed #d1cac4;
    padding-top: 10px;
    margin-top: 4px;
}
body.single-product.sng-compact-addons .sng-pay-logo {
    flex-shrink: 0;
    width: 48px;
    height: 24px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1;
}
body.single-product.sng-compact-addons .sng-pay-logo--payjust {
    background: #1a1a2e;
}
body.single-product.sng-compact-addons .sng-pay-logo--payflex {
    background: #b794f4;
}
body.single-product.sng-compact-addons .sng-pay-text {
    font-size: 12px;
    line-height: 1.4;
    color: #4a4a4a;
    flex: 1;
    min-width: 0;
}
body.single-product.sng-compact-addons .sng-pay-text strong {
    color: #3d3d3d;
    font-weight: 700;
}
/* WooCommerce wraps prices in nested spans — keep them inline with
   the surrounding strong styling so the installment amount reads as
   one piece of text, not a re-styled inline price block. */
body.single-product.sng-compact-addons .sng-pay-text strong .woocommerce-Price-amount,
body.single-product.sng-compact-addons .sng-pay-text strong bdi,
body.single-product.sng-compact-addons .sng-pay-text strong .woocommerce-Price-currencySymbol {
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
}
body.single-product.sng-compact-addons .sng-pay-link {
    font-size: 11px;
    color: #ee8585;
    font-weight: 600;
    text-decoration: underline;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .sng-pay-options {
        padding: 14px 16px;
        margin-bottom: 18px;
    }
    body.single-product.sng-compact-addons .sng-pay-row {
        gap: 12px;
        padding: 7px 0;
    }
    body.single-product.sng-compact-addons .sng-pay-row + .sng-pay-row {
        padding-top: 11px;
    }
    body.single-product.sng-compact-addons .sng-pay-logo {
        width: 52px;
        height: 26px;
        font-size: 10px;
    }
    body.single-product.sng-compact-addons .sng-pay-text {
        font-size: 13px;
    }
    body.single-product.sng-compact-addons .sng-pay-link {
        font-size: 12px;
    }
}

/* ============================================================
   3. Trust badge strip — REMOVED 2026-06-01.
   Replaced by the standalone branded trust-sticker block
   (assets/sng-trust-stickers/trust-stickers.css). The .sng-trust-strip
   markup was removed from inc/sng-product-page.php in the same change.
   ============================================================ */

/* ============================================================
   4. Sticky bottom add-to-cart bar (mobile only)
   Default: hidden on every viewport. Shown only at ≤768px.
   ============================================================ */
body.single-product.sng-compact-addons .sng-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    body.single-product.sng-compact-addons {
        /* Reserve room so page content isn't hidden behind the bar. */
        padding-bottom: 80px;
    }
    body.single-product.sng-compact-addons .sng-sticky-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9998;
        padding: 10px 14px;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid #ece8e4;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.06);
        font-family: 'Poppins', system-ui, sans-serif;
        transition: opacity 0.2s ease;
    }
    body.single-product.sng-compact-addons .sng-sticky-info {
        flex: 1;
        min-width: 0;
    }
    body.single-product.sng-compact-addons .sng-sticky-price {
        font-size: 17px;
        font-weight: 800;
        color: #3d3d3d;
        letter-spacing: -0.02em;
        line-height: 1.1;
    }
    /* WC wraps price-html in <span class="woocommerce-Price-amount amount">.
       Keep inheritance so range "from … to …" rendering stays compact. */
    body.single-product.sng-compact-addons .sng-sticky-price .woocommerce-Price-amount,
    body.single-product.sng-compact-addons .sng-sticky-price bdi {
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
    }
    body.single-product.sng-compact-addons .sng-sticky-label {
        font-size: 10px;
        color: #878685;
        margin-top: 1px;
    }
    body.single-product.sng-compact-addons .sng-sticky-cta {
        flex-shrink: 0;
        padding: 14px 22px;
        background: #ee8585;
        color: #fff;
        border: none;
        border-radius: 99px;
        font-family: inherit;
        font-weight: 700;
        font-size: 12px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        box-shadow: 0 8px 32px rgba(238, 133, 133, 0.15);
        cursor: pointer;
        transition: background-color 0.15s ease, transform 0.1s ease;
    }
    body.single-product.sng-compact-addons .sng-sticky-cta:hover {
        background: #eb787a;
    }
    body.single-product.sng-compact-addons .sng-sticky-cta:active {
        transform: scale(0.96);
    }
}

/* ============================================================
   5. Floating WhatsApp pill (all viewports)
   Sized smaller on desktop, larger on mobile (above sticky bar).
   ============================================================ */
body.single-product.sng-compact-addons .sng-fab-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 18px 13px 14px;
    background: #25d366;
    color: #fff;
    border-radius: 99px;
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
body.single-product.sng-compact-addons .sng-fab-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}
body.single-product.sng-compact-addons .sng-fab-wa svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: #fff;
}

@media (max-width: 768px) {
    /* The sticky add-to-cart bar is the primary mobile CTA; the
       floating WhatsApp pill duplicates that surface and competes
       visually. Hide on mobile — desktop keeps the pill. WhatsApp
       contact is still reachable via the sticky-bar add-to-cart
       flow and the header phone numbers. */
    body.single-product.sng-compact-addons .sng-fab-wa {
        display: none;
    }
}

/* ============================================================
   6. Sitewide typography alignment to the brand system
   ------------------------------------------------------------
   Phase 1.1 v3 — overrides Avada's customer-facing chrome on
   machine product pages only. Default font on the WP install
   is Raleway; brand system is Poppins. Default link colour is
   Avada `--link_color` (light blue); brand system is charcoal
   for titles, grey for meta links.
   ============================================================ */

/* 6.0 Base font + body color — cascades to everything inside .summary,
   .woocommerce-Tabs-panel, reviews, related-products text, etc.
   Components scoped under `.sng-*` already set their own Poppins family
   so they're unaffected. */
body.single-product.sng-compact-addons,
body.single-product.sng-compact-addons .summary,
body.single-product.sng-compact-addons .woocommerce-Tabs-panel,
body.single-product.sng-compact-addons .woocommerce-tabs,
body.single-product.sng-compact-addons .related.products,
body.single-product.sng-compact-addons .upsells.products {
    font-family: 'Poppins', system-ui, sans-serif;
}

/* 6.1 Product title — Avada selector
   `.single-product #main .product h1.product_title` is (0,3,3)
   so we chain `#main` to win specificity without !important on
   most properties. Color uses !important because Avada injects
   `color: var(--link_color)` from a separate (0,2,1) rule that
   also targets `.product_title` directly. */
body.single-product.sng-compact-addons #main .product h1.product_title {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    /* Beats `#main .product .product_title { color: var(--link_color) }` (0,2,1) */
    color: #3d3d3d !important;
    margin: 0 0 12px;
}
@media (min-width: 1024px) {
    body.single-product.sng-compact-addons #main .product h1.product_title {
        font-size: 30px;
    }
}

/* 6.2 Reviews link — beats Avada's `body a { color: var(--link_color) }` (0,1,1)
   with chained specificity, plus belt-and-braces underline (Avada hides via
   `text-decoration: none` on links). */
body.single-product.sng-compact-addons .summary .woocommerce-product-rating .woocommerce-review-link {
    font-size: 12px;
    font-weight: 500;
    color: #878685;
    text-decoration: underline;
}
body.single-product.sng-compact-addons .summary .woocommerce-product-rating .woocommerce-review-link:hover {
    color: #ee8585;
}

/* 6.3 Star rating — WC default outputs `<span class="star-rating">` with
   `::before` content `\53\53\53\53\53` colored by `color`. Override colour
   on the wrapper, the ::before, and the inner span fill. */
body.single-product.sng-compact-addons .summary .star-rating,
body.single-product.sng-compact-addons .summary .star-rating::before,
body.single-product.sng-compact-addons .summary .star-rating span,
body.single-product.sng-compact-addons .summary .star-rating span::before {
    color: #f4b942;
}

/* 6.4 Description body text — applies to BOTH the short-description
   paragraphs in the summary column AND the long description tab. Avada
   sets body font Raleway 16/400, line-height 2x — way too loose for the
   tighter brand system. Excludes our scoped components by virtue of NOT
   selecting under `.sng-*`. */
body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description p,
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description p,
body.single-product.sng-compact-addons #tab-description p,
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--additional_information p {
    font-family: 'Poppins', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #4a4a4a;
    line-height: 1.6;
    margin: 0 0 14px;
}
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description p strong,
body.single-product.sng-compact-addons #tab-description p strong {
    color: #3d3d3d;
    font-weight: 700;
}
@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .summary .woocommerce-product-details__short-description p,
    body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description p,
    body.single-product.sng-compact-addons #tab-description p {
        font-size: 15px;
    }
}

/* 6.5 Description tab headings (long-form product blurbs that hand-pasted
   short descriptions inherit from). Tighten weight + tone so they match
   the brand voice. */
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h1,
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h2,
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h3,
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h4 {
    font-family: 'Poppins', system-ui, sans-serif;
    color: #3d3d3d;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 12px;
}

/* 6.6 Hide Avada's back-to-top button on machine product pages — collides
   with sticky-bar ADD TO CART on mobile (z-index 100000 vs 9998) and the
   floating WhatsApp pill on desktop. Sticky bar handles "primary action"
   on mobile; WA pill handles secondary CTA on desktop; no need for a third
   floating control. !important because Avada sets `display:block` inline
   via JS on scroll. */
body.single-product.sng-compact-addons #toTop,
body.single-product.sng-compact-addons .fusion-top-top-link {
    display: none !important;
}

/* 6.7 Desktop WhatsApp pill — shrink to icon-only on desktop to reduce
   the "always covering content" visual weight. Still discoverable, less
   intrusive over description text. (Mobile already hidden in 4. above.) */
@media (min-width: 769px) {
    body.single-product.sng-compact-addons .sng-fab-wa {
        padding: 12px;
        gap: 0;
        font-size: 0; /* hides "WhatsApp" text label */
        line-height: 0;
    }
    body.single-product.sng-compact-addons .sng-fab-wa svg {
        width: 24px;
        height: 24px;
    }
}

/* 6.5b — Heading sizes inside description tab (rule 6.5 set everything except size).
   Avada defaults render H1 at ~40px and H2 at ~32px which is too large inside
   a description tab. These caps keep the visual hierarchy proportional to body text. */
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h1,
body.single-product.sng-compact-addons #tab-description h1 {
    font-size: 22px;
    margin: 0 0 14px;
}
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h2,
body.single-product.sng-compact-addons #tab-description h2 {
    font-size: 18px;
    margin: 16px 0 10px;
}
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h3,
body.single-product.sng-compact-addons #tab-description h3 {
    font-size: 16px;
    margin: 16px 0 8px;
}
body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h4,
body.single-product.sng-compact-addons #tab-description h4 {
    font-size: 14px;
    margin: 14px 0 6px;
}
@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h1,
    body.single-product.sng-compact-addons #tab-description h1 {
        font-size: 24px;
    }
    body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h2,
    body.single-product.sng-compact-addons #tab-description h2 {
        font-size: 20px;
    }
    body.single-product.sng-compact-addons .woocommerce-Tabs-panel--description h3,
    body.single-product.sng-compact-addons #tab-description h3 {
        font-size: 17px;
    }
}

/* ============================================================
   BLOCK 7.0 — WAPF product-options totals card
   ------------------------------------------------------------
   "Product total / Options total / Grand total" (plugin: WooCommerce
   Advanced Product Fields) renders on machine pages with option
   add-ons. Its value spans carry the `price amount` classes and sit
   inside `.summary`, so our headline-price rule
   (`…sng-compact-addons .summary .price`, 30/38px·800) was painting
   them as an oversized heading. We re-skin the block as the same
   paper card used by `.sng-pay-options`.

   Specificity: value selector routes through
   `.wapf--inner > div .wapf-total` = (0,5,2), beating the headline
   rule (0,4,1) WITHOUT touching the real product price. Label
   selector beats WAPF's own `.wapf-product-totals div span:first-child`
   (0,2,2). Values are plain text (no nested woo price markup).
   ============================================================ */

/* Card wrapper */
body.single-product.sng-compact-addons .wapf-product-totals {
    background: #faf7f3;
    border: 1px solid #ece8e4;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 14px 0;
    font-family: 'Poppins', system-ui, sans-serif;
}

/* Kill WAPF's stray inner margin-bottom:20px — card padding controls spacing */
body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner {
    margin: 0;
}

/* Rows: label left, value right (padding:6px 0 overrides WAPF's stray padding-bottom:10px) */
body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

/* Dashed divider between rows — mirrors .sng-pay-row + .sng-pay-row */
body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div + div {
    border-top: 1px dashed #d1cac4;
    padding-top: 10px;
    margin-top: 4px;
}

/* Labels — beats WAPF's own span:first-child {font-weight:700} */
body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div > span:not(.wapf-total) {
    font-size: 14px;
    font-weight: 600;
    color: #878685;
    line-height: 1.4;
}

/* Values — beats headline-price rule; resets its 6px/16px margins + 1.1 line-height */
body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div .wapf-total {
    font-size: 16px;
    font-weight: 700;
    color: #3d3d3d;
    line-height: 1.3;
    margin: 0;
}

/* Grand total — heavier + larger value; label inherits the grey label style above */
body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div .wapf-grand-total {
    font-size: 18px;
    font-weight: 800;
}

@media (min-width: 1024px) {
    body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div {
        padding: 7px 0;
    }
    body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div + div {
        padding-top: 11px;
    }
    body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div .wapf-total {
        font-size: 17px;
    }
    body.single-product.sng-compact-addons .wapf-product-totals .wapf--inner > div .wapf-grand-total {
        font-size: 20px;
    }
}

/* ============================================================
   BLOCK 7.1 — Sticky product gallery (desktop only)
   ------------------------------------------------------------
   Pin the gallery to the top of the viewport on desktop so it
   stays visible while the customer scrolls through buy options
   (price, payments, accessories, totals, add-to-cart). The
   gallery + summary are wrapped in .sng-product-hero-row (see
   sng-product-page.php); display:flow-root makes that wrapper
   contain Avada's existing left-float layout AND establish the
   height the sticky needs — so the gallery RELEASES at the end
   of the buy column (the description tabs sit outside the row).
   flow-root is used (not flex) because flex collapses Avada's
   floated gallery wrapper to 0 width. Mobile + tablet keep
   default scroll behaviour.
   ============================================================ */

/* flow-root applies at ALL widths: the hero-row wrapper must contain Avada's
   floated gallery+summary on every viewport so sections that follow the row
   (value props, videos, future team) sit cleanly below it. (Was previously
   nested in the 1024px block, which left mobile floats uncontained and made a
   following section's box overlap the hero.) */
body.single-product.sng-compact-addons .sng-product-hero-row {
    display: flow-root;
}

@media (min-width: 1024px) {
    /* Sticky stays desktop-only — pinning the gallery on mobile would lock it
       to the top of the viewport permanently (bad UX). */
    body.single-product.sng-compact-addons .sng-product-hero-row .avada-single-product-gallery-wrapper {
        position: sticky;
        /* 60px fixed Avada secondary menu + 20px gap; + admin-bar height
           only when logged in (var falls back to 0 for customers). */
        top: calc(80px + var(--wp-admin--admin-bar--height, 0px));
    }
}
