/* Widget container + shared header */
.eyrf-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.eyrf-form {
    display: block;
}


/* Widget title & header actions */
.eyrf-title {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-transition: opacity 0.25s ease;
    -moz-transition: opacity 0.25s ease;
    -o-transition: opacity 0.25s ease;
    transition: opacity 0.25s ease;
}

.eyrf-title:hover {
    opacity: 0.85;
}

.eyrf-title:active {
    opacity: 0.75;
}

.eyrf-title-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ea1414;
    position: relative;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 18px;
}

.eyrf-title-text::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    font-weight: 600;
    font-size: 16px;
    line-height: 1;
    color: #c53030;
    -webkit-transform: translateY(-50%) scale(1);
    -moz-transform: translateY(-50%) scale(1);
    -ms-transform: translateY(-50%) scale(1);
    -o-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    -webkit-transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                        color 0.2s ease,
                        opacity 0.2s ease;
    -moz-transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                     color 0.2s ease,
                     opacity 0.2s ease;
    -o-transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                   color 0.2s ease,
                   opacity 0.2s ease;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                color 0.2s ease,
                opacity 0.2s ease;
    opacity: 1;
}

.eyrf-title.active .eyrf-title-text::after {
    content: '−';
    color: #9b2c2c;
    -webkit-transform: translateY(-50%) scale(1.1) rotate(180deg);
    -moz-transform: translateY(-50%) scale(1.1) rotate(180deg);
    -ms-transform: translateY(-50%) scale(1.1) rotate(180deg);
    -o-transform: translateY(-50%) scale(1.1) rotate(180deg);
    transform: translateY(-50%) scale(1.1) rotate(180deg);
}

.eyrf-title.active {
    margin-bottom: 12px;
}
.eyrf-title-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eyrf-inline-preloader {
    display: none;
    width: 20px;
    height: 20px;
    margin-left: 4px;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
}

.eyrf-inline-preloader.active {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
}

.eyrf-reset-inline {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #edf2f7;
    color: #4a5568;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    -moz-transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    -o-transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.eyrf-reset-inline:hover {
    background: #e2e8f0;
    color: #2d3748;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

.eyrf-reset-inline.is-hidden {
    display: none;
}

.eyrf-range-summary {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    margin-bottom: 12px;
    background: #f8f9fc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
    -webkit-transition: opacity 0.3s ease, transform 0.3s ease;
    -moz-transition: opacity 0.3s ease, transform 0.3s ease;
    -o-transition: opacity 0.3s ease, transform 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.eyrf-range-summary.is-hidden {
    display: none;
}

.eyrf-range-summary-count {
    font-size: 13px;
    color: #2d3748;
}


/* Attribute buttons layout */
.eyrf-buttons-widget .eyrf-buttons-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.45) transparent;
    padding-right: 4px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.eyrf-buttons-widget .eyrf-buttons-container::-webkit-scrollbar {
    width: 6px;
}

.eyrf-buttons-widget .eyrf-buttons-container::-webkit-scrollbar-track {
    background: transparent;
}

.eyrf-buttons-widget .eyrf-buttons-container::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.45);
    border-radius: 999px;
    -webkit-transition: background 0.3s ease;
    transition: background 0.3s ease;
}

.eyrf-buttons-widget .eyrf-buttons-container::-webkit-scrollbar-thumb:hover {
    background: rgba(118, 75, 162, 0.65);
}

/* Плавная анимация открытия/закрытия через active класс */
.eyrf-buttons-container-as {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    -webkit-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        margin 0.35s ease;
    -moz-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                     opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                     margin 0.35s ease;
    -o-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                   opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                   margin 0.35s ease;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                margin 0.35s ease;
    width: 93%;
    margin-top: 0;
}

.eyrf-buttons-container-as.active {
    max-height: 100%;
    opacity: 1;
    overflow: visible;
    margin-top: 10px;
}

.eyrf-button {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 8px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
    margin: 5px;
    -webkit-tap-highlight-color: transparent;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

.eyrf-button:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.eyrf-button:active {
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}

.eyrf-button-selected {
    background: -webkit-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: -moz-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: -o-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
}

.eyrf-button-text {
    margin-right: 6px;
}

.eyrf-button-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 12px;
}

.eyrf-button-selected .eyrf-button-count {
    background: rgba(255, 255, 255, 0.3);
}

.eyrf-has-preloader {
    position: relative;
}

.eyrf-products-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.eyrf-products-preloader.active {
    opacity: 1;
    pointer-events: auto;
}

.eyrf-products-preloader .eyrf-spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(229, 62, 62, 0.15);
    border-top-color: #e53e3e;
    -webkit-animation: eyrf-spin 0.8s linear infinite;
    -moz-animation: eyrf-spin 0.8s linear infinite;
    -o-animation: eyrf-spin 0.8s linear infinite;
    animation: eyrf-spin 0.8s linear infinite;
    will-change: transform;
}

@-webkit-keyframes eyrf-spin {
    to { -webkit-transform: rotate(360deg); }
}

@-moz-keyframes eyrf-spin {
    to { -moz-transform: rotate(360deg); }
}

@-o-keyframes eyrf-spin {
    to { -o-transform: rotate(360deg); }
}

@keyframes eyrf-spin {
    to { 
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

/* Numeric nicotine buttons */
.eyrf-btn-low {
    border-color: #28a745;
    color: #28a745;
}

.eyrf-btn-low:hover,
.eyrf-btn-low.eyrf-button-selected {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-color: #28a745;
    color: #ffffff;
}

.eyrf-btn-medium {
    border-color: #ffc107;
    color: #856404;
}

.eyrf-btn-medium:hover,
.eyrf-btn-medium.eyrf-button-selected {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    border-color: #ffc107;
    color: #ffffff;
}

.eyrf-btn-high {
    border-color: #dc3545;
    color: #dc3545;
}

.eyrf-btn-high:hover,
.eyrf-btn-high.eyrf-button-selected {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%);
    border-color: #dc3545;
    color: #ffffff;
}

.eyrf-btn-extra {
    border-color: #6f42c1;
    color: #6f42c1;
}

.eyrf-btn-extra:hover,
.eyrf-btn-extra.eyrf-button-selected {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    border-color: #6f42c1;
    color: #ffffff;
}

/* Accordion widget */
.eyrf-accordion-container {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    overflow: hidden;
    margin: 0;
    padding: 0 2px !important;
}

.eyrf-accordion-item {
    border-bottom: 1px solid #e1e5e9;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.eyrf-accordion-item:last-child {
    border-bottom: none;
}

.eyrf-accordion-item.has-selected .eyrf-accordion-header {
    background: -webkit-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: -moz-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: -o-linear-gradient(315deg, #667eea 0%, #764ba2 100%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.eyrf-accordion-header {
    padding: 12px 16px;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.eyrf-accordion-header:hover {
    background: #e9ecef;
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    transform: translateY(-1px);
}

.eyrf-accordion-item.has-selected .eyrf-accordion-header:hover {
    background: -webkit-linear-gradient(315deg, #5a67d8 0%, #667eea 100%);
    background: -moz-linear-gradient(315deg, #5a67d8 0%, #667eea 100%);
    background: -o-linear-gradient(315deg, #5a67d8 0%, #667eea 100%);
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
}

.eyrf-accordion-icon {
    font-size: 18px;
    -webkit-transition: transform 0.3s ease;
    -moz-transition: transform 0.3s ease;
    -o-transition: transform 0.3s ease;
    transition: transform 0.3s ease;
}

.eyrf-accordion-label {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    font-weight: 500;
}

.eyrf-accordion-arrow {
    -webkit-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -o-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 12px;
}

.eyrf-accordion-item.expanded .eyrf-accordion-arrow {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

.eyrf-selected-indicator {
    color: #28a745;
    font-size: 12px;
    position: absolute;
    right: 30px;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.eyrf-accordion-item.has-selected .eyrf-selected-indicator {
    color: #ffffff;
}

.eyrf-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    -webkit-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.35s ease,
                        padding 0.3s ease;
    -moz-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                     opacity 0.35s ease,
                     padding 0.3s ease;
    -o-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                   opacity 0.35s ease,
                   padding 0.3s ease;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                padding 0.3s ease;
    background: #ffffff;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.eyrf-accordion-content.active {
    max-height: 1500px;
    opacity: 1;
    overflow: visible;
}

.eyrf-accordion-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(102, 126, 234, 0.45) transparent;
}

.eyrf-accordion-buttons::-webkit-scrollbar {
    width: 6px;
}

.eyrf-accordion-buttons::-webkit-scrollbar-track {
    background: transparent;
}

.eyrf-accordion-buttons::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.45);
    border-radius: 999px;
}

.eyrf-accordion-buttons::-webkit-scrollbar-thumb:hover {
    background: rgba(118, 75, 162, 0.55);
}

/* Плавная анимация для .eyrf-accordion-buttons */
.eyrf-accordion-buttons {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 16px;
    -webkit-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        padding 0.35s ease;
    -moz-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                     opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                     padding 0.35s ease;
    -o-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                   opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                   padding 0.35s ease;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.35s ease;
}

.eyrf-accordion-buttons.active {
    max-height: 260px;
    opacity: 1;
    overflow-y: auto;
    padding: 16px;
}

.eyrf-accordion-button {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid;
    background: #ffffff;
    min-height: 32px;
}

.eyrf-accordion-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.eyrf-accordion-button.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff !important;
    border-color: #667eea;
}

.eyrf-accordion-button .eyrf-button-text {
    margin-right: 6px;
}

.eyrf-accordion-button .eyrf-button-count {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
}

.eyrf-accordion-button.selected .eyrf-button-count {
    background: rgba(255, 255, 255, 0.2);
}

.eyrf-accordion-clear {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e1e5e9;
    text-align: center;
}

.eyrf-clear-all-button {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.eyrf-clear-all-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
    color: #ffffff;
}

/* Flavor group header gradients */
.eyrf-group-fruity .eyrf-accordion-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    color: #ffffff;
}

.eyrf-group-fruity .eyrf-accordion-header:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff8f00 100%);
}

.eyrf-group-fruity.has-selected .eyrf-accordion-header {
    background: linear-gradient(135deg, #e53935 0%, #f57c00 100%);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

.eyrf-group-minty .eyrf-accordion-header {
    background: linear-gradient(135deg, #4fc3f7 0%, #29b6f6 100%);
    color: #ffffff;
}

.eyrf-group-minty .eyrf-accordion-header:hover {
    background: linear-gradient(135deg, #29b6f6 0%, #0288d1 100%);
}

.eyrf-group-minty.has-selected .eyrf-accordion-header {
    background: linear-gradient(135deg, #0288d1 0%, #0277bd 100%);
    box-shadow: 0 2px 8px rgba(79, 195, 247, 0.4);
}

.eyrf-group-sweet .eyrf-accordion-header {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
    color: #ffffff;
}

.eyrf-group-sweet .eyrf-accordion-header:hover {
    background: linear-gradient(135deg, #c2185b 0%, #880e4f 100%);
}

.eyrf-group-sweet.has-selected .eyrf-accordion-header {
    background: linear-gradient(135deg, #ad1457 0%, #6a1b9a 100%);
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

.eyrf-group-drinks .eyrf-accordion-header {
    background: linear-gradient(135deg, #8d6e63 0%, #5d4037 100%);
    color: #ffffff;
}

.eyrf-group-drinks .eyrf-accordion-header:hover {
    background: linear-gradient(135deg, #6d4c41 0%, #3e2723 100%);
}

.eyrf-group-drinks.has-selected .eyrf-accordion-header {
    background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
    box-shadow: 0 2px 8px rgba(141, 110, 99, 0.4);
}

.eyrf-group-other .eyrf-accordion-header {
    background: linear-gradient(135deg, #9c27b0 0%, #673ab7 100%);
    color: #ffffff;
}

.eyrf-group-other .eyrf-accordion-header:hover {
    background: linear-gradient(135deg, #7b1fa2 0%, #512da8 100%);
}

.eyrf-group-other.has-selected .eyrf-accordion-header {
    background: linear-gradient(135deg, #673ab7 0%, #3f51b5 100%);
    box-shadow: 0 2px 8px rgba(156, 39, 176, 0.4);
}

.eyrf-group-tobacco .eyrf-accordion-header {
    background: linear-gradient(135deg, #8d6e63 0%, #795548 100%);
    color: #ffffff;
}

.eyrf-group-tobacco .eyrf-accordion-header:hover {
    background: linear-gradient(135deg, #6d4c41 0%, #5d4037 100%);
}

.eyrf-group-tobacco.has-selected .eyrf-accordion-header {
    background: linear-gradient(135deg, #5d4037 0%, #4e342e 100%);
    box-shadow: 0 2px 8px rgba(141, 110, 99, 0.4);
}

.eyrf-group-spicy .eyrf-accordion-header {
    background: linear-gradient(135deg, #ff5722 0%, #d84315 100%);
    color: #ffffff;
}

.eyrf-group-spicy .eyrf-accordion-header:hover {
    background: linear-gradient(135deg, #e64a19 0%, #bf360c 100%);
}

.eyrf-group-spicy.has-selected .eyrf-accordion-header {
    background: linear-gradient(135deg, #d84315 0%, #bf360c 100%);
    box-shadow: 0 2px 8px rgba(255, 87, 34, 0.4);
}

/* Flavor button color classes */
.eyrf-flavor-apple { border-color: #4caf50; color: #2e7d32; }
.eyrf-flavor-apple:hover,
.eyrf-flavor-apple.eyrf-button-selected {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #ffffff;
}

.eyrf-flavor-banana { border-color: #ffeb3b; color: #f57f17; }
.eyrf-flavor-banana:hover,
.eyrf-flavor-banana.eyrf-button-selected {
    background: linear-gradient(135deg, #ffeb3b 0%, #ffca28 100%);
    color: #333333;
}

.eyrf-flavor-berry { border-color: #e91e63; color: #ad1457; }
.eyrf-flavor-berry:hover,
.eyrf-flavor-berry.eyrf-button-selected {
    background: linear-gradient(135deg, #e91e63 0%, #ec407a 100%);
    color: #ffffff;
}

.eyrf-flavor-blueberry { border-color: #3f51b5; color: #283593; }
.eyrf-flavor-blueberry:hover,
.eyrf-flavor-blueberry.eyrf-button-selected {
    background: linear-gradient(135deg, #3f51b5 0%, #5c6bc0 100%);
    color: #ffffff;
}

.eyrf-flavor-grape { border-color: #673ab7; color: #4527a0; }
.eyrf-flavor-grape:hover,
.eyrf-flavor-grape.eyrf-button-selected {
    background: linear-gradient(135deg, #673ab7 0%, #7e57c2 100%);
    color: #ffffff;
}

.eyrf-flavor-watermelon { border-color: #ff5722; color: #d84315; }
.eyrf-flavor-watermelon:hover,
.eyrf-flavor-watermelon.eyrf-button-selected {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: #ffffff;
}

.eyrf-flavor-strawberry { border-color: #f44336; color: #c62828; }
.eyrf-flavor-strawberry:hover,
.eyrf-flavor-strawberry.eyrf-button-selected {
    background: linear-gradient(135deg, #f44336 0%, #ef5350 100%);
    color: #ffffff;
}

.eyrf-flavor-cherry { border-color: #d32f2f; color: #b71c1c; }
.eyrf-flavor-cherry:hover,
.eyrf-flavor-cherry.eyrf-button-selected {
    background: linear-gradient(135deg, #d32f2f 0%, #e57373 100%);
    color: #ffffff;
}

.eyrf-flavor-peach { border-color: #ff9800; color: #e65100; }
.eyrf-flavor-peach:hover,
.eyrf-flavor-peach.eyrf-button-selected {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: #ffffff;
}

.eyrf-flavor-mango { border-color: #ffc107; color: #f57c00; }
.eyrf-flavor-mango:hover,
.eyrf-flavor-mango.eyrf-button-selected {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: #333333;
}

.eyrf-flavor-citrus { border-color: #cddc39; color: #827717; }
.eyrf-flavor-citrus:hover,
.eyrf-flavor-citrus.eyrf-button-selected {
    background: linear-gradient(135deg, #cddc39 0%, #d4e157 100%);
    color: #333333;
}

.eyrf-flavor-lemon { border-color: #ffeb3b; color: #f9a825; }
.eyrf-flavor-lemon:hover,
.eyrf-flavor-lemon.eyrf-button-selected {
    background: linear-gradient(135deg, #ffeb3b 0%, #fff176 100%);
    color: #333333;
}

.eyrf-flavor-orange { border-color: #ff5722; color: #bf360c; }
.eyrf-flavor-orange:hover,
.eyrf-flavor-orange.eyrf-button-selected {
    background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
    color: #ffffff;
}

.eyrf-flavor-mint { border-color: #00bcd4; color: #006064; }
.eyrf-flavor-mint:hover,
.eyrf-flavor-mint.eyrf-button-selected {
    background: linear-gradient(135deg, #00bcd4 0%, #26c6da 100%);
    color: #ffffff;
}

.eyrf-flavor-bubblegum { border-color: #e91e63; color: #880e4f; }
.eyrf-flavor-bubblegum:hover,
.eyrf-flavor-bubblegum.eyrf-button-selected {
    background: linear-gradient(135deg, #e91e63 0%, #f06292 100%);
    color: #ffffff;
}

.eyrf-flavor-vanilla { border-color: #ffc107; color: #ff8f00; }
.eyrf-flavor-vanilla:hover,
.eyrf-flavor-vanilla.eyrf-button-selected {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: #333333;
}

.eyrf-flavor-chocolate { border-color: #795548; color: #3e2723; }
.eyrf-flavor-chocolate:hover,
.eyrf-flavor-chocolate.eyrf-button-selected {
    background: linear-gradient(135deg, #795548 0%, #8d6e63 100%);
    color: #ffffff;
}

.eyrf-flavor-cheesecake { border-color: #ffca28; color: #ff8f00; }
.eyrf-flavor-cheesecake:hover,
.eyrf-flavor-cheesecake.eyrf-button-selected {
    background: linear-gradient(135deg, #ffca28 0%, #ffd54f 100%);
    color: #333333;
}

.eyrf-flavor-coffee { border-color: #795548; color: #4e342e; }
.eyrf-flavor-coffee:hover,
.eyrf-flavor-coffee.eyrf-button-selected {
    background: linear-gradient(135deg, #795548 0%, #a1887f 100%);
    color: #ffffff;
}

.eyrf-flavor-cola { border-color: #424242; color: #212121; }
.eyrf-flavor-cola:hover,
.eyrf-flavor-cola.eyrf-button-selected {
    background: linear-gradient(135deg, #424242 0%, #616161 100%);
    color: #ffffff;
}

.eyrf-flavor-energy { border-color: #ff9800; color: #e65100; }
.eyrf-flavor-energy:hover,
.eyrf-flavor-energy.eyrf-button-selected {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: #ffffff;
}

.eyrf-flavor-classic { border-color: #607d8b; color: #37474f; }
.eyrf-flavor-classic:hover,
.eyrf-flavor-classic.eyrf-button-selected {
    background: linear-gradient(135deg, #607d8b 0%, #78909c 100%);
    color: #ffffff;
}

.eyrf-flavor-tobacco { border-color: #8d6e63; color: #5d4037; }
.eyrf-flavor-tobacco:hover,
.eyrf-flavor-tobacco.eyrf-button-selected {
    background: linear-gradient(135deg, #8d6e63 0%, #a1887f 100%);
    color: #ffffff;
}

.eyrf-flavor-cuban { border-color: #795548; color: #4e342e; }
.eyrf-flavor-cuban:hover,
.eyrf-flavor-cuban.eyrf-button-selected {
    background: linear-gradient(135deg, #795548 0%, #8d6e63 100%);
    color: #ffffff;
}

.eyrf-flavor-virginia { border-color: #6d4c41; color: #3e2723; }
.eyrf-flavor-virginia:hover,
.eyrf-flavor-virginia.eyrf-button-selected {
    background: linear-gradient(135deg, #6d4c41 0%, #795548 100%);
    color: #ffffff;
}

.eyrf-flavor-traditional { border-color: #5d4037; color: #3e2723; }
.eyrf-flavor-traditional:hover,
.eyrf-flavor-traditional.eyrf-button-selected {
    background: linear-gradient(135deg, #5d4037 0%, #6d4c41 100%);
    color: #ffffff;
}

.eyrf-flavor-cinnamon { border-color: #ff5722; color: #d84315; }
.eyrf-flavor-cinnamon:hover,
.eyrf-flavor-cinnamon.eyrf-button-selected {
    background: linear-gradient(135deg, #ff5722 0%, #ff7043 100%);
    color: #ffffff;
}

.eyrf-flavor-ginger { border-color: #ff6f00; color: #e65100; }
.eyrf-flavor-ginger:hover,
.eyrf-flavor-ginger.eyrf-button-selected {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    color: #ffffff;
}

.eyrf-flavor-pepper { border-color: #e64a19; color: #bf360c; }
.eyrf-flavor-pepper:hover,
.eyrf-flavor-pepper.eyrf-button-selected {
    background: linear-gradient(135deg, #e64a19 0%, #ff5722 100%);
    color: #ffffff;
}

.eyrf-flavor-chili { border-color: #d32f2f; color: #b71c1c; }
.eyrf-flavor-chili:hover,
.eyrf-flavor-chili.eyrf-button-selected {
    background: linear-gradient(135deg, #d32f2f 0%, #f44336 100%);
    color: #ffffff;
}

.eyrf-flavor-spice { border-color: #f57c00; color: #ef6c00; }
.eyrf-flavor-spice:hover,
.eyrf-flavor-spice.eyrf-button-selected {
    background: linear-gradient(135deg, #f57c00 0%, #ff9800 100%);
    color: #ffffff;
}

.eyrf-flavor-kiwi { border-color: #8bc34a; color: #558b2f; }
.eyrf-flavor-kiwi:hover,
.eyrf-flavor-kiwi.eyrf-button-selected {
    background: linear-gradient(135deg, #8bc34a 0%, #aed581 100%);
    color: #ffffff;
}

.eyrf-flavor-pineapple { border-color: #ffc107; color: #f57f17; }
.eyrf-flavor-pineapple:hover,
.eyrf-flavor-pineapple.eyrf-button-selected {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: #333333;
}

.eyrf-flavor-coconut { border-color: #f5f5f5; color: #424242; }
.eyrf-flavor-coconut:hover,
.eyrf-flavor-coconut.eyrf-button-selected {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #333333;
}

.eyrf-flavor-passion { border-color: #ff6f00; color: #e65100; }
.eyrf-flavor-passion:hover,
.eyrf-flavor-passion.eyrf-button-selected {
    background: linear-gradient(135deg, #ff6f00 0%, #ff8f00 100%);
    color: #ffffff;
}

.eyrf-flavor-caramel { border-color: #8d6e63; color: #5d4037; }
.eyrf-flavor-caramel:hover,
.eyrf-flavor-caramel.eyrf-button-selected {
    background: linear-gradient(135deg, #8d6e63 0%, #a1887f 100%);
    color: #ffffff;
}

.eyrf-flavor-honey { border-color: #ffc107; color: #f57f17; }
.eyrf-flavor-honey:hover,
.eyrf-flavor-honey.eyrf-button-selected {
    background: linear-gradient(135deg, #ffc107 0%, #ffca28 100%);
    color: #333333;
}

.eyrf-flavor-marshmallow { border-color: #f8bbd9; color: #c2185b; }
.eyrf-flavor-marshmallow:hover,
.eyrf-flavor-marshmallow.eyrf-button-selected {
    background: linear-gradient(135deg, #f8bbd9 0%, #f48fb1 100%);
    color: #ffffff;
}

.eyrf-flavor-default-1 { border-color: #4caf50; color: #2e7d32; }
.eyrf-flavor-default-1:hover,
.eyrf-flavor-default-1.eyrf-button-selected {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: #ffffff;
}

.eyrf-flavor-default-2 { border-color: #ff9800; color: #e65100; }
.eyrf-flavor-default-2:hover,
.eyrf-flavor-default-2.eyrf-button-selected {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: #ffffff;
}

.eyrf-flavor-default-3 { border-color: #e91e63; color: #ad1457; }
.eyrf-flavor-default-3:hover,
.eyrf-flavor-default-3.eyrf-button-selected {
    background: linear-gradient(135deg, #e91e63 0%, #ec407a 100%);
    color: #ffffff;
}

.eyrf-flavor-default-4 { border-color: #9c27b0; color: #6a1b9a; }
.eyrf-flavor-default-4:hover,
.eyrf-flavor-default-4.eyrf-button-selected {
    background: linear-gradient(135deg, #9c27b0 0%, #ba68c8 100%);
    color: #ffffff;
}

/* PCM accordion */
.as-pcm-accordion {
    --pcm-bg: #ffffff;
    --pcm-border: #e5e7eb;
    --pcm-text: #271111;
    --pcm-subtext: #6b7280;
    --pcm-accent: #e22b2b;
    border: 1px solid var(--pcm-border);
    border-radius: 14px;
    background: var(--pcm-bg);
    box-shadow: 0 14px 36px rgba(17, 24, 39, 0.08);
    overflow: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.as-pcm-accordion[data-as-pcm-accordion] {
    margin: 0 0 28px;
}

.as-pcm-accordion__item {
    border-top: 1px solid var(--pcm-border);
    position: relative;
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.as-pcm-accordion__item:first-child {
    border-top: none;
}

.as-pcm-accordion__toggle {
    width: 100%;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    gap: 16px;
    background: -webkit-linear-gradient(315deg, rgba(235, 37, 37, 0.92) 0%, rgba(229, 70, 70, 0.92) 100%);
    background: -moz-linear-gradient(315deg, rgba(235, 37, 37, 0.92) 0%, rgba(229, 70, 70, 0.92) 100%);
    background: -o-linear-gradient(315deg, rgba(235, 37, 37, 0.92) 0%, rgba(229, 70, 70, 0.92) 100%);
    background: linear-gradient(135deg, rgba(235, 37, 37, 0.92) 0%, rgba(229, 70, 70, 0.92) 100%);
    color: #ffffff;
    border: none;
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    -moz-transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    -o-transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.as-pcm-accordion__toggle:hover,
.as-pcm-accordion__toggle:focus {
    background: -webkit-linear-gradient(315deg, rgb(235, 37, 37) 0%, rgb(229, 70, 70) 100%);
    background: -moz-linear-gradient(315deg, rgb(235, 37, 37) 0%, rgb(229, 70, 70) 100%);
    background: -o-linear-gradient(315deg, rgb(235, 37, 37) 0%, rgb(229, 70, 70) 100%);
    background: linear-gradient(135deg, rgb(235, 37, 37) 0%, rgb(229, 70, 70) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    outline: none;
    -webkit-transform: translateY(-1px);
    -moz-transform: translateY(-1px);
    -ms-transform: translateY(-1px);
    -o-transform: translateY(-1px);
    transform: translateY(-1px);
}

.as-pcm-accordion__label {
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -moz-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    text-align: left;
    letter-spacing: 0.01em;
}

.as-pcm-accordion__icon {
    position: relative;
    width: 16px;
    height: 16px;
    -webkit-flex-shrink: 0;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    color: currentColor;
}

.as-pcm-accordion__icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid currentColor;
    -webkit-transform: translate(-50%, -30%);
    -moz-transform: translate(-50%, -30%);
    -ms-transform: translate(-50%, -30%);
    -o-transform: translate(-50%, -30%);
    transform: translate(-50%, -30%);
    -webkit-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -o-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.as-pcm-accordion__item.is-open .as-pcm-accordion__icon::before {
    -webkit-transform: translate(-50%, -70%) rotate(180deg);
    -moz-transform: translate(-50%, -70%) rotate(180deg);
    -ms-transform: translate(-50%, -70%) rotate(180deg);
    -o-transform: translate(-50%, -70%) rotate(180deg);
    transform: translate(-50%, -70%) rotate(180deg);
}

.as-pcm-accordion__panel {
    display: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: -webkit-linear-gradient(top, rgba(249, 250, 251, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
    background: -moz-linear-gradient(top, rgba(249, 250, 251, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
    background: -o-linear-gradient(top, rgba(249, 250, 251, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(180deg, rgba(249, 250, 251, 0.85) 0%, rgba(255, 255, 255, 1) 100%);
    -webkit-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.35s ease,
                        padding 0.3s ease;
    -moz-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                     opacity 0.35s ease,
                     padding 0.3s ease;
    -o-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                   opacity 0.35s ease,
                   padding 0.3s ease;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                padding 0.3s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.as-pcm-accordion__item.is-open .as-pcm-accordion__panel,
.as-pcm-accordion__menu-wrap[data-as-pcm-panel="true"] {
    display: block;
    max-height: 2000px;
    opacity: 1;
    padding: 12px 24px 24px;
    overflow: visible;
}

.as-pcm-accordion__menu-wrap {
    padding: 8px 0 16px;
    background: transparent;
}

.as-pcm-accordion__menu {
    list-style: none;
    margin: 0;
    padding: 0 24px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.as-pcm-accordion__menu li {
    position: relative;
    color: var(--pcm-subtext);
}

/*.as-pcm-accordion__menu li.cat-parent > a {
    padding-right: 48px;
}*/

.as-pcm-accordion__menu li.is-hidden {
    display: none !important;
}

.as-pcm-accordion__menu li.is-collapsed > ul {
    display: none;
}

.as-pcm-accordion__menu li > a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--pcm-text);
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.3s ease;
}

.as-pcm-accordion__menu li > a:hover {
    background: rgba(235, 37, 37, 0.08);
    color: var(--pcm-accent);
}

.as-pcm-accordion__menu li.current-cat > a,
.as-pcm-accordion__menu li.current-cat-parent > a {
    background: rgb(235 37 37 / 14%);
    color: var(--pcm-accent);
    box-shadow: inset 0 0 0 1px rgb(235 37 37 / 28%);
}

.as-pcm-accordion__menu li.current-cat-ancestor > a {
    background: rgb(235 37 37 / 8%);
    color: var(--pcm-accent);
}

.as-pcm-accordion__menu li > ul {
    list-style: none;
    padding: 0;
    /*margin: 6px 0 2px;
    padding: 2px 0 2px 18px;
    border-left: 1px dashed rgba(184, 148, 148, 0.45);*/
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.as-pcm-accordion__menu li > ul li {
    position: relative;
    padding-left: 12px;
}

.as-pcm-accordion__menu li > ul li::before {
    display: none;
}

.as-pcm-accordion__sub-toggle {
    position: absolute;
    top: 3px;
    right: 0;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: rgb(235 37 37 / 18%);
    color: var(--pcm-accent);
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    -moz-transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    -o-transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.as-pcm-accordion__sub-toggle:hover,
.as-pcm-accordion__sub-toggle:focus-visible {
    background: rgba(235, 37, 37, 0.28);
    outline: none;
    -webkit-transform: scale(1.05);
    -moz-transform: scale(1.05);
    -ms-transform: scale(1.05);
    -o-transform: scale(1.05);
    transform: scale(1.05);
}

.as-pcm-accordion__sub-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid currentColor;
    -webkit-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -moz-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    -o-transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.as-pcm-accordion__sub-toggle[aria-expanded="true"] .as-pcm-accordion__sub-icon {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}

/* Подменю с плавной анимацией */
.as-pcm-accordion__menu li > ul {
    list-style: none;
    padding: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 4px;
    max-height: 2000px;
    overflow: hidden;
    opacity: 1;
    -webkit-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.35s ease,
                        margin 0.3s ease;
    -moz-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                     opacity 0.35s ease,
                     margin 0.3s ease;
    -o-transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                   opacity 0.35s ease,
                   margin 0.3s ease;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease,
                margin 0.3s ease;
}

.as-pcm-accordion__menu li.pcm-closed > ul,
.as-pcm-accordion__menu li.is-collapsed > ul {
    max-height: 0;
    opacity: 0;
    margin: 0;
    overflow: hidden;
}

.as-pcm-accordion__menu ul.cat-parent .children {
    display: none !important;
}

/* ==========================================================================
   Range Slider Styles
   ========================================================================== */

.eyrf-range-slider-container {
    padding: 15px 0;
    background: transparent;
    margin: 10px 0;
}

.eyrf-range-slider,
.eyrf-slider {
    margin: 20px 0;
    height: 8px;
}

/* Переопределяем стили noUiSlider */
.eyrf-range-slider .noUi-connect,
.eyrf-slider .noUi-connect {
    background: linear-gradient(135deg, #fc8181 0%, #c53030 100%);
}

.eyrf-range-slider .noUi-handle,
.eyrf-slider .noUi-handle {
    background: #ffffff;
    border: 2px solid #e53e3e;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.eyrf-range-slider .noUi-handle:hover,
.eyrf-slider .noUi-handle:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

.eyrf-range-slider .noUi-handle:before,
.eyrf-range-slider .noUi-handle:after,
.eyrf-slider .noUi-handle:before,
.eyrf-slider .noUi-handle:after {
    display: none;
}

.eyrf-range-slider .noUi-base,
.eyrf-slider .noUi-base {
    background: #f0f2f5;
    border-radius: 4px;
}

.eyrf-range-inputs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: nowrap;
}

.eyrf-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.eyrf-input-group label {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    white-space: nowrap;
    min-width: fit-content;
}

.eyrf-range-input {
    width: 100%;
    max-width: 100px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
}

.eyrf-range-input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.18);
    transform: translateY(-1px);
}

.eyrf-range-input:hover:not(:disabled) {
    border-color: #9ca3af;
}

.eyrf-range-input:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.eyrf-range-separator {
    font-weight: 600;
    color: #6b7280;
    margin: 0 8px;
    font-size: 16px;
    flex-shrink: 0;
}

.eyrf-unit {
    font-size: 12px;
    color: #718096;
    font-weight: 500;
}

/* Legacy slider inputs compatibility */
.eyrf-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 0 2px;
}

.eyrf-num {
    width: 100%;
    max-width: 100px;
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    background: #ffffff;
}

.eyrf-num:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 2px rgba(229, 62, 62, 0.18);
    transform: translateY(-1px);
}

.eyrf-num:hover:not(:disabled) {
    border-color: #9ca3af;
}

.eyrf-num:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.eyrf-dash {
    font-weight: 600;
    color: #6b7280;
}

.eyrf-apply,
.eyrf-btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.eyrf-apply:hover,
.eyrf-btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.eyrf-reset {
    display: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #fff5f5;
    color: #c53030;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    align-items: center;
    justify-content: center;
}

.eyrf-reset.visible,
.eyrf-reset.is-visible {
    display: inline-flex;
}

.eyrf-reset:hover {
    background: #feb2b2;
    color: #822727;
}

.eyrf-range-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.eyrf-btn-reset,
.eyrf-btn-apply {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.eyrf-btn-reset {
    background: #f7fafc;
    color: #4a5568;
    border: 2px solid #e1e5e9;
}

.eyrf-btn-reset:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.eyrf-btn-apply {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.eyrf-btn-apply:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.eyrf-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    background: #f0f8ff;
    border: 1px solid #bee3f8;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: #2b6cb0;
}

.eyrf-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #bee3f8;
    border-top-color: #2b6cb0;
    border-radius: 50%;
    animation: eyrf-spin 0.8s linear infinite;
}

@keyframes eyrf-spin {
    to {
        transform: rotate(360deg);
    }
}

.eyrf-product-count {
    padding: 8px 12px;
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    border-radius: 6px;
    font-size: 13px;
    color: #22543d;
    margin-top: 10px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .eyrf-widget {
        padding: 14px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .eyrf-range-slider-container {
        padding: 12px;
    }

    .eyrf-buttons-widget .eyrf-buttons-container,
    .eyrf-accordion-buttons {
        max-height: 220px;
        padding-right: 2px;
        gap: 6px;
    }
    
    .eyrf-button,
    .eyrf-accordion-button {
        padding: 7px 10px;
        font-size: 13px;
        margin: 3px;
    }
    
    .eyrf-range-inputs {
        gap: 8px;
    }
    
    .eyrf-input-group label {
        font-size: 12px;
    }
    
    .eyrf-range-input {
        max-width: 85px;
        padding: 5px 6px;
        font-size: 13px;
    }
    
    .eyrf-range-separator {
        margin: 0 4px;
        font-size: 14px;
    }
    
    .eyrf-range-controls {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        gap: 8px;
    }
    
    .as-pcm-accordion__toggle {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .as-pcm-accordion__menu {
        padding: 0 18px 8px;
    }
    
    .as-pcm-accordion__menu li > a {
        padding: 9px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .eyrf-widget {
        padding: 12px;
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .eyrf-range-slider-container {
        padding: 10px;
        margin: 5px 0;
    }

    .eyrf-buttons-widget .eyrf-buttons-container,
    .eyrf-accordion-buttons {
        max-height: 200px;
        gap: 5px;
    }
    
    .eyrf-button,
    .eyrf-accordion-button {
        padding: 6px 9px;
        font-size: 12px;
        margin: 2px;
        border-radius: 16px;
    }
    
    .eyrf-range-inputs {
        gap: 6px;
        margin: 12px 0;
    }
    
    .eyrf-input-group label {
        font-size: 11px;
    }
    
    .eyrf-range-input {
        max-width: 70px;
        padding: 4px 5px;
        font-size: 12px;
    }
    
    .eyrf-range-separator {
        margin: 0 3px;
        font-size: 12px;
    }
    
    .eyrf-range-controls {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -webkit-flex-direction: column;
        -moz-box-orient: vertical;
        -moz-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: stretch;
        -webkit-align-items: stretch;
        -moz-box-align: stretch;
        -ms-flex-align: stretch;
        align-items: stretch;
        gap: 6px;
    }
    
    .eyrf-btn-reset,
    .eyrf-btn-apply {
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -moz-box-pack: center;
        -ms-flex-pack: center;
        justify-content: center;
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .as-pcm-accordion__toggle {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .as-pcm-accordion__menu {
        padding: 0 16px 6px;
        gap: 4px;
    }
    
    .as-pcm-accordion__menu li > a {
        padding: 8px 9px;
        font-size: 13px;
    }
    
    .as-pcm-accordion__sub-toggle {
        width: 26px;
        height: 26px;
    }
    
    /* Улучшенная область клика для touch */
    .eyrf-title {
        min-height: 44px;
        padding: 4px 0;
    }
    
    .eyrf-accordion-header {
        min-height: 44px;
    }
}

/* Оптимизация для очень маленьких экранов */
@media (max-width: 360px) {
    .eyrf-widget {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .eyrf-button,
    .eyrf-accordion-button {
        padding: 5px 8px;
        font-size: 11px;
        margin: 2px;
    }
    
    .eyrf-range-input {
        max-width: 60px;
        padding: 3px 4px;
        font-size: 11px;
    }
}

/* Поддержка landscape режима для планшетов */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .eyrf-buttons-widget .eyrf-buttons-container,
    .eyrf-accordion-buttons {
        max-height: 180px;
    }
}

/* ==========================================================================
   AJAX Loading and Notifications
   ========================================================================== */

.eyrf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 6px;
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.eyrf-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: eyrf-spin 1s linear infinite;
}

@keyframes eyrf-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.eyrf-manual-refresh {
    animation: eyrf-fadeIn 0.3s ease-in;
}

.eyrf-manual-refresh:hover a {
    background: #0073aa !important;
    color: white !important;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

@keyframes eyrf-fadeIn {
    from { 
        opacity: 0; 
        -webkit-transform: translateY(-10px);
        -moz-transform: translateY(-10px);
        -ms-transform: translateY(-10px);
        -o-transform: translateY(-10px);
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        -webkit-transform: translateY(0);
        -moz-transform: translateY(0);
        -ms-transform: translateY(0);
        -o-transform: translateY(0);
        transform: translateY(0);
    }
}

@-webkit-keyframes eyrf-fadeIn {
    from { opacity: 0; -webkit-transform: translateY(-10px); }
    to { opacity: 1; -webkit-transform: translateY(0); }
}

@-moz-keyframes eyrf-fadeIn {
    from { opacity: 0; -moz-transform: translateY(-10px); }
    to { opacity: 1; -moz-transform: translateY(0); }
}

@-o-keyframes eyrf-fadeIn {
    from { opacity: 0; -o-transform: translateY(-10px); }
    to { opacity: 1; -o-transform: translateY(0); }
}

/* ==========================================================================
   Performance & Accessibility Optimizations
   ========================================================================== */

/* Уменьшение перерисовок и reflow */
.eyrf-widget *,
.eyrf-widget *::before,
.eyrf-widget *::after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Оптимизация анимаций для GPU */
.eyrf-button,
.eyrf-accordion-button,
.eyrf-accordion-header,
.as-pcm-accordion__toggle,
.eyrf-title,
.eyrf-reset-inline,
.as-pcm-accordion__sub-toggle {
    will-change: transform;
}

/* Улучшение читаемости шрифтов */
.eyrf-widget {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Поддержка prefers-reduced-motion для доступности */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        -webkit-animation-duration: 0.01ms !important;
        -moz-animation-duration: 0.01ms !important;
        -o-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        -moz-animation-iteration-count: 1 !important;
        -o-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        -moz-transition-duration: 0.01ms !important;
        -o-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Улучшенная поддержка focus для клавиатурной навигации */
.eyrf-button:focus-visible,
.eyrf-accordion-button:focus-visible,
.eyrf-accordion-header:focus-visible,
.as-pcm-accordion__toggle:focus-visible,
.eyrf-title:focus-visible,
.eyrf-range-input:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Скрытие outline для мыши, показ для клавиатуры */
.eyrf-button:focus:not(:focus-visible),
.eyrf-accordion-button:focus:not(:focus-visible),
.eyrf-accordion-header:focus:not(:focus-visible),
.as-pcm-accordion__toggle:focus:not(:focus-visible),
.eyrf-title:focus:not(:focus-visible) {
    outline: none;
}
