/* ── Sample Side Tab ── */

.ag-sample-side-tab {
    position: fixed;
    top: 50%;
    z-index: 9996;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 10px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: var(--ag-sst-bg, #F5C518);
    color: var(--ag-sst-fg, #1A1A1A);
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    transition: transform 220ms cubic-bezier(.2, .7, .3, 1), box-shadow 220ms ease;
    line-height: 1;
}

.ag-sample-side-tab:hover,
.ag-sample-side-tab:focus {
    color: var(--ag-sst-fg, #1A1A1A);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

/* Right side: text reads top-to-bottom (head tilts right). */
.ag-sample-side-tab--right {
    right: 0;
    transform: translateY(-50%);
    border-radius: 10px 0 0 10px;
}

.ag-sample-side-tab--right:hover,
.ag-sample-side-tab--right:focus {
    transform: translateY(-50%) translateX(-4px);
}

/* Left side: text reads bottom-to-top (head tilts left). */
.ag-sample-side-tab--left {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
    border-radius: 10px 0 0 10px;
}

.ag-sample-side-tab--left:hover,
.ag-sample-side-tab--left:focus {
    transform: translateY(-50%) rotate(180deg) translateX(-4px);
}

.ag-sample-side-tab__icon {
    display: inline-flex;
    align-items: center;
    /* SVG inherits the parent's vertical writing mode; keep it upright relative
       to the text by undoing the implicit 90° glyph rotation. */
    transform: rotate(90deg);
}

/* Mobile: hide the side tab by default. It overlaps product titles and
   competes with the in-page sample CTA / sticky buy bar on small screens.
   !important is required to outrank the .ag-sample-side-tab--left/--right
   transform rules, which use the same specificity but win by source order. */
@media (max-width: 768px) {
    .ag-sample-side-tab,
    .ag-sample-side-tab--left,
    .ag-sample-side-tab--right {
        display: none !important;
    }
    .ag-sample-side-tab--hide-mobile {
        display: none !important;
    }
}

@media print {
    .ag-sample-side-tab {
        display: none;
    }
}
