/* Wrapper (hidden by default) */
.lob-mobile-filters {
    position: fixed;
    inset: 0;
    z-index: 100000;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 300ms ease, visibility 0s linear 300ms;
}


/* Open state */
.lob-mobile-filters.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition: opacity 300ms ease;
}


/* Overlay */
.lob-mobile-filters__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}


/* Panel (left drawer) */
.lob-mobile-filters__panel {
    position: absolute;
    top: 0;
    left: 0;

    height: 100%;
    width: 320px;
    max-width: 90vw;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);

    display: flex;
    flex-direction: column;
    overflow-y: auto;

    /* CLOSED STATE */
    transform: translateX(-100%);
    transition: transform 500ms ease-in-out;
}


/* Slide in */
/*.lob-mobile-filters.is-open .lob-mobile-filters__panel {*/
/*    transform: translateX(0);*/
/*    transition: transform 500ms ease-in-out;*/
/*}*/

.lob-mobile-filters.is-open .lob-mobile-filters__panel {
    transform: translateX(0);
}


.lob-mobile-filters__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.lob-mobile-filters__title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
}

.lob-mobile-filters__close {
    appearance: none;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 6px;
    line-height: 0;
    border-radius: 8px;
}

.lob-mobile-filters__close:hover {
    background: rgba(0,0,0,0.05);
}

.lob-mobile-filters__content {
    padding: 16px;
}

/* Blocks */
.lob-filter-block {
    margin-bottom: 20px;
}

.lob-filter-heading {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.lob-filter-list {
    display: grid;
    gap: 10px;
}

.lob-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lob-filter-label {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.lob-filter-label--muted {
    font-weight: 400;
    color: #374151;
}

.lob-icon {
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* Checkbox button (Shadcn-like) */
.lob-checkbox {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.25);
    background: #fff;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

.lob-checkbox[data-state="checked"] {
    background: #00c8b0; /* adjust if you use CSS vars */
    border-color: #00c8b0;
}

.lob-checkbox[data-state="checked"]::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Switch */
.lob-switch {
    /*width: 34px;*/
    height: 18px;
    border-radius: 999px;
    /*border: 1px solid rgba(0,0,0,0.15);*/
    /*background: #e5e7eb;*/
    cursor: pointer;
    position: relative;
    padding: 0;
    flex: 0 0 auto;
}

.lob-switch[data-state="checked"] {
    background: #00c8b0;
}

.lob-switch__thumb {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #fff;
    position: absolute;
    top: 50%;
    left: 1px;
    transform: translateY(-50%);
    transition: left 200ms ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.lob-switch[data-state="checked"] .lob-switch__thumb {
    left: calc(100% - 17px);
}

/* Clear button */
.lob-clear-btn {
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    cursor: pointer;
    background: #00c8b0;
    color: #fff;
    font-weight: 600;
}

.lob-clear-btn:hover {
    filter: brightness(0.95);
}
.lob-open-filters {
    width: 100%;
    display: flex;
}
/* Example open button styling */
.lob-open-filters-btn {
    border: 1px solid rgba(0,0,0,0.15);
    background: var(--color-primary);
    color: var(--color-black);
    padding: 12px 24px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    font-family: var(--font-poppins);
    font-size: 14px;
    font-weight: 700;
    gap: 8px;
}

.lob-open-filters-btn svg {
    height: 16px;
    width: 16px;
    margin-right: 8px;
}

.lob-filters-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.125rem 0.5rem;
    margin-left: 0.5rem;

    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1rem;
    white-space: nowrap;

    border-radius: 0.375rem;
    border: 1px solid transparent;

    background-color: var(--color-red);
    color: var(--color-white);

    width: fit-content;
    flex-shrink: 0;
    overflow: hidden;
}

.lob-filters-count:empty {
    display: none;
}

@media (min-width: 768px) {
    .lob-open-filters {
        width: 400px;
        display: none;
    }
}