/*
Theme Name: Engmo Dun customized Theme
Theme URI: https://brightsolutions.dk
Description: Customer specific child theme for the BrightSky Master theme, designed for Engmo Dun
Author: Tommy Martinsen
Author URI: https://brightsolutions.dk
Template: dykon-master
Version: 1.1.41
Text Domain: dykon-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
*/

html, body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: none;
}

:root {
    --default-color: #132B37;

    /* paths */
    --footer-menu-plus-icon: '/wp-content/themes/engmo-child/assets/icons/mobile-footer-plus.svg';
    --footer-menu-minus-icon: '/wp-content/themes/engmo-child/assets/icons/mobile-footer-minus.svg';

    /* rememeber to replace all manually entered fonts */
    --page-width: 1440px; /* Width of the page - including padding */
    --content-width: 1340px; /* Width of the content */
    --max-content-width: calc(100vw - 2 * var(--mobile-margins)); /* Maximum width of the content */
    --mobile-margins: 21px;
    --max-text-width: 723px; /* Maximum width of the text content */
    --engmo-blue-dark: #132B37;
    --engmo-blue-light: #96b8ce;
    --heading-color: var(--engmo-blue-dark);
    
    --text-color: #1C1F21;
    --text-color-faded: #1C1F2160;
    --background-1: #ebf1f5;
    --background-2: #d9e4ec;
    --stroke: #e8e8e8;
    --header-bgcolor: white;
    --stroke-color: #D9D9D9;
    --primary-font: "palatino-linotype", sans-serif;
    --heading-font: "palatino-linotype", sans-serif;
    --sp-overlay-color: #00000020;
    --footer-bgcolor: var(--background-2);
    --footer-textcolor: var(--engmo-blue-dark);
    --h1-font: 400 36px/40px var(--heading-font);
    --h2-font: 400 32px/36px var(--heading-font);
    --h3-font: 400 24px/28px var(--heading-font);
    --h4-font: 400 20px/24px var(--heading-font);
    --h5-font: 500 18px/22px var(--heading-font);
    --p-big-font: 400 16px/22px var(--primary-font);
    --p-regular-font: 400 14px/20px var(--primary-font);
    --hero-height-big: 420px;
    --hero-height-small: 320px;
    --hero-height-center-page: 520px;
    --default-border-radius: 0px;
    --default-button-border-radius: 4px;
}

@media screen and (min-width: 768px) {
    :root {
        --h1-font: 400 42px/54px var(--heading-font);
        --h2-font: 400 36px/40px var(--heading-font);

        --hero-height-big: 600px;
        --hero-height-center-page: 700px;

        --block-spacing: 100px;

        --text-foto-padding: 0px;
    }
}

main {
    font-family: var(--primary-font);
}
.site-header.sp-header {
    border-bottom: 1px solid #ebf1f5;   
}
@media screen and (min-width: 768px) {
    .site-header.sp-header {
        box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.1);
        position: sticky !important;
        top:  0;
        z-index: 20;
    }
}
a {
    color: var(--text-color);
}

a:visited {
    color: var(--text-color);
}
span.sp-dividertext {
    font-size: 20px;
    padding: 24px 12px;
}
@media screen and (max-width: 768px) {
    span.sp-dividertext {
        max-width: 230px;
        text-align: center;
    }
}
.sp-breaker {
    padding-top: 48px;
    padding-bottom: 48px;
}

.sp-main-header {
    color: var(--engmo-blue-dark);
}
.sp-repeater-item .sp-main-header {
    margin-top: 12px;
}
@media screen and (min-width: 768px) {
    .sp-infinity-loop .sp-repeater-item .sp-main-header {
        margin-bottom: 8px;
    }
}

.sp-topbar {
    height: 50px;
    
}

p.sp-fullwidth-centered-p {
    padding-top: 14px;
}

.sp-header-secondrow,
.sp-header-secondrow a {
    background-color: white;
    color: var(--text-color);
    width: var(--content-width);
    max-width: var(--max-content-width);
    margin: auto;
}
.sp-actual-menu li a {
    margin: unset;
}
.sp-mobile-menu-header {
    width: var(--page-width);
    right: var(--fwitem-right);
    position: relative;
    max-width: var(--max-page-width);
    border-bottom: 0;
}

.sp-infosection .sp-header-link {
    display: none;
}

.sp-infosection .sp-langselector-outer {
    display: flex;
    flex-direction: row;
    gap: 10px;
    font: var(--h4-font);
    align-items: center;
    height: 84px;
    justify-content: flex-end;
}
.sp-infosection .sp-langselector-outer .sp-langselector-listbox {
    display: flex;
    gap: 10px;
}
@media screen and (min-width: 768px) {
    .sp-infosection .sp-langselector-outer {
        font-size: 18px;
    }
    .sp-currentlang {
        cursor: pointer;
    }
    .sp-currentlang .sp-langname {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    .sp-langselector-outer .sp-currentlang .sp-langname:after {
        content: url(assets/icons/chewron-down.svg);
        padding-bottom: 3px;
    }
    .sp-infosection .sp-langselector-outer .sp-langselector-listbox {
        display: none;
        position: absolute;
        top: calc(100% + 5px);
        background-color: white;
        padding: 15px;
        border-radius: 15px;
        width: max-content;
        z-index: 10;
        right: var(--mobile-margins);
    }
    .sp-infosection .sp-langselector-outer .sp-langselector-item.sp-altlang .sp-langname {
        color: var(--engmo-blue-dark) !important;
    }
}

.sp-mobile-header-footer .sp-langselector-outer {
    font: var(--h3-font);
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-start;
    border-top:  unset;
}

.sp-altlang,
.sp-altlang .sp-langname {
    color: var(--text-color-faded);
}

.sp-mobile-menu-header-upper {
    display: block;
}

div#sp-mobile-menu-closer {
    position: absolute;
    right: 10px;
    top: 10px;
}

img.sp-mobile-header-logo {
    width: 100vw;
    max-width: unset;
}

@media screen and (min-width: 768px) {
    .sp-infosection .sp-header-link {
        display: block;
    }

    .sp-mobile-menu-header {
        display: none !important;
    }

    .sp-header-secondrow {
        font-weight: 400;
        /* border-bottom: 1px solid var(--stroke-color); */
        align-content: center;
        height: 96px;
    }

    .sp-outer-mainmenu-container li {
        width: unset;
    }

    .main-navigation ul {
        margin-left: 0px;
        padding-left: 0px;
        gap: 5px;
        /* height:  96px; */
    }
    .sp-header-secondrow li a {
        width: unset;
        max-width: unset;
    }
    .sp-header-secondrow li a,
    .sp-header-secondrow {
        font: var(--h5-font);
        padding-right: 0px;
        position: relative;
        overflow: visible;
    }
    /* Aktiv side */
.menu-item a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: -4px;
  bottom: -9px;
  width: calc(100% + 4px);
  height: 2px;            
  background-color: #132b37; 
  opacity: 50%;
}

    sp-header-secondrow-content {
        height: 100%;
    }

    .menu-section {
        
    }

    .site-branding {
        text-align: center;
        justify-content:center;
        /* width: max-content; */
    }

    img.custom-logo {
        max-width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .sp-infosection {
        display: flex;
        align-items: center;
        justify-content: end;
        gap: 30px;
        height: 96px;
    }


}


.sp-header-secondrow-content {
    height: 84px;
    display: grid;
    grid-template-columns: 0px minmax(0, 1fr) minmax(0, 1fr);
}

@media screen and (min-width: 768px) {
    .sp-header-secondrow-content {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        /* overflow: hidden; */
        height: 100%;
    }
}

.menu-toggle img {
    height: 13px;
    object-fit: contain;
}

#mobile-menu-toggle {
    height: 64px;
    width: unset;
    left: 8px;
    bottom: 30px;
    align-items: center;
    border: none;
    position: fixed;
    display: flex;
    gap: 10px;
    background-color: var(--background-2);
    padding: 20px 25px;
    font: var(--h4-font);
    z-index: 10;
}

@media screen and (min-width: 768px) {
    #mobile-menu-toggle {
        display: none;
    }
}

nav#site-navigation {
    border: none;
    height: 0px;
    width: 0px;
}

.sp-actual-menu a {
    font: var(--h3-font);
}

.sp-actual-menu {
    height: fit-content;
    display: block;
    overflow: hidden;
    flex: unset;
}

@media screen and (min-width: 768px) {
    .sp-actual-menu {
        display: block;
        overflow: visible;
    }
}
.menu-section {
    
}
.menu-toggle {
    display: block;
}
.site-branding {
    display: flex;
}
.site-branding a {
    display: flex;
    align-items: center;
}
@media screen and (min-width: 768px) {
.site-branding a {
 
    justify-content: center;
}
}
.site-branding .custom-logo-link {
    margin: 0;
}
.site-branding .custom-logo-link img {
    height: 50px;
}
@media screen and (min-width: 768px) {
.site-branding .custom-logo-link img {
    height: 65px;
}
}
.menu-header-right-container {
    display: none;
}
@media screen and (min-width: 768px) {
    .menu-header-right-container {
        display: block;
    }
    
    #header-right-menu {
        display: flex;
        gap: 25px;
    }
}

.sp-outer-mainmenu-container li {
    width: 100%;
    padding-left: 20px;
    display: inline-block;
}

.sp-outer-mainmenu-container a {
    display: block;
    color: var(--default-text-color);
    text-transform: unset;
    font: var(--h2-font);
    width: calc(100% - 15px);
}

.sp-menu-section.active {
    position: fixed;
    left: 0;
    top: 0;
    background-color: var(--background-2);
    z-index: 11;
    width: 100vw;
    height: calc(100vh + 10px);
    padding-top:  0;
    padding-bottom:  0;
}

.main-navigation ul {
    background-color: unset;
}

li.menu-item {
    padding-top: 9px;
    padding-bottom: 9px;
    display: flex;
    margin-top: 10px;
    height: unset;
    background-color: unset;
}

li.menu-item a {
    background-color: unset;
}

.menu-item-has-children:after {
    width: 35px;
    padding-right: 20px;
    padding-top: 3px;
}

.main-navigation.toggled ul {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    padding-top: 10px;
    overflow-y: auto;
    transition: transform 0.3s ease;
    margin-left: 0;
    padding: 0px;
}

span.parent-heading {
    background-color: var(--bg-light-color);
    width: 100%;
    display: block;
    height: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font: var(--h2-font);
}

.main-navigation .back-btn {
    top: 55px;
    left: 15px;
}

.main-navigation.toggled ul ul ul {
    height: 100vh;
}
.sp-mobile-header-footer {
    margin-top: 16px;
}
@media screen and (min-width: 768px) {
    .menu-section {
        max-width: 100%;
        position: unset;
    }

    .sp-menu-section {
        background-color: unset;
    }

    li.menu-item {
        width: unset;
        padding: 0px;
        margin: 0px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .main-navigation ul {
        justify-content: flex-start;
        display: flex;
        gap: 25px;
    }

    .main-navigation ul li:hover>ul {
        display: flex;
        width: var(--content-width);
        left: auto;
        margin-left: 0;
    }

    .main-navigation ul li:hover>ul:first-of-type:not(.main-navigation ul li ul li:hover > ul) {
        padding-left: 48px;
        top: calc(100% + 4px);
        box-shadow: none;
        border: 1px solid var(--stroke-color);
        border-top: none;
    }

    nav#site-navigation {
        width: 100%;
        height: 100%;
    }

    .menu-mainmenu-container,
    .menu-topmenu-container,
    nav.main-navigation div {
        width: unset;
        height: 96px;
        margin-left: unset;
        margin-right: unset;
        margin-top: 0;
        position: unset;
    }
    .menu-skypimmenu-container {
        display: flex;
    }

    .main-navigation ul ul ul {
        padding-top: 150px;
    }

    .main-navigation ul li ul>li {
        padding-top: 0px;
        line-height: 0;
    }

    .main-navigation ul li:hover>ul {
        padding-left: 0;
    }

    .main-navigation ul li>ul ul,
    .main-navigation ul li:hover>ul ul {
        display: block;
        /* Show sub-menu on hover */
        margin-left: 0;
        position: relative;
        top: 0px;
        box-shadow: unset;
        width: unset;
        left: 0px;
        padding-top: 0px;

    }

    .main-navigation ul li>ul ul li,
    .main-navigation ul li:hover>ul ul li {
        height: 30px;
        margin-bottom: 9px;
    }

    .sub-menu .menu-item-has-children>a::after {
        display: none;
    }

    .main-navigation ul ul li a {
        font: var(--p-big-font);
    }

    .main-navigation ul ul ul li a {
        height: auto;
        font: var(--p-big-font);
    }

    .menu-item-has-children>a {
        padding-bottom: 0;
    }
    .sp-mobile-header-footer {
        display: none;
    }
}
@media screen and (min-width: 768px) {
    .sp-pure-text:not(.sp-breaker .sp-pure-text) {
    margin-top: 60px;
    margin-bottom: 60px;
    max-width: var(--max-text-width);
    margin-left: auto;
    margin-right: auto;
}
    .sp-divider {
        margin-top: 48px;
    }
    .sp-pure-text.sp-article-narrow {
        max-width: 660px;
        margin: auto;
    }
    .sp-pure-text:has(.sp-readmore):not(.sp-expanded) .sp-text-container {
        max-height: 748px;
    }
    .sp-pure-text:has(.sp-readmore) .sp-text-container .sp-content-text {
        font: var(--p-regular-font);
        color: #4C5360;
        
    }
}
.sp-article-popup {
    padding-top:  0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
}
/* ============== FOOTER =================== */
footer#colophon {
    background-color: unset;
    color: var(--text-color);
    font: var(--p-regular-font);
    padding: unset;
    background-color: var(--background-2);
}

.sp-footer-standardcolumns-outer {
    width: var(--content-width);
    max-width: var(--max-content-width);
    padding-top: 50px;
    padding-bottom: 100px;
    color: var(--text-color);
    margin-left: auto;
    margin-right: auto;
}
@media screen and (min-width: 768px) {
    .sp-footer-standardcolumns-outer {
        padding-bottom: 0;
    }
}
h2.footer-header,
h2.sp-footercol-heading {
    font: var(--h4-font);
    margin: unset;
}

.sp-footer-standardcolumns {
    width: var(--content-width);
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}
.sp-footercol-newsletter-heading {
    margin-top: unset;
    color: var(--footer-textcolor);
    font: var(--h4-font) !important;
}
@media screen and (max-width: 768px) {
    
.sp-footer-standardcolumns .foot-col-2,
.sp-footer-standardcolumns .foot-col-3 {
    padding: 24px 0;
    border-bottom: 1px solid #EFF6F9;
}
.sp-footer-standardcolumns .foot-col-3 {
    margin-bottom: 24px;
}

.site-footer li.menu-item {
    padding: unset;
}
}
@media screen and (min-width: 768px) {
    .site-footer li.menu-item {
        padding: 8px 0;
    }
}
.sp-footer-menu-header-container {
    /* padding:  24px 0; */
    color: var(--engmo-blue-dark);
}
.foot-col-2, .foot-col-3 {
    border-bottom: 1px solid #EFF6F9;
    padding: 24px 0;
}
@media screen and (min-width: 768px) {
    .foot-col-2, .foot-col-3 {
        padding: unset;
        border-bottom: unset;
    }
}
.foot-col-3 {
    margin-bottom: 24px;
}
.sp-footer-newsletter-text {
    margin-bottom: 16px;
    font: var(--p-regular-font);
    color: var(--engmo-blue-dark);
    line-height: 15px;
}
@media screen and (min-width: 768px) {
    .sp-footer-newsletter-text {
        line-height: unset;
    }
}
input.sp-mc-namefield, input.sp-mc-mailfield, input.sp-mc-submit {
    font: var(--p-regular-font);
    width: 100%;
    height: 52px;
    padding-left: 16px;
    border: unset;
    border-radius: 4px;
}
@media screen and (min-width: 768px) {
 .sp-mc-formline {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }
}
input.sp-mc-namefield::placeholder, input.sp-mc-mailfield::placeholder {
    color: var(--engmo-blue-dark);
}
input.sp-mc-namefield:focus, input.sp-mc-mailfield:focus {
    outline: 1px solid var(--engmo-blue-dark);
}
input.sp-mc-namefield {
    margin-bottom: 8px;
}
input.sp-mc-mailfield {
    margin-bottom: 16px;
}
input.sp-mc-submit {
    background-color: var(--engmo-blue-dark);
    color: white;
    font: var(--p-big-font);
    margin-bottom: 12px;
}
@media screen and (min-width: 768px) {
    input.sp-mc-submit {
        margin-left: 8px;
        cursor: pointer;
        flex-basis: 36%;
        margin: unset;
        margin-left: 8px;
    }
    input.sp-mc-namefield {
            flex-basis: 22%;
    }
    input.sp-mc-mailfield {
        flex-basis: 37%;
    }
    input.sp-mc-namefield, input.sp-mc-mailfield {
        font-size: 16px;
        margin: unset;
    }
    .spmc-statusmessage {
        margin: 12px 0;
        color: var(--engmo-blue-dark);
    }
    .spmc-error {
        font-weight: 600;
        color: red;
    }
}
label.sp-mc-gdpr-label {
    line-height: 100%;
    font-style: italic;
    display: block;
    padding-bottom: 6px;
    color: #132b37;
}

.sp-mc-gdpr-line {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    margin-top: 12px;
}
.sp-mc-gdpr-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--engmo-blue-dark);
    flex-shrink: 0;
}
.sp-mc-message-container {
    font-weight: 600;
    background: white;
    padding: 4px;
    display: none;
}

.sp-footer-standardcolumns-upper {
    margin-bottom: 50px
}
@media screen and (min-width: 768px) {
.sp-footer-standardcolumns-upper {
        display: flex;
        justify-content: space-between;
        gap: 150px;
        margin-bottom:  24px;
    }
    .sp-footer-standardcolumns-left-upper {
        flex-grow: 0;
        gap: 150px;
    }
    .sp-footer-standardcolumns-right-upper {
        max-width: 540px;
        flex-grow: 0;
    }
}
.sp-footer-standardcolumns-lower .sp-footer-copyright::after {
    content: "-";
}
.sp-footer-standardcolumns-lower {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sp-footer-standardcolumns-lower > div  {
    
}
@media screen and (min-width: 768px) {
    .sp-footer-copyrightmenu {
        margin-left: 12px;
    }
}
.sp-footer-menu-hori ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0px 18px;
    margin-top:  0;
}
.sp-footer-menu-hori ul li.menu-item {
    padding:  0;
    text-decoration: underline;
}
/* image aspects */
.sp-text-foto.sp-wide .sp-image-content {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 340 / 255;
}
@media screen and (min-width: 768px) {
    .sp-text-foto.sp-wide .sp-image-content {
        aspect-ratio: 580 / 478;
        max-width: 580px;
    }
    .sp-text-foto.sp-wide.sp-flipright .sp-image-content {
        aspect-ratio: 580 / 446;
    }
}

.sp-text-foto.sp-tall .sp-image-content {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    aspect-ratio: 340 / 379;
}
@media screen and (min-width: 768px) {
    .sp-text-foto.sp-tall .sp-image-content {
        aspect-ratio: 538 / 600;
        max-width: 538px;
    }
    .sp-text-foto.sp-square .sp-image-content {
        aspect-ratio: 580 / 600;
        max-width: 580px;
    }
}



/* =========== DEFAULT ITEMS =============== */
a.sp-buttonlink-5 {
    background-color: var(--engmo-blue-dark);
    color: white;
    text-decoration: none;
    padding-bottom: 3px;
    padding-left: 24px;
    padding-right: 24px;
    height: 60px;
    border-radius: var(--default-button-border-radius);
    font: var(--p-big-font);
    display: flex;
    align-items: center;
}
.sp-text-foto.sp-square a.sp-buttonlink-5 {
    font-size: 18px;
}

a.sp-buttonlink-6 {
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid #D0D0D0;
    padding-bottom: 3px;
    padding-left: 24px;
    padding-right: 24px;
    height: 60px;
    border-radius: 4px;
    font: var(--p-big-font);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.sp-linkbox:has(a.sp-buttonlink-5) {
    margin-top: 18px;
    flex-wrap: wrap;
}
.sp-linkbox:has(a.sp-buttonlink-6) {
    margin-top: 10px;
    flex-wrap: wrap;
}
.sp-linkbox:has(.sp-linkitem:nth-child(2)) .sp-linkitem {
    flex-shrink: 0;
}
.sp-linkbox:has(.sp-linkitem:nth-child(2)) .sp-linkitem a {
    color: var(--engmo-blue-dark);
}
a.sp-buttonlink-1,
a.sp-buttonlink-2,
a.sp-buttonlink-3,
a.sp-buttonlink-4 {
    background-color: var(--engmo-blue-dark);
    color: white;
    text-decoration: none;
    padding: 20px 25px;
    border-radius: var(--default-button-border-radius);
    font-weight: 400;
    border-radius: 4px;
    margin-bottom: 8px;
}

a.sp-buttonlink-3:before {
    content: url(assets/icons/bedfront-white.svg);
    margin-right: 5px;
    display: inline-block;
    position: relative;
    top: 3px;
}

a.sp-buttonlink-4:before {
    content: url(assets/icons/link-button-play-symbol.svg);
    margin-right: 10px;
    display: inline-block;
    position: relative;
    top: 3px;
}

/* ============== BLOCKS =================== */
.sp-breaker {
    margin: 0;
}

/* HERO */
.sp-hero.sp-hero-center-page {
    height: var(--hero-height-center-page);
}
.sp-hero.sp-hero-center-page .sp-image-container {
    height: 100%;
}
.sp-hero .sp-text-box {
    text-align: center;
    position: absolute;
    top:  50%;
    transform: translateY(-50%);
    width: 350px;
    width: var(--content-width);
    max-width: var(--max-content-width);
    left: var(--mobile-margins);
    color:  white;
}
.sp-hero .sp-intro {
    font: var(--h5-font);
    
}

.sp-hero .sp-text-container {
    background-color: var(--sp-overlay-color);
    width: var(--page-width);
    max-width: var(--max-page-width);
    left: 0;
    top: 0;
    position: absolute;
    transform:  unset;
    height: 100%;
}

.sp-hero .sp-main-header {
    font: var(--h1-font);
}
@media screen and (min-width: 768px) {
.sp-hero-big .sp-main-header {
    font-size: 54px;
}
.sp-hero-big .sp-intro {
    font: var(--h3-font);
}
}

/* text over image - ISSUE MED IMAGE FORMAT - VI SKAL LAVE EN SPECIELT TIL DENNE */
.sp-text-foto.sp-text-over-image img,
.sp-text-foto.sp-text-over-image {
    border-radius: 0px !important;
}

.sp-text-foto.sp-text-over-image {
    height: 540px;
}

.sp-text-foto.sp-text-over-image .sp-text-container {
    padding: 25px;
}

.sp-text-foto.sp-text-over-image .sp-content-text {
    font: var(--p-big-font);
}

.sp-text-foto.sp-text-over-image .sp-image-container {
    min-height: 100%;
    display: block;
}

.sp-text-foto.sp-text-over-image .sp-image-content {
    height: 540px;
    min-height: 100%;
}

@media screen and (min-width: 768px) {

    .sp-text-foto.sp-text-over-image,
    .sp-text-foto.sp-text-over-image .sp-image-content {
        height: 594px;
    }

    .sp-text-foto.sp-text-over-image img {
        min-width: 100%;
    }

    .sp-text-foto.sp-text-over-image img,
    .sp-text-foto.sp-text-over-image {
        border-radius: var(--default-border-radius) !important;

    }
}

/* NORMAL TEXT FOTO */
.sp-text-foto {
    margin-top: 50px;
    margin-bottom: 50px;
    grid-row-gap: 48px;
}
.sp-breaker .sp-text-foto {
    margin-bottom: 0;
    margin-top: 0;
}

.sp-text-foto .sp-intro {
    font: var(--p-big-font);
    font-weight: 300;
}

.sp-text-foto .sp-text-container {
    font: var(--p-big-font);
}
@media screen and (min-width: 768px) {
    .sp-breaker .sp-text-foto .sp-content-text {
        color: rgba( 76, 83, 96, 1 )
    }
    .sp-text-foto .sp-text-container .sp-text-box {
        max-width: 578px;
    }
    .sp-text-foto:not(.sp-flipright) .sp-text-container {
        padding-left: 54px;
        padding-right: unset;
    }
    .sp-text-foto.sp-square:not(.sp-flipright) .sp-text-container {
        padding-left: 24px;
        padding-right: unset;
    }
    .sp-text-foto:not(.sp-flipright) .sp-text-container .sp-text-box {
         
    }
    .sp-text-foto.sp-flipright .sp-text-container {
        padding-left:  0px;
        padding-right: 52px;
        justify-content: flex-end;
    }
    .sp-text-foto.sp-text-foto-dynevalg .sp-text-container {
        justify-content: center;
    }
}
.sp-text-foto .sp-text-container h3 {
    font-size: 28px;
    line-height: 28px;
    font-weight: 600;
    margin: unset;
    margin-bottom: 15px;
}
.sp-text-foto .sp-image-container {
    order: 2;
}

@media screen and (min-width: 768px) {
    .sp-text-foto {
        margin-top: 100px;
        margin-bottom: 100px;
    }

    .sp-breaker .sp-text-foto {
        overflow: unset;
        margin-top: 0;
        margin-bottom: 0
    }
    .sp-text-foto:not(.sp-flipright) .sp-image-container {
        padding-right: 54px;
        display: flex;
        justify-content: flex-end;
    }
     .sp-text-foto.sp-square:not(.sp-flipright) .sp-image-container {
        padding-right: 24px;
    }
    .sp-text-foto.sp-flipright .sp-image-container  {
        padding-left: 54px;
    }
    .sp-breaker .sp-text-foto.sp-tall .sp-image-container {
        position: relative;
        top: -75px;
        padding-left: 48px;
        padding-right: unset;
        /* width: 538px; */
    }
    .sp-breaker:has(.sp-text-foto.sp-tall) {
        margin-top: 200px;
        padding-top: 0px;
        padding-bottom: 0px;
    }
}

/* ARTICLE */
.sp-pure-text .sp-text-container em {
    font-size: 20px;
    font-weight: 300;
}
.sp-pure-text.sp-bgcolor .sp-text-container {
    border-radius: var(--default-border-radius);
    padding-top: 50px;
    padding-bottom: 50px;
    padding-right: 25px;
    padding-left: 25px;
    max-width: unset;
}

.sp-pure-text .sp-main-header {
    margin-bottom: 12px;
}

.sp-pure-text .sp-content-text {
    font: var(--p-big-font);
    line-height: 22px;
}
.sp-pure-text.sp-article-popup .sp-content-text {
    color: color:#1c1f21CC;
}
.sp-pure-text:has(.sp-readmore) .sp-text-container {
    max-height: 748px;
    overflow: hidden;
}
.sp-pure-text .sp-readmore {
    font-size: 18px;
    text-align: center;
}
@media screen and (min-width: 768px) {
    .sp-pure-text .sp-readmore {
        padding-top: 0px;
        font-size: 16px;
        display: flex;
        justify-content: center;
        gap: 12px;
        align-items: center;
        position: relative;
        font-weight: 600;
    }
    .sp-pure-text .sp-readmore:after {
        content: "";
    display: inline-block;
    width: 16px;
    height: 12px;
    background: url(assets/icons/slideshow-right-chewron.svg) no-repeat center;
    background-size: contain;
    transform: rotate(90deg);
    }
    .sp-pure-text .sp-readmore:before {
        content: "";
        width: 100%;
        height: 87px;
        background: linear-gradient( to bottom, rgba(235,241,245, 0.5), rgba(235,241,245, 1));
        position: absolute;
        bottom: 100%;
    }
}

/* LOOPS GENERAL */
.sp-textblock-before-multi {
    margin-bottom: 25px;
}


/*special dykonlook loop */
.sp-dykonlook-1 .sp-repeater-item {
    position: relative;
    margin-bottom: 50px;
}

.sp-dykonlook-1 .sp-repeater-item .sp-text-box {
    position: absolute;
    bottom: 0;
}

.sp-dykonlook-1 .sp-repeater-item .sp-text-box .sp-main-header {
    font: var(--h3-font);
    background-color: white;
    padding: 15px 30px 10px 0px;
    border-top-right-radius: var(--default-border-radius);
}

@media screen and (min-width: 768px) {
    .sp-dykonlook-1 .sp-repeater-item .sp-text-box .sp-main-header {
        padding: 15px 40px 10px 0px;
    }
}

.sp-dykonlook-1 .sp-repeater-item .sp-text-box .sp-main-header:after {
    content: url(assets/icons/dykonlook-arrow.svg);
    margin-left: 15px;
}

/* dykonlook image aspect - different on desktop and mobile */
.sp-dykonlook-1 .sp-image-content {
    padding-top: 120%;
}

@media screen and (min-width: 768px) {
    .sp-dykonlook-1 .sp-image-content {
        padding-top: 62%;
    }
}

.sp-dykonlook-1 .sp-repeater-item .sp-text-box:before {
    content: "";
    background-color: white;
    position: absolute;
    height: 33px;
    width: 34px;
    top: -33px;
    left: -2px;
    mask-image: radial-gradient(circle at top right, transparent var(--default-border-radius), white 0);
}

.sp-dykonlook-1 .sp-repeater-item .sp-text-box:after {
    content: "";
    background-color: white;
    position: absolute;
    height: 34px;
    width: 34px;
    bottom: -1px;
    right: -32px;
    mask-image: radial-gradient(circle at top right, transparent var(--default-border-radius), white 0);
}

/* FACT ICONS ( LOOP BLOCK) */
@media screen and (min-width: 768px) {
    .sp-facticon-items {
        justify-content: center;
    }
}
.sp-breaker:has(.sp-facticon-items) {
    padding: 15px 0px;
}

.sp-facticon-items .sp-repeater-item {
    height: 56px;
    align-items: center;
}

.sp-facticon-items .sp-repeater-item .sp-image-container img {
    width: 28px;
}

.sp-facticon-items .sp-main-header {
    font: var(--h5-font);
    margin-bottom: 0px;
}

@media screen and (min-width: 768px) {
    .sp-facticon-items .sp-main-header {
        margin-top: 5px;
        font: var(--p-big-font);
    }
}

@media screen and (min-width: 768px) {
    .sp-facticon-items .sp-repeater-item .sp-image-content {
        display: flex;
        justify-content: center;
    }
}

@media screen and (min-width: 768px) {
    .sp-facticon-items .sp-repeater-item {
        flex-direction: column;
        gap: 0;
    }
}

@media screen and (min-width: 768px) {
    .sp-breaker:has(.sp-facticon-items) {
        padding: 0px;
        min-height: 118px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}
/* ======= INFINITY LOOP */
.sp-infinity-loop {
    margin-bottom: 24px;
}

/* ============== SLIDESHOW ======================= */
.sp-textblock-before-multi {
    padding: 0px;
}
@media screen and (min-width: 768px) {
    .sp-textblock-before-multi .sp-text-box:not(:has(.sp-content-text)) .sp-linkbox {
        margin-top: 24px;
    }
}

.sp-quoteblock .sp-intro {
    font: var(--h3-font);
}

.sp-slideshowdot {
    width: 9px;
    height: 9px;
    border: none;
    background-color: #1B1B1D20;
}

.sp-slideshowdarrowprev,
.sp-slideshowdarrownext {
    height: 60px;
    width: 60px;
    padding: 18px;
    bottom: -28px;
}

.sp-slideshowdarrowprev {
    left: 30px;
}

.sp-slideshowdarrownext {
    right: 30px;
}
.sp-slideshow.sp-dotsandarrows {
    padding-bottom: 50px;
    margin-top: unset;
    margin-bottom: 100px;
}
.sp-slideshowdots {
    gap: 8px;
}

@media screen and (min-width: 768px) {
    .sp-slideshowdots {
        bottom: -48px;
    }

    .sp-slideshowdarrowprev,
    .sp-slideshowdarrownext {
        top: 50%;
        transform: translateY(-50%);
        bottom: unset;
        z-index: 10;
    }

    .sp-slideshowdarrowprev {
        left: 0px;
    }

    .sp-slideshowdarrownext {
        right: 0px;
    }

    .sp-slideshow:has(.sp-quoteblock) {
        height: 250px;
    }

    .sp-slideshow:has(.sp-quoteblock) .sp-text-box {
        padding-left: 50px;
        padding-right: 50px;
    }
}

.sp-slideshowdarrowprev {
    content: url(assets/icons/slideshow-right-chewron.svg);
    transform:  rotate(180deg);
    transform-origin: center;
    display: inline-block;
}
@media screen and (min-width: 768px) {
    .sp-slideshowdarrowprev {
        transform:  translateY(-50%) rotate(180deg);
    }
}

.sp-slideshowdarrownext {
    content: url(assets/icons/slideshow-right-chewron.svg);
}

.sp-slideshowitems:has(.sp-quoteblock) {
    width: 100%;
}


.sp-slideshowitem.sp-quoteblock .sp-text-box {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    max-width: 762px;
}

.sp-slideshowitem.sp-quoteblock .sp-main-header {
    margin-top: 0px;
    font: var(--h4-font);
    font-weight: 600;
}

.sp-slideshowitem.sp-quoteblock .sp-content-text {
    font: var(--p-big-font);
    font-style: italic;
    color: var(--engmo-blue-dark);
}

.sp-infinity-slideshow {
    margin-top: 75px;
}
.sp-repeater:has(.sp-logocard-infinity-item) {
    gap: 84px;
    scrollbar-width: none;
    animation: sp-logo-scroll 40s linear infinite;
    width: max-content;
    overflow-x: unset;
    max-width: unset;
}

.sp-infinity-loop:has(.sp-logocard-infinity-item) {
    overflow: hidden;
}
@keyframes sp-logo-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media screen and (min-width: 768px) {
    .sp-infinity-loop:has(.sp-logocard-infinity-item):hover .sp-repeater {
          animation-play-state: paused;
    }
    .sp-slideshowitem.sp-logocard-infinity-item {
        flex: 0 0 120px;
    }
    .sp-slideshowitem.sp-logocard-infinity-item .sp-image-content {
        max-width: 120px;
    }
    .sp-infinity-loop:has(.sp-logocard-infinity-item) {
        margin-top: 72px;
        margin-bottom: 72px;
        width: var(--content-width);
        max-width: var(--max-content-width);
        right:  unset;
        position: static;
        padding: unset;
    }
    .sp-infinity-loop:has(.sp-logocard-infinity-item) .sp-repeater {
        animation: sp-logo-scroll 20s linear infinite;
        margin-bottom: 0;
    }
}
.sp-repeater:has(.sp-logocard-infinity-item)::webkit-scrollbar {
    display: none;
}
.sp-slideshowitem.sp-logocard-infinity-item {
    width: unset;
    height: 100px;
    max-width: 90%;
}
.sp-slideshowitem.sp-logocard-infinity-item .sp-image-container {
    max-height: 100%;
    height: 100%;
}
.sp-slideshowitem.sp-logocard-infinity-item .sp-image-content {
    aspect-ratio: unset;
    height: 100%;
    max-height: 100%;
}
.sp-slideshowitem.sp-logocard-infinity-item .sp-image-content img {
    max-height: 100%;
    object-fit: contain;
    height:  100%;
}
@media screen and (min-width: 768px) {
    .sp-slideshow.sp-slide .sp-slideshowitems:has(.sp-logocard-infinity-item) {
        gap: 50px;
        height: 100px;
    }

    .sp-slideshow.sp-slide .sp-slideshowitem.sp-logocard-infinity-item {
        padding: 0;
    }
}

/* HERO SLIDESHOW */
.sp-onlyarrows .sp-slideshowdots {
    display: none;
}
.sp-slideshow:has(.sp-hero) {
     position: relative;
    width: var(--page-width);
    max-width: 100vw;
    right: var(--fwitem-right);
}
.sp-slideshowitem.sp-hero {
    right: unset;
}
.sp-slideshowitem.sp-hero .sp-image-container {
    width: 100%;
}                              
@media screen and (max-width: 768px) {
.sp-slideshowdarrowprev, .sp-slideshowdarrownext {
     display: none;   
}
}
.sp-slideshow:has(.sp-hero) .sp-slideshowdarrowprev {
    content: url(assets/icons/slider-left-chewron-white.svg);
    transform: translateY(-50%);
}
.sp-slideshow:has(.sp-hero) .sp-slideshowdarrownext {
    content: url(assets/icons/slider-right-chewron-white.svg);
    transform: translateY(-50%);
}
/* ============ FAQ ==================== */
.multi-block-wrapper:has(.sp-faq) .sp-textblock-before-multi .sp-pre-header {
    font: var(--h1-font);
    text-transform: unset;
    margin-bottom: 24px;
}
.sp-faq.sp-repeater {
    gap: 0;
}
@media screen and (min-width: 768px) {
    .sp-faq.sp-repeater {
        max-width: 660px;
        margin: 0 auto;
        margin-bottom: 150px;
        margin-top: 48px;
    }
}
.sp-faq.sp-repeater .sp-repeater-item {
    border-bottom: 1px solid #ebf1f5;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
}
.sp-faq.sp-repeater .sp-repeater-item.expanded .sp-image-container {
    margin-bottom: 24px;
}
.sp-faq.sp-repeater .sp-content-text, .sp-faq.sp-repeater .sp-image-container {
    display: none;
}
.sp-faq.sp-repeater .sp-main-header {
    text-align: left;
    font: var(--h5-font);
    display: flex;
    justify-content: space-between;
    margin-top:  16px;
    margin-bottom: 16px;
    cursor: pointer;
}
@media screen and (min-width: 768px) {
    .sp-faq.sp-repeater .sp-main-header {
        font: var(--h5-font);
        width: 100%;
    }
}
.sp-faq.sp-repeater .sp-main-header:after {
    content: "+";
}
.sp-faq.sp-repeater .sp-main-header:after {
    content: "+";
}
.sp-faq.sp-repeater .expanded .sp-main-header:after {
    content: "-";
}
@media screen and (min-width: 768px) {
    .sp-faq.sp-repeater .sp-main-header:after {
        font-size: 24px;
    }
}
.sp-faq.sp-repeater .sp-content-text {
    text-align: left;
    padding-bottom: 24px;
}

/* ============== SP PRODUCT LOOP ================ */
/* Product cagtegory temporary headers */
.sp-showproducts h2 {
    width: var(--content-width);
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}
.sp-sale-splash {
    padding:  0 14px;
    border-radius: 100px;
}
.sp-fyldsplash-outer {
    display: none;
}
.sp-fyldsplashimage {
    display: none;
}
@media screen and (min-width: 768px) {
    .sp-fyldsplash-outer {
        display: block;
        position: absolute;
        z-index: 2;
        color: var(--engmo-blue-dark);
        top: 12px;
        right: 12px;
        background-color: var(--background-1);
        border-radius: 100px;
        padding: 0 14px;
        font: var(--p-regular-font);
        font-weight: 500;
        height:  33px;
    }
    .sp-fyldsplash {
        display: flex;
        gap: 5px;
        align-items: center;
        height: 100%;
    }
}
/* LOGO LOOP (butiker siden) */
.multi-block-wrapper:has(.sp-logocard-items) .sp-textblock-before-multi {
    margin-top: -12px;
}
.multi-block-wrapper:has(.sp-logocard-items) .sp-textblock-before-multi .sp-text-container p {
    margin: 0 0 0 0;
}
.multi-block-wrapper:has(.sp-logocard-items) .sp-textblock-before-multi .sp-text-container img  {
    height: 32px;
    margin: 0 auto 56px auto;
}
.sp-logocard-items.sp-wide.sp-center.sp-no-bgcolor.sp-col-2 {
    max-width: 560px;
    margin: auto;
    column-gap: 50px;
    margin-bottom: 50px;
}
.sp-logocard-items.sp-wide.sp-center.sp-no-bgcolor.sp-col-4 {
    max-width: 1122px;
    margin: auto;
    column-gap: 50px;
}
.sp-logocard-items.sp-wide.sp-center.sp-no-bgcolor.sp-col-4 .sp-repeater-item .sp-image-content,
.sp-logocard-items.sp-wide.sp-center.sp-no-bgcolor.sp-col-2 .sp-repeater-item .sp-image-content {
    max-height: 100px;
}


/* infinity loop on frontpage */
.sp-products-container {
    margin-top: 0px;
}

.sp-products-container.sp-shortcode-infinityloop {
    margin-top: 0px;
}

.sp-infinity-scrollright-btn,
.sp-infinity-scroll-left-btn {
    display: none;
}
.sp-infinity-loop .sp-product-repeater {
    gap: 12px;
    padding-bottom: 24px;
    margin-bottom: 12px;
}
@media screen and (min-width: 768px) {
    .sp-infinity-loop .sp-product-repeater {
        gap: 24px;
        padding-bottom: 24px;
        padding-right: var(--fwitem-right);
        width: calc( (100% + (var(--page-width) - var(--content-width)) / 2) - var(--fwitem-right));
    }
    .sp-products-container.sp-shortcode-infinityloop ul.products::-webkit-scrollbar,
    .sp-infinity-loop .sp-product-repeater::-webkit-scrollbar {
		height: 4px;
        width: 4px;
	}
}
.sp-products-container.sp-shortcode-infinityloop ul.products::-webkit-scrollbar-track,
    .sp-infinity-loop .sp-repeater::-webkit-scrollbar-track {
		background: var(--stroke-color);
		border-radius: 100vw;
	}
	
	.sp-products-container.sp-shortcode-infinityloop ul.products::-webkit-scrollbar-thumb,
    .sp-infinity-loop .sp-repeater::-webkit-scrollbar-thumb {
		background: var(--engmo-blue-dark);
		border-radius: 100vw;
	}	
	.sp-products-container.sp-shortcode-infinityloop ul.products::-webkit-scrollbar-thumb:hover,
    .sp-infinity-loop .sp-repeater::-webkit-scrollbar-thumb:hover {
		background: var(--engmo-blue-dark);
	}

.sp-infinity-loop .sp-product-repeater .sp-repeater-item {
    width: 90%;
    flex-shrink: 0;
    scroll-snap-align: start;
}
@media screen and (min-width: 768px) {
    .sp-infinity-loop .sp-product-repeater .sp-repeater-item,
    .sp-infinity-loop .sp-infocard-infinityitems .sp-repeater-item {
        flex: 0 0 calc((100% - (24px * 2)) / 3);
    }
    
}
.sp-infinity-loop .sp-product-repeater .sp-repeater-item .sp-product-loop-image {
    aspect-ratio: 309 / 312;
}
.sp-infinity-loop .sp-product-repeater .sp-repeater-item a {
    text-decoration: none;
    position: relative;
    display: block;
}

@media screen and (min-width: 768px) {
    .sp-infinity-loop {
    position: relative;
    width:  var(--fwitem-width);
    max-width: var(--fwitem-maxwidth);
    right: var(--fwitem-right);
    padding-left: var(--fwitem-right);
    overflow:  hidden;
}
    .sp-scroll-right-infinity {
        display: none;
    }
    .sp-infinity-loop:has(.sp-product-repeater) .sp-scroll-right-infinity {
        display: block;
    }
.sp-scroll-right-infinity {
        content: url(assets/icons/slider-right-chewron-white.svg);
    right: 64px;
    }

    .sp-scroll-left-infinity {
        content: url(assets/icons/slider-left-chewron-white.svg);
        left: 72px;
    }
.sp-scroll-right-infinity, .sp-scroll-left-infinity {
        position: absolute;
        top: 175px;
        transform: unset;
        width: 75px;
        height: 75px;
        padding: 25px;
        border-radius: 50%;
        background-color: var(--default-color);
        z-index: 10;
}
    .sp-infinity-loop:has(.sp-logocard-infinity-item) .sp-scroll-right-infinity,
    .sp-infinity-loop:has(.sp-logocard-infinity-item) .sp-scroll-left-infinity {
        display: none !important;
        
    }
}

.sp-loop-shortdescription {
    /* max-height: 36px; */
    font-size: 14px;
    font-family: var(--primary-font);
    font-weight: 300;
    overflow: hidden;
}
@media screen and (max-width: 768px) {
.sp-loop-shortdescription strong, .sp-loop-shortdescription br  {
    display: none;
}
}

@media screen and (min-width: 768px) {
    .sp-loop-shortdescription {
        font-size: 14px;
        /* height: 68px; */
        max-height: unset;
        margin-bottom: 8px;
    }
    .sp-loop-shortdescription br {
        display: none;
    }
    .sp-loop-shortdescription strong {
        font: var(--h5-font);
        display: block;
        font-weight: 500;
        margin-bottom: 6px;
    }
}

ul.products {
    padding: 0px;
}

a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    position: relative;
}

a .woocommerce-loop-product__title, .woocommerce-loop-product__title {
    color: black;
    font: var(--h3-font);
    margin: unset;
    margin-top: 12px;
    margin-bottom: 6px;
    text-decoration: none;
}
a:-webkit-any-link {
    text-decoration: none;
}
@media screen and (min-width: 768px) {
    a .woocommerce-loop-product__title {
        margin-top: 24px;
        margin-bottom: 12px;
        text-decoration: none;
    }
}
.sp-repeater-item .sp-loop-comfortlevels {
    display: none;
}
.sp-products-in-group .sp-loop-comfortlevels {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.sp-products-in-group .sp-comfortlevel {
        display: flex;
        align-items: center;
        padding: 0px 18px;
        font-size: 14px;
        font-weight: 500;
        color: var(--engmo-blue-dark);
        background-color: var(--background-1);
        border-radius: 100px;
        height: 37px;
        flex-shrink: 0;
    }
.sp-products-in-group .sp-comfortlevel a {
    text-decoration: none;
}

@media screen and (min-width: 768px) {
.sp-repeater-item .sp-loop-comfortlevels {
    display: flex;
    gap: 5px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
    .sp-comfortlevel {
        display: flex;
        align-items: center;
        padding: 0px 12px;
        font-size: 14px;
        font-weight: 400;
        color: var(--engmo-blue-dark);
        background-color: var(--background-1);
        border-radius: 100px;
        height: 37px;
        flex-shrink: 0;
    }
}
.sp-loop-size-container {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
@media screen and (min-width: 768px) {
    .sp-recommeded-price {
        margin-top: 48px;
    }
    .sp-loop-size-container {
        margin-top: 8px;
    }
}
.sp-size-item {
    border: 1px solid var(--stroke-color);
    border-radius: 100px;
    height: 35px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-size: 10px;
    font-weight: 700;
    font: var(--p-regular-font);
    font-weight: 600;
}
@media screen and (min-width: 768px) {
    .sp-size-item {
        font-size: 14px;
        height: 37px;
        font-weight: 400;
    }
}
/* ===================  SP PRODUCT BLOCKS ================== */

/* - DEFAULT LBOCKS ON PAGES - PRELIMINARY */
.sp-product-gallery-image {
    aspect-ratio: 660 / 601
}
.sp-repeater-item.sp-product-loop-item {
    position: relative;
    /* max-width: 100%; */
}
.sp-repeater-item.sp-product-loop-item .sp-product-loop-image {
    max-width: 100%;
}
.sp-product-gallery-thumbs {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sp-product-gallery-arrows {
    display: none;
}

/* - DEFAULT LBOCKS ON PAGES - PRELIMINARY */

.sp-products-container li.product {
    min-width: 33%;
}

/* product page */
@media screen and (min-width: 768px) {
    .product-template-default main {
        margin-top: 48px;
    }
}
.woocommerce-page .sp-breadcrumb-container {
    width: var(--content-width);
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
    font-size: 18px;
}
@media screen and (min-width: 768px) {
    .woocommerce-page .sp-breadcrumb-container {
        max-width: 100%;
    }
}
.sp-breadcrumb {
    display: flex;
    gap: 12px;
    align-items: baseline;
}
a.sp-breadcrumb-item {
    color: var(--engmo-blue-dark);
    text-decoration: underline;
}

.woocommerce-product-gallery__wrapper img {
    border-radius: var(--default-border-radius);
    overflow: hidden;
}

/* Gallery on mobile */
@media screen and (max-width: 768px) {
    .woocommerce-product-gallery {
        width: var(--fwitem-width);
        max-width: var(--fwitem-maxwidth);
        position: var(--fwitem-position);
        right: var(--fwitem-right);
        
    }
    .sp-product-gallery-images {
        gap: 8px;
        scrollbar-width: thin;
    }
    .sp-product-gallery-image-container {
        width: 94%;
    }
    .sp-product-gallery-thumbs {
        display: none;
    }
    
}

@media screen and (min-width: 768px) {
    .product-template-default .product:not(.related .product) {
        width: var(--content-width);
        max-width: var(--max-content-width);
        margin-left: auto;
        margin-right: auto;
        display: grid;
        row-gap: 30px;
        column-gap: 30px;
    }

    .woocommerce-product-gallery {
        width: 100%;
    }

    .summary.entry-summary {
        /* grid-column: span 6; */
        padding-left: 48px;
        padding-top: 24px;
    }

    ol.flex-control-nav.flex-control-thumbs {
        display: block;
        padding: 0;
        margin: 0;
        display: flex;
    }

    ol.flex-control-nav.flex-control-thumbs li {
        list-style: none;
        width: 33%;
    }
}


.sp-model-right-header {
    margin-bottom: 0;
    margin-top: 12px;
    font: var(--h2-font) !important;
}
.sp-top-attributes-container {
    margin-bottom: 12px;
    margin-top: 12px;
}
.sp-details-row span.sp-slash-divider:last-of-type {
    display: none;
}
@media screen and (min-width: 768px) {
    .sp-model-right-blok {
        max-width: 550px;
    }
    .sp-model-right-header {
        margin-top: 16px;
        font: var(--h1-font) !important;
    }
    .sp-product-gallery-images {
    padding-bottom: 0;
}

tr.sp-details-row .sp-wash2 img {
    max-width: 300px;
}
}
tr.sp-details-row th {
    vertical-align: top;
}
tr.sp-details-row .sp-wash2 {
    margin: 12px 0;
}
.sp-model-beskrivelse {
    margin-bottom: 32px;
    font: var(--p-big-font);
    position: relative;
}
.sp-model-beskrivelse .sp-model-beskrivelse-text {
    color: #1c1f21CC;
    max-height: 215px;
    overflow: hidden;
}
.sp-model-beskrivelse .sp-model-beskrivelse-text p:first-child {
    margin-top: 0;
}
.sp-model-beskrivelse .sp-model-beskrivelse-text p:last-child {
    margin-bottom: 0;
}
.sp-model-beskrivelse:after {
    background: linear-gradient(
  to bottom,
  rgba(255, 255, 255, 0),
  rgba(255, 255, 255, 1)
);
    content: "";
    width: 100%;
    height: 50px;
    position: absolute;
    bottom: 0px;
}
.sp-model-beskrivelse.sp-expanded:after {
    display: none;
}
.sp-model-beskrivelse:not(.sp-expanded) {
   margin-bottom: 48px; 
}
.sp-model-beskrivelse.sp-expanded .sp-model-beskrivelse-text {
    max-height: 1000px;
    font: var(--p-big-font);
}
.sp-model-beskrivelse .sp-readmore, .sp-model-beskrivelse .sp-readless {
    font-size: 18px;
    font-weight: 600;
    text-decoration: underline;
    background-color: unset;
}
.sp-model-beskrivelse .sp-readmore {
    position: absolute;
    top: 100%;
}
.sp-model-beskrivelse .sp-readless {
    margin-top: 12px;
}
.sp-product-linkitem a {
    display: flex;
    margin-top: 24px;
    margin-bottom: 24px;
    border-radius: 4px;
    text-align: center;
    height: 68px;
    justify-content: center;
    align-items: center;
}
.sp-kvalitable {
    border-top: 1px solid var(--stroke-color);
    padding-top: 30px;
    padding-bottom: 30px;
}

.sp-kvalitable tr {
    display: flex;
    flex-direction: column;
}

@media screen and (min-width: 768px) {
    .sp-kvalitable tr {
        display: table-row;
    }
}

.sp-model-varianter {
    border-top: 1px solid var(--stroke-color);
    padding-top: 30px;
}

.sp-variationtable-showmore {
    cursor: pointer;
    text-decoration: underline;
    color: var(--ringsted-rod);
    font-weight: 600;
    margin-top: 15px;
}

nav.woocommerce-breadcrumb a {
    color: var(--ringsted-rod);
}

nav.woocommerce-breadcrumb {
    padding-top: 30px;
    padding-bottom: 30px;
}

.sp-attributes-box-top {
    display: flex;
    gap: 10px;
}

.sp-attributeitem-top {
    background-color: var(--background-1);
    border-radius: 100px;
    padding: 0px 15px;
    font-weight: 600;
    height: 39px;
    display: flex;
    align-items: center;
    font: var(--p-big-font);
    font-weight: 500;
    color: #132b37;
}

.sp-comfort-items-top {
    margin-top: 1px;
    margin-bottom: 10px;
}

.sp-model-varianter th:last-of-type,
.sp-model-varianter td:last-of-type {
    text-align: right;
}

.sp-model-varianter th {
    padding-bottom: 5px;
}

h2.sp-prod-acordion-header {
    position: relative;
    cursor: pointer;
    font: var(--h4-font);
    color: var(--engmo-blue-dark);
}

.sp-product-acordion {
    border-bottom: 1px solid #EBF1F5;
    margin-top: 16px;
    padding-bottom: 0px;
    width: 100%;
}

h2.sp-prod-acordion-header:after {
    position: absolute;
    right: 0;
    cursor: pointer;
}

h2.sp-prod-acordion-header:not(h2.sp-prod-acordion-header.active):after {
    content: "+";
    font-weight: 600;
}

h2.sp-prod-acordion-header.active:after {
    content: "-";
}

.sp-prod-acordion-slidecontent {
    display: none;
}

.sp-details-table {
    border-top: 1px solid var(--engmo-blue-dark);
    width: 100%;
    padding-top: 12px;
}

.sp-details-table th,
.sp-details-table td {
    padding: 10px 25px 12px 0px;
    border-bottom: 1px solid var(--stroke-color);
}
.sp-details-table .sp-details-row td a {
    text-decoration: underline;
}
.sp-certificates-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    margin-top: 30px;
    border-radius: var(--default-border-radius);
    background-color: unset;
}
@media screen and (min-width: 768px) {
    .sp-certificates-container {
        row-gap: 24px;
    }
}
.sp-certificates-container .sp-model-certifikat-image {
    width: 45%;
    padding: 12px 0px;
}
@media screen and (min-width: 768px) {
    .sp-certificates-container .sp-model-certifikat-image {
        width: 33%;
        font: var(--p-regular-font);
        justify-content: space-between
    }
}
.sp-model-certifikat-text {
    color: var(--engmo-blue-dark);
    opacity: 80%;
    
}
.sp-certificates-container .sp-model-certifikat-image-box {
    max-height: 70px;
    height: 60px;
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}
@media screen and (min-width: 768px) {
    .sp-certificates-container .sp-model-certifikat-image-box {
        min-width: 80px;
        flex-shrink: 0;
    }
    .sp-certificates-container .sp-model-certifikat-image-box img {
        haight: 60px;
    }
}
@media screen and (min-width: 768px) {
    section.related.products {
        grid-column: span 2;
    }
}
.related.products .products {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    scroll-behavior:smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 24px;
}
@media screen and (min-width: 768px) {
    .related.products .products {
        gap: 24px;
    }
}
.related.products .products .product {
    flex-shrink: 0;
    width: 90%;
    scroll-snap-align: start;
    gap: 0px;
}
@media screen and (min-width: 768px) {
    .related.products .products .product {
        display: block;
        flex: 0 0 calc((100% - (24px * 2)) / 3);
    }
    .related.products .sp-comfortlevel  {
        font-size: 14px;
        font-weight: 500;
        padding: 0px 14px;
    }
}
.sp-loop-customhtml {
    position: relative;
}
.related.products .products .product .sp-size-item {
    font-size: 10px;
    height: 25px;
}
.related.products .products .product .sp-loop-shortdescription {
    font-size: 12px;
    line-height: 17px;
}
@media screen and (min-width: 768px) {
    .related.products .products .product .sp-size-item {
        font-size: 14px;
        height: 37px;
    }
    .related.products .products .product .sp-loop-shortdescription {
        font-size: 14px;
        line-height: 20px;
    }
}
.related.products .woocommerce-loop-product__title {
    font: var(--h3-font);
    margin-top: 12px;
    margin-bottom: 12px;
    color: #000000;
}
@media screen and (min-width: 768px) {
    .related.products .woocommerce-loop-product__title {
        margin-top: 18px;
    }
}
.related.products .sp-loop-shortdescription {
    color: #1b1b1d;
}

/* frontpage newsletter popup */
.sp-popup-container {
    display: none;
}
@media screen and (min-width: 768px) {
    .sp-popup-container {
        display: block;
        position: fixed;
        bottom:  0;
        width: var(--content-width);
        margin-left:  auto;
        margin-right:  auto;
        z-index: 30;
        pointer-events: none;
    }
    /* adapt the main block, so we can position the popup-trigger */
    .sp-pure-text:not(.sp-breaker .sp-pure-text):has(.sp-popup-container) {
        padding-top: var(--block-spacing);
        margin: 0px;
        width: 100%;
        /* position: relative; */
        max-width: 100%;
    }
    .sp-pure-text:not(.sp-breaker .sp-pure-text):has(.sp-popup-container) > .sp-text-container {
        max-width: var(--max-text-width);
        margin-left: auto;
        margin-right: auto;
    }
    /* format the popup trigger */
    .sp-openpopup-container {
        background-color: #96B8CE;
        padding: 24px;
        display: flex;
        gap: 12px;
        width:  max-content;
        float: right;
        pointer-events: all;
    }
     .sp-openpopup-container .sp-pre-header {
         cursor: pointer;
        font: var(--h5-font);
         text-transform: unset;
     }
    .sp-openpopup-close-wrapper {
         font-size: 32px;   
        cursor: pointer
    }
    .sp-popup-dialog {
        pointer-events: all;
    }
    .sp-popup {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 100vw;
        background-color: #00000090;
    }
    .sp-popup-content {
        max-width: 552px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateX(-50%) translateY(-50%);
        background-color: #FDFEFF;
        border-radius:  4px;
        overflow: hidden;
    }
    .sp-popup-close-wrapper {
        position: absolute;
        position: absolute;
        height: 40px;
        width: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
        top: 12px;
        right: 12px;
        z-index: 9;
        border-radius: 50%;
        cursor: pointer;
    }
    .sp-popup-close-wrapper > div {
        height: 24px;
        font-size: 42px;
    }
    .sp-popup-content .sp-image-content {
        aspect-ratio: 552 / 227;
    }
    .sp-popup-content .sp-text-box {
        max-width: 425px;
        margin: 24px auto;
        text-align: center;
    }
    .sp-popup-content .sp-pre-header {
        font: var(--h2-font);
        text-transform: unset;
        max-width: 351px;
        margin: auto;
        margin-bottom: 12px
    }
    .sp-popup-content .sp-intro {
        color: #132B37;
    }
    .sp-popup-content .sp-mc-formline {
        display: block;
        max-width: 425px;
        margin: auto;
    }
    .sp-popup-content .sp-mc-formline input {
        border: 1px solid #EBF1F5;
        width: 100%;
        margin-bottom: 8px;
    }
    .sp-popup-content .sp-mc-formline .sp-mc-submit {
        margin-left: 0;
        margin-top: 4px;
    }
    .sp-popup-content .sp-mc-gdpr-line {
        max-width: 425px;
        margin: auto;
        text-align: left;
        gap: 8px;
        color: #132B37CC;
        font-size: 12px;
        margin-top: 12px;
        line-height: 16px;
    }
    .sp-popup .sp-shortcode {
         padding-bottom: 24px;   
    }
}
/*  STORE LOCATOR */
.wpsl-search.wpsl-clearfix {
    order: 1;
    background: unset;
    padding: unset;
}

@media screen and (max-width: 768px) {
div#wpsl-wrap {
    display: grid;
	margin-top: 48px;
}
#wpsl-wrap:before {
		content:"Finn forhandler i nÃ¦rheten";
		order: 1;
		font: var(--h3-font);
		text-align:  left;
		font-size:  24px;
		padding-bottom: 24px;
	}
div#wpsl-gmap {
    order: 3;
}


div#wpsl-result-list {
    order: 2;
}
#wpsl-search-wrap .wpsl-input label {
    font: var(--p-big-font);
    font-weight: 600;
    margin-bottom: 8px;
}
#wpsl-search-wrap div label {
    font: var(--p-big-font);
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
}
#wpsl-search-wrap input {
    border: 1px solid var(--stroke-color);
    height: 48px;
    width: 100% !important;
}
#wpsl-search-wrap input:focus-visible {
    outline: 1px solid var(--stroke-color);
}
#wpsl-category {
    width: 100%;
    margin-top: 12px;
}
#wpsl-search-wrap .wpsl-dropdown {
    width: 100% !important;
    height: 48px;
    padding-left: 12px;
}
.wpsl-search-btn-wrap {
    width: 100%;
}
#wpsl-search-btn {
    background-color: var(--engmo-blue-dark);
    background-image: unset;
    color: white;
    width: 100%;
    border-radius: 100px !important;
}
#wpsl-stores {
     height: 325px !important;   
    border: 1px solid var(--stroke-color);
    padding: 12px;
}
#wpsl-stores ul {
    padding-right: 42px;
}
#wpsl-stores li {
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
#wpsl-stores ul li:first-child {
    padding-top: unset !important;
}
a.wpsl-directions {
     font: var(--p-big-font);
    font-family: var(--primary-font);
    font-weight: 600;
    color: var(--engmo-blue-dark);
    text-underline-offset: 2px;
}
#wpsl-result-list li p {
    margin: unset;
}
.wpsl-store-location p strong {
    line-height: 28px;
    color: var(--engmo-blue-dark);
    font-family: var(--primary-font);
    font-weight: 600;
}
.wpsl-store-location span {
    display: block;
}
}
@media screen and (min-width: 768px) {
    .sp-content-text:has(#wpsl-wrap) {
        overflow: visible;
    }
	#wpsl-wrap:before {
		content:"Hitta din nÃ¤rmaste butik";
		order: 1;
		font: var(--h3-font);
		text-align:  left;
		font-size:  32px;
		padding-bottom: 32px;
	}
    #wpsl-wrap {
        width: var(--content-width);
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: minmax(0, 32%) minmax(0, 68%);
        grid-column-gap: 28px;
        margin-top: 48px;
    }
    #wpsl-search-wrap {
        display: block;
    }
    #wpsl-search-wrap .wpsl-input {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }
    #wpsl-search-wrap .wpsl-input input {
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }
    div#wpsl-gmap {
        order: 2;
        grid-row: span 3;
        width: 100%;
        height: 100% !important;
    }
    div#wpsl-result-list {
        order: 4;
        width:  100%;
    }
    .wpsl-search.wpsl-clearfix {
        max-width: 100%;
        min-width: 0;
        width: 100%;
        display: block;
        order: 3;
    }
    .wpsl-dropdown {
        width: 100% !important;
        max-width: 100%;
    }
    .wpsl-search-btn-wrap {
    width: 100%;
}
#wpsl-search-btn {
    background-color: var(--engmo-blue-dark);
    background-image: unset;
    color: white;
    width: 100%;
    border-radius: 100px !important;
}
    #wpsl-search-wrap .wpsl-input label {
    font: var(--p-big-font);
    font-weight: 600;
    margin-bottom: 8px;
}
#wpsl-search-wrap div label {
    font: var(--p-big-font);
    font-weight: 600;
    margin-bottom: 8px;
    text-align: left;
}
    #wpsl-search-wrap input {
    border: 1px solid var(--stroke-color);
    height: 48px;
    width: 100% !important;
}
#wpsl-search-wrap input:focus-visible {
    outline: 1px solid var(--stroke-color);
}
#wpsl-category {
    width: 100%;
    margin-top: 12px;
}
#wpsl-search-wrap .wpsl-dropdown {
    width: 100% !important;
    height: 48px;
    padding-left: 12px;
    text-align: left;
}
    #wpsl-stores {
     height: 325px !important;
     border: 1px solid var(--stroke-color);
     padding: 12px;
     padding-right:  0px;
     max-height: 325px;
}
#wpsl-stores ul {
    padding-right: 9px;
}
#wpsl-stores li {
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
#wpsl-stores ul li:first-child {
    padding-top: unset !important;
}
a.wpsl-directions {
     font: var(--p-big-font);
    font-family: var(--primary-font);
    font-weight: 600;
    color: var(--engmo-blue-dark);
    text-underline-offset: 2px;
}
#wpsl-result-list li p {
    margin: unset;
}
.wpsl-store-location p strong {
    line-height: 28px;
    color: var(--engmo-blue-dark);
    font-family: var(--primary-font);
    font-weight: 600;
}
.wpsl-store-location span {
    display: block;
}
}