/* =========================================================
   ZIAJA PRODUCT TABS
========================================================= */

.ziaja-product-tabs {
    --zpt-green: #1A5B1E;
    --zpt-title: #182730;
    --zpt-bg: #fff;
    --zpt-line: #D8DCDA;
    --zpt-muted: #979C98;

    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);

    width: 100%;

    background: var(--zpt-bg);

    overflow: hidden;
}

.ziaja-product-tabs *,
.ziaja-product-tabs *::before,
.ziaja-product-tabs *::after {
    box-sizing: border-box;
}


/* =========================================================
   NAV
========================================================= */

.ziaja-product-tabs__nav {
    display: flex;
    flex-direction: column;

    align-self: stretch;

    padding-right: 12px;
}


.ziaja-product-tabs__tab {
    position: relative;

    display: flex !important;

    align-items: center;

    width: 100%;

    min-height: 39px;

    margin: 0 !important;

    border: 0 !important;
    border-bottom: 1px solid var(--zpt-line) !important;
    border-radius: 0 !important;

    background: transparent !important;
    color: var(--zpt-muted) !important;

    font-size: 16px;
    line-height: 1.4 !important;
    font-weight: 400 !important;

    text-align: left;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease;
}


.ziaja-product-tabs__tab:last-child {
    border-bottom-color: transparent !important;
}


.ziaja-product-tabs__tab.is-active {
    border-bottom-color: transparent !important;

    background: var(--zpt-green) !important;
    color: #fff !important;

    font-weight: 500 !important;
}


.ziaja-product-tabs__tab:not(.is-active):hover {
    color: var(--zpt-green) !important;
}


/* =========================================================
   CONTENT
========================================================= */

.ziaja-product-tabs__content {
    min-width: 0;

    padding:
        3px 0
        0 12px;
}


.ziaja-product-tabs__panel[hidden] {
    display: none !important;
}


.ziaja-product-tabs__panel {
    position: relative;

    min-width: 0;
}


.ziaja-product-tabs__inner {
    position: relative;

    max-height: 500px;

    overflow: hidden;

    transition:
        max-height .45s
        cubic-bezier(.2,.7,.3,1);
}


.ziaja-product-tabs__inner.is-expanded {
    max-height: none;
    overflow: visible;
}


/* =========================================================
   PRODUCT TITLE
========================================================= */

.ziaja-product-tabs__product-title {
    margin-bottom: 8px;

    color: #111;

    font-size: 20px;
    line-height: 1.35;
    font-weight: 700;

    text-transform: uppercase;
}


.ziaja-product-tabs__title-line {
    width: 265px;
    max-width: 50%;

    height: 1px;

    margin-bottom: 14px;

    background: #AEB3B0;
}


/* =========================================================
   TAB HEADING
========================================================= */

.ziaja-product-tabs__heading {
    margin:
        0 0 7px !important;

    padding: 0 !important;

    color: #111;

    font-size: 18px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}


/* =========================================================
   BODY
========================================================= */

.ziaja-product-tabs__body {
    color: #202622;

    font-size: 16px;
    line-height: 1.6;
}


.ziaja-product-tabs__body p {
    margin:
        0 0 5px;
}


.ziaja-product-tabs__body p:last-child {
    margin-bottom: 0;
}


.ziaja-product-tabs__body ul,
.ziaja-product-tabs__body ol {
    margin:
        3px 0 8px 18px;

    padding: 0;
}


.ziaja-product-tabs__body li {
    margin-bottom: 2px;
}


.ziaja-product-tabs__body img {
    max-width: 100%;
    height: auto;
}


/* =========================================================
   FADE AT BOTTOM
========================================================= */

.ziaja-product-tabs__fade {
    position: absolute;

    right: 0;
    bottom: 0;
    left: 0;

    height: 74px;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0),
            rgba(255,255,255,.92) 70%,
            #fff 100%
        );

    opacity: 0;

    transition: opacity .25s ease;
}


.ziaja-product-tabs__inner.is-collapsible
.ziaja-product-tabs__fade {
    opacity: 1;
}


.ziaja-product-tabs__inner.is-expanded
.ziaja-product-tabs__fade {
    opacity: 0;
}


/* =========================================================
   VIEW MORE
========================================================= */

.ziaja-product-tabs__more {
    position: relative;

    z-index: 3;

    display: flex !important;

    align-items: center;
    justify-content: center;

    gap: 7px;

    width: fit-content;

    min-height: 26px;

    margin:
        -21px auto 0 !important;

    padding:
        3px 8px !important;

    border: 0 !important;

    background: #fff !important;
    color: #111 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;

    box-shadow: none !important;

    cursor: pointer;
}


.ziaja-product-tabs__more[hidden] {
    display: none !important;
}


.ziaja-product-tabs__more svg {
    width: 15px;
    height: 15px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        transform .3s ease;
}


.ziaja-product-tabs__more[aria-expanded="true"] {
    margin-top: 10px !important;
}


.ziaja-product-tabs__more[aria-expanded="true"] svg {
    transform: rotate(180deg);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .ziaja-product-tabs {
        grid-template-columns:
            145px
            minmax(0, 1fr);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .ziaja-product-tabs {
        display: block;
    }


    .ziaja-product-tabs__nav {
        display: flex;
        flex-direction: row;

        gap: 6px;

        width: 100%;

        padding:
            0 0 10px;

        overflow-x: auto;

        scrollbar-width: none;
    }


    .ziaja-product-tabs__nav::-webkit-scrollbar {
        display: none;
    }


    .ziaja-product-tabs__tab {
        flex:
            0 0 auto;

        width: auto;

        min-height: 38px;
        font-size: 14px;
        padding:
            9px 13px !important;

        border:
            1px solid #DDE1DE !important;
    }


    .ziaja-product-tabs__tab.is-active {
        border-color:
            var(--zpt-green) !important;
    }


    .ziaja-product-tabs__content {
        padding: 4px 3px 0;
    }


    .ziaja-product-tabs__inner {
        max-height: 430px;
    }


    .ziaja-product-tabs__product-title {
        font-size: 16px;
    }


    .ziaja-product-tabs__title-line {
        max-width: 75%;
    }


    .ziaja-product-tabs__heading,
    .ziaja-product-tabs__body {
        font-size: 14px !important;
    }

}
