/* ================================================================
   PRICING 
   ================================================================ */

/* ================================================================
   1. EXPAND / COLLAPSE
   ================================================================ */

.pricing-features-wrap .list {
    margin-bottom: 0 !important;
}

#price-section .pricing-sticky {
    margin-bottom: 16px;
}

#price-section .pricing-features-wrap .list li {
    text-align: left !important;
    gap: 6px !important;
}
#price-section .pricing-features-wrap .list li > span {
    text-align: left !important;
}

.pricing-features-wrap:not(.expanded) .pricing-expand-item,
.pricing-features-wrap:not(.expanded) .pricing-expand {
    display: none !important;
}

.pricing-features-wrap.expanded .pricing-expand-item,
.pricing-features-wrap.expanded .pricing-expand {
    animation: pricingFadeSlide 0.35s ease forwards;
}

.pricing-features-wrap.expanded .pricing-expand-item {
    display: flex;
}

.pricing-features-wrap.expanded .pricing-expand {
    display: block;
}

@keyframes pricingFadeSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ================================================================
   2. VIEW MORE / VIEW LESS BUTTON
   ================================================================ */

.pricing-view-more-all {
    display: block;
    text-align: center;
    margin: 16px auto 24px;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--bs-primary, #0d6efd);
    background: none;
    border: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.pricing-view-more-all:hover {
    filter: brightness(0.8);
}

.pricing-view-more-all .arrow-icon {
    display: inline-block;
    font-size: 15px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-view-more-all.active .arrow-icon {
    transform: rotate(180deg);
}


/* ================================================================
   3. HORIZONTAL SCROLL SLIDER (Tablet / Mobile)
   ================================================================ */

#price-section .tab-content > .tab-pane > .row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--bs-gutter-y, 15px);
}

#price-section .tab-content > .tab-pane > .row > [class*="col-"] {
    flex: 0 0 auto;
    width: calc((100% - var(--bs-gutter-x, 20px) * 3) / 4);
}

/* TABLET: 2 visible */
@media (max-width: 1199px) {
    #price-section .tab-content > .tab-pane {
        position: relative;
    }
    #price-section .tab-content > .tab-pane > .row {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: visible;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        gap: 16px;
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
        scroll-padding-left: 10px;
    }
    #price-section .tab-content > .tab-pane > .row > [class*="col-"] {
        flex: 0 0 auto;
        width: calc(50% - 12px);
        min-width: calc(50% - 12px);
        scroll-snap-align: start;
    }
    #price-section .tab-content > .tab-pane > .row::-webkit-scrollbar { display: none; }
    #price-section .tab-content > .tab-pane > .row {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* MOBILE: 1 visible */
@media (max-width: 767px) {
    #price-section .tab-content > .tab-pane > .row > [class*="col-"] {
        width: calc(100% - 20px);
        min-width: calc(100% - 20px);
    }
    #price-section .tab-content > .tab-pane > .row { gap: 16px; }
}

/* SMALL MOBILE */
@media (max-width: 480px) {
    #price-section .tab-content > .tab-pane > .row > [class*="col-"] {
        width: calc(100% - 16px);
        min-width: calc(100% - 16px);
    }
    #price-section .tab-content > .tab-pane > .row {
        gap: 12px;
        padding-left: 8px;
        padding-right: 8px;
        margin: 0 -8px;
        scroll-padding-left: 8px;
    }
}

/* Scroll Dots */
.pricing-scroll-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-bottom: 8px;
}
.pricing-scroll-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light, #D4D4D8);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pricing-scroll-dots .dot.active {
    width: 28px;
    border-radius: 10px;
    background: var(--ttl_clr, #020205);
}
@media (max-width: 1199px) {
    .pricing-scroll-dots { display: flex; }
}

/* Fade Edges */
@media (max-width: 1199px) {
    #price-section .tab-content > .tab-pane {
        position: relative;
    }
    #price-section .tab-content > .tab-pane::before,
    #price-section .tab-content > .tab-pane::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 8px;
        width: 30px;
        z-index: 2;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    #price-section .tab-content > .tab-pane::before {
        left: 0;
        background: linear-gradient(to right, var(--light_bg_clr, #F5F7FA), transparent);
    }
    #price-section .tab-content > .tab-pane::after {
        right: 0;
        background: linear-gradient(to left, var(--light_bg_clr, #F5F7FA), transparent);
    }
    [data-bs-theme="dark"] #price-section .tab-content > .tab-pane::before {
        background: linear-gradient(to right, var(--bs-dark-bg-subtle, #1a1a2e), transparent);
    }
    [data-bs-theme="dark"] #price-section .tab-content > .tab-pane::after {
        background: linear-gradient(to left, var(--bs-dark-bg-subtle, #1a1a2e), transparent);
    }
    #price-section .tab-content > .tab-pane.at-start::before { opacity: 0; }
    #price-section .tab-content > .tab-pane.at-end::after { opacity: 0; }
}


/* ================================================================
   4. STICKY ON SCROLL (Desktop, when features expanded)
   ================================================================ */

@media (min-width: 1200px) {

    /* Plan name */
    #price-section .tab-pane.features-expanded .pricing-sticky-el-1 {
        position: sticky;
        top: var(--pricing-nav-offset, 80px);
        z-index: 12;
        background: #fff;
        margin-bottom: 0 !important;
        padding-bottom: 4px;
    }

    /* Price */
    #price-section .tab-pane.features-expanded .pricing-sticky-el-2 {
        position: sticky;
        top: calc(var(--pricing-nav-offset, 80px) + var(--el1-h, 32px));
        z-index: 11;
        background: #fff;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Button */
    #price-section .tab-pane.features-expanded .pricing-sticky-el-3 {
        position: sticky;
        top: calc(var(--pricing-nav-offset, 80px) + var(--el1-h, 32px) + var(--el2-h, 40px));
        z-index: 10;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    /* Dark mode */
    [data-bs-theme="dark"] #price-section .tab-pane.features-expanded .pricing-sticky-el-1,
    [data-bs-theme="dark"] #price-section .tab-pane.features-expanded .pricing-sticky-el-2 {
        background: var(--bs-dark-bg-subtle, #1a1a2e);
    }
    [data-bs-theme="dark"] #price-section .tab-pane.features-expanded .pricing-sticky-el-3 {
        background: var(--bs-dark-bg-subtle, #1a1a2e);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    #price-section.pricing-sticky-active {
        overflow: visible !important;
    }
}