/*------------------------------------*\
    
    FX Tabs/Accordion - Global styling for all tabs/accordions

    Add custom tabs/accordion styling to this file if it should be applied to all tabs/accordions on the site
    Otherwise, put your styles in individual block stylesheets

\*------------------------------------*/

.tab-accordion__panel:not(.is-active) .tab-accordion__panel__content {
    display: none;
}

.tab-accordion__tabs {
    display: flex;
    position: relative;
    z-index: 2;
    background: var(--white);
    box-shadow: 0 0 30px rgba(167, 233, 241, 0.25);
    padding: 12px 0 12px 22px;
    margin: 0 -22px;
    overflow: scroll;
}

.tab-accordion__tabs::-webkit-scrollbar {
    display: none;
    height: 0;
    width: 0;
}

.tab-accordion__tabs::-webkit-scrollbar-track {
    display: none;
    height: 0;
    width: 0;
}

.tab-accordion__tabs::-webkit-scrollbar-thumb {
    display: none;
    height: 0;
    width: 0;
}

.tab-accordion__tab {
    list-style-type: none !important;
    margin: 0 0 0;
    padding: 0;
    display: block;
    font-size: 16px;
    color: var(--dark);
    font-weight: 400;
    line-height: 1.31em;
    background: transparent;
    padding: 7px 16px;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    text-align: center;
    font-family: var(--font-family);
}

.tab-accordion__panel__toggle {
    list-style-type: none !important;
    margin: 5px 0 0;
    padding: 0;
    display: block;
    color: inherit;
    line-height: normal;
    background: #f5f5f5;
    padding: 10px 20px;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    text-align: left;
}

.tab-accordion__panel__toggle.is-active {
    border-bottom: 1px solid var(--white);
}

.tab-accordion__tab.is-active {
    background: var(--light-blue);
    color: var(--primary-color);
    font-weight: 700;
}

.tab-accordion__panel__toggle.is-active {
    border-radius: 4px 4px 0 0;
}

.tab-accordion__panel__toggle.is-active,
.tab-accordion__panel__toggle:hover,
.tab-accordion__panel__toggle:focus {
    color: inherit;
    background: var(--white);
    text-decoration: none;
}

.tab-accordion__panel__content {
    padding: 0;
    border: none;
    position: relative;
}

.tab-accordion {
    position: relative;
}

.tab-accordion__top-content {
    color: var(--dark);
    padding-bottom: 10px;
    position: relative;
}

.tab-info {
    position: relative;
    z-index: 1;
    padding: 25px 20px;
    color: var(--dark);
}

.tab-info .tab-content::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 50px);
    background: var(--white);
    z-index: -1;
    box-shadow: 0 0 30px rgba(167, 233, 241, 0.25);
    border-radius: 12px;
}

.tab-image {
    width: 100%;
    height: 148px;
    margin-bottom: 20px;
}

.tab-image img {
    border-radius: 8px;
}

.tab-content h3 {
    margin: 0;
    padding: 0 0 8px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3em;
}

.tab-scroll-info {
    margin: 0;
    padding: 0 0 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    line-height: 1.3em;
    text-align: center;
}

.tab-content p {
    padding-bottom: 15px;
}

.tab-graphics {
    position: absolute;
    right: -125px;
    top: 44px;
    z-index: -1;
}

@media (min-width: 768px) {
    .tab-accordion__tabs {
        flex-wrap: wrap;
        padding: 12px 15px;
        margin: 0 0px;
        overflow: visible;
        justify-content: center;
        gap: 0 45px;
    }

    .tab-accordion__tab {
        padding: 10px 25px;
    }

    .tab-info {
        margin-top: 30px;
        padding: 28px 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .tab-info .tab-content::before {
        bottom: auto;
        top: 0;
        left: auto;
        right: 0;
        width: calc(100% - 58px);
        height: 100%;
        background: var(--white);
        z-index: -1;
        box-shadow: 0 0 30px rgba(167, 233, 241, 0.25);
        border-radius: 12px;
    }

    .tab-image {
        width: 200px;
        height: 204px;
        margin-bottom: 0;
    }

    .tab-accordion .tab-content {
        width: calc(100% - 200px);
        padding: 0 30px;
    }

    .tab-content .btn+.btn {
        margin-left: 0;
    }

    .tab-accordion__top-content {
        padding-bottom: 30px;
    }
}

@media (min-width: 1200px) {
    .tab-accordion__tabs {
        padding: 7px 8px;
        gap: 0 47px;
        width: max-content;
        margin: 0 auto;
    }

    .tab-accordion__tab {
        padding: 10px 25px;
        font-size: 18px;
        line-height: 1.33em;
    }

    .tab-info {
        margin-top: 40px;
        padding: 26px 0 0 0;
        align-items: flex-start;
    }

    .tab-info .tab-content::before {
        bottom: auto;
        top: 0;
        left: auto;
        right: 0;
        width: calc(100% - 108px);
        height: calc(100% - 10px);
        border-radius: 12px;
    }

    .tab-image {
        width: 576px;
        height: 378px;
    }

    .tab-image img {
        border-radius: 12px;
    }

    .tab-accordion .tab-content {
        width: calc(100% - 576px);
        padding: 25px 108px 50px 72px;
    }

    .tab-content h3 {
        padding: 0 0 15px;
        font-size: 32px;
    }

    .tab-content p {
        padding-bottom: 23px;
    }

    .tab-accordion__top-content {
        padding-bottom: 45px;
    }
}