﻿/* ── Navigation Links (generic, non-shell specific) ───────────────────── */
.nav-link {
    color: white;
    border-radius: var(--radius);
    padding: 0.9rem 1.5rem;
    transition: var(--transition);
    position: relative;
}

    .nav-link:hover,
    .nav-link:focus {
        color: #068125;
        background: rgba(255, 255, 255, 0.12);
        transform: translateX(4px);
    }

    .nav-link.active,
    .nav-link[aria-current="page"] {
        color: #068125;
        background: rgba(255, 255, 255, 0.18);
        font-weight: 700;
        border-left: 5px solid var(--sheep-accent);
    }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-sheep-green {
    --bs-btn-bg: var(--sheep-green-deep, var(--sheep-green));
    --bs-btn-border-color: var(--sheep-green-deep, var(--sheep-green));
    --bs-btn-hover-bg: var(--sheep-accent);
    --bs-btn-hover-border-color: var(--sheep-accent);
    --bs-btn-active-bg: var(--sheep-accent-dark);
    --bs-btn-active-border-color: var(--sheep-accent-dark);
    --bs-btn-color: white;
    --bs-btn-hover-color: white;
    border-radius: var(--radius);
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

    .btn-sheep-green:hover,
    .btn-sheep-green:focus-visible {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 10px 28px rgba(var(--sheep-accent-rgb), 0.35);
    }

.btn-outline-sheep-green {
    --bs-btn-color: var(--sheep-green);
    --bs-btn-border-color: var(--sheep-green);
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--sheep-green);
    --bs-btn-hover-border-color: var(--sheep-green);
    --bs-btn-active-color: white;
    --bs-btn-active-bg: var(--sheep-accent-dark);
    --bs-btn-active-border-color: var(--sheep-accent-dark);
    --bs-btn-focus-shadow-rgb: 6, 129, 37;
    border-radius: var(--radius);
    font-weight: 700;
    transition: all 0.25s ease;
}

    .btn-outline-sheep-green:hover,
    .btn-outline-sheep-green:focus-visible {
        transform: translateY(-2px);
        box-shadow: 0 8px 22px rgba(6, 129, 37, 0.18);
    }

[data-theme="dark"] .btn-outline-sheep-green {
    --bs-btn-color: #7bd88f;
    --bs-btn-border-color: #4fa868;
    --bs-btn-hover-color: white;
    --bs-btn-hover-bg: var(--sheep-green);
    --bs-btn-hover-border-color: var(--sheep-green);
}

/* ── Cards ─────────────────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--surface-shadow);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.35s ease, transform 0.35s ease;
    background: var(--surface-bg);
    color: var(--sheep-dark);
    overflow: hidden;
}

    .card:hover {
        box-shadow: var(--surface-shadow-hover);
        transform: translateY(-2px);
    }

    .card .card-body {
        background: transparent;
    }

    .card .card-title {
        color: var(--sheep-dark);
    }

    .card .card-text,
    .card .text-muted {
        color: var(--text-muted-color) !important;
    }

.card-sheep-active {
    background: var(--surface-bg-accent);
    border-color: rgba(6, 129, 37, 0.18);
}

[data-theme="dark"] .card-sheep-active {
    border-color: rgba(90, 170, 110, 0.28);
}

.card-flat {
    box-shadow: none;
}

.card-soft {
    background: var(--surface-bg-soft);
}

.card-glass {
    background: var(--surface-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card-compact .card-body {
    padding: 1rem;
}

/* ── Panels / reusable surfaces ────────────────────────────────────────── */
.sheep-panel {
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--surface-shadow);
}

.sheep-panel-soft {
    background: var(--surface-bg-soft);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
}

.sheep-panel-accent {
    background: var(--surface-bg-accent);
    border: 1px solid rgba(6, 129, 37, 0.18);
    border-radius: var(--radius-lg);
}

.sheep-panel-glass {
    background: var(--surface-bg-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ── Badges / pills ────────────────────────────────────────────────────── */
.sheep-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--surface-border);
    background: var(--surface-bg-soft);
    color: var(--sheep-dark);
}

.sheep-pill-green {
    background: rgba(6, 129, 37, 0.10);
    color: var(--sheep-green);
    border-color: rgba(6, 129, 37, 0.18);
}

.sheep-pill-orange {
    background: rgba(var(--sheep-accent-rgb), 0.12);
    color: #068125;
    border-color: rgba(var(--sheep-accent-rgb), 0.20);
}

/* ── Section headers ───────────────────────────────────────────────────── */
.sheep-section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.sheep-section-title {
    margin: 0;
    color: var(--sheep-dark);
    font-weight: 700;
}

.sheep-section-subtitle {
    margin: 0;
    color: var(--text-muted-color);
}
/* Supplier client price modifier card (SupplierPriceModifierPanel) */
.price-modifier-card {
    border-left: 4px solid var(--sheep-green, #068125) !important;
}

.price-modifier-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    font-size: 0.9rem;
}

.price-modifier-fact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Supplier promotions, preview, checkout tip/promotions, menu badges, ratings
   (2026-10-03)
   ========================================================================== */

/* Named for the colour it had: green since 2026-10-12 (Benji), like every main action; the class
   name stays so the pages using it need not change. */
.btn-sheep-orange {
    background: var(--sheep-accent, #0f8b27);
    border-color: var(--sheep-accent, #0f8b27);
    color: #ffffff;
    font-weight: 600;
}

    .btn-sheep-orange:hover,
    .btn-sheep-orange:focus {
        background: var(--sheep-accent-dark, #068125);
        border-color: var(--sheep-accent-dark, #068125);
        color: #ffffff;
    }

/* ---------- promotions page ---------- */
.promo-page,
.pv-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.promo-hero,
.pv-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 28px 26px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 40%),
        linear-gradient(135deg, var(--sheep-accent-ink) 0%, var(--sheep-accent-dark) 45%, var(--sheep-accent) 130%);
    box-shadow: 0 18px 40px rgba(8, 112, 31, 0.28);
}

    .promo-hero h1,
    .pv-hero h1 {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: 800;
        margin: 4px 0 6px;
    }

    .promo-hero p,
    .pv-hero p {
        max-width: 560px;
        margin: 0;
        opacity: 0.92;
    }

.promo-hero-kicker {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.promo-hero-actions {
    margin-top: 14px;
}

.promo-hero-stats {
    display: flex;
    gap: 12px;
}

.promo-stat {
    min-width: 108px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(6px);
    text-align: center;
}

.promo-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.promo-stat-label {
    font-size: 0.8rem;
    opacity: 0.9;
}

.promo-cost-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 16px 0 6px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(var(--sheep-accent-rgb), 0.1);
    border: 1px solid rgba(var(--sheep-accent-rgb), 0.3);
    font-size: 0.9rem;
}

    .promo-cost-note i {
        color: var(--sheep-accent, #0f8b27);
        margin-top: 2px;
    }

.promo-section-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 22px 0 12px;
}

.promo-templates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.promo-template {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
    background: var(--surface-bg, #fff);
    color: inherit;
    text-align: left;
    box-shadow: var(--surface-shadow, 0 8px 22px rgba(32, 33, 36, 0.06));
    transition: transform .15s ease, box-shadow .15s ease;
}

    .promo-template:hover {
        transform: translateY(-3px);
        box-shadow: var(--surface-shadow-hover, 0 14px 30px rgba(32, 33, 36, 0.12));
    }

.promo-template-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 4px;
}

.promo-template-orange .promo-template-icon { background: linear-gradient(135deg, var(--sheep-accent-dark), var(--sheep-accent-ink)); }
.promo-template-green .promo-template-icon { background: linear-gradient(135deg, #068125, #2fae40); }
.promo-template-purple .promo-template-icon { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.promo-template-blue .promo-template-icon { background: linear-gradient(135deg, #2563eb, #22d3ee); }

.promo-template-title {
    font-weight: 800;
    font-size: 1.02rem;
}

.promo-template-text {
    font-size: 0.85rem;
    color: var(--text-muted-color, #686b72);
    flex-grow: 1;
}

.promo-template-cta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--sheep-green, #068125);
}

.promo-empty {
    text-align: center;
    padding: 40px 16px;
    border-radius: 20px;
    border: 2px dashed var(--surface-border-strong, rgba(32, 33, 36, 0.12));
    color: var(--text-muted-color, #686b72);
}

    .promo-empty i {
        font-size: 2.6rem;
        color: var(--sheep-accent, #0f8b27);
    }

    .promo-empty h3 {
        font-size: 1.1rem;
        font-weight: 800;
        margin: 10px 0 4px;
        color: inherit;
    }

.promo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.promo-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--surface-bg, #fff);
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
    box-shadow: var(--surface-shadow, 0 6px 16px rgba(32, 33, 36, 0.05));
}

    .promo-card.is-paused {
        opacity: 0.65;
    }

.promo-card-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #fff;
}

.promo-badge-percent_off { background: linear-gradient(135deg, #068125, #2fae40); }
.promo-badge-two_for_one { background: linear-gradient(135deg, var(--sheep-accent-dark), var(--sheep-accent-ink)); }
.promo-badge-free_delivery { background: linear-gradient(135deg, #2563eb, #22d3ee); }

.promo-card-body {
    flex: 1 1 auto;
    min-width: 0;
}

.promo-card-title {
    font-weight: 800;
    font-size: 1.02rem;
}

.promo-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 3px;
    font-size: 0.82rem;
    color: var(--text-muted-color, #686b72);
}

.promo-status {
    font-weight: 800;
}

.promo-status-running { color: #16a34a; }
.promo-status-scheduled { color: #2563eb; }
.promo-status-paused { color: #9aa0a6; }
.promo-status-ended { color: #dc2626; }

.promo-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

    .promo-card-actions .form-check-input {
        width: 2.4em;
        height: 1.3em;
        cursor: pointer;
    }

/* editor (side sheet on desktop, bottom sheet on phones) */
.promo-editor-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(32, 33, 36, 0.5);
}

.promo-editor {
    position: fixed;
    z-index: 2001;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(520px, 100vw);
    display: flex;
    flex-direction: column;
    background: var(--surface-bg, #fff);
    color: var(--sheep-dark, #202124);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.25);
    animation: promo-slide-in .2s ease-out;
}

@keyframes promo-slide-in {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.promo-editor-head,
.promo-editor-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
}

    .promo-editor-head h3 {
        font-size: 1.15rem;
        font-weight: 800;
        margin: 0;
    }

.promo-editor-foot {
    border-bottom: 0;
    border-top: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
    justify-content: flex-end;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.promo-editor-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px;
}

.promo-field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--text-muted-color, #686b72);
    margin: 14px 0 6px;
}

.promo-kinds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.promo-kind {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 14px;
    border: 2px solid var(--surface-border, rgba(32, 33, 36, 0.1));
    background: transparent;
    color: inherit;
    font-weight: 700;
    font-size: 0.85rem;
}

    .promo-kind i {
        font-size: 1.4rem;
        color: var(--sheep-accent, #0f8b27);
    }

    .promo-kind.is-selected {
        border-color: var(--sheep-green, #068125);
        background: rgba(6, 129, 37, 0.08);
    }

.promo-percent {
    display: flex;
    align-items: center;
    gap: 14px;
}

.promo-percent-value {
    min-width: 96px;
    font-size: 2rem;
    font-weight: 800;
    color: var(--sheep-green, #068125);
}

.promo-items {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.1));
    border-radius: 12px;
    padding: 6px;
}

.promo-items-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted-color, #686b72);
    padding: 8px 6px 2px;
}

.promo-item {
    display: flex;
    align-items: center;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

    .promo-item.is-selected {
        background: rgba(6, 129, 37, 0.1);
    }

.promo-impact {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(6, 129, 37, 0.08);
    font-size: 0.9rem;
}

.promo-impact-title {
    font-weight: 800;
    margin-bottom: 2px;
}

@media (max-width: 575.98px) {
    .promo-hero,
    .pv-hero {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .promo-hero-stats {
        width: 100%;
    }

    .promo-stat {
        flex: 1;
    }

    .promo-editor {
        top: auto;
        width: 100vw;
        max-height: 92vh;
        border-radius: 22px 22px 0 0;
        animation: promo-slide-up .2s ease-out;
    }

    .promo-card {
        flex-wrap: wrap;
    }

    .promo-card-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@keyframes promo-slide-up {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* ---------- preview page ---------- */
.pv-tabs {
    display: flex;
    gap: 6px;
    margin: 16px 0;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface-bg-soft, #f5f6f7);
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
}

.pv-tab {
    border: 0;
    background: transparent;
    color: var(--text-muted-color, #686b72);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 999px;
    white-space: nowrap;
}

    .pv-tab.active {
        background: var(--surface-bg, #fff);
        color: var(--sheep-green, #068125);
        box-shadow: 0 1px 4px rgba(32, 33, 36, 0.15);
    }

.pv-tab-count {
    margin-left: 4px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--sheep-accent, #0f8b27);
    color: #ffffff;
    font-size: 0.75rem;
}

.pv-card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
}

.pv-stage {
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
}

.pv-stage-label {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pv-stage-row {
    display: flex;
    gap: 16px;
    overflow: hidden;
}

.pv-stage-card {
    flex: 0 0 320px;
    width: 320px;
}

.pv-ghost {
    flex: 0 0 320px;
    height: 300px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(154, 160, 166, 0.18), rgba(154, 160, 166, 0.06));
    filter: blur(1px);
    opacity: 0.7;
}

.pv-empty-card {
    flex: 0 0 320px;
    height: 300px;
    border-radius: 16px;
    border: 2px dashed rgba(154, 160, 166, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #686b72;
}

.pv-stage-hint {
    margin-top: 10px;
    font-size: 0.85rem;
    color: #686b72;
}

.pv-tips {
    padding: 18px;
    border-radius: 22px;
    background: var(--surface-bg, #fff);
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
    box-shadow: var(--surface-shadow, 0 8px 22px rgba(32, 33, 36, 0.06));
}

    .pv-tips h3 {
        font-size: 1.05rem;
        font-weight: 800;
        margin-bottom: 10px;
    }

.pv-tip {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--surface-border, rgba(32, 33, 36, 0.06));
}

    .pv-tip i {
        font-size: 1.15rem;
        color: #dadce0;
        margin-top: 2px;
    }

    .pv-tip.is-done i {
        color: #16a34a;
    }

.pv-menu-note {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.08);
    font-size: 0.9rem;
}

.pv-menu-frame {
    border-radius: 22px;
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
    padding: 12px;
}

.pv-reviews {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.pv-reviews-summary {
    padding: 20px;
    border-radius: 22px;
    background: var(--surface-bg, #fff);
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
    text-align: center;
}

.pv-reviews-average {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

    .pv-reviews-average.is-high { color: #16a34a; }
    .pv-reviews-average.is-mid { color: #ca8a04; }
    .pv-reviews-average.is-low { color: #ea580c; }
    .pv-reviews-average.is-new { color: var(--sheep-accent, #0f8b27); font-size: 2rem; }

.pv-reviews-stars {
    font-size: 1.3rem;
    margin-top: 6px;
}

.pv-distribution {
    margin-top: 14px;
    text-align: left;
}

.pv-distribution-row {
    display: grid;
    grid-template-columns: 34px 1fr 28px;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.pv-distribution-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(154, 160, 166, 0.25);
    overflow: hidden;
}

    .pv-distribution-bar span {
        display: block;
        height: 100%;
        background: #f59e0b;
    }

.pv-review {
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-bg, #fff);
    border: 1px solid var(--surface-border, rgba(32, 33, 36, 0.08));
    margin-bottom: 10px;
}

.pv-review-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

    .pv-review-stars .text-muted {
        color: rgba(154, 160, 166, 0.5) !important;
    }

@media (max-width: 991.98px) {
    .pv-card-layout,
    .pv-reviews {
        grid-template-columns: 1fr;
    }

    .pv-stage-card,
    .pv-ghost,
    .pv-empty-card {
        flex-basis: 78vw;
        width: 78vw;
        max-width: 320px;
    }
}

/* ---------- checkout: promotions + tip ---------- */
.checkout-promo-row {
    color: #16a34a;
    font-weight: 700;
}

.checkout-tip-box {
    padding: 12px;
    border-radius: 14px;
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.checkout-tip-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.checkout-tip-chip {
    border: 1px solid rgba(32, 33, 36, 0.15);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.88rem;
}

    .checkout-tip-chip.is-selected {
        background: var(--sheep-green, #068125);
        border-color: var(--sheep-green, #068125);
        color: #fff;
    }

/* ---------- customer menu: promotions ---------- */
.supplier-catalog-promos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

/* Promotions stay orange whatever the site's colour (Benji, 2026-10-13), like the ribbons of the feed. */
.supplier-catalog-promo {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sheep-orange-dark), var(--sheep-orange));
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(var(--sheep-orange-rgb), 0.35);
}

/* Same look as the promotion pill at the top of the shop page. */
.supplier-catalog-item-promo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sheep-orange-dark), var(--sheep-orange));
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    box-shadow: 0 4px 12px rgba(var(--sheep-orange-rgb), 0.35);
}

.supplier-catalog-item-price-old {
    text-decoration: line-through;
    color: #9aa0a6;
    font-weight: 500;
    margin-right: 4px;
    font-size: 0.9em;
}

.supplier-summary-promo {
    color: #16a34a;
}

/* ---------- order page: rating ---------- */
.order-rating-card {
    margin-bottom: 18px;
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--sheep-orange-rgb), 0.12), rgba(var(--sheep-accent-rgb), 0.06));
    border: 1px solid rgba(var(--sheep-orange-rgb), 0.35);
}

.order-rating-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.order-rating-star {
    border: 0;
    background: transparent;
    font-size: 2.2rem;
    line-height: 1;
    padding: 0 2px;
    color: rgba(154, 160, 166, 0.5);
    transition: transform .1s ease, color .1s ease;
}

    .order-rating-star.is-on {
        color: #f59e0b;
    }

    .order-rating-star:active {
        transform: scale(0.9);
    }

.order-rating-label {
    margin-left: 10px;
    font-weight: 700;
    color: #b45309;
}

.order-rating-done {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

    .order-rating-done > i {
        font-size: 1.6rem;
        color: #dc2626;
    }

.order-rating-stars-static {
    color: #f59e0b;
    letter-spacing: 1px;
}

    .order-rating-stars-static span {
        color: rgba(154, 160, 166, 0.5);
    }

[data-theme="dark"] .checkout-tip-chip {
    border-color: rgba(148, 163, 184, 0.3);
}

[data-theme="dark"] .promo-editor {
    color: #e9ebee;
}

/* ==========================================================================
   Checkout (2026-10-10): steps, four numbered sections, sticky summary,
   the payment methods named before Stripe.
   ========================================================================== */
.co-page .co-title {
    margin: 0 0 2px;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 900;
    color: var(--sheep-heading, var(--sheep-green));
}

.co-steps {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 12px 16px;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: var(--surface-bg);
    overflow-x: auto;
    scrollbar-width: none;
}

    .co-steps li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--text-muted-color);
        white-space: nowrap;
    }

        .co-steps li + li::before {
            content: "";
            width: 28px;
            height: 2px;
            margin-right: 4px;
            border-radius: 2px;
            background: var(--surface-border-strong);
        }

    .co-steps button {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 0;
        border: 0;
        background: none;
        color: inherit;
        font: inherit;
    }

        .co-steps button:hover {
            color: #068125;
        }

.co-step-dot {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--surface-border-strong);
    background: var(--surface-bg-soft);
    font-size: 0.78rem;
    font-weight: 800;
}

.co-steps li.is-done {
    color: var(--sheep-green-deep, var(--sheep-green));
}

    .co-steps li.is-done .co-step-dot {
        background: var(--sheep-green-deep, var(--sheep-green));
        border-color: var(--sheep-green-deep, var(--sheep-green));
        color: #fff;
    }

.co-steps li.is-current {
    color: var(--sheep-heading, inherit);
}

    .co-steps li.is-current .co-step-dot {
        background: var(--sheep-accent);
        border-color: var(--sheep-accent);
        color: #202124;
    }

.co-section {
    margin-bottom: 16px;
    padding: 20px 22px;
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background: var(--surface-bg);
    box-shadow: 0 6px 20px rgba(32, 33, 36, 0.05);
}

.co-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--sheep-heading, inherit);
}

.co-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--sheep-accent-rgb), 0.16);
    color: var(--sheep-accent-ink);
    font-size: 0.85rem;
    font-weight: 900;
}

[data-theme="dark"] .co-num {
    color: var(--sheep-accent-ink);
}

.co-section-pay {
    border-color: rgba(6, 129, 37, 0.28);
}

.co-pay-methods {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.co-pay-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid var(--surface-border-strong);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.co-pay-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted-color);
}

    .co-pay-note i {
        color: var(--sheep-green-deep, var(--sheep-green));
    }

@media (min-width: 992px) {
    .co-summary {
        position: sticky;
        top: calc(var(--hf-sticky-top, var(--navbar-height, 56px)) + 20px);
    }
}

@media (max-width: 575.98px) {
    .co-section {
        padding: 16px;
        border-radius: 16px;
    }

    .co-steps {
        justify-content: space-between;
        padding: 10px 12px;
        gap: 6px;
        overflow: hidden;
    }

        .co-steps li {
            font-size: 0.8rem;
        }

            .co-steps li + li::before {
                flex: 1 1 10px;
                width: auto;
                min-width: 10px;
            }

            /* The four dots always fit: only the current step says its name (Benji, 2026-10-13). */
            .co-steps li:not(.is-current) .co-step-label {
                display: none;
            }
}

/* ==========================================================================
   Customer order tracking (2026-10-10): the "now" card and the step timeline.
   ========================================================================== */
.otr {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 1.5rem;
}

.otr-now {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 22px;
    background: #fff4e2;
    border: 1px solid rgba(var(--sheep-accent-rgb), 0.25);
}

    .otr-now.is-done {
        background: rgba(6, 129, 37, 0.08);
        border-color: rgba(6, 129, 37, 0.25);
    }

    .otr-now.is-stopped {
        background: rgba(220, 38, 38, 0.06);
        border-color: rgba(220, 38, 38, 0.22);
    }

[data-theme="dark"] .otr-now {
    background: var(--surface-bg);
}

.otr-now-icon {
    flex-shrink: 0;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sheep-accent);
    color: #202124;
    font-size: 2.1rem;
    box-shadow: 0 10px 24px rgba(var(--sheep-accent-rgb), 0.35);
}

.otr-now.is-active .otr-now-icon {
    animation: otr-pulse 2s ease-in-out infinite;
}

.otr-now.is-done .otr-now-icon {
    background: var(--sheep-green-deep, var(--sheep-green));
    color: #fff;
    box-shadow: 0 10px 24px rgba(6, 129, 37, 0.3);
}

.otr-now.is-stopped .otr-now-icon {
    background: #dc2626;
    color: #fff;
    box-shadow: none;
}

@keyframes otr-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--sheep-accent-rgb), 0.45); }
    50% { box-shadow: 0 0 0 12px rgba(var(--sheep-accent-rgb), 0); }
}

@media (prefers-reduced-motion: reduce) {
    .otr-now.is-active .otr-now-icon {
        animation: none;
    }
}

.otr-now-text {
    min-width: 0;
}

.otr-now-shop {
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted-color);
}

.otr-now-title {
    margin: 0 0 6px;
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--sheep-heading, inherit);
}

.otr-now-desc {
    margin: 0;
    color: var(--text-muted-color);
}

.otr-eta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-border-strong);
    font-size: 0.92rem;
}

    .otr-eta i {
        color: #068125;
    }

.otr-pay {
    margin-top: 14px;
}

.otr-steps {
    list-style: none;
    margin: 0;
    padding: 20px 22px;
    border-radius: 22px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
    box-shadow: 0 6px 20px rgba(32, 33, 36, 0.05);
}

.otr-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
}

    /* The line joining the steps, green up to the last one done. */
    .otr-step + .otr-step::before {
        content: "";
        position: absolute;
        left: 19px;
        top: -12px;
        height: 24px;
        width: 2px;
        background: var(--surface-border-strong);
    }

    .otr-step.is-done + .otr-step::before {
        background: var(--sheep-green-deep, var(--sheep-green));
    }

.otr-step-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-bg-soft);
    border: 2px solid var(--surface-border-strong);
    color: var(--text-muted-color);
    font-size: 1.05rem;
}

.otr-step.is-done .otr-step-icon {
    background: var(--sheep-green-deep, var(--sheep-green));
    border-color: var(--sheep-green-deep, var(--sheep-green));
    color: #fff;
}

.otr-step.is-current .otr-step-icon {
    background: #fff4e2;
    border-color: var(--sheep-accent);
    color: #068125;
}

.otr-step-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.otr-step-title {
    font-weight: 700;
    color: var(--text-muted-color);
}

.otr-step.is-done .otr-step-title,
.otr-step.is-current .otr-step-title {
    color: var(--sheep-heading, inherit);
}

.otr-step.is-current .otr-step-title {
    font-weight: 900;
}

.otr-step-time {
    font-size: 0.8rem;
    color: var(--text-muted-color);
}

@media (max-width: 767.98px) {
    .otr {
        grid-template-columns: 1fr;
    }

    .otr-now {
        padding: 18px;
        gap: 14px;
    }

    .otr-now-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
}

/* "A problem with your order?": write, call the shop, report. */
.otr-help {
    margin: -0.5rem 0 1.5rem;
    padding: 16px 18px;
    border-radius: 22px;
    background: var(--surface-bg);
    border: 1px solid var(--surface-border);
}

.otr-help-title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--sheep-heading, inherit);
}

.otr-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.otr-help-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--surface-border-strong);
    background: var(--surface-bg-soft);
    color: var(--text-color, inherit);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

    .otr-help-btn i {
        color: var(--sheep-green-deep, var(--sheep-green));
    }

    .otr-help-btn:hover {
        border-color: var(--sheep-accent);
        color: #068125;
    }

    .otr-help-btn.is-problem i {
        color: #dc2626;
    }

@media (max-width: 575.98px) {
    .otr-help-actions {
        flex-direction: column;
    }

    .otr-help-btn {
        justify-content: center;
    }
}

/* ---------- Buttons, model design (Benji, 2026-10-12) ----------
   The main buttons are Benji's orange gradient (var(--sheep-accent-dark) to var(--sheep-accent-light)) with white text and icons,
   14 px corners as on the model (pills included); the secondary ones are white with a hairline,
   pale orange on mouse-over. */
.btn-sheep-green,
.sheep-btn-cta,
.btn-sheep-orange,
.account-scope .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--sheep-accent-light);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e2682b;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--sheep-accent-ink);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--sheep-accent-light);
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 15, 139, 39;
    background-color: var(--sheep-accent-light);
    background-image: var(--sheep-grad);
    border-color: transparent;
    color: #fff;
    font-weight: 650;
    box-shadow: none;
    transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

    .btn-sheep-green:hover,
    .btn-sheep-green:focus-visible,
    .sheep-btn-cta:hover,
    .sheep-btn-cta:focus-visible,
    .btn-sheep-orange:hover,
    .btn-sheep-orange:focus,
    .account-scope .btn-primary:hover,
    .account-scope .btn-primary:focus {
        background-image: var(--sheep-grad-hover);
        border-color: transparent;
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(var(--sheep-accent-dark-rgb), 0.24);
    }

    .btn-sheep-green:active,
    .sheep-btn-cta:active {
        transform: none;
        box-shadow: none;
    }

.btn-outline-sheep-green {
    --bs-btn-color: var(--sheep-dark, #202124);
    --bs-btn-bg: var(--surface-bg, #fff);
    --bs-btn-border-color: var(--sheep-line, #e9ebee);
    --bs-btn-hover-color: var(--sheep-accent-ink, #08701f);
    --bs-btn-hover-bg: var(--sheep-accent-soft, #e6f4e8);
    --bs-btn-hover-border-color: var(--sheep-accent-line, #bfe2c5);
    --bs-btn-active-color: var(--sheep-accent-ink, #08701f);
    --bs-btn-active-bg: var(--sheep-accent-soft, #e6f4e8);
    --bs-btn-active-border-color: var(--sheep-accent, #0f8b27);
    --bs-btn-focus-shadow-rgb: 15, 139, 39;
    font-weight: 650;
}

    .btn-outline-sheep-green:hover,
    .btn-outline-sheep-green:focus-visible {
        transform: none;
        box-shadow: none;
    }

[data-theme="dark"] .btn-outline-sheep-green {
    --bs-btn-color: #e9ebee;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(148, 163, 184, 0.3);
    --bs-btn-hover-color: var(--sheep-accent-ink);
    --bs-btn-hover-bg: rgba(var(--sheep-accent-rgb), 0.16);
    --bs-btn-hover-border-color: var(--sheep-accent-line);
}

/* The model's corners: 14 px (12 px for the small ones), also where the markup asks for a pill. */
.btn-sheep-green.rounded-pill,
.btn-outline-sheep-green.rounded-pill,
.sheep-btn-cta.rounded-pill,
.btn-sheep-orange.rounded-pill {
    border-radius: 14px !important;
}

    .btn-sheep-green.btn-sm.rounded-pill,
    .btn-outline-sheep-green.btn-sm.rounded-pill,
    .sheep-btn-cta.btn-sm.rounded-pill {
        border-radius: 12px !important;
    }

/* ---------- Bootstrap in the site colours, everywhere (Benji, 2026-10-12) ----------
   Bootstrap's blue (primary) becomes the site orange, its green (success) the brand green #068125,
   its greys the neutral greys. Main buttons get the orange gradient with white text, secondary
   buttons a white face with a hairline; ticks, switches, focus rings, tabs, pages, progress bars
   and selected rows follow. Warning and danger keep their meaning (yellow, red). */
:root {
    --bs-primary: var(--sheep-accent-dark);
    --bs-primary-rgb: 6, 129, 37;
    --bs-primary-text-emphasis: var(--sheep-accent-ink);
    --bs-primary-bg-subtle: var(--sheep-accent-soft);
    --bs-primary-border-subtle: var(--sheep-accent-line);
    --bs-success: #068125;
    --bs-success-rgb: 6, 129, 37;
    --bs-success-text-emphasis: #08701f;
    --bs-success-bg-subtle: #e6f4e8;
    --bs-success-border-subtle: #b9dfc1;
    --bs-secondary: #686b72;
    --bs-secondary-rgb: 104, 107, 114;
    --bs-dark: #202124;
    --bs-dark-rgb: 32, 33, 36;
    --bs-light: #f5f6f7;
    --bs-light-rgb: 245, 246, 247;
    --bs-focus-ring-color: rgba(var(--sheep-accent-rgb), 0.25);
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--sheep-accent-light);
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #e2682b;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--sheep-accent-ink);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--sheep-accent-light);
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 15, 139, 39;
    background-image: var(--sheep-grad);
    font-weight: 650;
}

    .btn-primary:hover,
    .btn-primary:focus-visible {
        background-image: var(--sheep-grad-hover);
    }

.btn-outline-primary {
    --bs-btn-color: var(--sheep-accent-ink);
    --bs-btn-border-color: var(--sheep-accent-line);
    --bs-btn-hover-color: var(--sheep-accent-ink);
    --bs-btn-hover-bg: var(--sheep-accent-soft);
    --bs-btn-hover-border-color: var(--sheep-accent);
    --bs-btn-active-color: var(--sheep-accent-ink);
    --bs-btn-active-bg: var(--sheep-accent-soft);
    --bs-btn-active-border-color: var(--sheep-accent);
    --bs-btn-disabled-color: var(--sheep-accent-ink);
    --bs-btn-disabled-border-color: var(--sheep-accent-line);
    --bs-btn-focus-shadow-rgb: 15, 139, 39;
}

.btn-success {
    --bs-btn-bg: #068125;
    --bs-btn-border-color: #068125;
    --bs-btn-hover-bg: #08701f;
    --bs-btn-hover-border-color: #08701f;
    --bs-btn-active-bg: #174d23;
    --bs-btn-active-border-color: #174d23;
    --bs-btn-disabled-bg: #068125;
    --bs-btn-disabled-border-color: #068125;
    --bs-btn-focus-shadow-rgb: 6, 129, 37;
}

.btn-outline-success {
    --bs-btn-color: #068125;
    --bs-btn-border-color: #9fcfaa;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #068125;
    --bs-btn-hover-border-color: #068125;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #08701f;
    --bs-btn-active-border-color: #08701f;
    --bs-btn-disabled-color: #068125;
    --bs-btn-disabled-border-color: #9fcfaa;
    --bs-btn-focus-shadow-rgb: 6, 129, 37;
}

.btn-secondary {
    --bs-btn-bg: #5f6368;
    --bs-btn-border-color: #5f6368;
    --bs-btn-hover-bg: #4a4e53;
    --bs-btn-hover-border-color: #4a4e53;
    --bs-btn-active-bg: #3c4043;
    --bs-btn-active-border-color: #3c4043;
    --bs-btn-disabled-bg: #5f6368;
    --bs-btn-disabled-border-color: #5f6368;
}

.btn-outline-secondary {
    --bs-btn-color: #3c4043;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #dadce0;
    --bs-btn-hover-color: #202124;
    --bs-btn-hover-bg: #f5f6f7;
    --bs-btn-hover-border-color: #c4c7cc;
    --bs-btn-active-color: #202124;
    --bs-btn-active-bg: #eceef1;
    --bs-btn-active-border-color: #c4c7cc;
    --bs-btn-disabled-color: #9aa0a6;
    --bs-btn-disabled-border-color: #e9ebee;
    --bs-btn-focus-shadow-rgb: 104, 107, 114;
}

.btn-light {
    --bs-btn-bg: #f5f6f7;
    --bs-btn-border-color: #f5f6f7;
    --bs-btn-hover-bg: #eceef1;
    --bs-btn-hover-border-color: #eceef1;
    --bs-btn-active-bg: #e9ebee;
    --bs-btn-active-border-color: #e9ebee;
    --bs-btn-color: #202124;
}

.btn-dark {
    --bs-btn-bg: #202124;
    --bs-btn-border-color: #202124;
    --bs-btn-hover-bg: #303236;
    --bs-btn-hover-border-color: #303236;
}

[data-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #e9ebee;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: rgba(148, 163, 184, 0.35);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: rgba(255, 255, 255, 0.06);
    --bs-btn-hover-border-color: rgba(148, 163, 184, 0.5);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .btn-outline-primary {
    --bs-btn-color: var(--sheep-accent-ink);
    --bs-btn-border-color: var(--sheep-accent-line);
    --bs-btn-hover-color: var(--sheep-accent-ink);
    --bs-btn-hover-bg: rgba(var(--sheep-accent-rgb), 0.16);
}

/* Fields: an orange focus ring instead of the blue one; ticks, radios, switches and sliders orange. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--sheep-accent-ink);
    box-shadow: 0 0 0 0.2rem rgba(var(--sheep-accent-rgb), 0.18);
}

.form-check-input:checked {
    background-color: var(--sheep-accent-dark);
    border-color: var(--sheep-accent-dark);
}

.form-check-input[type="checkbox"]:indeterminate {
    background-color: var(--sheep-accent-dark);
    border-color: var(--sheep-accent-dark);
}

.form-switch .form-check-input:focus {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23ffb27a'/%3e%3c/svg%3e");
}

.form-range::-webkit-slider-thumb {
    background-color: var(--sheep-accent-dark);
}

.form-range::-moz-range-thumb {
    background-color: var(--sheep-accent-dark);
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 1px #fff, 0 0 0 0.25rem rgba(var(--sheep-accent-rgb), 0.25);
}

/* Tabs, pills, pages, progress, lists, accordions. */
.nav-pills {
    --bs-nav-pills-link-active-bg: var(--sheep-accent-light);
    --bs-nav-pills-link-active-color: #fff;
}

    .nav-pills .nav-link.active,
    .nav-pills .show > .nav-link {
        background-image: var(--sheep-grad);
    }

.nav-tabs {
    --bs-nav-tabs-link-active-color: #202124;
}

.nav {
    --bs-nav-link-color: #3c4043;
    --bs-nav-link-hover-color: var(--sheep-accent-ink);
}

.pagination {
    --bs-pagination-color: #3c4043;
    --bs-pagination-hover-color: var(--sheep-accent-ink);
    --bs-pagination-hover-bg: var(--sheep-accent-soft);
    --bs-pagination-focus-color: var(--sheep-accent-ink);
    --bs-pagination-focus-bg: var(--sheep-accent-soft);
    --bs-pagination-focus-box-shadow: 0 0 0 0.2rem rgba(var(--sheep-accent-rgb), 0.18);
    --bs-pagination-active-bg: var(--sheep-accent-dark);
    --bs-pagination-active-border-color: var(--sheep-accent-dark);
}

.progress,
.progress-stacked {
    --bs-progress-bar-bg: var(--sheep-accent);
}

.list-group {
    --bs-list-group-active-color: var(--sheep-accent-ink);
    --bs-list-group-active-bg: var(--sheep-accent-soft);
    --bs-list-group-active-border-color: var(--sheep-accent-line);
    --bs-list-group-action-hover-bg: #f5f6f7;
}

.accordion {
    --bs-accordion-active-color: var(--sheep-accent-ink);
    --bs-accordion-active-bg: var(--sheep-accent-soft);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem rgba(var(--sheep-accent-rgb), 0.18);
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23b44300' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
}

/* Every menu: the chosen row pale orange with dark orange text (no more green block). */
.dropdown-menu {
    --bs-dropdown-link-active-bg: var(--sheep-accent-soft);
    --bs-dropdown-link-active-color: var(--sheep-accent-ink);
}

[data-theme="dark"] .dropdown-menu {
    --bs-dropdown-link-active-bg: rgba(var(--sheep-accent-rgb), 0.16);
    --bs-dropdown-link-active-color: var(--sheep-accent-ink);
}

/* The supplier's "how customers see you" stage borrows the feed's classes for the card, and with
   them the feed's full-screen minimum height (home-feed.css loads after this file): the stage ran
   to the bottom of the page with nothing in it (Benji, 2026-10-13). Its own height only. */
.pv-stage.hf {
    min-height: 0;
}

/* Phones: the stage keeps the screen's width and its two cards scroll sideways; "1fr" alone let the
   column grow to the cards' full width and the page beside it was cut (Benji, 2026-10-13). */
@media (max-width: 991.98px) {
    .pv-card-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .pv-stage.hf {
        min-width: 0;
        max-width: 100%;
    }

    .pv-stage-row {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

        .pv-stage-row::-webkit-scrollbar {
            display: none;
        }
}
