.opcn-widget {
    width: 100%;
}

.opcn-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.opcn-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    min-width: 0;
    cursor: grab;
}

.opcn-widget[data-drag="no"] .opcn-scroll {
    cursor: auto;
}

.opcn-scroll.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.opcn-scroll::-webkit-scrollbar {
    display: none;
}

.opcn-track {
    display: inline-flex;
    align-items: stretch;
    gap: 24px;
    min-width: max-content;
    padding: 0;
}

.opcn-item {
    width: 132px;
    min-width: 132px;
    flex: 0 0 auto;
}

.opcn-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 100%;
    min-height: 50px;
    padding: 14px 10px;
    border-radius: var(--desktop-radius-large, 16px);
    background: transparent;
    text-decoration: none;
    transition: background .22s ease, color .22s ease, transform .22s ease, opacity .22s ease;
    user-select: none;
}

.opcn-link:hover {
    background: var(--desktop-color-optionitem-bg-hover, rgba(17,17,17,0.03));
}

.opcn-link.is-active {
    background: #eef3ff !important;
    box-shadow: inset 0 0 0 1px rgba(77, 108, 246, .18);
}

.opcn-link.is-disabled {
    opacity: .45;
    cursor: default;
    pointer-events: none;
}

.opcn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    color: var(--desktop-color-text-2, #4f545a);
    transition: color .22s ease, opacity .22s ease;
}

.opcn-link:hover .opcn-icon,
.opcn-link.is-active .opcn-icon {
    color: #4d6cf6 !important;
}

.opcn-icon svg,
.opcn-icon img {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
}

.opcn-title {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--desktop-color-text-2, #4f545a);
    font: var(--desktop-typography-heading-large, 500 15px/24px Inter, Lato, Arial, sans-serif);
    line-height: 1.28;
    letter-spacing: 0;
    text-wrap: balance;
    transition: color .22s ease;
}

.opcn-link:hover .opcn-title,
.opcn-link.is-active .opcn-title {
    color: #4d6cf6 !important;
}

.whb-header-bottom .wd-header-html .opcn-link {
    justify-content: center;
    gap: 3px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
}

.whb-header-bottom .wd-header-html .opcn-icon {
    min-height: 0 !important;
}

.whb-header-bottom .wd-header-html .opcn-title {
    line-height: 1.2;
}

.opcn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: 0;
    border-radius: var(--desktop-radius-large, 16px);
    background: var(--desktop-color-menu-bg, #ffffff);
    color: var(--desktop-color-text-1, #232629);
    cursor: pointer;
    box-shadow: var(--desktop-shadow-superlow, 0 4px 12px rgba(17,17,17,.08));
    transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.opcn-arrow:hover {
    transform: translateY(-1px);
}

.opcn-arrow svg {
    width: 18px;
    height: 18px;
    display: block;
}

.opcn-arrow[disabled] {
    opacity: .35;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .opcn-track {
        gap: 18px;
    }

    .opcn-item {
        width: 120px;
        min-width: 120px;
    }
}

@media (max-width: 767px) {
    .whb-header-bottom .whb-flex-row:has(.opcn-widget),
    .whb-header-bottom .whb-hidden-lg:has(.opcn-widget),
    .whb-header-bottom .wd-header-html:has(.opcn-widget),
    .whb-header-bottom .elementor:has(.opcn-widget),
    .whb-header-bottom .elementor-widget-olena-prodigi-category-nav,
    .whb-header-bottom .elementor-widget-olena-prodigi-category-nav .elementor-widget-container,
    .whb-header-bottom.opcn-header-row,
    .whb-header-bottom .whb-hidden-lg.opcn-header-column,
    .whb-header-bottom .opcn-header-host {
        display: block !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .whb-header-bottom .whb-flex-row:has(.opcn-widget),
    .whb-header-bottom.opcn-header-row {
        min-height: 72px !important;
    }

    .whb-header-bottom .whb-visible-lg.opcn-header-column {
        display: none !important;
    }

    .opcn-wrap {
        gap: 8px;
    }

    .opcn-track {
        gap: 14px;
    }

    .opcn-item {
        width: 108px;
        min-width: 108px;
    }

    .opcn-link {
        min-height: 104px;
        gap: 10px;
        padding: 12px 8px;
    }

    .opcn-icon svg,
    .opcn-icon img {
        width: 36px;
        height: 36px;
    }

    .opcn-title {
        font-size: 14px;
        line-height: 1.25;
    }

    .opcn-arrow {
        width: 34px;
        height: 34px;
        min-width: 34px;
    }

    .opcn-arrow svg {
        width: 16px;
        height: 16px;
    }

    .wd-header-html .elementor-sticky:has(.opcn-widget),
    .wd-header-html .elementor-sticky--active:has(.opcn-widget),
    .wd-header-html .elementor-3752 .elementor-element.elementor-element-75bbc6e,
    .wd-header-html .opcn-sticky-host {
        position: static !important;
        inset: auto !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        max-width: 100% !important;
        min-height: 72px !important;
        min-width: 0 !important;
        width: 100% !important;
        transform: none !important;
        z-index: auto !important;
    }

    .wd-header-html .elementor-sticky__spacer:has(.opcn-widget),
    .wd-header-html .elementor-sticky__spacer:has(+ .elementor-sticky .opcn-widget),
    .wd-header-html .elementor-3752 .elementor-element.elementor-element-75bbc6e + .elementor-sticky__spacer,
    .wd-header-html .opcn-sticky-spacer {
        display: none !important;
    }

    .wd-header-html .opcn-widget {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-right: -15px !important;
        margin-left: -15px !important;
        background: #ffffff;
        border-top: 1px solid #edf0f4;
        border-bottom: 1px solid #edf0f4;
        box-sizing: border-box;
        box-shadow: 0 8px 20px rgba(18, 24, 32, .04);
        contain: layout paint;
        min-height: 72px;
        overflow: hidden;
    }

    .wd-header-html .opcn-wrap {
        display: block !important;
        width: 100% !important;
        gap: 0 !important;
    }

    .wd-header-html .opcn-arrow {
        display: none !important;
    }

    .wd-header-html .opcn-scroll {
        width: 100% !important;
        padding: 3px 10px 4px !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        cursor: auto !important;
    }

    .wd-header-html .opcn-track {
        display: flex !important;
        align-items: stretch !important;
        gap: 8px !important;
        min-width: max-content !important;
    }

    .wd-header-html .opcn-item {
        flex: 0 0 80px !important;
        width: 80px !important;
        min-width: 80px !important;
        scroll-snap-align: start;
    }

    .whb-header-bottom .wd-header-html .opcn-link {
        min-height: 62px !important;
        padding: 4px 3px !important;
        border-radius: 12px !important;
        gap: 2px !important;
        background: transparent !important;
    }

    .whb-header-bottom .wd-header-html .opcn-link.is-active {
        background: #f4f7ff !important;
    }

    .whb-header-bottom .wd-header-html .opcn-icon {
        width: 100% !important;
        min-height: 32px !important;
    }

    .whb-header-bottom .wd-header-html .opcn-icon svg,
    .whb-header-bottom .wd-header-html .opcn-icon img {
        width: 32px !important;
        height: 32px !important;
    }

    .whb-header-bottom .wd-header-html .opcn-title {
        display: -webkit-box !important;
        min-height: 22px;
        overflow: hidden;
        font-size: 10.5px !important;
        font-weight: 500 !important;
        line-height: 1.08 !important;
        text-wrap: auto;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}
