/* aieo-side-cart-contents.css — DRAWER CONTENTS (Phase-CSS split 2026-06-13).
   Lazy companion to aieo-side-cart.css. Styles ONLY nodes injected after the
   drawer first opens: reco 'you might like' cards, RV + Favorites card lists,
   the 'you may also like' carousel, role-pricing badge on cards, and quick-view.
   Injected as a <link> by aieo-side-cart.js the first time the cart opens, in
   parallel with the reco AJAX hydration. NOT loaded on page render. */
/* ---- Compact .aieo-card skin scoped to the side-cart -----------------
 * Same DTO-rendered markup as the product page (.aieo-recommendations
 * .aieo-card), styled here as a stacked thumb + name + price block that
 * fits a 220px-wide left column or the bottom carousel slide.
 * --------------------------------------------------------------------- */

/* ===== Side-cart OWN button tokens (shadow the global :root leak) ======
 * Tools → Button Styles prints --aieo-btn-* on the GLOBAL :root for every
 * storefront page (class-aieo-dmm-button-styles.php). The side-cart action
 * buttons below read those SAME vars, so the generic site button colour
 * leaked in and the per-rule fallbacks (#c0a37b etc.) were dead. Re-assert
 * the cart's OWN defaults here, scoped to .aieo-sc-root — an ancestor of
 * every .aieo-sc-btn-* — so within the cart the global :root values are
 * shadowed. These are var DEFAULTS only; build_action_button_css() still
 * emits the operator's saved per-cart colours as .aieo-sc-btn-*{..!important}
 * inline AFTER this file, so configured side-cart colours keep winning. */
.aieo-sc-root {
    --aieo-btn-bg: var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, CanvasText));
    --aieo-btn-fg: var(--wp--custom--rooster--button--text, var(--wp--preset--color--on-accent, var(--wp--preset--color--base, Canvas)));
    --aieo-btn-bg-hover: color-mix(in srgb, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, CanvasText)) 85%, var(--wp--preset--color--fg, Canvas));
    --aieo-btn-secondary-bg: var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 8%, Canvas));
    --aieo-btn-secondary-fg: var(--wp--preset--color--fg, CanvasText);
    --aieo-btn-secondary-bg-hover: color-mix(in srgb, var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 8%, Canvas)) 88%, var(--wp--preset--color--fg, CanvasText));
}
/* Under the theme's design authority (contract C2@2) its one button colour
   drives every element in light and dark, as Button Styles maps it: the
   theme's button for CHECKOUT, its subtle surface for CART. Saved per-cart
   colours (build_action_button_css) still win. */
html[data-rooster-design="theme"] .aieo-sc-root {
    --aieo-btn-bg: var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent));
    --aieo-btn-fg: var(--wp--custom--rooster--button--text, var(--wp--preset--color--on-accent, var(--wp--preset--color--bg)));
    --aieo-btn-bg-hover: color-mix(in srgb, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent)) 85%, var(--wp--custom--rooster--button--away));
    --aieo-btn-secondary-bg: var(--wp--preset--color--subtle);
    --aieo-btn-secondary-fg: var(--wp--preset--color--fg);
    --aieo-btn-secondary-bg-hover: color-mix(in srgb, var(--wp--preset--color--subtle) 88%, var(--wp--preset--color--fg));
}

.aieo-sc-root .aieo-card {
    display: block;
    color: inherit;
    text-decoration: none;
    font-family: inherit;
}
.aieo-sc-root .aieo-card-img-wrap {
    position: relative;
    isolation: isolate; /* its badges count inside the picture, never in the page's stacking (11.3.16, F13b) */
    background: var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 6%, Canvas));
    margin: 0 auto 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.aieo-sc-root .aieo-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.aieo-sc-root .aieo-card-onsale {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    z-index: 3;
    background: var(--wp--preset--color--accent-2, CanvasText);
    color: var(--wp--preset--color--on-accent-2, var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas))); /* the second accent's own ink, the palette's on-accent-2 */
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 3px 7px;
    border-radius: 0;
    text-transform: uppercase;
}
.aieo-sc-root .aieo-card-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--wp--preset--color--fg, currentColor);
    line-height: 1.3;
    margin: 0 0 4px;
    overflow-wrap: anywhere;
}
.aieo-sc-root .aieo-card-price {
    font-size: 13px;
    line-height: 1.2;
    color: var(--wp--preset--color--fg, currentColor);
}
.aieo-sc-root .aieo-card-price del {
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
    margin-inline-end: 6px;
}
.aieo-sc-root .aieo-card-price ins {
    text-decoration: none;
    font-weight: 600;
}
.aieo-sc-root .aieo-card:hover .aieo-card-name {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.aieo-sc-root .aieo-card.is-out-of-stock { opacity: .55; }

/* Left "you might like" column — each item is a flat all-white card
 * with a single hairline border around the WHOLE card. No internal
 * borders or rounded corners. White-background product photos blend
 * into the card surface seamlessly. */
.aieo-sc-reco-col .aieo-sc-reco-list { gap: 12px; }
.aieo-sc-reco-col .aieo-sc-reco-item {
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    /* Border + colours are admin-configurable via CSS variables emitted
     * on .aieo-sc-root. Defaults to a 1px #d8d8d8 hairline that darkens
     * to #1a1a1a on hover. Setting --aieo-card-border-width: 0 hides
     * the border entirely (admin "card border" toggle off). */
    border: var(--aieo-card-border-width, 1px) solid var(--aieo-card-border-color, var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)));
    border-radius: 0;
    padding: 12px;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.aieo-sc-reco-col .aieo-sc-reco-item:hover {
    border-color: var(--aieo-card-border-hover, var(--wp--preset--color--fg, currentColor));
    box-shadow: var(--wp--preset--shadow--sm, none);
}
/* Image area is part of the same white surface — no separate border,
 * radius or shadow. Position relative so the on-image PRO badge
 * anchors against the image, not the surrounding card. */
.aieo-sc-reco-col .aieo-card-img-wrap {
    max-width: 140px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
}

/* Force dark, readable typography on the "you might like" cards.
 * The card is wrapped in <a> so the theme paints anchor descendants
 * pink — !important wins. Sized to match the SHOPPING BAG row name
 * (13px / 600) so the text is reliably legible against white. */
.aieo-sc-root .aieo-sc-reco-col .aieo-card,
.aieo-sc-root .aieo-sc-reco-col .aieo-card:hover,
.aieo-sc-root .aieo-sc-reco-col .aieo-card:visited,
.aieo-sc-root .aieo-sc-reco-col .aieo-card:focus {
    color: var(--wp--preset--color--fg, currentColor) !important;
    text-decoration: none !important;
}
.aieo-sc-root .aieo-sc-reco-col .aieo-card-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    margin: 10px 0 4px !important;
}
.aieo-sc-root .aieo-sc-reco-col .aieo-card-price {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}
.aieo-sc-root .aieo-sc-reco-col .aieo-card-price del {
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent)) !important;
    text-decoration: line-through !important;
    margin-inline-end: 6px !important;
}
.aieo-sc-root .aieo-sc-reco-col .aieo-card-price ins {
    color: var(--wp--preset--color--fg, currentColor) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* RV + Favorites tabs — shared 1-col list (desktop) / 2-col grid
 * (mobile) with a heart toggle and an ADD TO BAG action under each
 * card. The .aieo-sc-product-grid class is the common hook; rv-list
 * and fav-list provide list-specific tweaks. */
.aieo-sc-product-grid {
    padding: 8px 0 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.aieo-sc-product-grid .aieo-sc-reco-item {
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
    position: relative;
}
.aieo-sc-product-grid .aieo-sc-reco-item:last-child { border-bottom: 0; padding-bottom: 0; }
.aieo-sc-product-grid .aieo-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}
/* Match the SHOPPING BAG row's typography exactly. The card is wrapped
 * in an <a>, and themes (Botiga / Rey) paint anchor descendants pink
 * by default — !important wins over those inherited rules so the
 * title + price always read as dark grey/black like in the bag. */
.aieo-sc-root .aieo-sc-product-grid .aieo-card,
.aieo-sc-root .aieo-sc-product-grid .aieo-card:hover,
.aieo-sc-root .aieo-sc-product-grid .aieo-card:visited,
.aieo-sc-root .aieo-sc-product-grid .aieo-card:focus {
    color: var(--wp--preset--color--fg, currentColor) !important;
    text-decoration: none !important;
}
.aieo-sc-root .aieo-sc-product-grid .aieo-card-img-wrap {
    width: 64px;
    margin: 0;
    aspect-ratio: 1 / 1;
    position: relative;
}
.aieo-sc-root .aieo-sc-product-grid .aieo-card-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 0 4px !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    text-decoration: none !important;
}
.aieo-sc-root .aieo-sc-product-grid .aieo-card-price {
    font-size: 13px !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}
.aieo-sc-root .aieo-sc-product-grid .aieo-card-price del {
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent)) !important;
    margin-inline-end: 6px !important;
    text-decoration: line-through !important;
}
.aieo-sc-root .aieo-sc-product-grid .aieo-card-price ins {
    color: var(--wp--preset--color--fg, currentColor) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

/* Heart toggle — top-right of each card. Outline by default; filled
 * when the product is in the favorites store. Generous touch target
 * on mobile. */
.aieo-sc-root .aieo-sc-fav-toggle {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    z-index: 4;
    background: transparent !important;
    border: 0 !important;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
    transition: color 0.15s ease, transform 0.12s ease;
    box-shadow: none !important;
}
/* The title and the price keep clear of the heart beside them (the owner, 8 Nov 2026: "Please do not have overlay the
 * heart with the text"): Recently viewed, Favourites and every card that carries one. */
.aieo-sc-root .aieo-sc-fav-toggle ~ .aieo-card .aieo-card-body { padding-inline-end: 32px; }
/* Their add button is a basket at the row's bottom right, under the heart and level with the 64 px thumb's bottom (32 px
 * down: the last row has no bottom padding), a check once the product is in the bag (the owner, 8 Nov 2026); a 32 px
 * target, flat as the heart. */
.aieo-sc-root .aieo-sc-product-grid .aieo-sc-rv-add.aieo-sc-rv-add--icon {
    position: absolute;
    top: 32px;
    inset-inline-end: 1px;
    width: 32px;
    height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.aieo-sc-root .aieo-sc-product-grid .aieo-sc-rv-add.aieo-sc-rv-add--icon::after { content: none; }
.aieo-sc-root .aieo-sc-product-grid .aieo-sc-rv-add.aieo-sc-rv-add--icon[hidden] { display: none; } /* its - n + shows instead */
/* "Quantity in Recently viewed and Favourites" (a test, 8 Nov 2026): - n + in the basket's place, one framed field the
 * height of the bag's stepper; the text keeps clear of it. */
.aieo-sc-root .aieo-sc-product-grid .aieo-sc-rowqty {
    position: absolute;
    top: 32px;
    inset-inline-end: 1px;
    display: inline-flex;
    align-items: center;
    height: 32px;
    border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
    border-radius: var(--wp--custom--rooster--shape--control, 16px);
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    color: var(--wp--preset--color--fg, currentColor);
}
.aieo-sc-root .aieo-sc-rowqty .aieo-sc-rowqty-btn {
    width: 28px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: inherit;
    cursor: pointer;
}
/* The steppers' one ground under the pointer, with the frame's corners (the owner, 12 Nov 2026: "this colour on
 * hover of the - and + buttons", "This is global, it is in pop ups, the product cards and the side cart"). */
.aieo-sc-root .aieo-sc-rowqty .aieo-sc-rowqty-btn { border-radius: inherit; }
.aieo-sc-root .aieo-sc-rowqty .aieo-sc-rowqty-btn:not(:disabled):hover { background: color-mix(in srgb, currentColor 7%, transparent) !important; }
@media (prefers-reduced-motion: no-preference) {
    .aieo-sc-root .aieo-sc-rowqty .aieo-sc-rowqty-btn { transition: background-color 160ms; }
}
.aieo-sc-root .aieo-sc-rowqty .aieo-sc-rowqty-val { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1; }
.aieo-sc-root .aieo-sc-reco-item:has(.aieo-sc-rowqty) .aieo-card-body { padding-inline-end: 88px; }
/* A narrow drawer shows two cards a row: the heart and the basket sit over the picture, so the text needs no room for
 * them; - n + goes under the price, centred, instead of over the picture. */
@media (max-width: 600px) {
    .aieo-sc-root .aieo-sc-fav-toggle ~ .aieo-card .aieo-card-body,
    .aieo-sc-root .aieo-sc-reco-item:has(.aieo-sc-rowqty) .aieo-card-body { padding-inline-end: 0; }
    .aieo-sc-root .aieo-sc-product-grid .aieo-sc-rowqty { position: static; display: flex; width: fit-content; margin: 6px auto 0; }
}
.aieo-sc-root .aieo-sc-fav-toggle:hover { color: var(--wp--preset--color--fg, currentColor); transform: scale(1.08); }
.aieo-sc-root .aieo-sc-fav-toggle.is-favorited { color: var(--wp--preset--color--accent-2, currentColor); } /* the logo's fire red, as the page's hearts */
.aieo-sc-root .aieo-sc-fav-toggle svg { display: block; }

/* ADD TO BAG action under each RV/Favorites card — text link with a
 * Rey-style painted underline that grows from left → right on hover.
 * The default state shows the bare label; the underline is rendered
 * by an ::after pseudo-element so we can animate width without
 * affecting layout. */
.aieo-sc-root .aieo-sc-rv-add {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 0 2px !important;
    margin: 6px 0 0;
    cursor: pointer;
    color: var(--wp--preset--color--fg, currentColor);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    text-decoration: none !important;
    box-shadow: none !important;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    transition: color 0.15s ease;
}
.aieo-sc-root .aieo-sc-rv-add::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.aieo-sc-root .aieo-sc-rv-add:hover,
.aieo-sc-root .aieo-sc-rv-add:focus { color: var(--wp--preset--color--accent-text, var(--wp--preset--color--accent, currentColor)); outline: 0; }
.aieo-sc-root .aieo-sc-rv-add:hover::after,
.aieo-sc-root .aieo-sc-rv-add:focus::after { width: 100%; }
.aieo-sc-root .aieo-sc-rv-add.is-loading {
    opacity: 0.6;
    cursor: wait !important;
}
.aieo-sc-root .aieo-sc-rv-add.is-loading::after { width: 100%; }

/* Already-in-bag state — softer colour + persistent underline so
 * the shopper sees at a glance that the product is in the cart and
 * the click would re-add (or, for now, treat as a no-op visually). */
.aieo-sc-root .aieo-sc-rv-add.is-in-cart,
.aieo-sc-root .aieo-sc-rv-add.is-in-cart:hover,
.aieo-sc-root .aieo-sc-rv-add.is-in-cart:focus {
    color: var(--wp--preset--color--success, currentColor);
    cursor: default;
}
.aieo-sc-root .aieo-sc-rv-add.is-in-cart::after {
    width: 100%;
    background: var(--wp--preset--color--success, CanvasText);
}

/* Mobile (≤600px viewport): RV + Favorites lay out as a 2-column
 * grid. Cards become small portraits — image stacks above name + price
 * + ATC, heart pinned top-right of each. */
@media (max-width: 600px) {
    .aieo-sc-product-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
    .aieo-sc-product-grid .aieo-sc-reco-item {
        padding: 0 0 14px;
    }
    .aieo-sc-product-grid .aieo-card {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .aieo-sc-product-grid .aieo-card-img-wrap {
        width: 100%;
        max-width: none;
        aspect-ratio: 1 / 1;
    }
    .aieo-sc-product-grid .aieo-sc-rv-add {
        grid-column: auto;
        justify-self: stretch;
        text-align: center;
        margin-top: 4px;
    }
}

.aieo-sc-rv-empty {
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
    text-align: center;
    padding: 32px 0;
    margin: 0;
}

/* YOU MAY ALSO LIKE carousel */
.aieo-sc-maylike {
    /* Sits at the end of the bag body's scroll, before the persistent
     * footer. Plain top margin so the body's overflow-y: auto can
     * actually compute the carousel's full height (margin-top: auto
     * had been hiding the bottom of the slide from the scrollbar).
     * `flex-shrink: 0` keeps the section at its natural height in the
     * flex-column body — without it, a long item list squashes the
     * carousel down to almost nothing. */
    margin: 24px 0 0;
    border-top: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
    padding: 18px 0 16px;
    overflow: hidden; /* carousel sliding needs both-axis clipping */
    max-width: 100%;
    min-width: 0;
    flex-shrink: 0;
}
.aieo-sc-maylike-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.aieo-sc-maylike-title {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase; /* the words are written in sentence case; capitals are this look's */
    font-weight: 700;
    color: var(--wp--preset--color--fg, currentColor);
}
.aieo-sc-maylike-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.aieo-sc-maylike-dots { display: inline-flex; gap: 5px; }
.aieo-sc-maylike-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--wp--preset--color--line, color-mix(in srgb, CanvasText 16%, Canvas));
    border: 0;
    padding: 0;
    cursor: pointer;
}
.aieo-sc-maylike-dot.is-active { background: var(--wp--preset--color--contrast, CanvasText); }

/* Prev/next arrows — desktop primary input. The dots are too small to
 * target with a cursor, so on screens >600px we show the arrows and
 * hide the dots; on touch we keep the dots and hide the arrows. */
.aieo-sc-maylike-arrow {
    display: none;
    width: 26px;
    height: 26px;
    border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    border-radius: var(--wp--custom--rooster--shape--chip, 50%);
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: var(--wp--preset--color--fg, currentColor);
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.aieo-sc-maylike-arrow:hover {
    background: var(--wp--preset--color--contrast, CanvasText);
    color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    border-color: var(--wp--preset--color--fg, currentColor);
}
.aieo-sc-maylike-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}
.aieo-sc-maylike-arrow:disabled:hover {
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    color: var(--wp--preset--color--fg, currentColor);
    border-color: var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
}
@media (min-width: 601px) {
    .aieo-sc-maylike-arrow { display: inline-flex; }
    .aieo-sc-maylike-dots  { display: none; }
}
/* The track is a horizontal strip of slides that gets translated by JS
 * (`data-aieo-sc-maylike-track` + dot clicks). overflow is on the parent.
 * `min-height: 140px` reserves enough vertical space to fit the full
 * slide (80px image row + ADD TO BAG link below) so the carousel
 * parent's `overflow: hidden` doesn't chop the action link. */
.aieo-sc-maylike-track {
    display: flex;
    gap: 16px;
    min-height: 140px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    transition: transform 0.24s ease;
    will-change: transform;
}
.aieo-sc-maylike-slide {
    /* Each slide is exactly the width of the parent; the track's transform
     * slides between them. The slide stacks the .aieo-card (img + body
     * inside, laid out side-by-side here) with the ADD TO BAG link below. */
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* Inside the carousel, force the card into a horizontal layout so the
 * 80px thumb sits beside the name + price block. The two-line clamp on
 * `.aieo-card-name` from the global side-cart skin still applies. */
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card,
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card:hover,
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card:visited,
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card:focus {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    /* Theme paints anchor descendants pink — force dark text so the
     * name + price are readable against the white panel background. */
    color: var(--wp--preset--color--fg, currentColor) !important;
    text-decoration: none !important;
}
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card-img-wrap {
    width: 80px;
    margin: 0;
}
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    margin: 0 0 4px !important;
}
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card-price {
    font-size: 13px !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card-price del {
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent)) !important;
    text-decoration: line-through !important;
    margin-inline-end: 6px !important;
}
.aieo-sc-root .aieo-sc-maylike-slide .aieo-card-price ins {
    color: var(--wp--preset--color--fg, currentColor) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}
/* Carousel ADD TO BAG — Rey-style painted underline that grows from
 * left → right on hover. Same treatment as `.aieo-sc-rv-add` so the
 * two action links read consistently. */
.aieo-sc-root .aieo-sc-maylike-add {
    font-size: 11px;
    letter-spacing: 1.2px;
    font-weight: 600;
    color: var(--wp--preset--color--fg, currentColor);
    text-decoration: none !important;
    text-transform: uppercase;
    background: transparent !important;
    border: 0 !important;
    padding: 4px 0 2px !important;
    margin: 0;
    cursor: pointer;
    position: relative;
    display: inline-block;
    line-height: 1.2;
    align-self: start;
    transition: color 0.15s ease;
}
.aieo-sc-root .aieo-sc-maylike-add::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}
.aieo-sc-root .aieo-sc-maylike-add:hover,
.aieo-sc-root .aieo-sc-maylike-add:focus { color: var(--wp--preset--color--accent-text, var(--wp--preset--color--accent, currentColor)); outline: 0; }
.aieo-sc-root .aieo-sc-maylike-add:hover::after,
.aieo-sc-root .aieo-sc-maylike-add:focus::after { width: 100%; }

/* Footer — shared across BAG / RECENTLY VIEWED / FAVORITES / QUICK
 * VIEW. Lives outside the tab bodies as a direct flex sibling of the
 * main column so it's pinned to the bottom on desktop regardless of
 * the active tab or how many items it contains. Mobile (≤720px)
 * overrides this to make the whole panel scroll, so the footer comes
 * at the natural end of the list — see the responsive block. */
.aieo-sc-footer {
    border-top: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
    padding: 16px 26px 20px;
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    z-index: 5;
    box-sizing: border-box;
}
.aieo-sc-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 4px 0 6px;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--wp--preset--color--fg, currentColor);
}
.aieo-sc-subtotal-val { font-size: 14px; letter-spacing: 0; }
/* The default label is sentence case ("Subtotal:"); this look keeps its capitals. */
.aieo-sc-subtotal-label { text-transform: uppercase; }
/* Under the theme the footer's words are the theme's (UI review, 28 Oct 2026): the label as written, at the
 * small size without tracking, and the coupon link on the link recipe at the same start edge. */
html[data-rooster-design="theme"] .aieo-sc-subtotal-label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 14px;
    font-weight: 600;
}
html[data-rooster-design="theme"] .aieo-sc-coupon-toggle {
    font-size: 14px;
    color: var(--wp--preset--color--fg, currentColor);
}
html[data-rooster-design="theme"] .aieo-sc-coupon-toggle:hover {
    color: var(--wp--preset--color--accent-text, var(--wp--preset--color--fg, currentColor));
}
/* Rey-style coupon zone — restrained: subtle toggle, soft input border,
 * pale-grey APPLY button. The toggle gets a small `×` prefix only when
 * the form is open (controlled by JS toggling `.is-open`). */
.aieo-sc-coupon-toggle {
    background: transparent;
    border: 0;
    padding: 0;
    font-size: 12px;
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    /* No gap: the closed toggle's text starts at the footer's edge with "Subtotal:" (the hidden × takes its space
     * only when open), and a 24 px target (UI review 41, FE-O1). */
    gap: 0;
    min-height: 24px;
    transition: color 0.15s ease;
}
.aieo-sc-coupon-toggle:hover { color: var(--wp--preset--color--fg, currentColor); }
.aieo-sc-coupon-toggle::before {
    content: '×';
    font-size: 14px;
    line-height: 1;
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
    /* Hidden until the form is open — keep no width so the underline
     * on the label text doesn't shift between toggle states. */
    display: inline-block;
    width: 0;
    overflow: hidden;
    transition: width 0.15s ease;
    text-decoration: none;
}
.aieo-sc-coupon-toggle.is-open::before {
    width: 12px;
    margin-inline-end: 6px;
}
.aieo-sc-root .aieo-sc-coupon-form {
    /* Match .aieo-sc-actions' grid (1fr 1.2fr, gap 10px) so the coupon
     * input + APPLY button line up exactly with ΑΠΟΘΗΚΕΥΣΗ / ΤΑΜΕΙΟ below
     * (same footer padding + same columns = aligned edges). Previously a
     * flex row let the input grow wider than the buttons underneath. */
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-bottom: 16px;
    align-items: stretch;
}
/* Outside the theme: the drawer's own 38px row, whatever the theme's line-height. Under the theme the field and
 * the Apply button are the theme's, at the theme's height (owner, 28 Oct 2026). */
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-coupon-form { height: 38px; }
/* Coupon input — themes routinely force min-height, drop shadows and
 * 1.6x line-height on <input>; lock everything down so the input lives
 * inside our 38px row at the size we choose. !important is justified
 * here because the theme rules are equally specific (often `input` or
 * `.woocommerce input`) and use !important themselves. */
.aieo-sc-root .aieo-sc-coupon-form input[type="text"],
.aieo-sc-root .aieo-sc-coupon-form input {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}
/* Brief section 23: under the theme's design authority the coupon field is
 * the theme's field (the theme's bridge sizes it to its button); this is
 * the 38px row of our own drawer. */
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-coupon-form input[type="text"],
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-coupon-form input {
    height: 38px !important;
    min-height: 38px !important;
    max-height: 38px !important;
    padding: 0 14px !important;
    margin: 0 !important;
    border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)) !important;
    border-radius: var(--wp--custom--rooster--shape--control, 4px) !important;
    font-size: 13px !important;
    line-height: 38px !important;
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)) !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    outline: none !important;
    text-transform: none !important;
    box-sizing: border-box !important;
    /* Same theme backdrop-filter override as the qty input. */
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-coupon-form input::placeholder { color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent)) !important; opacity: 1 !important; }
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-coupon-form input:focus {
    border-color: var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)) !important;
    box-shadow: none !important;
    outline: 0 !important;
}
/* APPLY button outside the theme — same row height, neutralised typography. Under the theme it is the theme's
 * secondary button (.aieo-sc-btn-cart, as Cart), labelled as written. */
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-coupon-form button {
    flex: 0 0 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    line-height: 38px !important;
    padding: 0 18px !important;
    margin: 0 !important;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    font-weight: 600 !important;
    background: var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 6%, Canvas)) !important;
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent)) !important;
    border: 0 !important;
    border-radius: var(--wp--custom--rooster--shape--button, 4px) !important;
    cursor: pointer;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: uppercase !important;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box !important;
}
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-coupon-form button:hover {
    background: var(--wp--preset--color--line, color-mix(in srgb, CanvasText 16%, Canvas)) !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
}
.aieo-sc-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    /* Breathing room below CART / CHECKOUT so they don't kiss the
     * panel edge — particularly important on mobile where the OS
     * gesture bar / browser chrome sits flush at the bottom. */
    margin-bottom: 12px;
}
@media (max-width: 720px) {
    /* The footer is now pinned just above the 58px bottom bar, so the old
     * "extra room for gesture areas" is redundant dead space — tighten the
     * whole footer on mobile (less wasted height below CART / CHECKOUT). */
    .aieo-sc-footer {
        padding: 12px 18px 12px;
    }
    .aieo-sc-coupon-toggle {
        margin-bottom: 10px;
    }
    .aieo-sc-actions {
        margin-bottom: 0;
    }
}
.aieo-sc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 48px;
    font-size: 13px;
    letter-spacing: 2px;
    font-weight: 700;
    /* The default labels are sentence case ("Cart", "Checkout"); this look keeps its capitals. */
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--wp--custom--rooster--shape--button, 24px);
    transition: background 0.15s ease;
}
.aieo-sc-btn-cart {
    background: var(--aieo-btn-secondary-bg, var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 8%, Canvas))) !important;
    color: var(--aieo-btn-secondary-fg, var(--wp--preset--color--fg, CanvasText)) !important;
    text-decoration: none !important;
}
/* «Save cart» in Cart's place (Saved Carts; the foot's default since 12 Nov 2026): the same secondary button, so it
 * carries aieo-sc-btn-cart too and has no colour of its own. It is a <button>: the browser's border and font go
 * (behind :where(), so the theme's outline rule still draws its line where the theme decides the look), and beside
 * the classic foot's wide Checkout it stays compact. Saved Carts' script comes with the drawer; its sheet is not
 * needed here. */
:where(.aieo-sc-btn-save) {
    border: 0;
    font-family: inherit;
    cursor: pointer;
}
.aieo-sc-actions.aieo-sc-actions-save { grid-template-columns: auto 1fr; }
.aieo-sc-actions-save .aieo-sc-btn-save {
    padding-left: 22px;
    padding-right: 22px;
}
.aieo-sc-btn-save[disabled] {
    opacity: 0.6;
    cursor: progress;
}
.aieo-sc-btn-cart:hover,
.aieo-sc-btn-cart:focus,
.aieo-sc-btn-cart:visited { background: var(--aieo-btn-secondary-bg-hover, color-mix(in srgb, var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 8%, Canvas)) 88%, var(--wp--preset--color--fg, CanvasText))) !important; color: var(--aieo-btn-secondary-fg, var(--wp--preset--color--fg, CanvasText)) !important; text-decoration: none !important; }
/* Colours come from the master Button Styles tokens (Tools → Button Styles);
 * the brand gold remains the fallback. A saved per-button Side-Cart colour
 * still overrides (its inline CSS is emitted later). Themes often force link
 * colour on <a> — !important keeps the CHECKOUT text colour regardless. */
.aieo-sc-btn-checkout,
.aieo-sc-btn-checkout:visited {
    background: var(--aieo-btn-bg, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, CanvasText))) !important;
    color: var(--aieo-btn-fg, var(--wp--custom--rooster--button--text, var(--wp--preset--color--on-accent, var(--wp--preset--color--base, Canvas)))) !important;
    text-decoration: none !important;
}
.aieo-sc-btn-checkout:hover,
.aieo-sc-btn-checkout:focus { background: var(--aieo-btn-bg-hover, color-mix(in srgb, var(--wp--custom--rooster--button--background, var(--wp--preset--color--accent, CanvasText)) 85%, var(--wp--preset--color--fg, Canvas))) !important; color: var(--aieo-btn-fg, var(--wp--custom--rooster--button--text, var(--wp--preset--color--on-accent, var(--wp--preset--color--base, Canvas)))) !important; text-decoration: none !important; }

/* Font: follow the storefront face (Aeonik on FF), NOT a bold button font.
 * The cart is scoped under .aieo-sc-root (inside <body>) so `inherit`
 * resolves to the theme body font. Weight 500 = brand Medium: a CTA, but
 * explicitly not the old bold 700. The .aieo-sc-root scope outranks the
 * unscoped .aieo-sc-btn base rule (no !important needed); a saved per-cart
 * override from build_action_button_css() is emitted later and still wins. */
.aieo-sc-root .aieo-sc-btn,
.aieo-sc-root .aieo-sc-btn-cart,
.aieo-sc-root .aieo-sc-btn-checkout {
    font-family: inherit;
    font-weight: 500;
    letter-spacing: normal;   /* drop the 2px tracking — match the storefront */
}

/* Under the theme's design the buttons are the theme's (contract C2, Buttons): weight 600 at
   its sm size, the labels as written (theme brief, 28 Oct 2026). Colours already follow. */
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-btn {
    font-size: var(--wp--preset--font-size--sm, 13px);
    font-weight: 600;
    text-transform: none;
}

/* ===== Role-pricing badge ===============================================
 * PRO badge pinned to the top-left corner of each card's image (same
 * slot SALE used to occupy). Renders for both anonymous AND logged-in
 * shoppers when the product has role pricing. Anonymous shoppers also
 * get a tooltip with the login nudge on hover/tap.
 *
 * Position is set inline by the renderer (so it works even if this
 * file is cached stale); these rules govern colour, padding, etc., and the
 * chip's z-index (3, above the picture's badge stack, 2), inside the picture's
 * own stacking context (above; 11.3.16, F13b: never the page's, where the
 * sticky header is 100). */
.aieo-card-img-wrap { position: relative; }
.aieo-sc-root .aieo-card-role-badge {
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    /* Frosted dark glass — translucent black with backdrop blur. Sits
     * gently on top of any product image (light or dark) without the
     * stark feel of a solid-fill SALE-style chip. */
    background: color-mix(in srgb, var(--wp--preset--color--contrast, CanvasText) 42%, transparent);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    backdrop-filter: blur(10px) saturate(180%);
    color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)) 18%, transparent);
    border-radius: var(--wp--custom--rooster--shape--chip, 4px);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.4;
    cursor: help;
    user-select: none;
    text-transform: uppercase;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.aieo-sc-root .aieo-card-role-badge:hover {
    background: color-mix(in srgb, var(--wp--preset--color--contrast, CanvasText) 62%, transparent);
    border-color: color-mix(in srgb, var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)) 30%, transparent);
}
.aieo-sc-root .aieo-card-role-badge-icon { font-size: 11px; line-height: 1; }
.aieo-sc-root .aieo-card-role-badge-text { line-height: 1; }
/* The chip's tooltip (11.3.16, F15): the card's sibling in its cell (div.aieo-card-cell; the shop's card's own li),
   outside the card's link and picture, inside the card's box (under the chip, the card's width less a little), so no
   rail or carousel clips it and its login link is no link in a link. The sheet alone shows it: the chip or the tip
   hovered, the cell focused within (the keyboard: the card's link, then the tip's link), a tap (.is-tap-open);
   Escape dismisses it (.is-dismissed). Its z-index (3) counts in the rail, under the page's header (100). */
.aieo-sc-root .aieo-card-cell { position: relative; }
.aieo-sc-root div.aieo-card-cell { display: flex; flex-direction: column; min-width: 0; }
.aieo-sc-root div.aieo-card-cell > .aieo-card { flex: 1 1 auto; }
.aieo-sc-root .aieo-card-role-tip {
    position: absolute;
    top: 2.25rem;
    left: 0.375rem;
    right: 0.375rem;
    z-index: 3;
    box-sizing: border-box;
    max-width: 220px;
    padding: 8px 10px;
    background: var(--wp--preset--color--contrast, CanvasText);
    color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    border-radius: var(--wp--custom--rooster--shape--chip, 4px);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
    text-transform: none;
    text-align: start;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
/* The bridge over the gap to the chip, so the pointer reaches the tip without closing it, and the arrow. */
.aieo-sc-root .aieo-card-role-tip::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 0.75rem;
}
.aieo-sc-root .aieo-card-role-tip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 12px;
    border: 5px solid transparent;
    border-bottom-color: var(--wp--preset--color--contrast, CanvasText);
}
.aieo-sc-root .aieo-card-role-tip a {
    color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)) !important;
    text-decoration: underline !important;
}
.aieo-sc-root .aieo-card-cell:has(.aieo-card-role-badge:hover) .aieo-card-role-tip,
.aieo-sc-root .aieo-card-cell .aieo-card-role-tip:hover,
.aieo-sc-root .aieo-card-cell:focus-within .aieo-card-role-tip,
.aieo-sc-root .aieo-card-cell.is-tap-open .aieo-card-role-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.aieo-sc-root .aieo-card-cell.is-dismissed .aieo-card-role-tip {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* ===== Quick view (Discover it) =========================================
 * Triggered from shop-archive product cards. The body is populated client-
 * side from the card's own DOM (no AJAX for image/title/price). All rules
 * scoped to `.aieo-sc-root` so they can never bleed onto the rest of the
 * archive page itself.
 * ======================================================================= */

/* Archive trigger button — sits below each shop-loop product card. */
.aieo-quick-view-trigger {
    display: inline-block;
    width: auto;
    margin: 8px 0 0;
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--wp--preset--color--fg, currentColor);
    color: var(--wp--preset--color--fg, currentColor);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s ease, color 0.15s ease;
}
.aieo-quick-view-trigger:hover {
    background: var(--wp--preset--color--contrast, CanvasText);
    color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
}

/* Quick-view tab — only visible after the shopper activates a
 * "Discover it". Carries a leading `↩` glyph so its purpose
 * (return to the last quick view) reads at a glance. The JS sets
 * the inner label to the product name, truncated to ~28 chars. */
.aieo-sc-tab-qv .aieo-sc-qv-tab-label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
}
.aieo-sc-tab-qv::before {
    content: '↩';
    margin-inline-end: 4px;
    font-size: 11px;
    line-height: 1;
    opacity: 0.6;
}
.aieo-sc-tab-qv.is-active::before { opacity: 1; }
@media (max-width: 720px) {
    /* Mobile is tight — drop the glyph to save space. */
    .aieo-sc-tab-qv::before { display: none; }
}

/* Quick view body layout */
.aieo-sc-root [data-aieo-sc-body="quickview"] {
    /* Override the default body padding for a more spacious quick-view feel. */
    padding: 24px 26px 24px;
}
.aieo-sc-qv {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.aieo-sc-qv-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    /* At most 40% of the window: a wide drawer's square pushed the variation
     * dropdowns and the add button below the fold. */
    max-height: min(40vh, 480px);
    background: var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 6%, Canvas));
    overflow: hidden;
    border-radius: var(--wp--custom--rooster--shape--media, 4px);
}
.aieo-sc-qv-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* A phone's drawer footer takes more of the height: the add button stays in view too. */
@media (max-width: 600px) {
    .aieo-sc-qv-image { max-height: min(28vh, 360px); }
}
.aieo-sc-qv-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: var(--wp--preset--color--fg, currentColor);
    line-height: 1.3;
}
.aieo-sc-qv-title a {
    color: inherit;
    text-decoration: none;
}
.aieo-sc-qv-title a:hover { text-decoration: underline; }
.aieo-sc-qv-price {
    font-size: 16px;
    color: var(--wp--preset--color--fg, currentColor);
    line-height: 1.3;
}
.aieo-sc-qv-price del {
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
    text-decoration: line-through;
    margin-inline-end: 8px;
    font-weight: 400;
}
.aieo-sc-qv-price ins {
    text-decoration: none;
    font-weight: 600;
    color: var(--wp--preset--color--fg, currentColor);
}
.aieo-sc-qv-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
}
.aieo-sc-qv-description:empty { display: none; }
.aieo-sc-qv-description p { margin: 0 0 8px; }
.aieo-sc-qv-description p:last-child { margin-bottom: 0; }

/* Variation selectors — one pill-shaped <select> per attribute. The
 * dropdown sits flush to the description block; activating a value
 * resolves a variation and updates price/image upstream. */
.aieo-sc-qv-swatches {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
}
.aieo-sc-qv-attr-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.aieo-sc-qv-attr-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
}
/* Pill-shaped <select>. !important everywhere because themes target
 * `select` directly and the WC stack adds its own `select2`/`selectWoo`
 * overrides we want to defeat for the side-cart context. */
.aieo-sc-root .aieo-sc-qv-select,
.aieo-sc-root select.aieo-sc-qv-select {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
/* Brief section 23: under the theme's design authority the quick-view
 * drop-down is the theme's; this is our pill with its own chevron. */
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-qv-select,
html:not([data-rooster-design="theme"]) .aieo-sc-root select.aieo-sc-qv-select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    display: block !important;
    width: 100% !important;
    height: 38px !important;
    line-height: 38px !important;
    padding: 0 36px 0 16px !important;
    border: 1px solid var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)) !important;
    border-radius: var(--wp--custom--rooster--shape--control, 19px) !important;
    background-color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)) !important;
    color: var(--wp--preset--color--fg, currentColor) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
    /* Custom chevron — dimmed grey caret pinned right of centre. */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='none' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l4 4 4-4'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 10px 6px !important;
    transition: border-color 0.15s ease;
}
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-qv-select:hover { border-color: var(--wp--preset--color--fg, currentColor) !important; }
html:not([data-rooster-design="theme"]) .aieo-sc-root .aieo-sc-qv-select:focus {
    border-color: var(--wp--preset--color--fg, currentColor) !important;
    outline: 0 !important;
}
/* A dropdown still to pick when the shopper pressed ADD TO BAG (both designs). */
.aieo-sc-root .aieo-sc-qv-attr-row.is-invalid .aieo-sc-qv-select {
    border-color: var(--wp--preset--color--danger, currentColor) !important;
    box-shadow: 0 0 0 1px var(--wp--preset--color--danger, currentColor) !important;
}

.aieo-sc-qv-actions { margin-top: 8px; }
/* Quick-view CTA — same pill as the footer CHECKOUT button, full
 * width inside the quick-view body. The `.aieo-sc-btn-checkout` class
 * (assigned by the JS renderer) already handles brand colour + radius;
 * this rule just full-widths it inside the quick view. */
.aieo-sc-root .aieo-sc-qv-actions .aieo-sc-qv-cta {
    display: flex !important;
    width: 100% !important;
    height: 52px !important;
    line-height: 1 !important;
    padding: 0 24px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--wp--custom--rooster--shape--button, 26px) !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
}
.aieo-sc-root .aieo-sc-qv-actions .aieo-sc-qv-cta.is-loading {
    opacity: 0.7;
    cursor: wait !important;
}
/* "View product details" fallback link, shown under the CTA. */
.aieo-sc-qv-view-product {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
    text-decoration: underline;
    text-underline-offset: 3px;
}
.aieo-sc-qv-view-product:hover { color: var(--wp--preset--color--fg, currentColor); }
/* RTL and Arabic-script locales (brief 11.3): mirrored slide-ins and arrows, no letter-spacing on connected scripts. Dual copy where the sheet is shared. */
[dir="rtl"] .aieo-sc-maylike-arrow { transform: scaleX(-1); }
[dir="rtl"] .aieo-sc-maylike-arrow { transform: scaleX(-1); }
:is(:lang(ar),:lang(fa),:lang(ur)) .aieo-sc-root * { letter-spacing: 0 !important; }

/* Brief section 19: the drawer follows the visitor's scheme (see aieo-side-cart.css). */
html[data-rooster-design="theme"] .aieo-sc-reco-col .aieo-sc-reco-item,
html[data-rooster-design="theme"] .aieo-sc-footer,
html[data-rooster-design="theme"] .aieo-sc-maylike-arrow {
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    color: var(--wp--preset--color--fg, currentColor);
}
/* The script-built parts under the theme's authority (the drawer's static parts
 * carry the palette classes): text on fg, secondary text on muted, hairlines and
 * quiet surfaces mixed from the palette, so the dark scheme reads like the light.
 * Several card colours here were !important, so these are too, a step more specific. */
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card:visited,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card:focus,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card-name,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card-price,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card-price ins {
    color: var(--wp--preset--color--fg, currentColor) !important;
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card-price del { color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent)) !important; }
/* The rail's cards and every card photo take the theme's card and media shapes, as the
 * gift line, the reward cards and the line photos already do (square stays the default
 * outside the theme). */
html[data-rooster-design="theme"] .aieo-sc-reco-col .aieo-sc-reco-item { border-radius: var(--wp--custom--rooster--shape--card, 8px); }
/* A card outlines on hover and focus in the accent: its 1px border and a 1px ring, 2px that stay
 * even at any zoom, with no shift (theme brief, 28 Oct 2026). The reward cards: aieo-side-cart.css. */
html[data-rooster-design="theme"] .aieo-sc-reco-col .aieo-sc-reco-item:is(:hover, :focus-within) {
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 0 0 1px var(--wp--preset--color--accent);
}
/* The palette's roles for the drawer's own colours (theme brief, 28 Oct 2026): the accent as text
 * for the add links' hover and a favourited heart, success for "in cart", accent-2 for the sale
 * chip with the background colour as its text (4.5:1 in both schemes). */
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-rv-add:is(:hover, :focus),
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-add:is(:hover, :focus) {
    color: var(--wp--preset--color--accent-text, var(--wp--preset--color--accent, currentColor));
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-rv-add.is-in-cart,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-rv-add.is-in-cart:is(:hover, :focus) {
    color: var(--wp--preset--color--success, currentColor);
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-rv-add.is-in-cart::after {
    background: var(--wp--preset--color--success, CanvasText);
}
/* A favourited heart is the palette's accent-2, as the page's hearts (the logo's fire red). */
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-fav-toggle.is-favorited {
    color: var(--wp--preset--color--accent-2, currentColor);
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card-onsale {
    background: var(--wp--preset--color--accent-2, CanvasText);
    color: var(--wp--preset--color--on-accent-2, var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas))); /* the second accent's own ink, the palette's on-accent-2 */
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card-img-wrap { border-radius: var(--wp--custom--rooster--shape--media, 4px); }
html[data-rooster-design="theme"] .aieo-sc-root .aieo-card-img-wrap,
html[data-rooster-design="theme"] .aieo-sc-qv-image { background: var(--wp--preset--color--subtle, color-mix(in srgb, CanvasText 6%, Canvas)); }
html[data-rooster-design="theme"] .aieo-sc-product-grid .aieo-sc-reco-item,
html[data-rooster-design="theme"] .aieo-sc-maylike,
html[data-rooster-design="theme"] .aieo-sc-footer {
    border-color: color-mix(in srgb, var(--wp--preset--color--fg, currentColor) 8%, var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas)));
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-fav-toggle,
html[data-rooster-design="theme"] .aieo-sc-rv-empty,
html[data-rooster-design="theme"] .aieo-sc-coupon-toggle,
html[data-rooster-design="theme"] .aieo-sc-coupon-toggle::before,
html[data-rooster-design="theme"] .aieo-sc-qv-description,
html[data-rooster-design="theme"] .aieo-sc-qv-attr-label,
html[data-rooster-design="theme"] .aieo-sc-qv-view-product {
    color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent));
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-fav-toggle:hover,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-rv-add,
html[data-rooster-design="theme"] .aieo-sc-maylike-title,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-add,
html[data-rooster-design="theme"] .aieo-sc-coupon-toggle:hover,
html[data-rooster-design="theme"] .aieo-sc-qv-title,
html[data-rooster-design="theme"] .aieo-sc-qv-price,
html[data-rooster-design="theme"] .aieo-sc-qv-price ins,
html[data-rooster-design="theme"] .aieo-sc-qv-view-product:hover {
    color: var(--wp--preset--color--fg, currentColor);
}
html[data-rooster-design="theme"] .aieo-sc-qv-price del { color: var(--wp--preset--color--muted, color-mix(in srgb, currentColor 65%, transparent)); }
html[data-rooster-design="theme"] .aieo-sc-maylike-dot { background: var(--wp--preset--color--line, color-mix(in srgb, CanvasText 16%, Canvas)); }
html[data-rooster-design="theme"] .aieo-sc-maylike-dot.is-active { background: var(--wp--preset--color--fg, CanvasText); }
html[data-rooster-design="theme"] .aieo-sc-maylike-arrow { border-color: var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent)); }
html[data-rooster-design="theme"] .aieo-sc-maylike-arrow:hover {
    background: var(--wp--preset--color--fg, CanvasText);
    color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    border-color: var(--wp--preset--color--fg, currentColor);
}
html[data-rooster-design="theme"] .aieo-sc-maylike-arrow:disabled:hover {
    background: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
    color: var(--wp--preset--color--fg, currentColor);
    border-color: var(--wp--preset--color--line, color-mix(in srgb, currentColor 16%, transparent));
}
/* "Discover it" on archive cards opens the quick view; it sits on the page. */
html[data-rooster-design="theme"] .aieo-quick-view-trigger {
    border-color: var(--wp--preset--color--fg, currentColor);
    color: var(--wp--preset--color--fg, currentColor);
}
html[data-rooster-design="theme"] .aieo-quick-view-trigger:hover {
    background: var(--wp--preset--color--fg, CanvasText);
    color: var(--wp--preset--color--bg, var(--wp--preset--color--base, Canvas));
}

/* Under the theme's design authority the carousel moves by 44 px previous and next buttons on every
 * device; the 7 px dots are not a target (UI review, 28 Oct 2026). */
html[data-rooster-design="theme"] .aieo-sc-maylike-arrow { display: inline-flex; width: 44px; height: 44px; font-size: 20px; }
html[data-rooster-design="theme"] .aieo-sc-maylike-dots { display: none; }

/* The carousel's add under the theme: the small secondary button (it was bare bold text), a 44 px target
 * (UI review, 28 Oct 2026). */
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px !important;
    border: 1px solid var(--wp--preset--color--fg, currentColor) !important;
    border-radius: var(--wp--custom--rooster--shape--control, 8px);
    background: transparent !important;
    color: var(--wp--preset--color--fg, currentColor);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-add::after { display: none; }
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-add:hover,
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-add:focus-visible {
    background: color-mix(in srgb, var(--wp--preset--color--fg, CanvasText) 8%, transparent) !important;
}

/* The coupons on the cart, under the subtotal, and how a code went, under its field (owner, 28 Oct 2026). */
.aieo-sc-discount-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 2px 0 6px;
    font-size: 14px;
}
.aieo-sc-discount-val { white-space: nowrap; }
.aieo-sc-coupon-msg {
    margin: -6px 0 12px;
    font-size: 13px;
    line-height: 1.4;
}
.aieo-sc-coupon-msg[hidden] { display: none; }
.aieo-sc-coupon-msg.is-success { color: var(--wp--preset--color--success, currentColor); }
.aieo-sc-coupon-msg.is-error { color: var(--wp--preset--color--danger, currentColor); }
html[data-rooster-design="theme"] .aieo-sc-coupon-msg.is-success { color: var(--wp--preset--color--success, currentColor); }
html[data-rooster-design="theme"] .aieo-sc-coupon-msg.is-error { color: var(--wp--preset--color--danger, currentColor); }
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-coupon-apply { height: auto; min-height: 44px; }

/* "You may also like" under the theme: the picture as wide as its Add to bag button, so the two stand in one
 * column (owner, 28 Oct 2026: the button was wider than the 80 px picture above it). One width for both. */
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-slide { --aieo-sc-maylike-media: 124px; }
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-slide .aieo-card {
    grid-template-columns: var(--aieo-sc-maylike-media) minmax(0, 1fr);
}
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-slide .aieo-card-img-wrap { width: var(--aieo-sc-maylike-media); }
html[data-rooster-design="theme"] .aieo-sc-root .aieo-sc-maylike-slide .aieo-sc-maylike-add {
    width: var(--aieo-sc-maylike-media);
    box-sizing: border-box;
    padding: 0 8px !important;
}

/* ==========================================================================
 * The designer's improved drawer (11 Nov 2026), where the theme decides the look: the panel carries
 * aieo-sc-panel--theme (AIEO_Side_Cart_Display::look()). Every rule here is keyed on that class and comes after
 * the classic drawer's, which it leaves as it was. No colour of our own: the theme's palette by name, with no
 * fallback; a length may carry its token's own value.
 * ========================================================================== */
@media (min-width: 721px) {
    .aieo-sc-root.is-reco-off .aieo-sc-panel.aieo-sc-panel--theme { width: min(100%, 480px); }
}

/* The head: the three tabs over its whole height, so the chosen one's underline lies on the head's own line.
 * The head's line continues the site header's (the owner, 21 Nov 2026: "The size (height) of the menu ought to also
 * define the size - height of the header in the shopping cart - so that their lines are perfectly aligned"; it was a
 * fixed 68 px under a 65 px header). The drawer starts at the viewport's top edge, so its head reaches as far down
 * as the header's line: the theme's measured reach of the sticky header (--rooster-sticky-top: the admin bar and an
 * announcement bar included, measured again when one is dismissed), or, with a header that scrolls away, the header
 * token and its 1 px line under the admin bar. The tabs stand in the band level with the header's own row. */
.aieo-sc-root .aieo-sc-panel--theme {
    --aieo-sc-head-row: calc(var(--wp--custom--rooster--header-height, 67px) + 1px);
    --aieo-sc-head-h: max(var(--rooster-sticky-top, 0px), calc(var(--wp-admin--admin-bar--height, 0px) + var(--aieo-sc-head-row)));
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-header {
    align-items: center;
    gap: var(--wp--preset--spacing--2, 0.5rem);
    min-height: var(--aieo-sc-head-h);
    padding: max(0px, calc(var(--aieo-sc-head-h) - var(--aieo-sc-head-row))) var(--wp--preset--spacing--3, 0.75rem) 0;
    border-bottom-color: var(--wp--preset--color--line);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tabs {
    align-self: stretch;
    gap: 0;
    min-width: 0;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab {
    position: relative;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    margin: 0;
    padding: 0 var(--wp--preset--spacing--3, 0.75rem);
    border: 0;
    color: var(--wp--preset--color--muted);
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
    font-weight: 600;
    font-stretch: 105%;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab::after {
    content: "";
    position: absolute;
    inset-inline: var(--wp--preset--spacing--3, 0.75rem);
    bottom: 0;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transition: transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab.is-active,
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab:hover { color: var(--wp--preset--color--fg); }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab.is-active::after { transform: scaleX(1); }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
@media (prefers-reduced-motion: reduce) {
    .aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab::after { transition: none; }
}
/* The count: a small square chip on the quiet ground, the chosen tab's inverted. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab-count {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    min-width: 20px;
    height: 20px;
    margin: 0;
    padding: 0 5px;
    background: var(--wp--preset--color--subtle);
    color: var(--wp--preset--color--fg);
    font-size: var(--wp--preset--font-size--xs, 0.75rem);
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    opacity: 1;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab.is-active .aieo-sc-tab-count {
    background: var(--wp--preset--color--fg);
    color: var(--wp--preset--color--bg);
}
/* «Recently viewed» says «Viewed» on a narrow phone; the long name stays for a screen reader. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab-short { display: none; }
@media (max-width: 420px) {
    .aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab { padding-inline: 10px; }
    .aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab::after { inset-inline: 10px; }
    .aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab-short { display: inline; }
    .aieo-sc-root .aieo-sc-panel--theme .aieo-sc-tab-short + .aieo-sc-tab-long {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-close { margin: 0; }

.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-body {
    padding: var(--wp--preset--spacing--4, 1rem) var(--wp--preset--spacing--5, 1.5rem);
}

/* The bag's lines (AIEO_Side_Cart_Display::bag_lines_html()): the picture, then the name with the line's remove at
 * its corner, its small line and one row with the stepper and the line's price at the end. The text runs the line's
 * whole height and that row sits at its foot, so every line's last row is as far from its rule as its siblings', a
 * one-line name beside a tall picture too (11.3.16, E3a3: the census's FE-L3, 41 px against 19). */
.aieo-sc-root .aieo-sc-panel--theme .aieo-lines { margin: 0; padding: 0; list-style: none; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-lines > li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--wp--preset--spacing--3, 0.75rem) var(--wp--preset--spacing--4, 1rem);
    align-items: start;
    margin: 0;
    padding: var(--wp--preset--spacing--4, 1rem) 0;
    border-bottom: 1px solid;
    border-bottom-color: var(--wp--preset--color--line);
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-lines > li:first-child { padding-top: 0; }
/* A line taken out at the tap, until the server's answer redraws the list (the line's own display would keep it). */
.aieo-sc-root .aieo-sc-panel--theme .aieo-lines > li[hidden] { display: none; }
/* A strip above the list (the brand's gift) keeps its distance from the first line. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-brand-gifts:has(> *) { margin-bottom: var(--wp--preset--spacing--4, 1rem); }
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__media {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--wp--preset--color--subtle);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__media img {
    display: block;
    float: none;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    object-fit: cover;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__text {
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 4px;
    min-width: 0;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__name {
    display: block;
    color: inherit;
    font-weight: 600;
    font-stretch: 105%;
    text-decoration: none;
    overflow-wrap: anywhere;
}
/* The name's line is drawn from the start to the end under its words (the span: the name is a box of the grid), with
 * the pointer on the name or on the picture, and it grows where the theme's links do (its Design setting, the class
 * on the body): the owner, 12 Nov 2026, "It has to be the gradual line from left to right!", "This has to be in all
 * product title links. even on the side cart." */
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__name > span {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
}
.aieo-sc-root .aieo-sc-panel--theme a.aieo-line__name:focus-visible > span { background-size: 100% 1px; }
@media (hover: hover) {
    .aieo-sc-root .aieo-sc-panel--theme a.aieo-line__name:hover > span,
    .aieo-sc-root .aieo-sc-panel--theme .aieo-lines > li:has(> a.aieo-line__media:hover) .aieo-line__name > span { background-size: 100% 1px; }
}
@media (prefers-reduced-motion: no-preference) {
    .rooster-link-motion--underline .aieo-sc-root .aieo-sc-panel--theme .aieo-line__name > span { transition: background-size 220ms cubic-bezier(.2, .7, .2, 1); }
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__meta {
    color: var(--wp--preset--color--muted);
    font-size: var(--wp--preset--font-size--xs, 0.75rem);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px var(--wp--preset--spacing--3, 0.75rem);
    margin-top: auto; /* the text's foot */
    padding-top: 4px; /* the 4 px it kept above it */
}
/* A gift's line has no stepper: its "Free gift" is its last row, at the same foot (E3a3, the reviewer's low). */
.aieo-sc-root .aieo-sc-panel--theme .aieo-line__text > .aieo-gift-qty { margin-top: auto; padding-top: 4px; }
/* The line's remove (the designer, 13 Nov 2026): a small cross at the corner of the text, its 14 px drawing level
 * with the name's first row and the row's end, in a target of 32 px that the body's own padding holds. It is out of
 * the flow, so the name keeps the room beside it; a gift's line has no remove and keeps its whole width. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-remove--icon {
    position: absolute;
    inset-block-start: -9px;
    inset-inline-end: -9px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--wp--preset--color--muted);
    text-decoration: none;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-remove--icon .aieo-icon { display: block; stroke-width: 1.6; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-remove--icon:hover { color: var(--wp--preset--color--fg); }
.aieo-sc-root .aieo-sc-panel--theme .aieo-remove--icon:focus-visible {
    outline: 2px solid;
    outline-color: var(--wp--preset--color--fg);
    outline-offset: -2px;
    box-shadow: none;
}
@media (prefers-reduced-motion: no-preference) {
    .aieo-sc-root .aieo-sc-panel--theme .aieo-remove--icon { transition: color 160ms; }
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-lines > li:not(.is-gift) .aieo-line__name { padding-inline-end: 36px; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-line-cell {
    display: grid;
    justify-items: end;
    margin-inline-start: auto;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: end;
    white-space: nowrap;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-line-was {
    display: block;
    grid-area: auto;
    color: var(--wp--preset--color--muted);
    font-size: var(--wp--preset--font-size--xs, 0.75rem);
    font-weight: 400;
}
/* A line with nothing struck holds the struck price's row (11.3.16, E3a2): its height is the same whether an answer
 * strikes its price or not, so nothing below it moves between two clicks of a stepper. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-line-was.is-empty { visibility: hidden; }
/* The classic line places its total in the fifth column of the line's own grid; here it is the cell's second row. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-line-total { grid-area: auto; font-size: inherit; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-lines .aieo-gift-qty {
    color: var(--wp--preset--color--warning-ink);
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

/* The foot: the total, then Checkout over the whole width, then Cart beside the quiet Continue shopping. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--wp--preset--spacing--3, 0.75rem);
    padding: var(--wp--preset--spacing--4, 1rem) var(--wp--preset--spacing--5, 1.5rem) calc(var(--wp--preset--spacing--4, 1rem) + env(safe-area-inset-bottom, 0px));
    background: var(--wp--preset--color--neutral-50);
    border-top: 1px solid;
    border-top-color: var(--wp--preset--color--line);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-subtotal-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 0;
    padding: 0;
    color: var(--wp--preset--color--muted);
    font-size: var(--wp--preset--font-size--sm, 0.875rem);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-subtotal-label {
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-subtotal-val {
    color: var(--wp--preset--color--fg);
    font-size: var(--wp--preset--font-size--xl);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-discounts:empty { display: none; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-coupon-toggle { justify-self: start; margin: 0; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-coupon-msg { margin: 0; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-actions--stack {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--wp--preset--spacing--3, 0.75rem);
    margin: 0;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-actions__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--wp--preset--spacing--2, 0.5rem);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-actions__row--one { grid-template-columns: minmax(0, 1fr); }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-actions--stack .aieo-sc-btn { height: auto; min-height: 52px; }
/* The buttons take the theme's shape, and Cart is its outline button: the theme's own rule draws the line, and the
 * drawer's secondary tokens (read by the classic rules above) leave the ground clear until the pointer is over it.
 * A shop's saved colours (printed as .aieo-sc-root .aieo-sc-btn-cart) still outrank both. */
.aieo-sc-root .aieo-sc-panel--theme {
    --aieo-btn-secondary-bg: transparent;
    --aieo-btn-secondary-bg-hover: var(--wp--preset--color--subtle);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-btn { border-radius: var(--wp--custom--rooster--shape--button); }
:where(.aieo-sc-root .aieo-sc-panel--theme) .aieo-sc-btn-cart:visited { background: var(--aieo-btn-secondary-bg) !important; }
:where(.aieo-sc-root .aieo-sc-panel--theme) .aieo-sc-btn-cart:hover,
:where(.aieo-sc-root .aieo-sc-panel--theme) .aieo-sc-btn-cart:focus { background: var(--aieo-btn-secondary-bg-hover) !important; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-btn-quiet {
    border: 0;
    background: none;
    color: var(--wp--preset--color--fg);
    text-decoration: none;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-btn-quiet:hover { background: var(--wp--preset--color--subtle); }

/* Recently viewed and Favourites: the short rows of aieo-mini-list.css. The bag's foot belongs to the bag; the
 * list of Recently viewed has its own, at the drawer's end. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-main-col:has([data-aieo-sc-body="viewed"]:not([hidden]), [data-aieo-sc-body="favorites"]:not([hidden])) .aieo-sc-footer { display: none; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-body[data-aieo-sc-body="viewed"],
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-body[data-aieo-sc-body="favorites"] { padding-block: 0; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-sc-body[data-aieo-sc-body="viewed"]:not([hidden]) { display: flex; flex-direction: column; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-viewed { display: flex; flex: 1 0 auto; flex-direction: column; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-viewed > .aieo-mini { flex: 1 0 auto; align-content: start; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-mini-foot {
    position: sticky;
    bottom: 0;
    margin-inline: calc(-1 * var(--wp--preset--spacing--5, 1.5rem));
    padding: var(--wp--preset--spacing--4, 1rem) var(--wp--preset--spacing--5, 1.5rem) calc(var(--wp--preset--spacing--4, 1rem) + env(safe-area-inset-bottom, 0px));
    background: var(--wp--preset--color--neutral-50);
    border-top: 1px solid;
    border-top-color: var(--wp--preset--color--line);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-favs { padding-bottom: var(--wp--preset--spacing--4, 1rem); }
/* A row's button while its product goes in, and the stepper that takes its place (the rows' quantity setting). */
.aieo-sc-root .aieo-sc-panel--theme .aieo-mini .aieo-mini__btn.is-loading { opacity: 0.6; pointer-events: none; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-mini .aieo-sc-rowqty {
    display: inline-flex;
    align-items: center;
    height: 40px;
    border: 1px solid;
    border-color: var(--wp--preset--color--line);
}

/* The free gift card (AIEO_DMM_Brand_Gifts::reward_card_theme_html(); the designer's fix of 12 Nov 2026): «Free gift»
 * with its icon and the threshold at the end, the line saying how much more, the progress as a line, then the gifts as
 * rows: the box, the picture, the name over what it is worth, «Free» at the end. The theme's tokens only. A locked
 * row is quieter, in the theme's muted ink (its words keep their contrast: no opacity on text); the visitor's gift
 * has its box filled and its line in the text colour. */
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift {
    margin: 0;
    padding: var(--wp--preset--spacing--4, 1rem);
    border: 1px solid;
    border-color: var(--wp--preset--color--line);
    background: var(--wp--preset--color--subtle);
    color: var(--wp--preset--color--fg);
    text-align: start;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift + .aieo-gift { margin-top: var(--wp--preset--spacing--3, 0.75rem); }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--3, 0.75rem);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__title .aieo-icon { flex: none; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__threshold {
    color: var(--wp--preset--color--muted);
    font-size: 0.875rem;
    white-space: nowrap;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__text { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.45; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__text .amount { font-weight: 600; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__text a { color: inherit; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__bar {
    display: block;
    height: 3px;
    margin-top: 10px;
    background: var(--wp--preset--color--line);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__bar > i {
    display: block;
    height: 100%;
    background: var(--wp--preset--color--fg);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__rows { display: grid; gap: 8px; margin-top: 12px; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__row {
    display: grid;
    grid-template-columns: 20px 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--wp--preset--spacing--3, 0.75rem);
    box-sizing: border-box;
    width: 100%;
    min-height: 62px;
    margin: 0;
    padding: 8px var(--wp--preset--spacing--3, 0.75rem);
    border: 1px solid;
    border-color: var(--wp--preset--color--line);
    border-radius: 0;
    background: var(--wp--preset--color--bg);
    box-shadow: none;
    color: inherit;
    font: inherit;
    text-align: start;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__row.is-locked { background: transparent; color: var(--wp--preset--color--muted); cursor: default; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__row.is-locked .aieo-gift__thumb img { opacity: 0.6; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__row:not(.is-locked):hover,
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__row.is-picked { border-color: var(--wp--preset--color--fg); }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__row:focus-visible {
    outline: 2px solid;
    outline-color: var(--wp--preset--color--fg);
    outline-offset: 2px;
    box-shadow: none;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__box {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border: 1px solid;
    border-color: var(--wp--preset--color--line);
    background: var(--wp--preset--color--bg);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__row.is-picked .aieo-gift__box {
    border-color: var(--wp--preset--color--fg);
    background: var(--wp--preset--color--fg);
    color: var(--wp--preset--color--bg);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__box .aieo-icon { display: block; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__thumb {
    display: block;
    width: 44px;
    height: 44px;
    background: var(--wp--preset--color--subtle);
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__thumb img {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0;
    object-fit: cover;
}
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__body { display: grid; gap: 2px; min-width: 0; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__name { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__worth { color: var(--wp--preset--color--muted); font-size: 0.8125rem; line-height: 1.3; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift__free { font-size: 0.875rem; font-weight: 600; white-space: nowrap; }
.aieo-sc-root .aieo-sc-panel--theme .aieo-gift .aieo-bg-reward-variation { margin: 0; }
