/*
 * Oktoved – Advanced Filters pill styling
 * Transforms Betheme's vertical checkbox list into horizontal pill buttons.
 *
 * Brand palette:
 *   Primary      #83aedc   soft blue  → active pill fill
 *   Primary Dark #264653   dark navy  → idle text
 *   Orange       #f59e62              → pill hover (Primož, on-server edit 07/2026)
 *   Pink         #f2797c              → Betheme reset button (kept as-is)
 */

:root {
    --pill-active-bg: #83aedc;
    --pill-hover:     #f59e62;
    --pill-text:      #264653;   /* Primary Dark */
    --pill-radius:    30px;
    --pill-padding:   8px 22px;
    --pill-font-size: 16px;      /* match reference page body text size */
}

/* ── Container / form-row reset ───────────────────────────────────── */

.mfn-advanced-filters .mfn-form-row {
    border: none;
    padding: 0;
    margin: 0;
    background: none;
}

.mfn-advanced-filters .mfn-advanced-filters-group-label {
    display: none;
}

.mfn-advanced-filters .mfn-form-row-wrapper {
    padding: 0;
    border: none;
    background: none;
    box-shadow: none;
}

/* ── Pill list – horizontal flex ──────────────────────────────────── */

.mfn-advanced-filters-checkbox.mfn-advanced-filters-options {
    display: flex !important;
    flex-direction: row !important;   /* ← overrides Betheme's vertical default */
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    list-style: none !important;
    padding: 12px 0 !important;
    margin: 0 !important;
}

/* ← KEY FIX: Betheme sets li to 100% width in the vertical layout */
.mfn-advanced-filters-checkbox li {
    flex: 0 0 auto !important;
    width: auto !important;
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Hide native checkbox ─────────────────────────────────────────── */

.mfn-advanced-filters-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

/* ── Idle pill label – no border, no background (matches reference) ── */

.mfn-advanced-filters-checkbox .mfn-advanced-filters-checkbox-label {
    display: inline-block !important;
    width: auto !important;
    padding: var(--pill-padding) !important;
    border-radius: var(--pill-radius) !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
    font-size: var(--pill-font-size) !important;
    font-weight: 400 !important;
    color: var(--pill-text) !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    transition: color 0.18s ease !important;
    user-select: none;
}

.mfn-advanced-filters-checkbox .mfn-advanced-filters-checkbox-label:hover {
    color: var(--pill-hover) !important;
    background: transparent !important;
}

/* ── Active (checked) pill – filled badge so selection is obvious ──── */

.mfn-advanced-filters-checkbox input[type="checkbox"]:checked
+ .mfn-advanced-filters-checkbox-label {
    background: var(--pill-active-bg) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* ── Hide product count badge ─────────────────────────────────────── */

.mfn-advanced-filters-checkbox .mfn-advanced-filters-tax-count {
    display: none !important;
}

/* ── Betheme built-in Reset button ("× Ponastavi") ───────────────── */

.mfn-advanced-filters .mfn-reset-filters,
.mfn-advanced-filters button[class*="reset"],
.mfn-advanced-filters .mfn-advanced-filters-reset {
    display: block;
    text-align: center;
    margin-top: 12px;
    cursor: pointer;
}

/* Space between the × icon and the label text */
.mfn-advanced-filters .mfn-reset-filters .icon-remove {
    margin-right: 4px;
}

