﻿.spike-child-category-switcher {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.5rem auto 1.75rem;
}

.spike-child-category-switcher__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.spike-child-category-switcher .spike-child-category-switcher__item.theme_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    padding: 10px 17px;
    background: #f7f7f7 !important;
    color: #666 !important;
    border: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    transition: all 0.3s ease;

    cursor: pointer;
    white-space: nowrap;
}

.spike-child-category-switcher .spike-child-category-switcher__item.theme_button:hover,
.spike-child-category-switcher .spike-child-category-switcher__item.theme_button:focus {
    background: #eeeeee !important;
    color: #333 !important;

    outline: none;
}

.spike-child-category-switcher .spike-child-category-switcher__item.theme_button.is-active {
    background: #00a0d1 !important;
    color: #ffffff !important;
}

.spike-child-category-switcher .spike-child-category-switcher__item.theme_button.is-active:hover,
.spike-child-category-switcher .spike-child-category-switcher__item.theme_button.is-active:focus {
    background: #0090bf !important;
    color: #ffffff !important;
}

.spike-child-category-switcher__dropdown {
    display: none;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.spike-child-category-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.spike-child-category-switcher__dropdown .select_container {
    position: relative;
    width: 100%;
}

.spike-child-category-switcher__dropdown .select_container::after {
    right: 10px;
}

.spike-child-category-switcher__select {
    width: 100%;
    border-radius: 30px;
    border: 3px #fff solid !important;
    background: #f7f7f7 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    padding: 10px 40px 10px 17px;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    text-align: center;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 17px center;
    background-size: 16px;
    transition: all 0.3s ease;
}

.spike-child-category-switcher__select:focus,
.spike-child-category-switcher__select:hover {
    outline: none;
    background: #eeeeee !important;
    color: #333 !important;
    -webkit-text-fill-color: #333 !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

.spike-child-category-switcher__select option {
    color: #333;
    background-color: #ffffff;
}

.spike-child-category-switcher__select option:hover,
.spike-child-category-switcher__select option:focus,
.spike-child-category-switcher__select option:active {
    background-color: #00a0d1 !important;
    color: #ffffff !important;
}

.spike-child-category-switcher__select option:checked {
    background-color: #00a0d1 !important;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .spike-child-category-switcher__buttons {
        justify-content: flex-start;
        gap: 0.55rem;
    }

    .spike-child-category-switcher .spike-child-category-switcher__item.theme_button {
        padding: 8px 14px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .spike-child-category-switcher__buttons {
        display: none;
    }

    .spike-child-category-switcher__dropdown {
        display: block;
    }

    .spike-child-category-switcher {
        gap: 0.75rem;
    }
}
