.ksn-filter-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    color: #1e293b;
}

.ksn-filter-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.ksn-filter-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #cbd5e1;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: ksn-spin 0.6s linear infinite;
}

@keyframes ksn-spin {
    to { transform: rotate(360deg); }
}

.ksn-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.ksn-filter-title {
    font-weight: bold;
    font-size: 14px;
}

.ksn-filter-badge {
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #475569;
}

.ksn-filter-reset-wrap {
    margin-bottom: 15px;
}

.ksn-btn-reset-all {
    width: 100%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
}

.ksn-filter-group {
    margin-bottom: 16px;
    border-bottom: 1px solid #f8fafc;
    padding-bottom: 12px;
}

.ksn-active-dot {
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


.ksn-filter-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
}

.ksn-filter-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.ksn-btn-toggle-more {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0;
    text-align: right;
}

.ksn-group-options {
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 4px;
}

.ksn-group-options::-webkit-scrollbar {
    width: 4px;
}

.ksn-group-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.ksn-group-options::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.ksn-group-options::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ksn-filter-checkbox.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.ksn-filter-checkbox.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
}

.ksn-group-title.is-open {
    border-bottom: 2px solid #A81010;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.ksn-group-title {
    border-bottom: 2px solid transparent;
    padding-bottom: 8px;
    margin-bottom: 8px;
    transition: border-color 0.2s ease;
}

.ksn-isolated-product-card {
    position: relative;
}
.ksn-attr-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
}
.ksn-attr-badge {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ksn-attr-badge__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ksn-attr-badge--text {
    width: auto;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 700;
    color: #374151;
    line-height: 20px;
}
.ksn-attr-badge--more {
    font-size: 10px;
    font-weight: 600;
    color: #6b7280;
    background: #f3f4f6;
    line-height: 20px;
}
