/* Kortare produktnamn i sidopanelen */
.bountiful--sidebar .tws-article-list--article-name a {
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    font-size: 13px;
    word-break: normal;
}

/* Dölj produktetiketter i sidopanelen */
.bountiful--sidebar .tws-article-list--labels {
    display: none !important;
}

/* Modernt typsnitt i hela webbutiken */
body {
    font-family: "Segoe UI", -apple-system,
                 BlinkMacSystemFont, Roboto,
                 Arial, sans-serif !important;
}

button, input, select, textarea {
    font-family: inherit;
}

/* Huvudmeny med guldfärgad markering */
.slot--header-horizontal-menu .navbar-nav > li > a {
    position: relative;
}

/* Ta bort bakgrund och ram vid markering */
.slot--header-horizontal-menu .navbar-nav > li > a:hover,
.slot--header-horizontal-menu .navbar-nav > li > a:focus,
.slot--header-horizontal-menu .navbar-nav > li.active > a,
.slot--header-horizontal-menu .navbar-nav > li > a[aria-current="page"] {
    background-color: transparent !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Guldlinje under markerad menylänk */
.slot--header-horizontal-menu .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #eebc32;
    transform: scaleX(0);
    transition: transform 0.18s ease;
    pointer-events: none;
}

.slot--header-horizontal-menu .navbar-nav > li > a:hover::after,
.slot--header-horizontal-menu .navbar-nav > li > a:focus::after,
.slot--header-horizontal-menu .navbar-nav > li.active > a::after,
.slot--header-horizontal-menu .navbar-nav > li > a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Tydlig markering vid tangentbordsnavigering */
.slot--header-horizontal-menu .navbar-nav > li > a:focus-visible {
    outline: 2px solid #eebc32 !important;
    outline-offset: -3px;
}

/* Anpassa sidfoten till huvudinnehållet */
@media (min-width: 1200px) {
    .bountiful--footer > .container {
        padding-left: 290px !important;
    }
}

/* Minska tomrummet ovanför sidfoten */
.bountiful--footer {
    margin-top: 0 !important;
    padding-top: 15px !important;
    color: #ffffff;
}

/* Länkar i sidfoten */
.bountiful--footer a {
    color: #ffffff !important;
    transition: color 0.2s ease;
}

.bountiful--footer a:hover {
    color: #eebc32 !important;
}

/* Rubrik för sociala medier */
.bountiful--footer > .container > .row:first-of-type > .col-md-3:nth-of-type(3)::before {
    content: "Följ oss";
    display: block;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 8px;
}

/* Guldlinje under sociala medier-rubriken */
.bountiful--footer > .container > .row:first-of-type > .col-md-3:nth-of-type(3)::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: #eebc32;
    position: absolute;
    top: 35px;
    left: 15px;
}

/* Avstånd mellan rubrik och sociala medier */
.bountiful--footer > .container > .row:first-of-type > .col-md-3:nth-of-type(3) > * {
    margin-top: 20px;
}

/* Kompakt introduktionstext i kassan */
.slot--checkout-introduction-text {
    white-space: normal !important;
    padding: 18px 16px !important;
}

.slot--checkout-introduction-text div {
    white-space: normal !important;
}

/* Mobilanpassning av sidfoten */
@media (max-width: 767px) {

    /* Kompakt och centrerad sidfot */
    .bountiful--footer {
        padding-top: 15px !important;
        padding-bottom: 10px !important;
        text-align: center;
    }

    /* Mindre avstånd mellan sektionerna */
    .bountiful--footer > .container > .row > .col-sm-6 {
        margin-bottom: 16px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        text-align: center !important;
    }

    /* Centrera guldlinjer i egna HTML-block */
    .bountiful--footer .tws-custom-html--content div[style*="width: 40px"],
    .bountiful--footer .tws-custom-html--content div[style*="width:40px"] {
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 10px !important;
    }

    /* Centrera guldlinjen under Följ oss */
    .bountiful--footer > .container > .row:first-of-type > .col-md-3:nth-of-type(3)::after {
        left: 50% !important;
        transform: translateX(-50%);
        top: 35px;
    }

    /* Mindre avstånd till sociala medier */
    .bountiful--footer > .container > .row:first-of-type > .col-md-3:nth-of-type(3) > * {
        margin-top: 16px !important;
    }

    /* Mindre ikoner för sociala medier */
    .bountiful--footer > .container > .row:first-of-type > .col-md-3:nth-of-type(3) img,
    .bountiful--footer > .container > .row:first-of-type > .col-md-3:nth-of-type(3) svg {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        object-fit: contain;
    }

    /* Kompaktare textavstånd */
    .bountiful--footer p {
        margin-bottom: 8px !important;
    }

    /* Mindre avstånd ovanför betalningslogotyper */
    .bountiful--footer hr {
        margin-top: 12px !important;
        margin-bottom: 12px !important;
    }

    .bountiful--footer > .container > .row:first-of-type {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}