
/* ==========================================
   SAFE MOTION – SAMLET CSS
   Navy: #151720
   Blå: #009CFF
   Grå: #CCCCCC
   Font: Montserrat
========================================== */


/* ==========================================
   1. MOBIL – HINDRE HORISONTAL SCROLL
========================================== */

@media (max-width: 767px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }
}


/* ==========================================
   2. ASTRA – MOBILMENY
========================================== */

@media (max-width: 921px) {

    .ast-header-break-point
    .main-header-menu
    .menu-item-has-children {
        position: relative;
    }

    .ast-header-break-point
    .main-header-menu
    .menu-item-has-children > a.menu-link {
        position: relative;
        z-index: 3;
        pointer-events: none;
    }

    .ast-header-break-point
    .main-header-menu
    .menu-item-has-children > .ast-menu-toggle {
        position: absolute;
        top: 0;
        right: 0;
        width: 100%;
        height: 48px;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 18px;
        background: transparent;
    }
}


/* ==========================================
   3. WOOCOMMERCE – MØRK BAKGRUNN
========================================== */

body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag,
body.single-product,
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
    background-color: #151720 !important;
}

body.post-type-archive-product #page,
body.post-type-archive-product #content,
body.post-type-archive-product .site-content,
body.post-type-archive-product .ast-container,
body.post-type-archive-product .ast-woocommerce-container,
body.tax-product_cat #page,
body.tax-product_cat .site-content,
body.tax-product_cat .ast-container,
body.tax-product_tag #page,
body.tax-product_tag .site-content,
body.tax-product_tag .ast-container,
body.single-product #page,
body.single-product .site-content,
body.single-product .ast-container,
body.single-product .ast-woocommerce-container {
    background-color: #151720 !important;
}


/* ==========================================
   4. WOOCOMMERCE – MØRK HEADER
========================================== */

body.post-type-archive-product .site-header,
body.tax-product_cat .site-header,
body.tax-product_tag .site-header,
body.single-product .site-header,
body.woocommerce-cart .site-header,
body.woocommerce-checkout .site-header,
body.woocommerce-account .site-header,
body.post-type-archive-product .ast-primary-header-bar,
body.tax-product_cat .ast-primary-header-bar,
body.tax-product_tag .ast-primary-header-bar,
body.single-product .ast-primary-header-bar,
body.woocommerce-cart .ast-primary-header-bar,
body.woocommerce-checkout .ast-primary-header-bar,
body.woocommerce-account .ast-primary-header-bar {
    background: #151720 !important;
}


/* ==========================================
   5. MONTSERRAT
========================================== */

body.woocommerce,
body.woocommerce-page,
body.woocommerce button,
body.woocommerce input,
body.woocommerce select,
body.woocommerce textarea,
.sm-shop-intro,
.sm-shop-intro * {
    font-family: 'Montserrat', sans-serif;
}


/* ==========================================
   6. NETTBUTIKK – INTRODUKSJON
========================================== */

.sm-shop-intro {
    background: #151720;
    padding: 32px 0 42px;
    max-width: 1100px;
}

.sm-shop-intro-line {
    width: 48px;
    height: 3px;
    background: #009CFF;
    margin-bottom: 20px;
}

.sm-shop-intro-label {
    color: #009CFF !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.sm-shop-intro h1 {
    color: #FFFFFF !important;
    font-size: clamp(28px, 3.5vw, 48px);
    line-height: 1.18;
    font-weight: 800;
    margin: 0 0 22px;
}

.sm-shop-intro h1 span {
    color: #009CFF !important;
}

.sm-shop-intro p {
    color: #CCCCCC !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 24px;
}

.sm-shop-intro-tagline {
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}


/* ==========================================
   7. NETTBUTIKK – SKJUL STANDARDINNHOLD
========================================== */

body.post-type-archive-product
.woocommerce-products-header,
body.post-type-archive-product
.woocommerce-result-count,
body.post-type-archive-product
.woocommerce-ordering,
body.post-type-archive-product
.woocommerce-breadcrumb {
    display: none !important;
}


/* ==========================================
   8. NETTBUTIKK – KATEGORIKORT
========================================== */

.sm-shop-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 40px auto 20px;
}

.sm-category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 180px;
    padding: 30px;
    background: #1C202B;
    border: 1px solid #2B3240;
    border-radius: 10px;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none !important;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.sm-category-button span {
    color: #009CFF;
    font-size: 32px;
    line-height: 1;
}

.sm-category-button:hover {
    border-color: #009CFF;
    background: #252B38;
    transform: translateY(-4px);
}


/* ==========================================
   9. NETTBUTIKK – SKJUL PRODUKTER
   Produktene vises kun på kategorisidene
========================================== */

body.post-type-archive-product:not(.tax-product_cat)
ul.products {
    display: none !important;
}


/* ==========================================
   10. KATEGORISIDER – OVERSKRIFT
========================================== */

body.tax-product_cat .woocommerce-breadcrumb,
body.tax-product_cat .woocommerce-result-count,
body.tax-product_cat .woocommerce-ordering {
    display: none !important;
}

body.tax-product_cat .woocommerce-products-header {
    display: none !important;
}


/* ==========================================
   11. PRODUKTGRID – ALLE PRODUKTLISTER
   PC: 4 / Nettbrett: 2 / Mobil: 1
========================================== */

body.post-type-archive-product ul.products,
body.tax-product_cat ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1700px;
    margin: 0 auto 40px;
}


/* ==========================================
   12. PRODUKTKORT
========================================== */

body.post-type-archive-product ul.products li.product,
body.tax-product_cat ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
    padding: 22px !important;
    background: #1C202B !important;
    border: 1px solid #2B3240 !important;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-width: 0;
    transition: border-color 0.2s ease;
}

body.post-type-archive-product ul.products li.product:hover,
body.tax-product_cat ul.products li.product:hover {
    border-color: #009CFF !important;
}


/* ==========================================
   13. PRODUKTBILDER
========================================== */

body.post-type-archive-product ul.products li.product a img,
body.tax-product_cat ul.products li.product a img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    margin-bottom: 20px;
    transform: scale(1.60);
    transform-origin: center;
}

@media (min-width: 922px) {
    body.post-type-archive-product ul.products li.product a img,
    body.tax-product_cat ul.products li.product a img {
        transform: translateX(50px) scale(1.60);
    }
}


/* ==========================================
   14. PRODUKTNAVN
========================================== */

body.post-type-archive-product ul.products li.product
.woocommerce-loop-product__title,
body.tax-product_cat ul.products li.product
.woocommerce-loop-product__title {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600 !important;
    line-height: 1.5;
    margin-bottom: 8px;
    min-height: 48px;
}


/* ==========================================
   15. PRISER
========================================== */

body.post-type-archive-product ul.products li.product .price,
body.post-type-archive-product ul.products li.product .amount,
body.tax-product_cat ul.products li.product .price,
body.tax-product_cat ul.products li.product .amount {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

body.post-type-archive-product ul.products li.product .price,
body.tax-product_cat ul.products li.product .price {
    margin-bottom: 12px;
}


/* ==========================================
   16. PRODUKTKNAPPER
========================================== */

body.post-type-archive-product ul.products li.product .button,
body.tax-product_cat ul.products li.product .button {
    margin-top: auto;
    background: #009CFF !important;
    color: #FFFFFF !important;
    border-radius: 5px;
    padding: 13px 22px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
}

body.post-type-archive-product ul.products li.product .button:hover,
body.tax-product_cat ul.products li.product .button:hover {
    background: #007DCC !important;
    color: #FFFFFF !important;
}


/* ==========================================
   17. ENKELTPRODUKTER – TEKST
========================================== */

body.single-product .product_title,
body.single-product .summary,
body.single-product .summary p,
body.single-product .summary .price,
body.single-product .summary .amount,
body.single-product
.woocommerce-product-details__short-description,
body.single-product .product_meta,
body.single-product .woocommerce-tabs,
body.single-product .woocommerce-tabs h2,
body.single-product .woocommerce-tabs p,
body.single-product .woocommerce-tabs li,
body.single-product .related.products h2 {
    color: #FFFFFF !important;
}


/* ==========================================
   18. ENKELTPRODUKTER – ETIKETTER
========================================== */

body.single-product .variations label,
body.single-product .woocommerce-tabs ul.tabs li a,
body.single-product .product_meta span {
    color: #CCCCCC !important;
}


/* ==========================================
   19. ENKELTPRODUKTER – LENKER
========================================== */

body.single-product .product_meta a,
body.single-product .woocommerce-tabs a {
    color: #009CFF !important;
}

body.single-product .woocommerce-tabs ul.tabs li.active a {
    color: #009CFF !important;
}


/* ==========================================
   20. ENKELTPRODUKTER – VARIASJONER
========================================== */

body.single-product .variations select {
    background: #1C202B !important;
    color: #FFFFFF !important;
    border: 1px solid #3A4354 !important;
    border-radius: 6px !important;
    height: 48px !important;
    min-height: 48px !important;
    line-height: normal !important;
    padding: 0 14px !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px !important;
    text-decoration: none !important;
}

body.single-product .variations select:focus {
    border-color: #009CFF !important;
    outline: none !important;
}

body.single-product .variations select option {
    background: #1C202B;
    color: #FFFFFF;
}


/* ==========================================
   21. ENKELTPRODUKTER – KJØPSKNAPP
========================================== */

body.single-product .single_add_to_cart_button {
    background: #009CFF !important;
    color: #FFFFFF !important;
    border-radius: 6px;
    padding: 14px 24px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
}

body.single-product .single_add_to_cart_button:disabled,
body.single-product .single_add_to_cart_button.disabled {
    opacity: 0.5 !important;
    cursor: not-allowed;
}

body.single-product
.single_add_to_cart_button:not(:disabled):hover {
    background: #007DCC !important;
}


/* ==========================================
   22. ENKELTPRODUKTER – ANTALLSFELT
========================================== */

body.single-product .quantity input.qty {
    background: #FFFFFF;
    color: #151720;
}


/* ==========================================
   23. ENKELTPRODUKTER – PLASSERING
========================================== */

body.single-product .site-main {
    padding-top: 300px !important;
}

body.single-product .product_title {
    display: block !important;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
}

body.single-product .summary .price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 22px;
}

body.single-product .woocommerce-product-gallery {
    margin-bottom: 25px !important;
}

body.single-product .flex-control-thumbs {
    margin-top: 10px !important;
}

body.single-product .woocommerce-breadcrumb {
    display: none !important;
}


/* ==========================================
   24. PRODUKTLISTER – NETTBRETT
========================================== */

@media (max-width: 921px) {
    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==========================================
   25. NETTBUTIKK – MOBIL
========================================== */

@media (max-width: 767px) {

    .sm-shop-categories {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 30px;
    }

    .sm-category-button {
        min-height: 120px;
        padding: 24px;
        font-size: 17px;
    }

    body.single-product .site-main {
        padding-top: 30px !important;
    }

    body.single-product .product_title {
        font-size: 24px;
    }
}

@media (max-width: 544px) {

    .sm-shop-intro {
        padding: 28px 0 36px;
    }

    .sm-shop-intro h1 {
        font-size: 28px;
    }

    .sm-shop-intro p {
        font-size: 14px;
    }

    body.post-type-archive-product ul.products,
    body.tax-product_cat ul.products {
        grid-template-columns: 1fr;
    }

    body.post-type-archive-product ul.products li.product a img,
    body.tax-product_cat ul.products li.product a img {
        height: 240px;
    }
}


/* ==========================================
   26. SAFE MOTION – NETTBUTIKKNAVIGASJON

   VIKTIG:
   Alle knapper skal ha HVIT tekst på
   nettbutikk, produktsider, handlekurv,
   kasse og Min konto.
========================================== */

.sm-category-navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 12px;
    max-width: 1700px;
    margin: 0 auto 120px;
    padding: 0 15px;
}

/* Felles typografi */
.sm-category-navigation a {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Tilbake til alle kategorier */
.sm-category-navigation .sm-category-back {
    margin-right: 15px;
}

/* Kategoriknapper */
.sm-category-navigation .sm-category-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: #1C202B;
    border: 1px solid #2B3240;
    border-radius: 6px;
    text-decoration: none !important;
}

/* Hover – blå kant */
.sm-category-navigation .sm-category-nav-button:hover {
    border-color: #009CFF;
}

/* Aktiv kategori – blå bakgrunn */
.sm-category-navigation .sm-category-nav-button.sm-active {
    background: #009CFF !important;
    border-color: #009CFF !important;
}

/*
   TVING HVIT TEKST PÅ ALLE NAVIGASJONSLENKER

   Høy spesifisitet hindrer at WooCommerce,
   Astra eller generelle lenkeregler gjør
   teksten blå på handlekurv, kasse og konto.
*/

body .sm-category-navigation a,
body .sm-category-navigation a:link,
body .sm-category-navigation a:visited,
body .sm-category-navigation a:hover,
body .sm-category-navigation a:focus,
body .sm-category-navigation a:active,
body .woocommerce .sm-category-navigation a,
body .woocommerce .sm-category-navigation a:link,
body .woocommerce .sm-category-navigation a:visited,
body .woocommerce .sm-category-navigation a:hover,
body .woocommerce .sm-category-navigation a:focus,
body .woocommerce .sm-category-navigation a:active,
body.woocommerce-cart .woocommerce a.sm-category-nav-button,
body.woocommerce-checkout .woocommerce a.sm-category-nav-button,
body.woocommerce-account .woocommerce a.sm-category-nav-button,
body.page .entry-content .sm-category-navigation a {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Aktiv knapp – alltid hvit tekst */
body .sm-category-navigation a.sm-category-nav-button.sm-active,
body .sm-category-navigation a.sm-category-nav-button.sm-active:hover,
body .sm-category-navigation a.sm-category-nav-button.sm-active:focus {
    background: #009CFF !important;
    border-color: #009CFF !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Antall varer i handlekurven */
.sm-category-navigation .sm-nav-cart-count {
    margin-left: 4px;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-weight: 700;
}

/* Mobil */
@media (max-width: 767px) {

    .sm-category-navigation {
        gap: 10px;
        padding: 0 12px;
    }

    .sm-category-navigation .sm-category-back {
        width: 100%;
        margin-bottom: 5px;
    }

    .sm-category-navigation .sm-category-nav-button {
        padding: 11px 14px;
        font-size: 11px;
    }
}


/* ==========================================
   27. GLOBAL FLYTENDE HANDLEKURV
========================================== */

.sm-floating-cart {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 65px;
    height: 60px;
    padding: 0 17px;
    background: #009CFF;
    color: #FFFFFF !important;
    border: 1px solid #009CFF;
    border-radius: 50px;
    box-shadow: 0 6px 24px rgba(0, 156, 255, 0.25);
    text-decoration: none !important;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.sm-floating-cart:hover {
    background: #007DCC;
    border-color: #007DCC;
    color: #FFFFFF !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0, 156, 255, 0.35);
}

.sm-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
}

.sm-cart-icon svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.sm-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 767px) {

    .sm-floating-cart {
        bottom: 20px;
        right: 20px;
        min-width: 56px;
        height: 56px;
        padding: 0 14px;
        gap: 8px;
    }

    .sm-cart-icon svg {
        width: 22px;
        height: 22px;
    }

    .sm-cart-count {
        font-size: 13px;
    }
}


/* ==========================================
   28. HANDLEKURV – PLASSERING
========================================== */

body.woocommerce-cart .site-main {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
}


/* ==========================================
   29. HANDLEKURV – MELDINGER
========================================== */

body.woocommerce-cart .woocommerce-message,
.woocommerce .woocommerce-message {
    background: #1C202B !important;
    color: #FFFFFF !important;
    border: 1px solid #2B3240 !important;
    border-top: 3px solid #009CFF !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.woocommerce-cart .woocommerce-message {
    font-family: 'Montserrat', sans-serif;
    padding: 18px 24px 18px 48px !important;
}

.woocommerce .woocommerce-message::before {
    color: #009CFF !important;
}

.woocommerce .woocommerce-message a.button {
    background: #009CFF !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
}

.woocommerce .woocommerce-message a.button:hover {
    background: #0086DB !important;
    color: #FFFFFF !important;
}

body.woocommerce-cart .woocommerce-message a:not(.button) {
    color: #009CFF !important;
}


/* ==========================================
   30. HANDLEKURV – TABELL
========================================== */

body.woocommerce-cart .woocommerce {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
}

body.woocommerce-cart table.shop_table {
    background: #1C202B !important;
    border: 1px solid #2B3240 !important;
    border-radius: 8px;
    border-collapse: separate;
    color: #FFFFFF !important;
}

body.woocommerce-cart table.shop_table th,
body.woocommerce-cart table.shop_table td {
    background: transparent !important;
    color: #FFFFFF !important;
    border-color: #2B3240 !important;
}

body.woocommerce-cart table.shop_table thead,
body.woocommerce-cart table.shop_table thead tr,
body.woocommerce-cart table.shop_table thead th {
    background: #252B38 !important;
    color: #FFFFFF !important;
    border-color: #2B3240 !important;
}

body.woocommerce-cart table.shop_table thead th {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 16px 12px;
}

body.woocommerce-cart .product-name a,
body.woocommerce-cart .product-price,
body.woocommerce-cart .product-subtotal,
body.woocommerce-cart .woocommerce-Price-amount {
    color: #FFFFFF !important;
}


/* ==========================================
   31. HANDLEKURV – TOTALER
========================================== */

body.woocommerce-cart .cart_totals {
    background: #1C202B !important;
    border: 1px solid #2B3240 !important;
    border-radius: 8px;
    padding: 24px !important;
}

body.woocommerce-cart .cart_totals h2 {
    background: transparent !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    padding: 0 0 20px !important;
    margin: 0 !important;
}

body.woocommerce-cart .cart_totals table {
    background: transparent !important;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td,
body.woocommerce-cart .cart_totals p,
body.woocommerce-cart .cart_totals span {
    color: #FFFFFF !important;
    background: transparent !important;
}


/* ==========================================
   32. HANDLEKURV – VANLIGE LENKER
========================================== */

/*
   Blå lenker i selve handlekurven.
   Den øverste navigasjonen er unntatt.
*/

body.woocommerce-cart
.woocommerce a:not(.button):not(.sm-category-nav-button):not(.sm-category-back) {
    color: #009CFF;
}


/* ==========================================
   33. HANDLEKURV – SKJEMAFELTER
========================================== */

body.woocommerce-cart input.qty,
body.woocommerce-cart input#coupon_code {
    background: #252B38 !important;
    color: #FFFFFF !important;
    border: 1px solid #3A4354 !important;
    border-radius: 5px;
}

body.woocommerce-cart input#coupon_code::placeholder {
    color: #CCCCCC !important;
}


/* ==========================================
   34. HANDLEKURV – KNAPPER
========================================== */


/* HANDLEKURV – KNAPPER MED HVIT TEKST */

body.woocommerce-cart .woocommerce button.button,
body.woocommerce-cart .woocommerce a.button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:link,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:visited,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:focus {
    background: #009CFF !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border-radius: 6px !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    text-decoration: none !important;
}


body.woocommerce-cart .woocommerce button.button:hover,
body.woocommerce-cart .woocommerce a.button:hover,
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover {
    background: #007DCC !important;
}

body.woocommerce-cart .woocommerce button.button:disabled {
    opacity: 0.45;
}

body.woocommerce-cart .woocommerce-shipping-destination,
body.woocommerce-cart .woocommerce-shipping-calculator,
body.woocommerce-cart .woocommerce-shipping-methods {
    color: #CCCCCC !important;
}

@media (max-width: 767px) {

    body.woocommerce-cart .site-main {
        padding-top: 45px !important;
    }

    body.woocommerce-cart .cart_totals {
        padding: 18px !important;
    }

    body.woocommerce-cart .cart_totals h2 {
        font-size: 20px;
    }
}


/* ==========================================
   35. KASSE – PLASSERING
========================================== */

body.woocommerce-checkout .site-main {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
}


/* ==========================================
   36. KASSE – GENERELL TEKST
========================================== */

body.woocommerce-checkout .woocommerce,
body.woocommerce-checkout .woocommerce-checkout {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
}

body.woocommerce-checkout h3,
body.woocommerce-checkout #order_review_heading,
body.woocommerce-checkout .woocommerce-billing-fields h3,
body.woocommerce-checkout .woocommerce-additional-fields h3 {
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
}


/* ==========================================
   37. KASSE – FELTER
========================================== */

body.woocommerce-checkout form.checkout label,
body.woocommerce-checkout form.checkout .required {
    color: #CCCCCC !important;
}

body.woocommerce-checkout form.checkout input.input-text,
body.woocommerce-checkout form.checkout textarea,
body.woocommerce-checkout form.checkout select {
    background: #1C202B !important;
    color: #FFFFFF !important;
    border: 1px solid #3A4354 !important;
    border-radius: 6px !important;
    padding: 12px !important;
}

body.woocommerce-checkout form.checkout input::placeholder,
body.woocommerce-checkout form.checkout textarea::placeholder {
    color: #999999 !important;
}

body.woocommerce-checkout
.select2-container .select2-selection--single {
    background: #1C202B !important;
    border: 1px solid #3A4354 !important;
    border-radius: 6px !important;
    min-height: 45px;
}

body.woocommerce-checkout .select2-selection__rendered {
    color: #FFFFFF !important;
    line-height: 43px !important;
}


/* ==========================================
   38. KASSE – ORDRESAMMENDRAG
========================================== */

body.woocommerce-checkout #order_review {
    background: #1C202B !important;
    border: 1px solid #2B3240 !important;
    border-radius: 8px;
    padding: 24px !important;
}

body.woocommerce-checkout table.shop_table,
body.woocommerce-checkout table.shop_table th,
body.woocommerce-checkout table.shop_table td {
    background: transparent !important;
    color: #FFFFFF !important;
    border-color: #3A4354 !important;
}

body.woocommerce-checkout .woocommerce-Price-amount,
body.woocommerce-checkout .woocommerce-Price-amount bdi,
body.woocommerce-checkout .cart-subtotal,
body.woocommerce-checkout .order-total {
    color: #FFFFFF !important;
}

/* Safe Motion – fakturaboks i kassen */
.woocommerce-checkout #payment div.payment_box.payment_method_bacs {
    background: #f2f2f2 !important;
    color: #222222 !important;
}

.woocommerce-checkout #payment div.payment_box.payment_method_bacs p,
.woocommerce-checkout #payment div.payment_box.payment_method_bacs p * {
    color: #222222 !important;
    opacity: 1 !important;
}


/* ==========================================
   39. KASSE – BETALING
========================================== */

body.woocommerce-checkout #payment {
    background: #151720 !important;
    color: #FFFFFF !important;
    border-radius: 6px;
}

body.woocommerce-checkout #payment p,
body.woocommerce-checkout #payment label,
body.woocommerce-checkout #payment li {
    color: #FFFFFF !important;
}

body.woocommerce-checkout .woocommerce-error,
body.woocommerce-checkout .woocommerce-info,
body.woocommerce-checkout .woocommerce-message {
    background: #1C202B !important;
    color: #FFFFFF !important;
    border-radius: 6px;
}

body.woocommerce-checkout #place_order {
    background: #009CFF !important;
    color: #FFFFFF !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700 !important;
    border-radius: 6px;
    padding: 16px 24px !important;
}

body.woocommerce-checkout #place_order:hover {
    background: #007DCC !important;
}

@media (max-width: 767px) {

    body.woocommerce-checkout .site-main {
        padding-top: 70px !important;
    }

    body.woocommerce-checkout #order_review {
        padding: 16px !important;
    }
}


/* ==========================================
   40. PARTNERPORTAL – PLASSERING
========================================== */

body.woocommerce-account:not(.logged-in) .woocommerce {
    max-width: 520px;
    margin: 140px auto 90px !important;
}


/* ==========================================
   41. PARTNERPORTAL – OVERSKRIFT
========================================== */

body.woocommerce-account:not(.logged-in) .sm-partner-header {
    display: block !important;
    visibility: visible !important;
    text-align: center !important;
    margin: 0 0 30px !important;
}

body.woocommerce-account:not(.logged-in) .sm-partner-header h1 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-family: Montserrat, sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    letter-spacing: 1px;
    line-height: 1.3;
    text-align: center !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

body.woocommerce-account:not(.logged-in) .sm-partner-header p {
    color: #CCCCCC !important;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-align: center !important;
    margin: 0 !important;
}

body.woocommerce-account:not(.logged-in) .woocommerce > h2 {
    display: none !important;
}


/* ==========================================
   42. PARTNERPORTAL – INNLOGGINGSKORT
========================================== */

body.woocommerce-account:not(.logged-in)
form.woocommerce-form-login {
    background: #1C202B !important;
    border: 1px solid #2B3240 !important;
    border-radius: 12px !important;
    padding: 32px !important;
    box-shadow: none !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-form-login label {
    color: #CCCCCC !important;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 600 !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-form-login input.input-text {
    background: #151720 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    border: 1px solid #3A4354 !important;
    border-radius: 6px !important;
    min-height: 46px;
    padding: 12px !important;
    font-family: Montserrat, sans-serif;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-form-login input.input-text:focus {
    border-color: #009CFF !important;
    outline: none !important;
    box-shadow: none !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-form-login .show-password-input {
    background: transparent !important;
    border: none !important;
    color: #009CFF !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-form-login button[type="submit"] {
    background: #009CFF !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: Montserrat, sans-serif;
    font-size: 14px;
    font-weight: 700 !important;
    padding: 12px 28px !important;
    box-shadow: none !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-form-login button[type="submit"]:hover {
    background: #0086DB !important;
    color: #FFFFFF !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-LostPassword a {
    color: #009CFF !important;
    text-decoration: none !important;
}

body.woocommerce-account:not(.logged-in)
.woocommerce-LostPassword a:hover {
    color: #FFFFFF !important;
}

@media (max-width: 767px) {

    body.woocommerce-account:not(.logged-in) .woocommerce {
        max-width: 100%;
        margin: 110px 15px 60px !important;
    }

    body.woocommerce-account:not(.logged-in)
    form.woocommerce-form-login {
        padding: 24px !important;
    }

    body.woocommerce-account:not(.logged-in)
    .sm-partner-header h1 {
        font-size: 26px !important;
    }
}

/* Safe Motion – innloggingsfelt */
.woocommerce form.login input.input-text,
.woocommerce form.login input.input-text:focus {
    background: #252936 !important;
    color: #ffffff !important;
    border: 1px solid #596579 !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Nettleserens autofyll */
.woocommerce form.login input.input-text:-webkit-autofill,
.woocommerce form.login input.input-text:-webkit-autofill:hover,
.woocommerce form.login input.input-text:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #252936 inset !important;
    box-shadow: 0 0 0 1000px #252936 inset !important;
    caret-color: #ffffff !important;
    transition: background-color 9999s ease-out 0s;
}


/* ==========================================
   43. MIN KONTO – HOVEDOMRÅDE
========================================== */

body.woocommerce-account.logged-in .woocommerce {
    max-width: 1200px;
    margin: 140px auto 80px;
    color: #FFFFFF;
    font-family: Montserrat, sans-serif;
}

body.woocommerce-account.logged-in .woocommerce h2,
body.woocommerce-account.logged-in .woocommerce h3 {
    color: #FFFFFF !important;
    font-family: Montserrat, sans-serif;
}


/* ==========================================
   44. MIN KONTO – VENSTREMENY
========================================== */

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation {
    width: 26%;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li {
    margin-bottom: 8px;
    background: #1C202B;
    border: 1px solid #2B3240;
    border-radius: 8px;
    overflow: hidden;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation a {
    display: block;
    padding: 15px 18px;
    color: #CCCCCC !important;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    text-decoration: none !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation a:hover {
    background: #252B39;
    color: #FFFFFF !important;
}

/* Aktiv knapp */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li.is-active,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li.is-active a {
    background: #009CFF !important;
    color: #FFFFFF !important;
    border-color: #009CFF !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-navigation li.is-active a:hover {
    background: #0086DB !important;
    color: #FFFFFF !important;
}


/* ==========================================
   45. MIN KONTO – INNHOLDSKORT
========================================== */

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content {
    width: 70%;
    background: #1C202B;
    border: 1px solid #2B3240;
    border-radius: 12px;
    padding: 32px;
    color: #FFFFFF;
    box-sizing: border-box;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content p,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content strong,
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content label {
    color: #FFFFFF;
}

/* Vanlige lenker inne i kontokortet */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content a:not(.sm-category-nav-button) {
    color: #009CFF;
}

body.woocommerce-account.logged-in
.woocommerce table {
    color: #FFFFFF;
    border-color: #3A4354;
}

@media (max-width: 767px) {

    body.woocommerce-account.logged-in .woocommerce {
        margin: 110px 15px 60px;
    }

    body.woocommerce-account.logged-in
    .woocommerce-MyAccount-navigation,
    body.woocommerce-account.logged-in
    .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    body.woocommerce-account.logged-in
    .woocommerce-MyAccount-navigation {
        margin-bottom: 25px;
    }

    body.woocommerce-account.logged-in
    .woocommerce-MyAccount-content {
        padding: 24px;
    }
}


/* ==========================================
   46. MIN KONTO – OVERSIKT
========================================== */

/* Skjul standardtekst på hovedoversikten */
body.woocommerce-account.logged-in:not(.woocommerce-orders):not(.woocommerce-edit-account):not(.woocommerce-edit-address):not(.woocommerce-downloads)
.woocommerce-MyAccount-content > p {
    display: none !important;
}

/* Behold norsk velkomsttekst */
body.woocommerce-account.logged-in
.woocommerce-MyAccount-content .sm-konto-velkomst p {
    display: block !important;
}


/* ==========================================
   47. MIN KONTO – MINE BESTILLINGER
========================================== */

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content .woocommerce-info {
    background: #151720 !important;
    color: #FFFFFF !important;
    border: 1px solid #2B3240 !important;
    border-top: 3px solid #009CFF !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content .woocommerce-info::before {
    color: #009CFF !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content .woocommerce-info .button {
    background: #009CFF !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
}

body.woocommerce-account.logged-in
.woocommerce-MyAccount-content .woocommerce-info .button:hover {
    background: #0086DB !important;
    color: #FFFFFF !important;
}
/* Kontodetaljer – tydelig overskrift for passordendring */
.woocommerce-EditAccountForm fieldset legend {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    opacity: 1 !important;
}

/* ==========================================
   48. KJØPSVILKÅR – TEKST
========================================== */

/* Behold generell tekststyling fra eksisterende CSS */
body.page .entry-content,
body.page .entry-content p,
body.page .entry-content li {
    color: #CCCCCC !important;
}

body.page .entry-content h1,
body.page .entry-content h2,
body.page .entry-content h3,
body.page .entry-title {
    color: #FFFFFF !important;
}

/*
   Vanlige lenker kan være blå.
   Nettbutikknavigasjonen er unntatt.
*/
body.page .entry-content a:not(.sm-category-nav-button):not(.sm-category-back) {
    color: #009CFF !important;
}


/* ==========================================
   49. KJØPSVILKÅR – MOBIL OG IPAD
========================================== */

@media (max-width: 1024px) {

    body.page .sm-terms {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
}


/* ==========================================
   50. KJØPSVILKÅR – FJERN HVIT STRIPE
========================================== */

body:has(.sm-terms) .site-content,
body:has(.sm-terms) #content,
body:has(.sm-terms) .ast-container,
body:has(.sm-terms) .entry-content,
body:has(.sm-terms) .elementor {
    background-color: #151720 !important;
}


/* ==========================================
   51. MIN KONTO – MINE ADRESSER
========================================== */

body.woocommerce-account.logged-in
.woocommerce-Addresses .woocommerce-Address {
    background: #1C202B !important;
    border: 1px solid #2B3240 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-sizing: border-box;
}

body.woocommerce-account.logged-in
.woocommerce-Addresses .woocommerce-Address-title {
    background: transparent !important;
    border: none !important;
    padding: 0 0 15px !important;
}

body.woocommerce-account.logged-in
.woocommerce-Addresses .woocommerce-Address-title h2,
body.woocommerce-account.logged-in
.woocommerce-Addresses .woocommerce-Address-title h3 {
    color: #FFFFFF !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

body.woocommerce-account.logged-in
.woocommerce-Addresses .woocommerce-Address-title a {
    color: #009CFF !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

body.woocommerce-account.logged-in
.woocommerce-Addresses address {
    color: #CCCCCC !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    line-height: 1.7 !important;
}


/* ==========================================
   52. SIKKERHETSREGEL – HVIT NAVIGASJON

   Ligger sist for å overstyre alle andre
   lenkefarger i denne CSS-filen.
========================================== */

body .sm-category-navigation a,
body .sm-category-navigation a:link,
body .sm-category-navigation a:visited,
body .sm-category-navigation a:hover,
body .sm-category-navigation a:focus,
body .sm-category-navigation a:active,
body.woocommerce-cart .sm-category-navigation a,
body.woocommerce-checkout .sm-category-navigation a,
body.woocommerce-account .sm-category-navigation a,
body.single-product .sm-category-navigation a,
body.tax-product_cat .sm-category-navigation a,
body.page .entry-content .sm-category-navigation a,
body.woocommerce-cart .woocommerce .sm-category-navigation a,
body.woocommerce-checkout .woocommerce .sm-category-navigation a,
body.woocommerce-account .woocommerce .sm-category-navigation a {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

body .sm-category-navigation .sm-nav-cart-count {
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
}

/* Safe Motion – overskrifter på ordrebekreftelsen */
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title {
    background-color: #252936 !important;
    color: #ffffff !important;
    padding: 15px !important;
}
