/* ---------- Specificatons ---------- */
.csf-specs-wrap {
    background: #ffffff;
}

.csf-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.csf-specs-table th,
.csf-specs-table td {
    text-wrap: nowrap;
    padding: 1.5rem 2.5rem;
    border: 0;
    text-align: left;
    vertical-align: middle;
}

.csf-specs-table tr:last-child th,
.csf-specs-table tr:last-child td {
    border-bottom: 0;
}

.csf-specs-table th {
    width: 35%;
    font-weight: 600;
}

/* ---------- Main Category Filter ---------- */
.csf-filter-form {
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
    position: relative;
}

.csf-filter-row {
    text-align: left;
}

.csf-filter-group {
    display: flex;
    flex-direction: column;
}

.csf-filter-group legend,
.csf-filter-summary {
    font-size: 14px;
    font-weight: 600;
    border: 0 !important;
}

.csf-filter-accordion {
    width: 100%;
    padding: 0.75rem 0rem;
    transition: background-color 0.2s ease;
}

.csf-filter-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 1rem 4rem 1rem 1rem;
}

.csf-filter-accordion:hover .csf-filter-summary {
    background-color: #e6e6e65e;
    color: #2A2A2A;
}

.csf-filter-accordion[open] > .csf-filter-summary {
    background-color: #e6e6e65e;
    color: #2A2A2A;
}

.csf-filter-summary::-webkit-details-marker {
    display: none;
}

.csf-filter-summary::after {
    content: "\203A";
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.csf-filter-accordion[open] > .csf-filter-summary::after {
    transform: rotate(90deg);
}

.csf-filter-options {
    flex-direction: column;
    gap: .35rem;
    padding: .5rem 0rem .25rem;
}

.csf-filter-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    line-height: 1.5rem;
}

.csf-filter-option:hover {
    color: #a48e30;
    cursor: pointer;

}

.csf-filter-option input[type="checkbox"] {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1px solid #e1e1e1;
    border-radius: 0;
    background-color: #dfdfdf45;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.csf-filter-option input[type="checkbox"]:hover {
    border-color: #a48e30;
    background-color: #7026b1 !important;
    box-shadow: inset 0 0 0 3px #ffffff;

}

.csf-filter-option input[type="checkbox"]:checked {
    background-color: #a48e30;
    border-color: #a48e30;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.csf-filter-empty {
    font-size: 13px;
    color: #666;
}

.csf-filter-top-row {
    text-align: -webkit-left;
    font-size: .9rem;
    font-weight: bold;
}

input[type=number], input[type=text] {
    border: 1px solid #e1e1e1 !important;
    border-radius: 0 !important;
    margin: .5em 0rem 1rem;
}

::placeholder {
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    color: #7777;
}

.csf-search-input {
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237777' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E"),
        linear-gradient(to left, #e6e6e65e 3rem, transparent 3rem);
    background-repeat: no-repeat, no-repeat;
    background-position: calc(100% - 12px) center, right top;
    padding-right: 3.5rem !important;
}

.csf-search-input:focus {
    outline: none;
    border-color: #0b57d0;
    box-shadow: 0 0 4px rgba(11, 87, 208, 0.3);
    background-color: #ffffff;
}

.csf-price-range-options {
    display: flex !important;
    gap: .5rem;
}

.csf-price-input {
    display: grid;
    align-items: center;
    flex: 1 1 0;
    width: auto;
}

.csf-price-input-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

.csf-price-input-field:focus {
    outline: none;
    border-color: #0b57d0;
    box-shadow: 0 0 4px rgba(11, 87, 208, 0.3);
}

[type=button], [type=submit], button {
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    border: 0 !important;
    font-size: .9rem !important;
    padding: .5rem 2rem !important;
    flex: 1;
}

.csf-filter-actions {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    position: sticky;
    bottom: 0;
    z-index: 10;
    justify-content: center;
    padding: 1rem;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.csf-filter-actions [type="submit"] {
    background-color: #2A2A2A;
    color: #ffffff;
}

.csf-filter-actions [type="submit"]:hover {
    background-color: #000;
    font-weight: bold;
}

.csf-filter-actions [type="submit"]:active,
.csf-filter-actions [type="submit"]:focus,
.csf-filter-actions [type="submit"]:focus-visible {
    background-color: #2A2A2A;
    color: #ffffff;
    outline: none;
    box-shadow: none;
}

.csf-filter-actions .csf-filter-reset {
    background-color: #fff;
    color: #777;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center !important;    
    justify-content: center;
}

.csf-filter-actions .csf-filter-reset:hover {
    background-color: #e6e6e65e;
    color: #2A2A2A;
    font-weight: bold;
}

.csf-filter-actions .csf-filter-reset:active,
.csf-filter-actions .csf-filter-reset:focus,
.csf-filter-actions .csf-filter-reset:focus-visible {
    background-color: #fff;
    color: #777;
    outline: none;
    box-shadow: none;
}




/* =========================================================== */
/* Table and Mobile Freindly */
/* =========================================================== */

/* ---------- Specificatons ---------- */
@media (max-width: 768px) {
    .csf-specs-table {
        position: relative;
        min-width: 0;
    }

    .csf-specs-table th,
    .csf-specs-table td {
        padding: 0.75rem 0.75rem;
        font-size: 14px;
    }

    .csf-specs-table th {
        width: 42%;
    }

    .csf-filter-row {
        align-items: stretch;
    }

    .csf-filter-option {
        font-size: 13px;
    }

    .csf-filter-actions {
        justify-content: center;
    }
}
