/* Master Layout */
.cwf-master-wrapper,
.cwf-master-wrapper *:not(.dashicons),
.cwf-master-wrapper input,
.cwf-master-wrapper button,
.cwf-master-wrapper select,
.cwf-master-wrapper label,
.cwf-master-wrapper a,
.cwf-master-wrapper h1,
.cwf-master-wrapper h2,
.cwf-master-wrapper h3,
.cwf-master-wrapper h4,
.cwf-master-wrapper span:not(.dashicons),
.cwf-master-wrapper div { 
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; 
}

.cwf-master-wrapper .dashicons,
.dashicons {
    font-family: dashicons !important;
}

.cwf-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.cwf-master-wrapper { 
    display: flex; 
    gap: 32px; 
    color: #0f1111; 
    width: 100%; 
    box-sizing: border-box; 
}

/* Centered Layout */
.cwf-master-wrapper.cwf-centered-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sidebar Wrapper */
.cwf-sidebar-container { 
    width: 280px; 
    flex-shrink: 0; 
    transition: 0.3s ease; 
    position: relative; 
}
.is-collapsed .cwf-sidebar-container { 
    width: 0; 
    margin-right: -32px; 
}
.is-collapsed .cwf-filter-sidebar { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

/* Filter Open Button */
#cwf-open-sidebar { 
    display: none; 
    background: #0E8876 !important; 
    color: #fff !important; 
    border: none !important; 
    padding: 10px 18px !important; 
    border-radius: 8px; 
    cursor: pointer; 
    font-weight: 600 !important; 
    font-family: inherit !important; 
    font-size: 14px; 
    align-items: center; 
    gap: 8px; 
    box-shadow: 0 4px 12px rgba(14, 136, 118, 0.25);
    transition: all 0.2s ease;
}
#cwf-open-sidebar:hover {
    background: #0b7061 !important;
}
.is-collapsed #cwf-open-sidebar { 
    display: flex !important; 
    position: absolute; 
    left: 0; 
    top: 0; 
    z-index: 99; 
}

/* Sidebar Internal Styling */
.cwf-filter-sidebar { 
    width: 100%; 
    background: #fff; 
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    box-sizing: border-box;
}
.cwf-sidebar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 1px solid #f1f5f9; 
    padding-bottom: 14px; 
    margin-bottom: 12px; 
}
.cwf-sidebar-header h3 { 
    font-size: 17px !important; 
    font-weight: 700 !important; 
    color: #0f1111 !important; 
    margin: 0 !important; 
    display: flex;
    align-items: center;
    gap: 8px;
}
.cwf-arrow-back { 
    font-size: 18px; 
    color: #64748b; 
    cursor: pointer; 
    transition: color 0.2s;
}
.cwf-arrow-back:hover {
    color: #0f1111;
}

.cwf-sidebar-section { 
    border-bottom: 1px solid #f1f5f9; 
    padding: 18px 0; 
}
.cwf-sidebar-section:last-of-type {
    border-bottom: none;
}
.cwf-section-title { 
    font-size: 14px !important; 
    font-weight: 700 !important; 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    cursor: pointer; 
    color: #0f1111 !important; 
    margin: 0 0 12px 0;
    user-select: none;
}
.cwf-toggle-icon {
    font-size: 18px;
    font-weight: 400;
    color: #64748b;
}

/* Radios & Counts */
.cwf-radio-list { display: flex; flex-direction: column; gap: 10px; }
.cwf-radio-container { 
    display: flex !important; 
    align-items: center; 
    position: relative; 
    padding-left: 26px; 
    cursor: pointer; 
    font-size: 13px; 
    color: #374151; 
    transition: color 0.15s ease;
}
.cwf-radio-container:hover {
    color: #0f1111;
}
.cwf-checkmark { 
    position: absolute; 
    left: 0; 
    height: 16px; 
    width: 16px; 
    border: 1.5px solid #d1d5db; 
    border-radius: 50%; 
    background: #fff;
    transition: all 0.2s ease;
}
.cwf-radio-container input { position: absolute; opacity: 0; }
.cwf-radio-container input:checked ~ .cwf-checkmark {
    border-color: #0E8876;
}
.cwf-radio-container input:checked ~ .cwf-checkmark::after { 
    content: ""; 
    position: absolute; 
    top: 3px; 
    left: 3px; 
    width: 7px; 
    height: 7px; 
    border-radius: 50%; 
    background: #0E8876; 
}
.cwf-count { 
    margin-left: auto; 
    font-size: 11px; 
    color: #6b7280; 
    background: #f3f4f6; 
    padding: 2px 8px; 
    border-radius: 12px; 
    font-weight: 500;
}

/* Price Slider */
.cwf-price-labels { 
    display: flex; 
    justify-content: space-between; 
    font-weight: 600; 
    margin-bottom: 12px; 
    font-size: 13px; 
    color: #0f1111; 
}
#cwf-price-slider { 
    height: 5px; 
    background: #e5e7eb !important; 
    border: none; 
    margin: 12px 0; 
    position: relative; 
    border-radius: 10px; 
}
#cwf-price-slider .ui-slider-range { 
    background: #0E8876 !important; 
    position: absolute; 
    height: 100%; 
    border-radius: 10px; 
}
#cwf-price-slider .ui-slider-handle { 
    height: 18px; 
    width: 18px; 
    background: #ffffff; 
    border: 2px solid #0E8876; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    border-radius: 50%; 
    position: absolute; 
    top: -7px; 
    cursor: pointer; 
    margin-left: -9px; 
    outline: none; 
    transition: transform 0.15s ease;
}
#cwf-price-slider .ui-slider-handle:hover {
    transform: scale(1.15);
}

.cwf-clear-all-btn { 
    width: 100%; 
    background: #f3f4f6 !important; 
    color: #374151 !important; 
    border: 1px solid #d1d5db !important; 
    border-radius: 8px; 
    padding: 11px 16px; 
    margin-top: 20px; 
    font-weight: 600; 
    cursor: pointer; 
    font-size: 13px; 
    transition: all 0.2s ease;
}
.cwf-clear-all-btn:hover {
    background: #e5e7eb !important;
    color: #0f1111 !important;
}

/* Products Header & Top Bar */
.cwf-products-container { flex: 1; min-width: 0; }
.cwf-top-bar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
    border-bottom: 1px solid #e5e7eb; 
    padding-bottom: 16px; 
    gap: 16px;
}
.cwf-results-count { 
    font-size: 14px; 
    color: #4b5563; 
    line-height: 1.4;
}
.cwf-results-count strong {
    color: #0f1111;
    font-weight: 600;
}

.cwf-top-controls { 
    display: flex; 
    align-items: center; 
    gap: 14px; 
}
.cwf-sort-box { 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    padding: 6px 14px; 
    display: flex; 
    align-items: center;
    gap: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.cwf-sort-box label { 
    font-size: 12px; 
    color: #6b7280; 
    margin: 0;
    white-space: nowrap;
    font-weight: 500;
}
#cwf-ajax-sort { 
    border: none !important; 
    font-weight: 600; 
    color: #0f1111; 
    font-family: inherit; 
    background: transparent; 
    cursor: pointer; 
    outline: none; 
    font-size: 13px; 
    padding: 0; 
}

.cwf-view-toggle { display: flex; gap: 6px; }
.cwf-view-btn { 
    width: 36px; 
    height: 36px; 
    border: 1px solid #d1d5db; 
    border-radius: 8px; 
    background: #fff; 
    cursor: pointer; 
    color: #6b7280; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.2s ease;
}
.cwf-view-btn:hover {
    border-color: #9ca3af;
    color: #0f1111;
}
.cwf-view-btn.active { 
    color: #fff !important; 
    border-color: #0E8876 !important; 
    background: #0E8876 !important; 
}

/* ======================================================
   AMAZON-STYLE 3-COLUMN PRODUCT GRID
   ====================================================== */

/* Grid container: 3 columns default */
.cwf-loop-wrapper { 
    display: grid !important; 
    grid-template-columns: repeat(3, 1fr) !important; 
    gap: 22px !important; 
    width: 100% !important; 
    margin-top: 10px;
    box-sizing: border-box;
}

/* Optional column modifiers */
.cwf-cols-2 .cwf-loop-wrapper {
    grid-template-columns: repeat(2, 1fr) !important;
}
.cwf-cols-4 .cwf-loop-wrapper {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Product Card (Amazon Card Style) */
.cwf-item { 
    background: #ffffff; 
    border: 1px solid #e5e7eb; 
    border-radius: 12px; 
    overflow: hidden; 
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    box-sizing: border-box;
}

.cwf-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.09), 0 6px 12px -4px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

/* Product Image Area */
.cwf-img-container { 
    height: 240px; 
    overflow: hidden; 
    background: #ffffff;
    flex-shrink: 0; 
    position: relative; 
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box;
}

.cwf-img-link {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.cwf-img-container img { 
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    transition: transform 0.35s ease;
    display: block;
    margin: 0 auto;
}

.cwf-item:hover .cwf-img-container img {
    transform: scale(1.04);
}

/* Badges (Amazon Deal / Sale / Bestseller) */
.cwf-badge-group {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 5;
    pointer-events: none;
}

.cwf-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 5px;
    letter-spacing: 0.4px;
    line-height: 1.2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.cwf-sale-badge {
    background: #cc0c39;
    color: #ffffff;
}

.cwf-out-of-stock-badge {
    background: #4b5563;
    color: #ffffff;
}

.cwf-featured-badge {
    background: #232f3e;
    color: #f59e0b;
}

/* Product Info */
.cwf-product-info {
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: left;
    box-sizing: border-box;
}

/* Category or Brand Subtitle */
.cwf-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #64748b;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Product Title (Sleek 2-Line Clamped) */
.cwf-title { 
    font-size: 14px !important; 
    font-weight: 600 !important; 
    line-height: 1.35 !important; 
    margin: 0 0 6px 0 !important;
    color: #0f1111 !important;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em !important;
}

.cwf-title a { 
    color: #0f1111 !important; 
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.cwf-title a:hover {
    color: #0E8876 !important;
}

/* Star Ratings (Removed) */
.cwf-rating-row {
    display: none !important;
}

/* Stock Status Hint */
.cwf-stock-hint {
    font-size: 12px;
    color: #007600;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.cwf-stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #007600;
    display: inline-block;
}

/* Bottom Section (Sticky alignment for price & button) */
.cwf-bottom-section {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px dashed #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Price */
.cwf-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cwf-price-txt { 
    font-size: 19px; 
    font-weight: 700; 
    color: #0f1111;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.cwf-price-txt del {
    font-size: 13px;
    color: #565959;
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 6px;
}

.cwf-price-txt ins {
    text-decoration: none;
    color: #b12704;
    font-weight: 700;
}

/* Add to Cart Button (Sleek Compact High-Visibility Pill) */
.cwf-meta-action {
    width: 100%;
}

.cwf-meta-action .add_to_cart_button,
.cwf-meta-action .button,
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart {
    background: #0E8876 !important;
    color: #ffffff !important;
    border: 1px solid #0E8876 !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-shadow: 0 2px 5px rgba(14, 136, 118, 0.25) !important;
    box-sizing: border-box !important;
}

.cwf-meta-action .add_to_cart_button:hover,
.cwf-meta-action .button:hover,
a.button.product_type_simple.add_to_cart_button.ajax_add_to_cart:hover {
    background: #0b7061 !important;
    border-color: #0b7061 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(14, 136, 118, 0.35) !important;
    transform: translateY(-1px);
}

.cwf-meta-action .add_to_cart_button:active,
.cwf-meta-action .button:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(14, 136, 118, 0.2) !important;
}

/* Out of Stock Button */
.cwf-meta-action .cwf-out-of-stock-btn,
a.button.cwf-out-of-stock-btn {
    background: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
    border-radius: 20px !important;
    padding: 9px 16px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    font-family: inherit !important;
    line-height: 1.4 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.cwf-meta-action .cwf-out-of-stock-btn:hover,
a.button.cwf-out-of-stock-btn:hover {
    background: #e5e7eb !important;
    color: #111827 !important;
    border-color: #9ca3af !important;
}

/* Centered Layout Support */
.cwf-centered-layout .cwf-product-info {
    text-align: center;
    align-items: center;
}
.cwf-centered-layout .cwf-title {
    text-align: center;
}
.cwf-centered-layout .cwf-rating-row {
    justify-content: center;
}
.cwf-centered-layout .cwf-stock-hint {
    justify-content: center;
}
.cwf-centered-layout .cwf-price-row {
    justify-content: center;
}

/* ======================================================
   LIST VIEW LAYOUT
   ====================================================== */
.cwf-list-layout .cwf-loop-wrapper { 
    grid-template-columns: 1fr !important; 
    gap: 16px !important;
}

.cwf-list-layout .cwf-item { 
    flex-direction: row; 
    align-items: center; 
    width: 100%; 
    padding: 16px; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.cwf-list-layout .cwf-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.cwf-list-layout .cwf-img-container { 
    width: 180px; 
    height: 180px;
    flex-shrink: 0; 
    margin-right: 20px;
    border-bottom: none;
    border-right: 1px solid #f1f5f9;
    padding: 12px;
}

.cwf-list-layout .cwf-product-info { 
    flex: 1; 
    padding: 0;
    justify-content: center;
}

.cwf-list-layout .cwf-bottom-section {
    border-top: none;
    padding-top: 0;
    margin-top: 10px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.cwf-list-layout .cwf-meta-action {
    width: auto;
    min-width: 180px;
}

/* ======================================================
   PAGINATION & LOAD MORE (#0E8876 Theme Color)
   ====================================================== */
.cwf-pagination { 
    text-align: center; 
    margin-top: 40px; 
    padding-top: 30px; 
    border-top: 1px solid #e5e7eb; 
    width: 100%;
}

.cwf-load-more { 
    background: #0E8876 !important; 
    color: #ffffff !important; 
    padding: 14px 44px !important; 
    border: 1px solid #0b7061 !important; 
    border-radius: 28px !important; 
    font-weight: 600 !important; 
    cursor: pointer !important; 
    font-size: 14px !important; 
    font-family: inherit !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(14, 136, 118, 0.25) !important;
    letter-spacing: 0.3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    outline: none !important;
}

.cwf-load-more:hover { 
    background: #0b7061 !important;
    border-color: #0a6356 !important;
    box-shadow: 0 6px 20px rgba(14, 136, 118, 0.35) !important;
    transform: translateY(-2px);
    color: #ffffff !important;
}

.cwf-load-more:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(14, 136, 118, 0.2) !important;
}

.cwf-load-more.is-loading {
    background: #0b7061 !important;
    border-color: #0a6356 !important;
    cursor: wait !important;
    opacity: 0.9 !important;
    transform: none !important;
    box-shadow: 0 2px 8px rgba(14, 136, 118, 0.2) !important;
    pointer-events: none !important;
}

.cwf-load-more .cwf-btn-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cwf-spin 0.65s linear infinite;
    flex-shrink: 0;
}

/* Empty message */
.cwf-empty {
    text-align: center;
    font-size: 16px;
    color: #6b7280;
    padding: 40px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #d1d5db;
    margin-top: 20px;
}

/* ======================================================
   RESPONSIVE DESIGN (All Devices)
   ====================================================== */

/* 1. Large Tablets & Small Desktops (992px - 1199px) */
@media (max-width: 1199px) {
    .cwf-loop-wrapper { 
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 18px !important; 
    }
    .cwf-master-wrapper { gap: 24px; }
    .cwf-img-container { height: 210px; }
}

/* 2. Tablets & Small Laptops (768px - 991px) */
@media (max-width: 991px) {
    .cwf-master-wrapper { flex-direction: column; gap: 20px; }
    .cwf-sidebar-container { width: 100%; margin-bottom: 10px; }
    .is-collapsed .cwf-sidebar-container { margin-bottom: 40px; margin-right: 0; }
    .cwf-loop-wrapper { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 18px !important; 
    }
    .cwf-img-container { height: 200px; }
    .is-collapsed #cwf-open-sidebar { 
        position: static; 
        width: fit-content; 
        margin: 0 auto 15px auto; 
    }
}

/* 3. Mobile Landscape & Phablets (580px - 767px) */
@media (max-width: 767px) {
    .cwf-top-bar { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 12px; 
    }
    .cwf-top-controls { 
        justify-content: space-between; 
        width: 100%; 
    }
    .cwf-sort-box { flex: 1; }
    .cwf-loop-wrapper { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 14px !important; 
    }
    .cwf-img-container { height: 180px; padding: 10px; }
    .cwf-product-info { padding: 12px; }
    .cwf-title { font-size: 14px; min-height: 2.8em; }
    .cwf-price-txt { font-size: 17px; }
}

/* 4. Compact Mobile Devices (< 580px) */
@media (max-width: 579px) {
    .cwf-top-bar { 
        flex-direction: column; 
        align-items: stretch; 
        gap: 12px; 
    }
    .cwf-top-controls { 
        flex-direction: column; 
        width: 100%; 
        gap: 10px; 
    }
    .cwf-sort-box { width: 100%; justify-content: space-between; }
    .cwf-view-toggle { width: 100%; justify-content: center; }

    /* Single column cards on compact mobile for maximum clarity and tap comfort */
    .cwf-loop-wrapper { 
        grid-template-columns: 1fr !important; 
        gap: 16px !important; 
    }
    .cwf-img-container { height: 220px; }
    .cwf-product-info { padding: 16px; }
    .cwf-title { font-size: 15px; }
    .cwf-price-txt { font-size: 19px; }

    /* List view on small mobile */
    .cwf-list-layout .cwf-item { 
        flex-direction: column; 
        text-align: left; 
        padding: 16px; 
    }
    .cwf-list-layout .cwf-img-container { 
        width: 100%; 
        height: 200px;
        margin-right: 0;
        margin-bottom: 14px;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }
    .cwf-list-layout .cwf-bottom-section { 
        flex-direction: column; 
        width: 100%; 
        align-items: stretch;
        gap: 10px;
    }
    .cwf-list-layout .cwf-meta-action { width: 100%; }
}

/* Loader */
#cwf-ajax-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}
.cwf-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(14, 136, 118, 0.2);
    border-top-color: #0E8876;
    border-radius: 50%;
    animation: cwf-spin 0.8s linear infinite;
}
@keyframes cwf-spin {
    to { transform: rotate(360deg); }
}

/* Hierarchical Categories Accordion & Indentation */
.cwf-category-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 6px;
}
.cwf-parent-category-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.cwf-cat-toggle {
    background: transparent !important;
    border: none !important;
    color: #495057 !important;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: none !important;
    line-height: 1;
}
.cwf-cat-toggle-spacer {
    width: 20px;
    flex-shrink: 0;
}
.cwf-sub-categories {
    margin-top: 6px;
    padding-left: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cwf-child-radio {
    font-size: 12px !important;
    color: #6c757d;
}
.cwf-radio-container.cwf-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* YITH Pre-Order support */
.cwf-preorder-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    padding: 4px 8px;
    border-radius: 5px;
    background: #0E8876;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    line-height: 1.2;
    text-transform: uppercase;
}
.cwf-preorder-message {
    width: 100%;
    margin: 0 0 10px;
    color: #0E8876;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}
