/* ASIS Site Style
   The Merck search page look for the rest of the site, layered on top of Astra,
   WooCommerce and Elementor. Every rule hangs off a body class the plugin adds
   (asis-ss-fonts, -header, -shop, -product, -cart, -account, -pages), so an area that
   is switched off in Settings > Site Style has no effect at all.

   Contents
     1. Fonts and design tokens
     2. Fonts area
     3. Shared pieces: buttons, fields, notices, tables
     4. Header and footer
     5. Shop, category and brand pages (product tiles)
     6. Product pages
     7. Cart, checkout and side cart
     8. My Account
     9. Homepage and other pages
    10. Smaller screens, reduced motion */


/* ==========================================================================
   1. Fonts and design tokens
   ========================================================================== */

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-latin-400.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'IBM Plex Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/ibm-plex-sans-latin-700.woff2') format('woff2');
}

/* Same values as the Merck page (merck-catalog frontend.css, --mk-*) */
body.asis-ss {
    --asis-ss-brand: #234196;
    --asis-ss-brand-deep: #19306f;
    --asis-ss-brand-hover: #2c4fae;
    --asis-ss-accent: #97c03a;
    --asis-ss-accent-deep: #5f8a17;
    --asis-ss-ink: #1b2235;
    --asis-ss-text: #55607a;
    --asis-ss-line: #e1e6ef;
    --asis-ss-wash: #f3f6fb;
    --asis-ss-water: #eaf4fb;
    --asis-ss-danger: #b42318;
    --asis-ss-radius: 14px;
    --asis-ss-radius-lg: 20px;
    --asis-ss-radius-sm: 10px;
    --asis-ss-ring: 0 0 0 3px rgba(35, 65, 150, 0.15);
    --asis-ss-shadow-hover: 0 8px 20px rgba(35, 65, 150, 0.12);
    --asis-ss-rule: linear-gradient(90deg, var(--asis-ss-brand), var(--asis-ss-accent));
    --asis-ss-font: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}


/* ==========================================================================
   2. Fonts area
   Astra, Elementor (per widget) and several plugins each set their own font, so this
   has to be !important. Icon fonts are left alone: anything with "icon" or "fa-" in
   its class, the star rating, dashicons and Elementor's eicons. The admin bar keeps
   WordPress's font.
   ========================================================================== */

body.asis-ss-fonts,
body.asis-ss-fonts :is(h1, h2, h3, h4, h5, h6, p, a, li, dt, dd, td, th, caption, label, legend, input, select, textarea, button, small, strong, b, em, bdi, blockquote, figcaption, cite, address, nav, span, div, section, article, header, footer, aside, main):not([class*="icon"]):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not([class*="dashicons"]):not([class^="eicon"]):not(.star-rating):not(.star-rating *):not(#wpadminbar *) {
    font-family: var(--asis-ss-font) !important;
}

body.asis-ss-fonts {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}


/* ==========================================================================
   3. Shared pieces
   ========================================================================== */

/* WooCommerce notices (added to cart, errors, "Returning customer?") */
body:is(.asis-ss-shop, .asis-ss-product, .asis-ss-cart, .asis-ss-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice) {
    position: relative;
    background: #fff;
    color: var(--asis-ss-ink);
    border: 1px solid var(--asis-ss-line);
    border-left: 4px solid var(--asis-ss-brand);
    border-top: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    box-shadow: none;
    font-size: 15px;
    line-height: 1.5;
}

body:is(.asis-ss-shop, .asis-ss-product, .asis-ss-cart, .asis-ss-account) .woocommerce-message {
    border-left-color: var(--asis-ss-accent-deep);
}

body:is(.asis-ss-shop, .asis-ss-product, .asis-ss-cart, .asis-ss-account) .woocommerce-error {
    border-left-color: var(--asis-ss-danger);
}

body:is(.asis-ss-shop, .asis-ss-product, .asis-ss-cart, .asis-ss-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before {
    color: inherit;
}

body:is(.asis-ss-shop, .asis-ss-product, .asis-ss-cart, .asis-ss-account) :is(.woocommerce-message, .woocommerce-info, .woocommerce-error) a:not(.button) {
    color: var(--asis-ss-brand);
    font-weight: 600;
}

body:is(.asis-ss-shop, .asis-ss-product, .asis-ss-cart, .asis-ss-account) :is(.woocommerce-message, .woocommerce-info) .button {
    background: var(--asis-ss-brand);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

/* Text fields on Woo pages: line border, rounded, ASIS focus ring. Padding is left to
   Astra so its floating checkout labels still line up. */
body:is(.asis-ss-product, .asis-ss-cart, .asis-ss-account) .woocommerce :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select),
body.asis-ss-cart .woocommerce .select2-container .select2-selection {
    border: 1px solid #cdd5e3;
    border-radius: var(--asis-ss-radius-sm);
    background-color: #fff;
    color: var(--asis-ss-ink);
    box-shadow: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body:is(.asis-ss-product, .asis-ss-cart, .asis-ss-account) .woocommerce :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select):focus,
body.asis-ss-cart .woocommerce .select2-container--open .select2-selection,
body.asis-ss-cart .woocommerce .select2-container--focus .select2-selection {
    border-color: var(--asis-ss-brand);
    box-shadow: var(--asis-ss-ring);
    outline: none;
}

/* Keyboard focus that can be seen on every control the plugin restyles */
body.asis-ss :is(a, button, .button, input[type="submit"]):focus-visible {
    outline: 3px solid var(--asis-ss-brand);
    outline-offset: 2px;
}


/* ==========================================================================
   4. Header and footer (Elementor templates)
   Colours stay as designed in Elementor; this tidies the search, menus and drop-downs.
   ========================================================================== */

/* Blue-to-green line along the bottom of the sticky (blue) part of the header, as on
   the Merck search panel, so it travels with the header when the page scrolls. Elementor
   pins that section with an inline position: fixed, which wins over this relative. */
body.asis-ss-header .elementor-location-header .elementor-sticky {
    position: relative;
}

body.asis-ss-header .elementor-location-header .elementor-sticky::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    height: 3px;
    background: var(--asis-ss-rule);
    pointer-events: none;
}

/* The sticky part of the header is ASIS blue at 80% opacity, so the page shows through
   it while scrolling. Solid #4f67ab is that same blue as it looks over white, so the
   header looks unchanged at the top of the page. */
body.asis-ss-header .elementor-location-header .elementor-sticky:not(.elementor-sticky__spacer) {
    background-color: #4f67ab !important;
}

/* Main menu */
body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .elementor-item {
    font-weight: 600;
    letter-spacing: 0;
}

/* Drop-down menus open over the blue-to-green line along the bottom of the header.
   The line is z-index 5 in the header section, and Elementor gives the menu list
   z-index 2, which makes the list its own layer: its drop-downs can only go as high as
   the list does. So the list itself goes above the line. */
body.asis-ss-header .elementor-location-header .elementor-nav-menu--main > .elementor-nav-menu {
    z-index: 6 !important;
}

body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .sub-menu,
body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .elementor-nav-menu--dropdown {
    z-index: 30 !important;
}

/* Drop-down menus: a white card with a soft shadow */
body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .sub-menu,
body.asis-ss-header .elementor-location-header .elementor-nav-menu--dropdown {
    border: 1px solid var(--asis-ss-line);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(27, 34, 53, 0.14);
    overflow: hidden;
}

body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .sub-menu {
    padding: 6px 0;
    background: #fff;
}

body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .sub-menu a.elementor-sub-item {
    background: #fff;
    color: var(--asis-ss-ink);
    font-size: 14.5px;
    font-weight: 500;
    padding: 10px 18px;
    border-left: 3px solid transparent;
}

body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .sub-menu a.elementor-sub-item:hover,
body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .sub-menu a.elementor-sub-item:focus,
body.asis-ss-header .elementor-location-header .elementor-nav-menu--main .sub-menu a.elementor-sub-item.elementor-item-active {
    background: var(--asis-ss-wash);
    color: var(--asis-ss-brand);
    border-left-color: var(--asis-ss-accent);
}

/* Product search (FiboSearch) - header and anywhere else on the page */
body.asis-ss-header .dgwt-wcas-search-wrapp .dgwt-wcas-search-input {
    border: 1px solid #cdd5e3;
    color: var(--asis-ss-ink);
    font-size: 15.5px;
    box-shadow: 0 1px 2px rgba(27, 34, 53, 0.06);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.asis-ss-header .elementor-location-header .dgwt-wcas-search-wrapp .dgwt-wcas-search-input {
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(16, 30, 70, 0.18);
}

body.asis-ss-header .dgwt-wcas-search-wrapp .dgwt-wcas-search-input:focus {
    border-color: var(--asis-ss-brand);
    box-shadow: var(--asis-ss-ring);
    outline: none;
}

body.asis-ss-header .elementor-location-header .dgwt-wcas-search-wrapp .dgwt-wcas-search-input:focus {
    border-color: var(--asis-ss-accent);
    box-shadow: 0 0 0 3px rgba(151, 192, 58, 0.45);
}

body.asis-ss-header .dgwt-wcas-search-input::placeholder {
    color: #7b849a;
    opacity: 1;
}

/* Search suggestions */
body.asis-ss-header .dgwt-wcas-suggestions-wrapp {
    border: 1px solid var(--asis-ss-line) !important;
    border-radius: 0 0 var(--asis-ss-radius) var(--asis-ss-radius);
    box-shadow: 0 16px 36px rgba(27, 34, 53, 0.16);
    overflow: hidden;
}

body.asis-ss-header .dgwt-wcas-suggestion {
    color: var(--asis-ss-ink);
}

body.asis-ss-header .dgwt-wcas-suggestion-selected {
    background: var(--asis-ss-wash);
}

body.asis-ss-header .dgwt-wcas-suggestion .dgwt-wcas-st strong,
body.asis-ss-header .dgwt-wcas-suggestion .dgwt-wcas-sp {
    color: var(--asis-ss-brand);
}

body.asis-ss-header .dgwt-wcas-suggestion-headline .dgwt-wcas-st {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--asis-ss-text);
}

/* ── Header polish (structure: green top bar, blue sticky bar, spacer, promo line) ── */

/* Top bar: lighter type, phone and Login as pills */
body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-nav-menu a,
body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-item {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 150ms ease, opacity 150ms ease;
}

body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-item:hover {
    opacity: 0.8;
}

body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-button {
    min-height: 0;
    padding: 9px 20px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease !important;
}

body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(25, 48, 111, 0.18);
}

/* Main menu: a green line slides in under the hovered / current item */
body.asis-ss-header .elementor-location-header .elementor-nav-menu--main > ul > li > a.elementor-item {
    position: relative;
}

body.asis-ss-header .elementor-location-header .elementor-sticky .elementor-nav-menu--main > ul > li > a.elementor-item::after {
    content: '';
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--asis-ss-accent);
    opacity: 1 !important;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms cubic-bezier(0.65, 0, 0.35, 1);
}

body.asis-ss-header .elementor-location-header .elementor-sticky .elementor-nav-menu--main > ul > li > a.elementor-item:hover::after,
body.asis-ss-header .elementor-location-header .elementor-sticky .elementor-nav-menu--main > ul > li > a.elementor-item.elementor-item-active::after,
body.asis-ss-header .elementor-location-header .elementor-sticky .elementor-nav-menu--main > ul > li > a.elementor-item.highlighted::after {
    transform: scaleX(1);
}

/* Account / cart / wishlist / quote icons lift a little */
body.asis-ss-header .elementor-location-header .elementor-widget-icon-box .elementor-icon {
    transition: transform 180ms ease;
}

body.asis-ss-header .elementor-location-header .elementor-widget-icon-box:hover .elementor-icon {
    transform: translateY(-2px);
}

body.asis-ss-header .elementor-location-header .elementor-widget-icon-box .elementor-icon-box-title {
    letter-spacing: 0.01em;
}

/* Promo line: a slim announcement bar with an arrow instead of large green capitals */
body.asis-ss-header .elementor-location-header > .elementor-section:last-child {
    background: linear-gradient(90deg, rgba(151, 192, 58, 0.12), rgba(35, 65, 150, 0.08)) !important;
    border-bottom: 1px solid var(--asis-ss-line);
}

body.asis-ss-header .elementor-location-header > .elementor-section:last-child > .elementor-container {
    min-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

body.asis-ss-header .elementor-location-header > .elementor-section:last-child .elementor-widget-wrap {
    padding: 8px 10px !important;
}

body.asis-ss-header .elementor-location-header > .elementor-section:last-child .elementor-heading-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0.06em !important;
}

body.asis-ss-header .elementor-location-header > .elementor-section:last-child .elementor-heading-title a {
    color: var(--asis-ss-accent-deep) !important;
    text-decoration: none;
    transition: color 150ms ease;
}

body.asis-ss-header .elementor-location-header > .elementor-section:last-child .elementor-heading-title a::after {
    content: '\2192';
    display: inline-block;
    margin-left: 10px;
    transition: transform 200ms ease;
}

body.asis-ss-header .elementor-location-header > .elementor-section:last-child .elementor-heading-title a:hover {
    color: var(--asis-ss-brand) !important;
}

body.asis-ss-header .elementor-location-header > .elementor-section:last-child .elementor-heading-title a:hover::after {
    transform: translateX(4px);
}

@media (max-width: 767px) {
    /* Top links: one row that scrolls sideways instead of two wrapped rows */
    body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-nav-menu--main > ul,
    body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-nav-menu {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        justify-content: flex-start !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-nav-menu::-webkit-scrollbar {
        display: none;
    }

    body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-nav-menu li {
        flex: 0 0 auto;
    }

    body.asis-ss-header .elementor-location-header > .elementor-section:first-child .elementor-item {
        font-size: 12.5px;
        padding: 9px 10px !important;
        white-space: nowrap;
    }

    body.asis-ss-header .elementor-location-header > .elementor-section:last-child .elementor-heading-title {
        font-size: 12px !important;
        letter-spacing: 0.04em !important;
    }
}

/* Footer: tidy links */
body.asis-ss-header .elementor-location-footer a {
    transition: color 150ms ease, opacity 150ms ease;
}

body.asis-ss-header .elementor-location-footer .elementor-icon-list-item a:hover .elementor-icon-list-text,
body.asis-ss-header .elementor-location-footer .elementor-nav-menu a:hover {
    color: var(--asis-ss-accent) !important;
}

body.asis-ss-header .elementor-location-footer input[type="email"],
body.asis-ss-header .elementor-location-footer input[type="text"] {
    border-radius: var(--asis-ss-radius-sm);
}

body.asis-ss-header .elementor-location-footer :is(button, .elementor-button) {
    border-radius: var(--asis-ss-radius-sm);
}


/* ==========================================================================
   5. Shop, category and brand pages - product tiles
   The tiles are used wherever WooCommerce lists products (shop, categories, brands,
   related products, cross-sells), so they follow this area wherever they appear.
   ========================================================================== */

/* Page heading and breadcrumbs */
body.asis-ss-shop .woocommerce-products-header__title,
body.asis-ss-shop.archive .page-title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--asis-ss-ink);
    margin-bottom: 8px;
}

body.asis-ss-shop .term-description,
body.asis-ss-shop .woocommerce-products-header .page-description {
    color: var(--asis-ss-text);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 75ch;
}

body.asis-ss-shop .woocommerce-breadcrumb,
body.asis-ss-product .woocommerce-breadcrumb {
    font-size: 13.5px;
    color: var(--asis-ss-text);
}

body.asis-ss-shop .woocommerce-breadcrumb a,
body.asis-ss-product .woocommerce-breadcrumb a {
    color: var(--asis-ss-brand);
}

/* Result count and sorting */
body.asis-ss-shop .woocommerce-result-count {
    font-size: 14px;
    color: var(--asis-ss-text);
}

body.asis-ss-shop .woocommerce-ordering select {
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    background-color: #fff;
    color: var(--asis-ss-ink);
    font-size: 14.5px;
    font-weight: 500;
    min-height: 42px;
    padding: 8px 36px 8px 14px;
    box-shadow: none;
}

body.asis-ss-shop .woocommerce-ordering select:focus {
    border-color: var(--asis-ss-brand);
    box-shadow: var(--asis-ss-ring);
    outline: none;
}

/* The tile */
body.asis-ss-shop ul.products li.product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    overflow: hidden;
    padding: 0 !important;
    text-align: left;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.asis-ss-shop ul.products li.product:hover {
    border-color: var(--asis-ss-brand);
    box-shadow: var(--asis-ss-shadow-hover);
}

body.asis-ss-shop ul.products li.product .astra-shop-thumbnail-wrap {
    position: relative;
    margin: 0;
    padding: 14px;
    background: #fff;
    border-bottom: 1px solid var(--asis-ss-line);
}

body.asis-ss-shop ul.products li.product .astra-shop-thumbnail-wrap img,
body.asis-ss-shop ul.products li.product > a img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 !important;
    border-radius: 0;
}

body.asis-ss-shop ul.products li.product .astra-shop-summary-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex: 1;
    padding: 12px 14px 14px;
    text-align: left;
}

body.asis-ss-shop ul.products li.product .ast-woo-product-category,
body.asis-ss-shop ul.products li.product .ast-woo-shop-product-description {
    font-size: 12px;
    font-weight: 600;
    color: var(--asis-ss-text);
    margin: 0;
}

/* Name: two lines, always - keeps SKU and price rows level across a row of tiles.
   The site's Customizer CSS sets this to normal weight with !important. */
body.asis-ss-shop ul.products li.product .woocommerce-loop-product__title {
    font-size: 14.5px;
    font-weight: 600 !important;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    min-height: 2.7em;
    margin: 0;
    padding: 0;
    color: var(--asis-ss-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.asis-ss-shop ul.products li.product .ast-loop-product__link:hover .woocommerce-loop-product__title {
    color: var(--asis-ss-brand);
}

/* Brand above the name (added by the plugin), as on the Merck tiles */
body.asis-ss-shop .asis-ss-tile-brand {
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--asis-ss-text);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ready to ship / Backorder / Out of stock badge on the picture (added by the plugin) */
body.asis-ss-shop .asis-ss-tile-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    color: var(--asis-ss-text);
    box-shadow: 0 1px 3px rgba(27, 34, 53, 0.08);
    pointer-events: none;
}

body.asis-ss-shop .asis-ss-tile-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

body.asis-ss-shop .asis-ss-tile-badge--ready {
    color: var(--asis-ss-accent-deep);
    border-color: rgba(95, 138, 23, 0.3);
    background: #f4f9ea;
}

body.asis-ss-shop .asis-ss-tile-badge--backorder {
    color: #9a6200;
    border-color: rgba(154, 98, 0, 0.25);
    background: #fff8eb;
}

body.asis-ss-shop .asis-ss-tile-badge--out {
    color: var(--asis-ss-danger);
    border-color: rgba(180, 35, 24, 0.25);
    background: #fff5f4;
}

/* SKU line (added by the plugin) */
body.asis-ss-shop .asis-ss-tile-sku {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--asis-ss-brand);
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
    margin-top: 2px;
}

body.asis-ss-shop ul.products li.product .price {
    display: block;
    margin: auto 0 0;
    padding-top: 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--asis-ss-ink);
    font-variant-numeric: tabular-nums;
}

body.asis-ss-shop ul.products li.product .price del {
    font-size: 14px;
    font-weight: 500;
    color: var(--asis-ss-text);
    opacity: 1;
}

body.asis-ss-shop ul.products li.product .price ins {
    text-decoration: none;
}

body.asis-ss-shop ul.products li.product .price small,
body.asis-ss-shop ul.products li.product .woocommerce-price-suffix {
    font-size: 12px;
    font-weight: 500;
    color: var(--asis-ss-text);
}

/* Buttons: Add to cart filled, Add to quote as an outline under it */
body.asis-ss-shop ul.products li.product .button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-width: 0; /* Astra gives buttons a 200px minimum, wider than a phone tile */
    min-height: 42px;
    margin: 10px 0 0;
    padding: 9px 14px;
    background: var(--asis-ss-brand);
    color: #fff;
    border: 1px solid var(--asis-ss-brand);
    border-radius: var(--asis-ss-radius-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    text-align: center;
    box-shadow: none;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

body.asis-ss-shop ul.products li.product .button:hover,
body.asis-ss-shop ul.products li.product .button:focus-visible {
    background: var(--asis-ss-brand-deep);
    border-color: var(--asis-ss-brand-deep);
    color: #fff;
}

/* Woo's loading state fades the button; keep it readable */
body.asis-ss-shop ul.products li.product .button.loading {
    opacity: 0.8;
}

body.asis-ss-shop ul.products li.product .added_to_cart {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--asis-ss-brand);
    text-align: center;
}

body.asis-ss-shop ul.products li.product .yith-ywraq-add-to-quote {
    padding: 0 14px 14px;
    margin: 0;
}

/* YITH Request a Quote colours its button through these variables (with !important),
   so set the variables: white button, ASIS blue text, wash on hover. */
body:is(.asis-ss-shop, .asis-ss-product) {
    --ywraq_layout_button_bg_color: #fff;
    --ywraq_layout_button_bg_color_hover: var(--asis-ss-wash);
    --ywraq_layout_button_color: var(--asis-ss-brand);
    --ywraq_layout_button_color_hover: var(--asis-ss-brand-deep);
}

body.asis-ss-shop ul.products li.product .yith-ywraq-add-to-quote .button,
body.asis-ss-shop ul.products li.product .yith-ywraq-add-to-quote .add-request-quote-button {
    margin-top: 0;
    background: #fff;
    color: var(--asis-ss-brand);
    border: 1px solid var(--asis-ss-line);
}

body.asis-ss-shop ul.products li.product .yith-ywraq-add-to-quote .button:hover,
body.asis-ss-shop ul.products li.product .yith-ywraq-add-to-quote .button:focus-visible {
    background: var(--asis-ss-wash);
    border-color: var(--asis-ss-brand);
    color: var(--asis-ss-brand-deep);
}

/* Some lists (related products) centre the text; tiles read left to right */
body.asis-ss-shop ul.products li.product :is(.woocommerce-loop-product__title, .price, .asis-ss-tile-sku, .ast-woo-product-category) {
    text-align: left;
}

/* YITH draws the quote button's border in its own (green) colour */
body:is(.asis-ss-shop, .asis-ss-product) .add-request-quote-button.button {
    border: 1px solid var(--asis-ss-line) !important;
}

body:is(.asis-ss-shop, .asis-ss-product) .add-request-quote-button.button:hover {
    border-color: var(--asis-ss-brand) !important;
}

body.asis-ss-shop ul.products li.product .yith_ywraq_add_item_browse_message a,
body.asis-ss-shop ul.products li.product .yith_ywraq_add_item_response_message {
    font-size: 13px;
    color: var(--asis-ss-text);
}

/* Sale / out of stock badges */
body.asis-ss-shop ul.products li.product .onsale,
body.asis-ss-shop ul.products li.product .ast-shop-product-out-of-stock {
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    min-height: 0;
    min-width: 0;
    line-height: 1;
    padding: 6px 10px;
}

body.asis-ss-shop ul.products li.product .onsale {
    background: var(--asis-ss-accent-deep);
    color: #fff;
}

/* Category tiles (sub-category grids) */
body.asis-ss-shop ul.products li.product-category > a {
    display: block;
    padding: 14px;
    color: var(--asis-ss-ink);
}

body.asis-ss-shop ul.products li.product-category .woocommerce-loop-category__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--asis-ss-ink);
    text-align: left;
    padding: 10px 0 0;
}

body.asis-ss-shop ul.products li.product-category .woocommerce-loop-category__title .count {
    background: none;
    color: var(--asis-ss-text);
    font-weight: 500;
}

/* Brand list in the sidebar: a wash panel, scrolls inside itself (there are a lot of brands) */
body.asis-ss-shop #secondary .ast-filter-wrap,
body.asis-ss-shop #secondary .widget_mgwoocommercebrands {
    color: var(--asis-ss-ink);
}

body.asis-ss-shop #secondary .ast-filter-wrap {
    background: var(--asis-ss-wash);
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    padding: 18px 8px 10px 18px;
}

body.asis-ss-shop #secondary .ast-filter-wrap > h3,
body.asis-ss-shop #secondary .widget-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--asis-ss-text);
    margin: 0 0 10px;
}

body.asis-ss-shop #secondary .widget_mgwoocommercebrands > ul {
    max-height: min(560px, 70vh);
    overflow-y: auto;
    margin: 0;
    padding: 0 10px 0 0;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: #c3cbdb transparent;
}

body.asis-ss-shop #secondary .widget_mgwoocommercebrands li {
    margin: 0;
    padding: 0;
    border: 0;
}

body.asis-ss-shop #secondary .widget_mgwoocommercebrands li a {
    display: block;
    padding: 6px 10px;
    margin: 0 0 1px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--asis-ss-ink);
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
}

body.asis-ss-shop #secondary .widget_mgwoocommercebrands li a:hover,
body.asis-ss-shop #secondary .widget_mgwoocommercebrands li a:focus-visible {
    background: #fff;
    color: var(--asis-ss-brand);
}

body.asis-ss-shop #secondary .widget_mgwoocommercebrands li.current a,
body.asis-ss-shop #secondary .widget_mgwoocommercebrands li a[aria-current] {
    background: #fff;
    color: var(--asis-ss-brand);
    box-shadow: inset 3px 0 0 var(--asis-ss-accent);
}

/* Wide screens: the brand panel stays in view while the products scroll, under the
   sticky header (126px, plus the admin bar when logged in), instead of leaving the
   left column empty below it. */
/* Astra floats the sidebar, so its column is only as tall as the brand panel; the
   sidebar itself is made sticky (that works for floats, within the page container).
   The site's Customizer CSS sets html, body { overflow-x: hidden !important }, which
   makes the body its own scroll box and stops anything sticking. overflow-x: clip
   still hides sideways overflow but isn't a scroll box. */
@media (min-width: 922px) {
    body.asis-ss-shop.ast-woo-shop-archive {
        overflow-x: clip !important;
    }

    body.asis-ss-shop:is(.ast-left-sidebar, .ast-right-sidebar) #secondary {
        position: sticky;
        top: 146px;
    }

    body.asis-ss-shop.admin-bar:is(.ast-left-sidebar, .ast-right-sidebar) #secondary {
        top: 178px;
    }

    body.asis-ss-shop.ast-left-sidebar #secondary .widget_mgwoocommercebrands > ul,
    body.asis-ss-shop.ast-right-sidebar #secondary .widget_mgwoocommercebrands > ul {
        max-height: calc(100vh - 290px);
        min-height: 200px;
    }
}

/* Page numbers */
body.asis-ss-shop .woocommerce-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    border: 0;
}

body.asis-ss-shop .woocommerce-pagination ul.page-numbers li {
    border: 0;
    float: none;
}

body.asis-ss-shop .woocommerce-pagination ul.page-numbers li :is(a, span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    background: #fff;
    color: var(--asis-ss-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1;
}

body.asis-ss-shop .woocommerce-pagination ul.page-numbers li a:hover {
    border-color: var(--asis-ss-brand);
    color: var(--asis-ss-brand);
    background: #fff;
}

body.asis-ss-shop .woocommerce-pagination ul.page-numbers li span.current {
    background: var(--asis-ss-brand);
    border-color: var(--asis-ss-brand);
    color: #fff;
}

/* The big product search above the shop */
body.asis-ss-shop :is(.woocommerce-shop, .archive) #content .dgwt-wcas-search-wrapp .dgwt-wcas-search-input,
body.asis-ss-shop.archive .dgwt-wcas-search-wrapp:not(.elementor-location-header *) .dgwt-wcas-search-input {
    border: 1px solid #cdd5e3;
    border-radius: 12px;
    min-height: 54px;
    font-size: 16px;
    color: var(--asis-ss-ink);
    box-shadow: 0 1px 2px rgba(27, 34, 53, 0.06);
}

body.asis-ss-shop.archive .dgwt-wcas-search-wrapp:not(.elementor-location-header *) .dgwt-wcas-search-input:focus {
    border-color: var(--asis-ss-brand);
    box-shadow: var(--asis-ss-ring);
}


/* --------------------------------------------------------------------------
   Shop backdrop (includes/backdrop.php): lab icons in fine lines, glowing lines,
   dot patches, on a soft wash. Sits behind the page's main container; the white tiles
   cover it, so it shows in the gaps, the side margins and below the brand panel.
   -------------------------------------------------------------------------- */

body.asis-ss-backdrop {
    overflow-x: clip !important; /* the layer is full window width; no sideways scroll (see the sticky sidebar note) */
}

body.asis-ss-backdrop #content > .ast-container {
    position: relative;
    isolation: isolate;
}

body.asis-ss-backdrop .asis-ss-bg {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(245, 248, 252, 0) 0, #f5f8fc 160px, #f5f8fc calc(100% - 80px), rgba(245, 248, 252, 0) 100%);
}

body.asis-ss-backdrop .asis-ss-bg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Icons */
body.asis-ss-backdrop .asis-ss-bg-icon {
    position: absolute;
    overflow: visible;
    fill: none;
    stroke: var(--asis-ss-brand);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-opacity: 0.3;
    transform: rotate(var(--asis-ss-rot, 0deg));
    animation: asis-ss-bg-float 16s ease-in-out infinite;
    animation-delay: var(--asis-ss-delay, 0s);
}

body.asis-ss-backdrop .asis-ss-bg-icon--green {
    stroke: var(--asis-ss-accent);
    stroke-opacity: 0.6;
}

@keyframes asis-ss-bg-float {
    0%, 100% { transform: translateY(0) rotate(var(--asis-ss-rot, 0deg)); }
    50%      { transform: translateY(-12px) rotate(var(--asis-ss-rot, 0deg)); }
}

/* Lines with a glowing pulse running along them, as on the Merck page */
body.asis-ss-backdrop .asis-ss-bg-line {
    position: absolute;
    width: 900px;
    height: auto;
    overflow: visible;
    --asis-ss-line: var(--asis-ss-brand);
}

body.asis-ss-backdrop .asis-ss-bg-line--green {
    --asis-ss-line: var(--asis-ss-accent);
}

body.asis-ss-backdrop .asis-ss-bg-line--a { top: 4%;  left: calc(50% - 1050px); }
body.asis-ss-backdrop .asis-ss-bg-line--b { top: 30%; left: calc(50% + 120px); }
body.asis-ss-backdrop .asis-ss-bg-line--c { top: 56%; left: calc(50% - 980px); }
body.asis-ss-backdrop .asis-ss-bg-line--d { top: 80%; left: calc(50% + 60px); }

body.asis-ss-backdrop .asis-ss-bg-line path {
    fill: none;
    stroke: var(--asis-ss-line);
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

body.asis-ss-backdrop .asis-ss-bg-line-base {
    stroke-width: 1.5;
    stroke-opacity: 0.18;
}

body.asis-ss-backdrop .asis-ss-bg-line--green .asis-ss-bg-line-base {
    stroke-opacity: 0.4;
}

body.asis-ss-backdrop .asis-ss-bg-line-pulse,
body.asis-ss-backdrop .asis-ss-bg-line-glow {
    stroke-dasharray: 110 1700;
    stroke-dashoffset: 0;
    animation: asis-ss-bg-pulse 12s linear infinite;
}

body.asis-ss-backdrop .asis-ss-bg-line-pulse {
    stroke-width: 2.4;
    stroke-opacity: 0.85;
}

body.asis-ss-backdrop .asis-ss-bg-line-glow {
    stroke-width: 9;
    stroke-opacity: 0.35;
    filter: blur(5px);
}

body.asis-ss-backdrop .asis-ss-bg-line--b path { animation-delay: -3s; }
body.asis-ss-backdrop .asis-ss-bg-line--c path { animation-delay: -6s; }
body.asis-ss-backdrop .asis-ss-bg-line--d path { animation-delay: -9s; }

@keyframes asis-ss-bg-pulse {
    to { stroke-dashoffset: -1810; }
}

/* Dot patches */
body.asis-ss-backdrop .asis-ss-bg-dots {
    position: absolute;
    width: 340px;
    height: 340px;
    background-image: radial-gradient(circle, rgba(35, 65, 150, 0.2) 1.3px, transparent 1.7px);
    background-size: 13px 13px;
    -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent);
    mask-image: radial-gradient(closest-side, #000 25%, transparent);
}

body.asis-ss-backdrop .asis-ss-bg-dots--a { top: 20%; left: -60px; }
body.asis-ss-backdrop .asis-ss-bg-dots--b { top: 48%; right: -80px; }
body.asis-ss-backdrop .asis-ss-bg-dots--c { top: 78%; left: 2%; }

/* Product pages: the page itself is now on the wash, so the panels that used the wash
   (buy box, related products) turn white to stand off it */
body.asis-ss-backdrop--product.single-product .summary form.cart {
    background: #fff;
}

body.asis-ss-backdrop--product.single-product section:is(.related, .upsells) {
    background: rgba(255, 255, 255, 0.86);
}

body.asis-ss-backdrop--product.single-product table.shop_attributes th {
    background: #f7f9fc;
}

/* The brand panel and tiles sit on the wash; give the panel a white face like the tiles */
body.asis-ss-backdrop #secondary .ast-filter-wrap {
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}


/* ==========================================================================
   6. Product pages
   ========================================================================== */

/* Astra prints the product name twice (page title above, and in the summary). Keep
   the summary one, which sits beside the picture. */
body.asis-ss-product.single-product #primary > .entry-header {
    display: none;
}

/* Picture */
body.asis-ss-product.single-product div.product .woocommerce-product-gallery {
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-lg);
    padding: 18px;
}

body.asis-ss-product.single-product div.product .woocommerce-product-gallery .flex-viewport,
body.asis-ss-product.single-product div.product .woocommerce-product-gallery__image img {
    border-radius: var(--asis-ss-radius-sm);
}

body.asis-ss-product.single-product div.product .woocommerce-product-gallery__trigger {
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(27, 34, 53, 0.1);
}

body.asis-ss-product.single-product div.product :is(.flex-control-thumbs, .ast-single-product-thumbnails) img {
    border: 1px solid var(--asis-ss-line);
    border-radius: 8px;
    opacity: 1;
    transition: border-color 150ms ease;
}

body.asis-ss-product.single-product div.product :is(.flex-control-thumbs, .ast-single-product-thumbnails) img:hover,
body.asis-ss-product.single-product div.product :is(.flex-control-thumbs, .ast-single-product-thumbnails) img.flex-active {
    border-color: var(--asis-ss-brand);
}

/* Brand above the name, as an eyebrow */
body.asis-ss-product.single-product .summary .mg-brand-wrapper {
    display: block;
    margin: 0 0 6px;
}

body.asis-ss-product.single-product .summary .mg-brand-wrapper a {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--asis-ss-brand);
    text-decoration: none;
}

body.asis-ss-product.single-product .summary .product_title {
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--asis-ss-ink);
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

/* SKU, categories and brand as one quiet row */
body.asis-ss-product.single-product .summary .product_meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding: 12px 0;
    margin: 0 0 16px;
    border-top: 1px solid var(--asis-ss-line);
    border-bottom: 1px solid var(--asis-ss-line);
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--asis-ss-text);
}

body.asis-ss-product.single-product .summary .product_meta > span {
    display: inline;
    margin: 0;
}

body.asis-ss-product.single-product .summary .product_meta .sku {
    font-weight: 700;
    color: var(--asis-ss-brand);
    font-variant-numeric: tabular-nums;
}

body.asis-ss-product.single-product .summary .product_meta a {
    color: var(--asis-ss-ink);
    font-weight: 500;
}

body.asis-ss-product.single-product .summary .product_meta a:hover {
    color: var(--asis-ss-brand);
}

/* Price */
body.asis-ss-product.single-product .summary .price {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--asis-ss-ink);
    font-variant-numeric: tabular-nums;
    margin: 0 0 16px;
}

body.asis-ss-product.single-product .summary .price :is(small, .woocommerce-price-suffix) {
    font-size: 14px;
    font-weight: 500;
    color: var(--asis-ss-text);
}

body.asis-ss-product.single-product .summary .price del {
    font-size: 18px;
    font-weight: 500;
    color: var(--asis-ss-text);
}

body.asis-ss-product.single-product .summary .price ins {
    text-decoration: none;
}

body.asis-ss-product.single-product .summary .stock {
    font-size: 14px;
    font-weight: 600;
}

body.asis-ss-product.single-product .summary .stock.in-stock {
    color: var(--asis-ss-accent-deep);
}

/* Buy box: quantity and Add to cart on a wash panel with the ASIS line on top */
body.asis-ss-product.single-product .summary form.cart {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    margin: 0 0 12px;
    padding: 18px;
    background: var(--asis-ss-wash);
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
}

body.asis-ss-product.single-product .summary form.cart::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 18px;
    right: 18px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--asis-ss-rule);
}

/* Variable products: the attribute table takes the full width above the button */
body.asis-ss-product.single-product .summary form.variations_form {
    display: block;
}

body.asis-ss-product.single-product .summary form.cart .woocommerce-variation-add-to-cart {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

body.asis-ss-product.single-product .summary form.cart table.variations {
    margin: 0 0 12px;
    border: 0;
}

body.asis-ss-product.single-product .summary form.cart table.variations :is(th, td) {
    background: none;
    border: 0;
    padding: 4px 0;
}

body.asis-ss-product.single-product .summary form.cart table.variations label {
    font-size: 14px;
    font-weight: 600;
    color: var(--asis-ss-ink);
}

body.asis-ss-product.single-product .summary form.cart .quantity {
    margin: 0 !important;
}

body.asis-ss-product.single-product .summary form.cart .quantity .qty {
    width: 84px;
    height: 48px;
    min-height: 48px;
    padding: 0 8px;
    border: 1px solid #cdd5e3;
    border-radius: var(--asis-ss-radius-sm);
    background: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--asis-ss-ink);
}

body.asis-ss-product.single-product .summary form.cart .single_add_to_cart_button {
    flex: 1 1 200px;
    height: auto;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 12px 20px;
    background: var(--asis-ss-brand);
    color: #fff;
    border: 0;
    border-radius: var(--asis-ss-radius-sm);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: background 150ms ease;
}

body.asis-ss-product.single-product .summary form.cart .single_add_to_cart_button:hover {
    background: var(--asis-ss-brand-deep);
    color: #fff;
}

body.asis-ss-product.single-product .summary form.cart .single_add_to_cart_button.disabled {
    opacity: 0.55;
}

/* Wishlist and quote: outline buttons side by side under the buy box */
body.asis-ss-product.single-product .summary :is(.yith-wcwl-add-to-wishlist, .yith-ywraq-add-to-quote) {
    display: inline-block;
    vertical-align: top;
    margin: 4px 8px 0 0;
}

body.asis-ss-product.single-product .summary :is(.yith-wcwl-add-to-wishlist, .yith-ywraq-add-to-quote) :is(a.button, .button, .add-request-quote-button, .add_to_wishlist) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    background: #fff;
    color: var(--asis-ss-brand);
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: background 150ms ease, border-color 150ms ease;
}

body.asis-ss-product.single-product .summary :is(.yith-wcwl-add-to-wishlist, .yith-ywraq-add-to-quote) :is(a.button, .button, .add-request-quote-button, .add_to_wishlist):hover {
    background: var(--asis-ss-wash);
    border-color: var(--asis-ss-brand);
    color: var(--asis-ss-brand-deep);
}

body.asis-ss-product.single-product .summary :is(.yith-wcwl-add-to-wishlist, .yith-ywraq-add-to-quote) :is(.feedback, .yith_ywraq_add_item_browse_message, .yith_ywraq_add_item_response_message) {
    font-size: 13.5px;
    color: var(--asis-ss-text);
}

body.asis-ss-product.single-product .summary #wc-stripe-express-checkout-element {
    margin-top: 4px !important;
    margin-bottom: 8px;
}

/* Description / information / shipping tabs */
body.asis-ss-product.single-product .woocommerce-tabs {
    margin-top: 40px;
    padding-top: 0;
    border: 0;
}

body.asis-ss-product.single-product .woocommerce-tabs ul.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--asis-ss-line);
    background: none;
    overflow: visible;
}

body.asis-ss-product.single-product .woocommerce-tabs ul.tabs::before,
body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li::before,
body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li::after {
    display: none;
    content: none;
}

body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 16px;
    margin-bottom: -1px;
    font-size: 15.5px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--asis-ss-text);
    border-bottom: 3px solid transparent;
    transition: color 150ms ease, border-color 150ms ease;
}

body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--asis-ss-ink);
}

body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li.active a {
    color: var(--asis-ss-brand);
    border-bottom-color: var(--asis-ss-brand);
}

body.asis-ss-product.single-product .woocommerce-tabs .panel {
    font-size: 15.5px;
    line-height: 1.7;
    color: #3b4458;
    max-width: 920px;
}

body.asis-ss-product.single-product .woocommerce-tabs .panel :is(h2, h3, h4) {
    color: var(--asis-ss-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

body.asis-ss-product.single-product .woocommerce-tabs .panel a:not(.button):not(.download-btn) {
    color: var(--asis-ss-brand);
}

/* Brochure / datasheet link in the description: <a class="download-btn"><button>.
   The button's green and its hover colour are inline styles in the product text, so
   they need !important to be replaced. */
body.asis-ss-product.single-product .woocommerce-tabs .panel a.download-btn {
    display: inline-block;
    text-decoration: none;
}

body.asis-ss-product.single-product .woocommerce-tabs .panel a.download-btn > button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 9px 18px;
    background: #fff !important;
    color: var(--asis-ss-brand) !important;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease !important;
}

body.asis-ss-product.single-product .woocommerce-tabs .panel a.download-btn > button::before {
    content: '';
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v12m0 0l-5-5m5 5l5-5M5 21h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.asis-ss-product.single-product .woocommerce-tabs .panel a.download-btn:hover > button,
body.asis-ss-product.single-product .woocommerce-tabs .panel a.download-btn:focus-visible > button {
    background: var(--asis-ss-wash) !important;
    border-color: var(--asis-ss-brand);
}

/* Additional information table */
body.asis-ss-product.single-product table.shop_attributes {
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}

body.asis-ss-product.single-product table.shop_attributes :is(th, td) {
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--asis-ss-line);
    background: #fff;
    font-style: normal;
    font-size: 14.5px;
}

body.asis-ss-product.single-product table.shop_attributes tr:last-child :is(th, td) {
    border-bottom: 0;
}

body.asis-ss-product.single-product table.shop_attributes th {
    width: 32%;
    background: var(--asis-ss-wash);
    color: var(--asis-ss-ink);
    font-weight: 600;
}

body.asis-ss-product.single-product table.shop_attributes td p {
    margin: 0;
    padding: 0;
}

/* Related / upsells: the theme's grey panel in the ASIS wash */
body.asis-ss-product.single-product section:is(.related, .upsells) {
    background: var(--asis-ss-wash);
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-lg);
}

body.asis-ss-product.single-product :is(.related, .upsells) > h2 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--asis-ss-ink);
    text-transform: none;
    margin: 0 0 18px;
}


/* ==========================================================================
   7. Cart, checkout and side cart
   ========================================================================== */

/* The page title is replaced by the steps bar visually; kept for screen readers */
body.asis-ss-cart:is(.woocommerce-cart, .woocommerce-checkout) #primary .entry-header {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Steps: Shopping cart > Checkout details > Order complete */
body.asis-ss-cart #ast-checkout-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 8px 0 28px;
    font-size: 15px;
}

body.asis-ss-cart #ast-checkout-wrap a {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--asis-ss-text);
    text-transform: none;
    letter-spacing: 0;
}

body.asis-ss-cart #ast-checkout-wrap a.ast-current {
    background: var(--asis-ss-wash);
    color: var(--asis-ss-brand);
    box-shadow: inset 0 0 0 1px var(--asis-ss-line);
}

body.asis-ss-cart #ast-checkout-wrap a:not(.ast-current):not(.ast-disable-click):hover {
    color: var(--asis-ss-brand);
}

body.asis-ss-cart #ast-checkout-wrap .ahfb-svg-iconset {
    color: #b3bccd;
}

body.asis-ss-cart #ast-checkout-wrap .ahfb-svg-iconset svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Cart table */
body.asis-ss-cart .woocommerce-cart-form table.shop_table,
body.asis-ss-account .woocommerce table.shop_table {
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}

body.asis-ss-cart .woocommerce-cart-form table.shop_table thead th,
body.asis-ss-account .woocommerce table.shop_table thead th {
    background: var(--asis-ss-wash);
    border: 0;
    border-bottom: 1px solid var(--asis-ss-line);
    padding: 12px 16px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--asis-ss-text);
}

body.asis-ss-cart .woocommerce-cart-form table.shop_table td,
body.asis-ss-account .woocommerce table.shop_table td {
    border: 0;
    border-top: 1px solid var(--asis-ss-line);
    padding: 16px;
    font-size: 15px;
    color: var(--asis-ss-ink);
    vertical-align: middle;
}

body.asis-ss-cart .woocommerce-cart-form table.shop_table tbody tr:first-child td {
    border-top: 0;
}

body.asis-ss-cart .woocommerce-cart-form .product-name a {
    color: var(--asis-ss-ink);
    font-weight: 600;
    line-height: 1.4;
}

body.asis-ss-cart .woocommerce-cart-form .product-name a:hover {
    color: var(--asis-ss-brand);
}

body.asis-ss-cart .woocommerce-cart-form .product-name :is(dl.variation, .wc-item-meta) {
    font-size: 13px;
    color: var(--asis-ss-text);
}

body.asis-ss-cart .woocommerce-cart-form :is(.product-price, .product-subtotal) {
    font-variant-numeric: tabular-nums;
}

body.asis-ss-cart .woocommerce-cart-form .product-subtotal {
    font-weight: 700;
}

body.asis-ss-cart .woocommerce-cart-form .product-thumbnail img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    padding: 4px;
}

body.asis-ss-cart .woocommerce-cart-form a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--asis-ss-line);
    border-radius: 50%;
    color: var(--asis-ss-text) !important;
    background: #fff;
    font-size: 18px;
    line-height: 1;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
}

body.asis-ss-cart .woocommerce-cart-form a.remove:hover {
    border-color: var(--asis-ss-danger);
    color: var(--asis-ss-danger) !important;
    background: #fff5f4;
}

body.asis-ss-cart .woocommerce-cart-form .quantity .qty {
    width: 76px;
    min-height: 42px;
    text-align: center;
    font-weight: 600;
}

body.asis-ss-cart .woocommerce-cart-form td.actions .coupon .input-text {
    min-height: 42px;
}

body.asis-ss-cart .woocommerce-cart-form td.actions .button {
    min-height: 42px;
    border-radius: var(--asis-ss-radius-sm);
    background: #fff;
    color: var(--asis-ss-brand);
    border: 1px solid var(--asis-ss-line);
    font-size: 14.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* Cart totals: wash card with the ASIS line on top */
body.asis-ss-cart .cart-collaterals .cart_totals {
    position: relative;
    background: var(--asis-ss-wash);
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    padding: 22px;
    box-shadow: none;
}

body.asis-ss-cart .cart-collaterals .cart_totals::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--asis-ss-rule);
}

body.asis-ss-cart .cart-collaterals .cart_totals > h2 {
    margin: 0 0 12px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--asis-ss-ink);
    text-transform: none;
}

body.asis-ss-cart .cart-collaterals .cart_totals table.shop_table {
    border: 0;
    margin: 0 0 8px;
    background: none;
}

body.asis-ss-cart .cart-collaterals .cart_totals table.shop_table :is(th, td) {
    background: none;
    border: 0;
    border-top: 1px solid var(--asis-ss-line);
    padding: 12px 0;
    font-size: 15px;
    color: var(--asis-ss-ink);
    vertical-align: top;
}

body.asis-ss-cart .cart-collaterals .cart_totals table.shop_table tr:first-child :is(th, td) {
    border-top: 0;
}

body.asis-ss-cart .cart-collaterals .cart_totals table.shop_table th {
    font-weight: 600;
    padding-right: 12px;
}

body.asis-ss-cart .cart-collaterals .cart_totals table.shop_table td {
    font-variant-numeric: tabular-nums;
}

body.asis-ss-cart .cart-collaterals .cart_totals .order-total :is(th, td) {
    font-size: 18px;
    font-weight: 700;
}

body.asis-ss-cart .cart-collaterals .cart_totals .woocommerce-shipping-methods li {
    margin: 0 0 6px;
}

body.asis-ss-cart :is(.cart_totals, #order_review) .woocommerce-shipping-methods label {
    color: var(--asis-ss-ink);
}

body.asis-ss-cart :is(.cart_totals, #order_review) .woocommerce-shipping-destination,
body.asis-ss-cart :is(.cart_totals, #order_review) .shipping-calculator-button {
    font-size: 14px;
    color: var(--asis-ss-text);
}

body.asis-ss-cart .cart_totals .shipping-calculator-button,
body.asis-ss-cart #ast-coupon-trigger {
    color: var(--asis-ss-brand);
    font-weight: 600;
    cursor: pointer;
}

body.asis-ss-cart .wc-proceed-to-checkout {
    padding: 12px 0 0;
}

/* Main actions: Proceed to checkout, Place order */
body.asis-ss-cart .wc-proceed-to-checkout a.checkout-button,
body.asis-ss-cart #place_order {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin: 8px 0 0;
    padding: 14px 20px;
    background: var(--asis-ss-brand);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
    transition: background 150ms ease;
}

body.asis-ss-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.asis-ss-cart #place_order:hover {
    background: var(--asis-ss-brand-deep);
    color: #fff;
}

/* Coupon box */
body.asis-ss-cart #ast-checkout-coupon .coupon {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

body.asis-ss-cart #ast-checkout-coupon .coupon .button,
body.asis-ss-cart .checkout_coupon .button {
    border-radius: var(--asis-ss-radius-sm);
    background: #fff;
    color: var(--asis-ss-brand);
    border: 1px solid var(--asis-ss-line);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* Empty cart */
body.asis-ss-cart .cart-empty.woocommerce-info {
    text-align: center;
    padding: 28px 20px;
    font-size: 17px;
}

body.asis-ss-cart .return-to-shop .button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 22px;
    background: var(--asis-ss-brand);
    color: #fff;
    border-radius: var(--asis-ss-radius-sm);
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

/* Cross-sells heading on the cart */
body.asis-ss-cart .cross-sells > h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--asis-ss-ink);
    text-transform: none;
}

/* Checkout */
body.asis-ss-cart.woocommerce-checkout form.checkout h3,
body.asis-ss-cart.woocommerce-checkout #order_review_heading {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--asis-ss-ink);
    text-transform: none;
}

body.asis-ss-cart.woocommerce-checkout form.checkout .form-row label {
    color: var(--asis-ss-text);
}

body.asis-ss-cart.woocommerce-checkout form.checkout .form-row .required {
    color: var(--asis-ss-danger);
}

body.asis-ss-cart.woocommerce-checkout form.checkout .woocommerce-invalid :is(input.input-text, select, .select2-selection) {
    border-color: var(--asis-ss-danger);
}

/* Order summary column: wash card with the ASIS line. The theme draws a green frame
   round the heading and the summary; the heading sits above the card instead. */
body.asis-ss-cart.woocommerce-checkout #order_review_heading {
    border: 0 !important;
    background: none;
    padding: 0 !important;
    margin: 0 0 14px;
}

body.asis-ss-cart.woocommerce-checkout #order_review {
    position: relative;
    background: var(--asis-ss-wash);
    border: 1px solid var(--asis-ss-line) !important;
    border-radius: var(--asis-ss-radius);
    padding: 22px !important;
    box-shadow: none;
}

body.asis-ss-cart.woocommerce-checkout #order_review::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 22px;
    right: 22px;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--asis-ss-rule);
}

body.asis-ss-cart.woocommerce-checkout #order_review table.shop_table {
    border: 0;
    background: none;
    margin: 0 0 16px;
}

body.asis-ss-cart.woocommerce-checkout #order_review table.shop_table :is(th, td) {
    background: none;
    border: 0;
    border-top: 1px solid var(--asis-ss-line);
    padding: 12px 0;
    font-size: 15px;
    color: var(--asis-ss-ink);
    vertical-align: top;
}

body.asis-ss-cart.woocommerce-checkout #order_review table.shop_table thead th {
    border-top: 0;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--asis-ss-text);
}

body.asis-ss-cart.woocommerce-checkout #order_review table.shop_table :is(td.product-total, tfoot td) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body.asis-ss-cart.woocommerce-checkout #order_review table.shop_table .woocommerce-shipping-totals td {
    text-align: left;
}

body.asis-ss-cart.woocommerce-checkout #order_review table.shop_table .product-name {
    color: var(--asis-ss-ink);
    font-weight: 500;
}

body.asis-ss-cart.woocommerce-checkout #order_review table.shop_table .product-quantity {
    color: var(--asis-ss-text);
    font-weight: 600;
}

body.asis-ss-cart.woocommerce-checkout #order_review .order-total :is(th, td) {
    font-size: 18px;
    font-weight: 700;
}

/* Payment options as selectable rows */
body.asis-ss-cart.woocommerce-checkout #payment {
    background: none;
    border-radius: 0;
}

body.asis-ss-cart.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    margin: 0 0 16px;
    border: 0;
}

body.asis-ss-cart.woocommerce-checkout #payment ul.payment_methods > li {
    list-style: none;
    margin: 0 0 8px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.asis-ss-cart.woocommerce-checkout #payment ul.payment_methods > li:has(> input:checked) {
    border-color: var(--asis-ss-brand);
    box-shadow: var(--asis-ss-ring);
}

body.asis-ss-cart.woocommerce-checkout #payment ul.payment_methods > li > label {
    font-size: 15px;
    font-weight: 600;
    color: var(--asis-ss-ink);
    cursor: pointer;
}

body.asis-ss-cart.woocommerce-checkout #payment ul.payment_methods > li > input[type="radio"] {
    accent-color: var(--asis-ss-brand);
}

body.asis-ss-cart.woocommerce-checkout #payment div.payment_box {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: var(--asis-ss-wash);
    border-radius: 8px;
    color: var(--asis-ss-text);
    font-size: 14px;
}

body.asis-ss-cart.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

body.asis-ss-cart.woocommerce-checkout #payment .place-order {
    padding: 0;
    margin: 0;
}

body.asis-ss-cart.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 14px;
    color: var(--asis-ss-text);
}

body.asis-ss-cart.woocommerce-checkout .ast-back-to-cart a {
    color: var(--asis-ss-brand);
    font-weight: 600;
    font-size: 14.5px;
}

/* Order received page */
body.asis-ss-cart .woocommerce-order ul.order_details {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin: 0 0 28px;
    background: var(--asis-ss-wash);
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    overflow: hidden;
}

body.asis-ss-cart .woocommerce-order ul.order_details li {
    flex: 1 1 160px;
    margin: 0;
    padding: 14px 18px;
    border: 0;
    border-right: 1px solid var(--asis-ss-line);
    font-size: 12.5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--asis-ss-text);
}

body.asis-ss-cart .woocommerce-order ul.order_details li strong {
    margin-top: 4px;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--asis-ss-ink);
}

body.asis-ss-cart .woocommerce-order .woocommerce-thankyou-order-received {
    font-size: 20px;
    font-weight: 700;
    color: var(--asis-ss-accent-deep);
}

/* Side cart (XootiX): header, rows and the three footer buttons */
body.asis-ss-cart .xoo-wsc-header {
    border-bottom: 1px solid var(--asis-ss-line);
}

body.asis-ss-cart .xoo-wsch-text {
    font-size: 19px;
    font-weight: 700;
    color: var(--asis-ss-ink);
}

body.asis-ss-cart .xoo-wsc-product {
    border-bottom: 1px solid var(--asis-ss-line);
}

body.asis-ss-cart .xoo-wsc-product .xoo-wsc-img-col img {
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius-sm);
    background: #fff;
}

body.asis-ss-cart .xoo-wsc-pname,
body.asis-ss-cart .xoo-wsc-pname a,
body.asis-ss-cart .xoo-wsc-pname .ast-product-name {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--asis-ss-ink);
}

body.asis-ss-cart .xoo-wsc-qty-price {
    font-size: 13.5px;
    color: var(--asis-ss-text);
    font-variant-numeric: tabular-nums;
}

body.asis-ss-cart .xoo-wsc-ft-totals,
body.asis-ss-cart .xoo-wsc-ft-amt {
    font-size: 17px;
    font-weight: 700;
    color: var(--asis-ss-ink);
}

body.asis-ss-cart .xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn {
    border-radius: var(--asis-ss-radius-sm);
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    background: #fff;
    color: var(--asis-ss-brand);
    border: 1px solid var(--asis-ss-line);
    transition: background 150ms ease, border-color 150ms ease;
}

body.asis-ss-cart .xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn:hover {
    background: var(--asis-ss-wash);
    border-color: var(--asis-ss-brand);
    color: var(--asis-ss-brand-deep);
}

body.asis-ss-cart .xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn-checkout {
    background: var(--asis-ss-brand);
    border-color: var(--asis-ss-brand);
    color: #fff;
}

body.asis-ss-cart .xoo-wsc-ft-buttons-cont .xoo-wsc-ft-btn-checkout:hover {
    background: var(--asis-ss-brand-deep);
    border-color: var(--asis-ss-brand-deep);
    color: #fff;
}


/* ==========================================================================
   8. My Account
   ========================================================================== */

body.asis-ss-account.woocommerce-account #primary .entry-header .entry-title {
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--asis-ss-ink);
}

body.asis-ss-account .woocommerce-MyAccount-navigation {
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    overflow: hidden;
    padding: 0;
}

body.asis-ss-account .woocommerce-MyAccount-navigation .ast-wooaccount-user-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin: 0;
    background: var(--asis-ss-wash);
    border-bottom: 1px solid var(--asis-ss-line);
}

body.asis-ss-account .woocommerce-MyAccount-navigation .ast-wooaccount-user-wrapper img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--asis-ss-line);
    object-fit: cover;
}

body.asis-ss-account .woocommerce-MyAccount-navigation .ast-username {
    font-size: 15px;
    color: var(--asis-ss-ink);
}

body.asis-ss-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 6px 0;
    border: 0;
    list-style: none;
}

body.asis-ss-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 0;
    border: 0;
}

body.asis-ss-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border: 0;
    border-left: 3px solid transparent;
    font-size: 15px;
    font-weight: 500;
    color: var(--asis-ss-ink);
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
}

body.asis-ss-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--asis-ss-wash);
    color: var(--asis-ss-brand);
}

body.asis-ss-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--asis-ss-wash);
    color: var(--asis-ss-brand);
    font-weight: 600;
    border-left-color: var(--asis-ss-accent);
}

body.asis-ss-account .woocommerce-MyAccount-navigation ul li.is-active a::after,
body.asis-ss-account .woocommerce-MyAccount-navigation ul li.is-active::after {
    display: none;
}

body.asis-ss-account .woocommerce-MyAccount-content {
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    padding: 24px;
    box-shadow: none;
    color: var(--asis-ss-ink);
    font-size: 15.5px;
    line-height: 1.6;
}

body.asis-ss-account .woocommerce-MyAccount-content a:not(.button) {
    color: var(--asis-ss-brand);
    font-weight: 600;
}

body.asis-ss-account .woocommerce-MyAccount-content :is(h2, h3, legend) {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--asis-ss-ink);
    text-transform: none;
}

body.asis-ss-account .woocommerce table.shop_table tbody tr:first-child td {
    border-top: 0;
}

body.asis-ss-account .woocommerce table.shop_table :is(.woocommerce-orders-table__cell-order-number, .woocommerce-orders-table__cell-order-total) {
    font-variant-numeric: tabular-nums;
}

body.asis-ss-account .woocommerce table.shop_table .woocommerce-orders-table__cell-order-number a {
    font-weight: 700;
}

/* Small table / form buttons (View, Pay, Save address...) */
body.asis-ss-account .woocommerce :is(a.button, button.button, input.button, .woocommerce-Button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    background: var(--asis-ss-brand);
    color: #fff;
    border: 0;
    border-radius: var(--asis-ss-radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    transition: background 150ms ease;
}

body.asis-ss-account .woocommerce :is(a.button, button.button, input.button, .woocommerce-Button):hover {
    background: var(--asis-ss-brand-deep);
    color: #fff;
}

body.asis-ss-account .woocommerce table.shop_table .button + .button {
    margin-left: 6px;
}

/* Astra's account orders grid (.ast-woo-grid-orders-container) uses plain links for
   View, Pay and Cancel; make them buttons */
body.asis-ss-account .woocommerce-MyAccount-content a:is(.view, .pay, .cancel, .order-again, .invoice) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 2px 6px 2px 0;
    padding: 6px 14px;
    background: #fff;
    color: var(--asis-ss-brand);
    border: 1px solid var(--asis-ss-line);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease;
}

body.asis-ss-account .woocommerce-MyAccount-content a:is(.view, .order-again, .invoice):hover {
    background: var(--asis-ss-wash);
    border-color: var(--asis-ss-brand);
}

body.asis-ss-account .woocommerce-MyAccount-content a.pay {
    background: var(--asis-ss-brand);
    border-color: var(--asis-ss-brand);
    color: #fff;
}

body.asis-ss-account .woocommerce-MyAccount-content a.pay:hover {
    background: var(--asis-ss-brand-deep);
}

body.asis-ss-account .woocommerce-MyAccount-content a.cancel {
    color: var(--asis-ss-danger);
}

body.asis-ss-account .woocommerce-MyAccount-content a.cancel:hover {
    background: #fff5f4;
    border-color: var(--asis-ss-danger);
}

/* ── Dashboard (includes/account.php) ── */

/* WooCommerce's two plain dashboard paragraphs are replaced by the panel below */
body.asis-ss-acc-dashboard .woocommerce-MyAccount-content > p {
    display: none;
}

body.asis-ss-account .asis-ss-acc-dash {
    display: grid;
    gap: 22px;
}

body.asis-ss-account .asis-ss-acc-hello {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 22px 24px;
    border-radius: var(--asis-ss-radius);
    background: linear-gradient(135deg, var(--asis-ss-brand) 0%, #2c4fae 60%, #3d63c4 100%);
    color: #fff;
    overflow: hidden;
}

body.asis-ss-account .asis-ss-acc-hello::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--asis-ss-accent), rgba(151, 192, 58, 0.2));
}

body.asis-ss-account .asis-ss-acc-eyebrow {
    margin: 0 0 4px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

body.asis-ss-account .asis-ss-acc-hello h2 {
    margin: 0;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #fff;
}

body.asis-ss-account .asis-ss-acc-company {
    margin: 4px 0 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
}

body.asis-ss-account a.asis-ss-acc-shop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--asis-ss-brand) !important;
    font-weight: 700;
    text-decoration: none;
    transition: transform 150ms ease, box-shadow 150ms ease;
}

body.asis-ss-account a.asis-ss-acc-shop:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

body.asis-ss-account .asis-ss-acc-icon {
    width: 22px;
    height: 22px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.asis-ss-account .asis-ss-acc-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.asis-ss-account .asis-ss-acc-tiles li {
    margin: 0;
}

body.asis-ss-account .asis-ss-acc-tiles a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 16px;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    background: #fff;
    color: var(--asis-ss-ink) !important;
    font-weight: 400 !important;
    text-decoration: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.asis-ss-account .asis-ss-acc-tiles a:hover {
    border-color: var(--asis-ss-brand);
    box-shadow: var(--asis-ss-shadow-hover);
    transform: translateY(-2px);
}

body.asis-ss-account .asis-ss-acc-tiles .asis-ss-acc-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    margin-bottom: 8px;
    border-radius: 12px;
    background: var(--asis-ss-wash);
    color: var(--asis-ss-brand);
}

body.asis-ss-account .asis-ss-acc-tile-title {
    font-size: 15.5px;
    font-weight: 700;
}

body.asis-ss-account .asis-ss-acc-tile-sub {
    font-size: 13.5px;
    color: var(--asis-ss-text);
}

body.asis-ss-account .asis-ss-acc-recent-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.asis-ss-account .asis-ss-acc-recent-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--asis-ss-ink);
}

body.asis-ss-account .asis-ss-acc-orders {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    overflow: hidden;
}

/* Each row has fixed lanes: order | status | total | buttons. When the dashboard itself
   is narrow (laptop with the menu beside it, or a phone) it becomes two lines:
   order and total on top, status and buttons below. Sized by the list's own width
   (a container query), not the window's. */
body.asis-ss-account .asis-ss-acc-orders {
    container-type: inline-size;
}

body.asis-ss-account .asis-ss-acc-orders li {
    display: grid;
    /* Fixed button lane (fits View + Order again) so every row's status and total line up */
    grid-template-columns: minmax(0, 1fr) 150px 110px 180px;
    grid-template-areas: "main chip total actions";
    align-items: center;
    gap: 10px 22px;
    margin: 0;
    padding: 16px 20px;
    border-top: 1px solid var(--asis-ss-line);
    background: #fff;
    transition: background 150ms ease;
}

body.asis-ss-account .asis-ss-acc-orders li:hover {
    background: #fafbfd;
}

body.asis-ss-account .asis-ss-acc-order-main { grid-area: main; }
body.asis-ss-account .asis-ss-acc-orders .asis-ss-acc-chip { grid-area: chip; justify-self: start; }
body.asis-ss-account .asis-ss-acc-order-total { grid-area: total; justify-self: end; text-align: right; }
body.asis-ss-account .asis-ss-acc-order-actions { grid-area: actions; }

@container (max-width: 700px) {
    body.asis-ss-account .asis-ss-acc-orders li {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "main total"
            "chip actions";
        gap: 10px 16px;
    }

    body.asis-ss-account .asis-ss-acc-order-actions {
        justify-content: flex-end;
    }
}

/* Phones: a row with two buttons puts them on their own line so the order details keep their width */
@container (max-width: 460px) {
    body.asis-ss-account .asis-ss-acc-orders li:has(.asis-ss-acc-order-actions > :nth-child(2)) {
        grid-template-areas:
            "main total"
            "chip chip"
            "actions actions";
    }

    body.asis-ss-account .asis-ss-acc-orders li:has(.asis-ss-acc-order-actions > :nth-child(2)) .asis-ss-acc-order-actions {
        justify-content: flex-start;
    }
}

body.asis-ss-account .asis-ss-acc-orders li:first-child {
    border-top: 0;
}

body.asis-ss-account .asis-ss-acc-order-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.asis-ss-account a.asis-ss-acc-order-no {
    font-weight: 700;
    color: var(--asis-ss-ink) !important;
}

body.asis-ss-account .asis-ss-acc-order-meta {
    font-size: 13.5px;
    color: var(--asis-ss-text);
}

body.asis-ss-account .asis-ss-acc-order-total {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

body.asis-ss-account .asis-ss-acc-order-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

body.asis-ss-account a.asis-ss-acc-btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid var(--asis-ss-line);
    border-radius: 8px;
    background: #fff;
    color: var(--asis-ss-brand) !important;
    font-size: 14px;
    font-weight: 600 !important;
    text-decoration: none;
    white-space: nowrap;
}

body.asis-ss-account a.asis-ss-acc-btn:hover {
    border-color: var(--asis-ss-brand);
    background: var(--asis-ss-wash);
}

body.asis-ss-account a.asis-ss-acc-btn--primary {
    background: var(--asis-ss-brand);
    border-color: var(--asis-ss-brand);
    color: #fff !important;
}

body.asis-ss-account a.asis-ss-acc-btn--primary:hover {
    background: var(--asis-ss-brand-deep);
}

body.asis-ss-account .asis-ss-acc-empty {
    margin: 0;
    padding: 18px;
    border: 1px dashed var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    color: var(--asis-ss-text);
    text-align: center;
}

/* Status chips: orders (dashboard) and quotes (YITH's raq_status) */
body.asis-ss-account :is(.asis-ss-acc-chip, .raq_status) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-transform: capitalize;
    background: var(--asis-ss-wash);
    color: var(--asis-ss-text);
    border: 1px solid var(--asis-ss-line);
}

body.asis-ss-account :is(.asis-ss-acc-chip, .raq_status)::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

body.asis-ss-account :is(.asis-ss-acc-chip--completed, .raq_status.accepted) {
    background: #f4f9ea;
    border-color: rgba(95, 138, 23, 0.3);
    color: var(--asis-ss-accent-deep);
}

body.asis-ss-account :is(.asis-ss-acc-chip--processing, .asis-ss-acc-chip--on-hold, .raq_status.new, .raq_status.pending) {
    background: #eef3ff;
    border-color: rgba(35, 65, 150, 0.22);
    color: var(--asis-ss-brand);
}

body.asis-ss-account :is(.asis-ss-acc-chip--pending) {
    background: #fff8eb;
    border-color: rgba(154, 98, 0, 0.25);
    color: #9a6200;
}

body.asis-ss-account :is(.asis-ss-acc-chip--cancelled, .asis-ss-acc-chip--failed, .asis-ss-acc-chip--refunded, .raq_status.expired, .raq_status.rejected) {
    background: #fff5f4;
    border-color: rgba(180, 35, 24, 0.22);
    color: var(--asis-ss-danger);
}

/* Quotes list (YITH): a card-like table */
body.asis-ss-account .ywraq_my_account_quotes_title {
    font-size: 20px;
    font-weight: 700;
    color: var(--asis-ss-ink);
}

body.asis-ss-account table.my_account_quotes {
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #fff;
}

body.asis-ss-account table.my_account_quotes :is(th, td) {
    padding: 13px 16px;
    border: 0;
    border-top: 1px solid var(--asis-ss-line);
    vertical-align: middle;
}

body.asis-ss-account table.my_account_quotes thead th {
    border-top: 0;
    background: var(--asis-ss-wash);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--asis-ss-text);
}

body.asis-ss-account table.my_account_quotes td.quotes-number a {
    font-weight: 700;
}

body.asis-ss-account table.my_account_quotes br {
    display: none;
}

/* Address and account-details forms: labels above the fields (Astra floats them over
   the fields), the page's auto-paragraph <br>s hidden, same fields as the request form */
body.asis-ss-account .woocommerce-MyAccount-content form br,
body.asis-ss-account .woocommerce-MyAccount-content form p:empty {
    display: none;
}

body.asis-ss-account .woocommerce-MyAccount-content form .form-row label:not(.woocommerce-form__label-for-checkbox):not(.checkbox) {
    position: static !important;
    transform: none !important;
    pointer-events: auto !important;
    display: block;
    margin: 0 0 6px !important;
    padding: 0 !important;
    font-size: 14.5px !important;
    font-weight: 600 !important;
    color: var(--asis-ss-ink) !important;
    opacity: 1 !important;
}

body.asis-ss-account .woocommerce-MyAccount-content form .form-row :is(input.input-text, select, textarea) {
    min-height: 46px;
    padding: 10px 14px !important;
}

body.asis-ss-account .woocommerce-MyAccount-content form .form-row input::placeholder {
    color: #9aa3b5;
}

body.asis-ss-account .woocommerce-MyAccount-content form .form-row {
    margin-bottom: 16px;
}

body.asis-ss-account .woocommerce-MyAccount-content form fieldset {
    margin: 22px 0 8px;
    padding: 18px 18px 4px;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    background: var(--asis-ss-wash);
}

body.asis-ss-account .woocommerce-MyAccount-content form fieldset legend {
    padding: 0 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--asis-ss-text);
}

body.asis-ss-account .woocommerce-MyAccount-content form em {
    font-style: normal;
    font-size: 13px;
    color: var(--asis-ss-text);
}

/* Addresses */
body.asis-ss-account .woocommerce-Addresses .woocommerce-Address {
    background: var(--asis-ss-wash);
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    padding: 18px;
}

body.asis-ss-account .woocommerce-Addresses .woocommerce-Address-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

body.asis-ss-account .woocommerce-Addresses address {
    font-style: normal;
    line-height: 1.6;
    color: var(--asis-ss-ink);
}

/* Logged out: login and register side by side as cards */
body.asis-ss-account :is(.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword) {
    background: #fff;
    border: 1px solid var(--asis-ss-line);
    border-radius: var(--asis-ss-radius);
    padding: 24px;
    margin: 0 0 24px;
    box-shadow: none;
}

body.asis-ss-account #customer_login :is(h2) {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--asis-ss-ink);
    text-transform: none;
}

body.asis-ss-account :is(.woocommerce-form-login, .woocommerce-form-register) .woocommerce-form-row label {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--asis-ss-ink);
}

body.asis-ss-account :is(.woocommerce-form-login, .woocommerce-form-register) .woocommerce-form-row .input-text {
    min-height: 46px;
    padding: 10px 14px;
}

body.asis-ss-account .woocommerce-LostPassword a {
    color: var(--asis-ss-brand);
    font-weight: 600;
}


/* ==========================================================================
   9. Homepage and other pages
   Text, links, headings and buttons. Colours and layouts built in Elementor stay.
   ========================================================================== */

/* Normal (non-Elementor) page text */
body.asis-ss-pages .entry-content:not(.elementor *) > :is(p, ul, ol) {
    line-height: 1.7;
}

body.asis-ss-pages:not(.woocommerce-page) .entry-content a:not(.button):not(.elementor-button):not([class*="elementor"]) {
    color: var(--asis-ss-brand);
    text-underline-offset: 2px;
}

body.asis-ss-pages:not(.woocommerce-page):not(.elementor-page) .entry-header .entry-title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--asis-ss-ink);
}

body.asis-ss-pages:not(.elementor-page) .entry-content :is(h2, h3) {
    color: var(--asis-ss-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}

/* Elementor content (not the header and footer, which follow the header area) */
body.asis-ss-pages .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-heading-title {
    letter-spacing: -0.01em;
}

body.asis-ss-pages .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-button {
    border-radius: 12px;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

body.asis-ss-pages .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(35, 65, 150, 0.16);
}

body.asis-ss-pages .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-image img {
    border-radius: inherit;
}

/* Icon boxes (e.g. "Why choose ASIS Scientific") lift a little on hover */
body.asis-ss-pages .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-icon-box .elementor-icon {
    transition: transform 200ms ease;
}

body.asis-ss-pages .elementor:not(.elementor-location-header):not(.elementor-location-footer) .elementor-widget-icon-box:hover .elementor-icon {
    transform: translateY(-3px);
}

/* Ninja Forms in page content (contact, custom glassware, clearance). Its "Layout &
   Styles" add-on prints its own colours, hence the !important on those. The footer
   mailing list keeps its dark-footer look and only gets the rounding and focus ring. */
body.asis-ss-pages #content .nf-form-cont {
    font-family: var(--asis-ss-font);
    color: var(--asis-ss-ink);
}

body.asis-ss-pages #content .nf-form-cont .nf-field-container {
    margin-bottom: 16px;
}

body.asis-ss-pages #content .nf-form-cont .nf-field-label label {
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--asis-ss-ink) !important;
    margin-bottom: 6px;
}

body.asis-ss-pages .nf-form-cont .ninja-forms-req-symbol,
body.asis-ss-pages .nf-form-cont .nf-form-fields-required .ninja-forms-req-symbol {
    color: var(--asis-ss-danger) !important;
}

body.asis-ss-pages #content .nf-form-cont .nf-form-fields-required {
    font-size: 13.5px;
    color: var(--asis-ss-text);
    margin-bottom: 14px;
}

body.asis-ss-pages #content .nf-form-cont :is(input.ninja-forms-field:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]), textarea.ninja-forms-field, select.ninja-forms-field) {
    min-height: 46px;
    padding: 10px 14px !important;
    background: #fff !important;
    border: 1px solid #cdd5e3 !important;
    border-radius: var(--asis-ss-radius-sm) !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 15.5px;
    color: var(--asis-ss-ink) !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

body.asis-ss-pages #content .nf-form-cont textarea.ninja-forms-field {
    min-height: 140px;
    resize: vertical;
}

body.asis-ss-pages .nf-form-cont :is(input.ninja-forms-field, textarea.ninja-forms-field, select.ninja-forms-field):focus {
    border-color: var(--asis-ss-brand) !important;
    box-shadow: var(--asis-ss-ring) !important;
    outline: none;
}

body.asis-ss-pages #content .nf-form-cont .nf-error :is(input.ninja-forms-field, textarea.ninja-forms-field, select.ninja-forms-field) {
    border-color: var(--asis-ss-danger) !important;
}

body.asis-ss-pages .nf-form-cont .nf-error-msg,
body.asis-ss-pages .nf-form-cont .nf-error-wrap .nf-error-msg,
body.asis-ss-pages .nf-form-cont .nf-form-errors .nf-error-msg {
    margin-top: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--asis-ss-danger) !important;
}

body.asis-ss-pages #content .nf-form-cont .nf-form-errors .nf-error-msg {
    padding: 10px 14px;
    border: 1px solid rgba(180, 35, 24, 0.25);
    border-left: 4px solid var(--asis-ss-danger);
    border-radius: var(--asis-ss-radius-sm);
    background: #fff5f4;
    color: var(--asis-ss-ink) !important;
}

body.asis-ss-pages #content .nf-form-cont .submit-container :is(input[type="submit"], input[type="button"]) {
    min-width: 180px;
    min-height: 48px;
    padding: 12px 26px !important;
    background: var(--asis-ss-brand) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: var(--asis-ss-radius-sm) !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
    transition: background 150ms ease;
}

body.asis-ss-pages #content .nf-form-cont .submit-container :is(input[type="submit"], input[type="button"]):hover {
    background: var(--asis-ss-brand-deep) !important;
}

body.asis-ss-pages #content .nf-form-cont .nf-response-msg {
    padding: 16px 18px;
    border: 1px solid rgba(95, 138, 23, 0.3);
    border-radius: var(--asis-ss-radius);
    background: #f4f9ea;
    color: var(--asis-ss-ink);
}

/* Footer mailing list: rounded field and button, ASIS focus ring */
body.asis-ss-pages .elementor-location-footer .nf-form-cont input.ninja-forms-field:not([type="submit"]):not([type="button"]) {
    border-radius: var(--asis-ss-radius-sm) !important;
}

body.asis-ss-pages .elementor-location-footer .nf-form-cont :is(input[type="submit"], input[type="button"]) {
    border-radius: var(--asis-ss-radius-sm) !important;
}

/* The spam check's slot (ASIS Accounts) takes no room unless Cloudflare shows a box */
.nf-form-cont .asis-ts-slot:empty,
.asis-ts-slot[data-appearance="interaction-only"]:empty {
    display: none;
}

.nf-form-cont .asis-ts-slot:not(:empty) {
    margin: 4px 0 14px;
}

/* Forms on pages (contact, WPForms) */
body.asis-ss-pages .wpforms-container :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], textarea, select) {
    border: 1px solid #cdd5e3 !important;
    border-radius: var(--asis-ss-radius-sm) !important;
    box-shadow: none !important;
}

body.asis-ss-pages .wpforms-container :is(input, textarea, select):focus {
    border-color: var(--asis-ss-brand) !important;
    box-shadow: var(--asis-ss-ring) !important;
}

body.asis-ss-pages .wpforms-container .wpforms-submit {
    border-radius: var(--asis-ss-radius-sm) !important;
    font-weight: 600 !important;
}


/* ==========================================================================
   10. Smaller screens, reduced motion
   ========================================================================== */

/* Radio buttons and checkboxes in the cart and checkout: bigger, in ASIS blue */
body.asis-ss-cart:is(.woocommerce-cart, .woocommerce-checkout) :is(input[type="radio"], input[type="checkbox"]) {
    width: 18px;
    height: 18px;
    accent-color: var(--asis-ss-brand);
    vertical-align: -3px;
}

/* Tablets and phones: the product grid works like the Merck page's - 3 across, then 2
   on phones - instead of Astra's floated 2-then-1 columns. */
@media (max-width: 921px) {
    body.asis-ss-shop ul.products:not(.ast-slider-wrap) {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
        margin-left: 0;
        margin-right: 0;
    }

    body.asis-ss-shop ul.products:not(.ast-slider-wrap)::before,
    body.asis-ss-shop ul.products:not(.ast-slider-wrap)::after {
        display: none !important;
    }

    body.asis-ss-shop ul.products:not(.ast-slider-wrap) > li.product {
        width: auto !important;
        max-width: none !important;
        float: none !important;
        margin: 0 !important;
        clear: none !important;
    }

    /* iOS zooms the page into any field with text under 16px; keep them at 16px */
    body.asis-ss :is(.woocommerce, .woocommerce-page, .xoo-wsc-modal) :is(input.input-text, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], textarea, select),
    body.asis-ss-shop .woocommerce-ordering select,
    body.asis-ss .dgwt-wcas-search-input,
    body.asis-ss-pages .nf-form-cont .ninja-forms-field:not([type="submit"]):not([type="button"]) {
        font-size: 16px !important;
    }

    /* Finger-sized controls (44px is the usual minimum) */
    body.asis-ss-cart .woocommerce-cart-form a.remove {
        width: 40px;
        height: 40px;
    }

    body.asis-ss-cart #ast-checkout-wrap a {
        min-height: 40px;
    }

    body.asis-ss-cart .cart_totals .shipping-calculator-button,
    body.asis-ss-cart #ast-coupon-trigger {
        display: inline-block;
        padding: 10px 0;
    }

    body.asis-ss-cart .woocommerce-shipping-methods li label,
    body.asis-ss-cart.woocommerce-checkout #payment ul.payment_methods > li > label {
        display: inline-block;
        padding: 6px 0;
    }

    body.asis-ss-account .woocommerce-MyAccount-content a:is(.view, .pay, .cancel, .order-again, .invoice) {
        min-height: 40px;
        padding: 8px 16px;
    }

    body.asis-ss-account .woocommerce-MyAccount-navigation ul li a {
        min-height: 44px;
    }

    /* Product tabs: one row that scrolls sideways instead of wrapping to two rows */
    body.asis-ss-product.single-product .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.asis-ss-product.single-product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
        display: none;
    }

    body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li {
        flex: 0 0 auto;
    }

    body.asis-ss-product.single-product .woocommerce-tabs ul.tabs li a {
        white-space: nowrap;
        min-height: 44px;
    }

    /* Astra centres everything on phones; long text and the summary read better left-aligned */
    body.asis-ss-product.single-product .woocommerce-tabs .panel,
    body.asis-ss-product.single-product .summary {
        text-align: left;
    }

    body.asis-ss-shop #secondary .widget_mgwoocommercebrands > ul {
        max-height: 320px;
    }

    body.asis-ss-shop #secondary .widget_mgwoocommercebrands li a {
        padding: 10px;
    }

    /* Phones and tablets: a lighter backdrop - a few icons in the margins, no lines */
    body.asis-ss-backdrop .asis-ss-bg-line,
    body.asis-ss-backdrop .asis-ss-bg-dots--b,
    body.asis-ss-backdrop .asis-ss-bg-dots--c,
    body.asis-ss-backdrop--product .asis-ss-bg-icon,
    body.asis-ss-backdrop .asis-ss-bg-icon--extra {
        display: none;
    }

    body.asis-ss-product.single-product div.product .woocommerce-product-gallery {
        padding: 12px;
        border-radius: var(--asis-ss-radius);
    }

    body.asis-ss-cart.woocommerce-checkout #order_review,
    body.asis-ss-cart .cart-collaterals .cart_totals {
        padding: 18px;
    }
}

@media (max-width: 560px) {
    body.asis-ss-shop ul.products:not(.ast-slider-wrap) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.asis-ss-shop ul.products li.product .woocommerce-loop-product__title {
        font-size: 13.5px;
    }

    body.asis-ss-shop .asis-ss-tile-sku {
        font-size: 12px;
    }

    body.asis-ss-shop ul.products li.product .button {
        padding-left: 6px;
        padding-right: 6px;
        white-space: nowrap;
    }

    /* Two tiles a row: drop the button icons so the words fit */
    body.asis-ss-shop ul.products li.product .button::before,
    body.asis-ss-shop ul.products li.product .button > i,
    body.asis-ss-shop ul.products li.product .button > svg {
        display: none !important;
    }
}

@media (max-width: 544px) {
    body.asis-ss-shop ul.products li.product .astra-shop-thumbnail-wrap {
        padding: 10px;
    }

    body.asis-ss-shop ul.products li.product .astra-shop-summary-wrap {
        padding: 10px 10px 12px;
    }

    body.asis-ss-shop ul.products li.product .yith-ywraq-add-to-quote {
        padding: 0 10px 12px;
    }

    body.asis-ss-shop ul.products li.product .price {
        font-size: 17px;
    }

    body.asis-ss-shop ul.products li.product .button {
        font-size: 14px;
        padding: 8px 10px;
    }

    body.asis-ss-product.single-product .summary form.cart {
        padding: 14px;
    }

    body.asis-ss-product.single-product .summary :is(.yith-wcwl-add-to-wishlist, .yith-ywraq-add-to-quote) {
        display: block;
        margin: 8px 0 0;
    }

    body.asis-ss-product.single-product .summary :is(.yith-wcwl-add-to-wishlist, .yith-ywraq-add-to-quote) :is(a.button, .button, .add-request-quote-button, .add_to_wishlist) {
        width: 100%;
    }

    body.asis-ss-cart #ast-checkout-wrap a {
        padding: 6px 10px;
        font-size: 13.5px;
    }

    body.asis-ss-account .woocommerce-MyAccount-content {
        padding: 18px;
    }

    body.asis-ss-account .asis-ss-acc-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.asis-ss-account .asis-ss-acc-hello h2 {
        font-size: 22px !important; /* Astra shrinks h2 on phones */
    }

    /* Account menu: one row of pills that scrolls sideways */
    body.asis-ss-account .woocommerce-MyAccount-navigation ul {
        display: flex !important;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        padding: 10px 12px !important;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    body.asis-ss-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
        display: none;
    }

    body.asis-ss-account .woocommerce-MyAccount-navigation ul li {
        flex: 0 0 auto;
        width: auto !important;
    }

    body.asis-ss-account .woocommerce-MyAccount-navigation ul li a {
        min-height: 40px;
        padding: 8px 14px !important;
        border: 1px solid var(--asis-ss-line) !important;
        border-radius: 999px;
        white-space: nowrap;
        font-size: 14px;
    }

    body.asis-ss-account .woocommerce-MyAccount-navigation ul li.is-active a {
        background: var(--asis-ss-brand) !important;
        border-color: var(--asis-ss-brand) !important;
        color: #fff !important;
    }

    body.asis-ss-account .woocommerce-MyAccount-navigation ul li a::before,
    body.asis-ss-account .woocommerce-MyAccount-navigation ul li a :is(svg, i, img, .ast-icon, [class*="icon"]) {
        display: none !important; /* Astra's icons: the pills read better without them */
    }

    body.asis-ss-account .woocommerce-MyAccount-navigation ul li a {
        gap: 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.asis-ss *,
    body.asis-ss *::before,
    body.asis-ss *::after {
        transition-duration: 0.01ms !important;
    }

    body.asis-ss-pages .elementor .elementor-button:hover,
    body.asis-ss-pages .elementor .elementor-widget-icon-box:hover .elementor-icon {
        transform: none;
    }

    body.asis-ss-backdrop .asis-ss-bg-line-pulse,
    body.asis-ss-backdrop .asis-ss-bg-line-glow {
        display: none;
    }

    body.asis-ss-backdrop .asis-ss-bg-icon {
        animation: none;
    }
}
