/* 1. ФИКС ТЕМЫ */
body, html, .entry-content, .site-content, .wp-site-blocks {
    overflow: visible !important;
}

.bagon-layout-3col {
    font-family: 'Rubik', sans-serif;
}
/* 2. СЕТКА (3 Колонки) */
.bagon-layout-3col {
    display: grid;
    grid-template-columns: 28% 48% 24%;
    gap: 0px;
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    box-sizing: border-box;
    overflow: hidden;
}

/* 3. НАСТРОЙКИ КОЛОНОК */
.bagon-col {
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 4. КАСТОМНЫЙ СКРОЛЛБАР */
.bagon-scroll-container {
    position: relative;
    height: 100%;
    margin-left: 10px;
}

.bagon-scroll-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: none;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.bagon-scroll-content::-webkit-scrollbar {
    display: none;
}

.bagon-scrollbar {
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 20;
}

.bagon-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: #fbd38d;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    min-height: 40px;
    pointer-events: auto;
}

.bagon-scrollbar-thumb:hover {
    background: #eac27c;
}

.bagon-col:hover .bagon-scrollbar {
    opacity: 1;
}

/* 5. ВНУТРЕННИЕ ОТСТУПЫ */
.bagon-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 80px;
    padding-right: 12px;
}

/* 6. ЛИПКИЙ КАЛЬКУЛЯТОР */
.bagon-col-right .bagon-content-wrapper {
    position: relative;
}

.bagon-col-right .bagon-universal-calculator {
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* 7. АДАПТАЦИЯ */
@media (max-width: 1300px) {
    .bagon-layout-3col {
        grid-template-columns: 1fr 340px;
    }
    .bagon-col-left {
        display: none;
    }
}

@media (max-width: 991px) {
    .bagon-layout-3col {
        display: block;
        height: auto;
        position: static;
        overflow: visible;
    }
    .bagon-col {
        height: auto;
        overflow: visible;
        margin-bottom: 40px;
    }
    .bagon-scroll-content {
        height: auto;
        overflow: visible;
        overscroll-behavior: auto;
    }
    .bagon-scrollbar {
        display: none;
    }
    .bagon-col-left {
        display: block;
    }
    .bagon-col-right .bagon-universal-calculator {
        position: static;
    }
}

/* 8. ОТКЛЮЧЕНИЕ СКРОЛЛБАРА В ПРАВОЙ КОЛОНКЕ */
.bagon-col-right .bagon-scrollbar {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
