/* =====================================================
   SSSB PRODUKTFANER – KOMPLETT DESIGN – v1.1
   Krever SSSB Produktressurser 0.3.0 for ikoner/navn.
   Erstatter kun tidligere CSS for WooCommerce-produktfaner.
   ===================================================== */
body.single-product #content div.product .woocommerce-tabs {
    --sssb-tab-burgunder: var(--sssb-brand-color, #75191b);
    --sssb-tab-lys: var(--sssb-brand-soft, #f8eeee);
    --sssb-tab-ramme: #ded6d9;
    clear: both;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 36px 0 0;
    padding: 0;
    border: 0 !important;
    box-sizing: border-box;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    list-style: none;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: var(--sssb-brand-color, #75191b) var(--sssb-brand-soft, #f8eeee);
    box-sizing: border-box;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs::before,
body.single-product #content div.product .woocommerce-tabs ul.tabs::after,
body.single-product #content div.product .woocommerce-tabs ul.tabs > li::before,
body.single-product #content div.product .woocommerce-tabs ul.tabs > li::after,
body.single-product #content div.product .woocommerce-tabs ul.tabs > li > a::before,
body.single-product #content div.product .woocommerce-tabs ul.tabs > li > a::after {
    content: none !important;
    display: none !important;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs > li {
    display: block !important;
    position: relative;
    float: none !important;
    flex: 0 0 auto;
    width: auto !important;
    min-width: 0;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--sssb-tab-ramme) !important;
    border-bottom: 0 !important;
    border-radius: 10px 10px 0 0 !important;
    background: var(--sssb-tab-lys) !important;
    box-shadow: none !important;
    list-style: none;
    box-sizing: border-box;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs > li > a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 66px;
    height: 100%;
    margin: 0 !important;
    padding: 16px 22px !important;
    border: 0 !important;
    border-radius: inherit;
    background: transparent !important;
    color: var(--sssb-tab-burgunder) !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
    text-transform: none;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    box-shadow: none !important;
    box-sizing: border-box;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs > li:not(.active) > a:hover {
    background: var(--sssb-brand-soft-hover, #f0dddd) !important;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs > li.active {
    background: var(--sssb-tab-burgunder) !important;
    border-color: var(--sssb-tab-burgunder) !important;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs > li.active > a {
    color: #fff !important;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs > li > a:focus-visible {
    outline: 3px solid #d5a900 !important;
    outline-offset: -5px;
}
/* Pluginen velger ikon. CSS bestemmer kun størrelse/plassering. */
body.single-product #content div.product .woocommerce-tabs .sssb-tab-icon {
    display: inline-block;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    margin: 0;
    color: inherit;
    font-size: 25px;
    line-height: 1;
}
body.single-product #content div.product .woocommerce-tabs .sssb-tab-label {
    min-width: 0;
}
body.single-product #content div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
    padding: 28px 32px !important;
    border: 1px solid var(--sssb-tab-ramme) !important;
    border-top: 2px solid var(--sssb-tab-burgunder) !important;
    border-radius: 0 10px 10px 10px;
    background: #fff;
    box-shadow: none;
    box-sizing: border-box;
    overflow-wrap: break-word;
}
body.single-product #content div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.3;
}
body.single-product #content div.product .woocommerce-tabs .woocommerce-Tabs-panel p {
    margin-bottom: 1.3em;
    line-height: 1.65;
}
body.single-product #content div.product .woocommerce-tabs .woocommerce-Tabs-panel > :last-child {
    margin-bottom: 0;
}
body.single-product #content div.product .woocommerce-tabs .woocommerce-Tabs-panel img {
    max-width: 100%;
    height: auto;
}
body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    border: 1px solid var(--sssb-tab-ramme);
}
body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes th,
body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes td {
    padding: 14px 18px;
    border: 1px solid var(--sssb-tab-ramme);
    text-align: left;
    vertical-align: top;
    font-style: normal;
}
body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes th {
    width: 35%;
    background: var(--sssb-tab-lys);
    font-weight: 600;
}
body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes td p {
    margin: 0;
}
/* Mobil/nettbrett: sveip raden. Hele siden skal ikke få siderulling. */
@media (max-width: 921px) {
    body.single-product #content div.product .woocommerce-tabs ul.tabs {
        flex-wrap: nowrap !important;
        gap: 6px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
        scrollbar-color: var(--sssb-brand-color, #75191b) var(--sssb-brand-soft, #f8eeee);
    }
    body.single-product #content div.product .woocommerce-tabs ul.tabs > li {
        flex: 0 0 auto !important;
        min-width: 112px;
    }
    body.single-product #content div.product .woocommerce-tabs ul.tabs > li > a {
        flex-direction: column;
        gap: 7px;
        min-height: 82px;
        padding: 12px 16px !important;
        font-size: 14px;
        white-space: nowrap;
    }
    body.single-product #content div.product .woocommerce-tabs .sssb-tab-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        font-size: 24px;
    }
    body.single-product #content div.product .woocommerce-tabs .woocommerce-Tabs-panel {
        padding: 22px 20px !important;
    }
    body.single-product #content div.product .woocommerce-tabs .woocommerce-Tabs-panel h2 {
        font-size: 24px;
    }
}
@media (max-width: 600px) {
    body.single-product #content div.product .woocommerce-tabs {
        margin-top: 28px;
    }
    body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes,
    body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes tbody,
    body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes tr {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes {
        border: 0;
    }
    body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes tr {
        border: 1px solid var(--sssb-tab-ramme);
        margin-bottom: 12px;
    }
    body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes th,
    body.single-product #content div.product .woocommerce-tabs table.woocommerce-product-attributes td {
        display: block;
        width: 100%;
        padding: 12px;
        border: 0;
        box-sizing: border-box;
    }
}

/* Navigasjonen opprettes av SSSB Produktressurser når raden er for bred. */
body.single-product #content div.product .woocommerce-tabs .sssb-tabs-navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 10px;
    padding: 0;
}
body.single-product #content div.product .woocommerce-tabs .sssb-tabs-navigation[hidden] {
    display: none !important;
}
body.single-product #content div.product .woocommerce-tabs .sssb-tabs-hint {
    flex: 1 1 auto;
    color: var(--sssb-brand-color, #75191b);
    font-size: 13px;
    line-height: 1.4;
}
body.single-product #content div.product .woocommerce-tabs .sssb-tabs-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--sssb-brand-color, #75191b);
    border-radius: 7px;
    background: var(--sssb-brand-color, #75191b);
    color: #fff;
    font-family: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}
body.single-product #content div.product .woocommerce-tabs .sssb-tabs-arrow:disabled {
    background: var(--sssb-brand-soft, #f8eeee);
    color: #8d7d83;
    border-color: #ded6d9;
    cursor: default;
}
body.single-product #content div.product .woocommerce-tabs .sssb-tabs-arrow:focus-visible {
    outline: 3px solid #d5a900;
    outline-offset: 2px;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar {
    height: 12px;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar-track {
    background: var(--sssb-brand-soft, #f8eeee);
    border-radius: 6px;
}
body.single-product #content div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar-thumb {
    background: var(--sssb-brand-color, #75191b);
    border: 2px solid var(--sssb-brand-soft, #f8eeee);
    border-radius: 6px;
}

/* Lenke under kortbeskrivelsen. Funksjon/tekst eies av Produktressurser. */
body.single-product #content div.product .sssb-product-info-jump {
    margin: 12px 0 22px;
    padding: 0;
}
body.single-product #content div.product .sssb-product-info-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: var(--sssb-brand-color, #75191b);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.single-product #content div.product .sssb-product-info-link:hover {
    color: var(--sssb-brand-hover, #5e1416);
}
body.single-product #content div.product .sssb-product-info-link:focus-visible {
    outline: 2px solid var(--sssb-brand-color, #75191b);
    outline-offset: 4px;
    border-radius: 2px;
}
body.single-product #content div.product .woocommerce-tabs {
    scroll-margin-top: 110px;
}
