label.section-title {
    color: white;
    background-color: black;
    padding: 2px 16px;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}

#price-range {
    margin-top: 12px;
}

.ui-slider-range.ui-corner-all.ui-widget-header {
    background-color: cornflowerblue;
}

.ui-slider-handle.ui-corner-all.ui-state-default {        
    border-radius: 50%;
    background-color: darkorange;
    border: 2px solid black;
    box-shadow: black 2px 0px 3px;
}

.ui-slider-handle.ui-corner-all.ui-state-default:focus {
    outline: none;
}

.ui-widget-content {
    background: lightskyblue;
}

#product-filters-form {
    max-width: var(--wp--style--global--wide-size);
}

.price-range-display {
    display: flex;
    justify-content: space-between;

    .item {
        background-color: darkorange;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        place-content: center;
        text-align: center;
        color: white;
        font-weight: bolder;
        font-size: 18px;
        margin-top: 6px;
        box-shadow: 2px 2px 4px black;

        &::after {
            content: '€';
            display: block;
            font-size: 12px;
            font-weight: bold;
            line-height: 0;
        }
    }
}


.block-filter-select {
    display: inline-block;
    margin-top: 12px;
    max-width: calc(50% - 4px);
    width: calc(50% - 4px);
    min-width: 320px;
    cursor: pointer;

    .block-title {
        background-color: cornflowerblue;
        padding: 8px 8px;
        color: white;
        border-radius: 8px 8px 0px 0px;
        font-size: 0.8rem;
        box-shadow: 2px 2px 2px darkslateblue;
        z-index: 10;
        position: relative;
        cursor: pointer;        
    }

    &[expanded='false'] {
        .block-title::after {
            content: '  ▶';            
            font-size: 0.8rem;
        }
        .select-container-content {
            display: none;
        }
    }

    &[expanded='true'] {
        .block-title::after {
            content: '  ▼';            
            font-size: 0.8rem;
        }
        .select-container-content {
            display: block;
        }
    }

    .select-container {
        background-color: cornflowerblue;
        padding: 8px;
        margin-top: -2px;
        border-radius: 0px 8px 8px 8px;
        box-shadow: 2px 2px 2px darkslateblue;
        z-index: 10;
        position: relative;
        min-height: 20px;
    }
    
}
@media screen and (max-width: 768px) {    
    .block-filter-select {        
        max-width: 100%;
        width: 100%;
        min-width: 320px;
    }
}

.pill-multiselect label {
    display: inline-block;
    margin: 1px;
    cursor: pointer;
    font-size: 0.6rem;
}

.pill-multiselect input[type="checkbox"] {
    display: none;
}

.pill-multiselect input[type="checkbox"][name] + span {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #ccc;
    border-radius: 1rem;
    background: #f8f8f8;
    color: gray;
    transition: all 0.2s ease;
    box-shadow: 1px 1px 3px darkslategray;

    &:hover {
        background-color: #c8defe;
        color: black;
    }
}

.pill-multiselect input[type="checkbox"][selector] + span {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #ccc;
    background: #ffd900;
    color: #000000;
    transition: all 0.2s ease;
    box-shadow: 1px 1px 3px black;
    font-weight: bold;
    font-size: 0.7rem;

    &:hover {
        background-color: yellow;
        color: black;
    }
}

.pill-multiselect input[type="checkbox"][name]:checked + span {
    background: #002d40;
    color: #fff;
    border-color: #0071a1;
}

.pill-multiselect input[type="checkbox"][selector]:checked + span {
    background: #002d40;
    color: #fff;
    border-color: #0071a1;
}

.search-block {
    margin: 16px 0px;
    justify-content: center;
    display: flex;    
    align-items: center;
    margin-left: auto;

    .block-item {
        height: 30px;
        align-content: center;
        label {
            align-content: center;
            height: 100%;
            display: inline-block;
            border-radius: 8px 0px 0px 8px;
        }
        input {
            height: calc(100% - 2px);
            border-radius: 0px 8px 8px 0px;
            width: 100%;
            min-width: 150px;
            padding: 1px 12px;
            &:focus {
                outline-offset: -4px;              
            }
        }        
    }
}

.block-item:has(button) {
    text-align: center;
    button {
        background-color: black;
        color: white;
        border-radius: 5px;
        padding: 4px 16px;
        font-size: 1rem;
        cursor: pointer;
        min-width: 120px;
        &:disabled {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            opacity: 0.6;
            pointer-events: none;
        }
    }
}

.search-results-title {
    text-align: center;
    color: black;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 16px;
    display: none;
}

.filtered-products {
    max-width: var(--wp--style--global--wide-size) !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px !important;

    .product {
        text-align: center;
        padding-bottom: 24px;
        img {
            width: 100%;
            max-height: 200px;
            height: auto;
            object-fit: contain;
            border: 1px solid darkgrey;
            border-radius: 1rem;
            box-shadow: 2px 2px 4px darkgrey;
        }
        .product-name {
            font-size: 0.75rem;
            font-weight: bold;
            color: black;
            text-decoration: none;
            display: block;
            margin-top: 8px;
            word-break: break-word;
            overflow-wrap: break-word;
            white-space: normal;
            text-align: center;
            height: 3.8rem;
            overflow: hidden;
        }
        .product-price {
            ins .woocommerce-Price-amount > bdi,
            .woocommerce-Price-amount > bdi {
                color: white;
                text-align: center;
                background-color: cornflowerblue;
                padding: 4px 8px;
                border-radius: 10px;
                box-shadow: 2px 2px 4px black;
                min-width: 90px;
                display: inline-block;                
                font-size: 1.2rem;
                font-weight: bold;
            }

            del .woocommerce-Price-amount > bdi {
                color: white;
                text-align: center;
                background-color: #ff0000ba;
                padding: 2px 4px;
                border-radius: 10px;
                box-shadow: 2px 2px 4px black;
                min-width: 90px;
                display: inline-block;
                margin-bottom: 4px;
                font-size: 0.8rem;
                text-decoration: line-through;
                font-weight: bold;
            }

            .woocommerce-price-suffix {                
                display: block;
                background-color: gray;
                color: white;
                width: fit-content;
                margin-left: auto;
                margin-right: auto;
                margin-top: 8px;
                margin-bottom: 20px;
                padding: 2px 8px;
                border-radius: 1rem;
                font-size: 0.6rem;
                font-weight: bold;
            }
        }
        .button.wp-element-button.product_type_simple {
            font-size: 0.8rem;
            font-weight: bold;
            margin-bottom: 40px !important;
            background-color: rgba(0, 0, 0, 0.66);
            color: white;
            &:hover, &:focus {
                background-color: black;
                color: white;
            }
        }
    }
}

.product {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    box-sizing: border-box;
}

.spinner {
    border: 1rem solid rgba(0,0,0,0.1);
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
    margin-left: auto;
    margin-right: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.no-results {
    width: calc(100vw - 4rem);
    max-width: calc(var(--wp--style--global--wide-size) - 3rem);
    text-align: center;
    color: red;
    font-size: 1rem;
    font-weight: bold;
}