/* design2024 skin for OCFilter 4.8.2. Keep vendor layout and interaction rules. */
.ocf-container {
    --design2024-ocf-accent: #5297E0;
    --design2024-ocf-text: #444444;
    --design2024-ocf-muted: #999999;
    font-family: "Manrope", sans-serif;
    color: var(--design2024-ocf-text);
}

.ocf-container .ocf-value,
.ocf-container .ocf-btn,
.ocf-container .ocf-form-control,
.ocf-container .ocf-popover {
    font-family: "Manrope", sans-serif;
}

.ocf-container .ocf-value {
    color: var(--design2024-ocf-text);
}

.ocf-container .ocf-value.ocf-selected {
    color: #E56101;
}

.ocf-container .ocf-value.ocf-disabled {
    color: var(--design2024-ocf-muted);
}

/* Reuse the theme's checkbox artwork without replacing the button itself. */
.ocf-container .ocf-value .ocf-value-input-checkbox::before {
    border: 0;
    background: #ffffff url("/img/icons/unchecked.svg") center / contain no-repeat;
}

.ocf-container .ocf-value.ocf-selected .ocf-value-input-checkbox::before {
    background-image: url("/img/icons/checked.svg");
}

.ocf-container .ocf-value .ocf-value-input-checkbox::after,
.ocf-container .ocf-value.ocf-selected .ocf-value-input-checkbox::after {
    background-image: none;
}

.ocf-container .ocf-value.ocf-disabled .ocf-value-input-checkbox {
    opacity: 0.45;
}

.ocf-container .ocf-value.ocf-selected:not(.ocf-disabled) .ocf-value-input-radio::before {
    border-color: var(--design2024-ocf-accent);
    background-color: var(--design2024-ocf-accent);
}

.ocf-container .ocf-value:focus-visible {
    outline: 2px solid var(--design2024-ocf-accent);
    outline-offset: 3px;
}

.ocf-container .ocf-value-count {
    color: #0E6A93;
    background-color: #DBEAF9;
    border-radius: 4px;
    font-weight: 400;
}

.ocf-container .ocf-value.ocf-disabled .ocf-value-count {
    color: var(--design2024-ocf-muted);
    background-color: #EFEFEF;
}

.ocf-container .ocf-search-btn-static,
.ocf-container .ocf-search-btn-popover {
    color: #ffffff;
    background-color: var(--design2024-ocf-accent);
    border-radius: 5px;
    font-weight: 700;
}

.ocf-container .ocf-search-btn-static:not(.ocf-disabled):not([disabled]),
.ocf-container .ocf-search-btn-popover:not(.ocf-disabled):not([disabled]) {
    box-shadow: 1px 5px 26px 0 #5297E099;
}

.ocf-container .ocf-search-btn-static:not(.ocf-disabled):not([disabled]):hover,
.ocf-container .ocf-search-btn-static:not(.ocf-disabled):not([disabled]):focus,
.ocf-container .ocf-search-btn-popover:not(.ocf-disabled):not([disabled]):hover,
.ocf-container .ocf-search-btn-popover:not(.ocf-disabled):not([disabled]):focus {
    color: #ffffff;
    background-color: var(--design2024-ocf-accent);
}

.ocf-container .ocf-btn:focus-visible {
    outline: 2px solid var(--design2024-ocf-accent);
    outline-offset: 3px;
}

.ocf-container .ocf-btn-link:not(.ocf-close-mobile):not(.ocf-disabled):not([disabled]) {
    color: var(--design2024-ocf-accent);
}

.ocf-container input.ocf-form-control {
    color: var(--design2024-ocf-text);
    background-color: #ffffff;
    border-color: #E6E6E6;
    border-radius: 4px;
}

.ocf-container input.ocf-form-control:focus {
    /* Vendor focus border is !important; limit the override to OCFilter inputs. */
    border-color: var(--design2024-ocf-accent) !important;
    box-shadow: 0 0 0 2px #5297E033;
}

.ocf-container input.ocf-form-control[disabled],
.ocf-container input.ocf-form-control[readonly] {
    color: var(--design2024-ocf-muted);
    background-color: #EFEFEF;
}

/* Slider colors only: no sizes, offsets, transforms or touch behavior. */
.ocf-container .ocf-noUi-base::before,
.ocf-container .ocf-noUi-connects::before,
.ocf-container .ocf-noUi-connects::after {
    background-color: #CCCCCC;
}

.ocf-container .ocf-value-scale:not([disabled]) .ocf-noUi-connect::before,
.ocf-container .ocf-value-scale:not([disabled]) .ocf-noUi-handle:not([disabled]) {
    background-color: var(--design2024-ocf-accent);
}

/* Desktop skin follows design2024; mobile geometry stays native below 1200px. */
@media (min-width: 1200px) {
    .ocf-container .ocf-header {
        font-size: 20px;
        line-height: 28px;
        font-weight: 700;
    }

    .ocf-container.ocf-vertical .ocf-filter {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .ocf-container .ocf-filter-header {
        font-size: 16px;
        line-height: 22px;
        font-weight: 700;
        text-transform: none;
    }

    .ocf-container .ocf-filter:not(.ocf-dropdown) .ocf-filter-header {
        margin-bottom: 10px;
    }

    .ocf-container .ocf-value {
        font-size: 14px;
        line-height: 20px;
        font-weight: 400;
        padding-top: 0;
        padding-bottom: 0;
    }

    .ocf-container .ocf-value + .ocf-value {
        margin-top: 10px;
    }

    .ocf-container .ocf-value-input-checkbox {
        width: 20px;
        height: 20px;
        flex-basis: 20px;
        margin-top: 0;
    }

    .ocf-container .ocf-value-count {
        font-size: 10px;
        line-height: 20px;
        padding: 0 4px;
    }

    .ocf-container .ocf-search-btn-static,
    .ocf-container .ocf-search-btn-popover {
        font-size: 14px;
        line-height: 20px;
        padding: 10px 16px;
    }

    .ocf-container input.ocf-form-control {
        font-size: 14px;
        line-height: 20px;
    }
}

/* The original panel now sits directly under body, above the cookie banner.
   Keep the native fixed parent, red handle, transforms and transitions intact. */
@media (max-width: 1199px) {
    body.menu-opened > .ocf-container.design2024-ocfilter-mobile {
        visibility: hidden;
        pointer-events: none;
    }
}
