/* ==========================================================================
   Pine Research Instrumentation
   
   PRODUCT TABS

   Author: Tim Paschkewitz
   ========================================================================== */

/* TABS */
#custom-tabs-module {
    margin-top: 1.3em;
    margin-bottom: 1.3em;
}

.tabs {
    display: flex;
    flex-flow: row wrap;
    position: relative;
    z-index: 100;
    padding-left: 1em;
    column-gap: 0;
    border-bottom: 2px solid var(--lighter-gray);
    justify-content: center;
}

.tab {
    cursor: pointer;
    padding: 0.5em 1em;
    opacity: 0.5;
    color: var(--gray);
    font-weight: 400;
    text-decoration: none;
    border-left: 2px solid var(--white);
    border-right: 2px solid var(--white);
    border-top: 2px solid var(--white);
    margin-bottom: -2px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.tab:hover,
.tab.active {
    opacity: 1;
    font-weight: 700;
    background-color: #f1f1f1;
    color: var(--dark-pri-blue);
    border-left: 2px solid var(--lighter-gray);
    border-right: 2px solid var(--lighter-gray);
    border-top: 2px solid var(--lighter-gray);
    border-bottom: 2px solid #f1f1f1;
}

.tab .title {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    row-gap: 0.6em;
    font-weight: 500;
}

.title .icon {
    font-size: 1.5em;
}

.title .text {
    font-size: 1.1em;
}

.custom-tab-content {
    display: none;
    border-left: 1px solid var(--lightest-gray);
    border-right: 1px solid var(--lightest-gray);
    padding: 2em 1.5em;
    box-shadow: 0px 12px 18px -6px rgba(0, 0, 0, 0.3);
}

.custom-tab-content.active {
    display: block;
}

.tab-note {
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 1em;
}

.custom-product-tabs .info-section {
    font-weight: 700;
    font-size: 1.4em;
    color: var(--dark-pri-blue);
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--mid-blue-1);
    margin-bottom: 0.5em;
}

.custom-product-tabs .info-section.child {
    margin-top: 1em;
}

.custom-product-tabs .wp-caption {
    margin-top: 1em;
    background-color: var(--lightest-gray);
    margin-bottom: 1em;
}

.custom-product-tabs .wp-caption .wp-caption-text {
    font-size: 0.8em;
    color: var(--dark-pri-blue);
}

.custom-product-tabs ul li {
    line-height: 1.5em;
}

.custom-product-tabs ul {
    display: flex;
    flex-flow: column nowrap;
    line-height: 1.2em;
    row-gap: 1em;
    margin: 0.5em 0 0.5em 2em;
}

/* SPECIFICATIONS */
.specs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.spec-group {
    border-left: 1px solid var(--dark-pri-blue);
    border-right: 1px solid var(--dark-pri-blue);
    border-bottom: 1px solid var(--dark-pri-blue);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    margin-left: 2em;
}

.spec-group:not(:last-child) {
    margin-bottom: 0.8em;
}

.spec-group .title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--white);
    background-color: var(--dark-pri-blue);
    padding: 0.5em 0 0.5em 0.5em;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

.specs {
    display: flex;
    flex-flow: column wrap;
    padding: 1em 1.3em;
}

.specs .spec {
    padding: 0.6em 0;
    align-items: center;
    column-gap: 1em;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.spec:nth-child(odd) {
    background-color: #f1f1f1;
}

.spec {
    border-bottom: 1px solid var(--lighter-gray);
}

.specs .name {
    font-weight: bold;
    flex-basis: 100%;
    padding-left: 1em;
    font-size: 0.92em
}

.specs .terms {
    flex-basis: 100%;
    font-size: 0.92em;
    padding-right: 1em;
}

.specs-wrapper .product-title {
    padding-bottom: 1em;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--dark-pri-blue);
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
}

.specs-wrapper .child-group {
    margin: 1em;
}

.specs-wrapper .child-group .title {
    background-color: var(--mid-blue-2);
    color: var(--dark-pri-blue);
    border-left: 1px solid var(--mid-blue-2);
    border-right: 1px solid var(--mid-blue-2);
    border-top: 1px solid var(--mid-blue-2);
    font-size: 1em;
}

.child-group .specs {
    border: 1px solid var(--mid-blue-2);
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}


@media screen and (max-width: 576px) {
    .specs {
        grid-template-columns: 1fr;
    }

    .specs .spec {
        padding: 0.8em 0;
    }

    .spec-group .title {
        font-size: 1.3em;
    }
}