/*
 Theme Name: SupportDesign – Flatsome Child (CSS Layers Starter)
 Template: flatsome
 Version: 1.0.0
 Description: Child theme struktur med CSS cascade layers, BEM och design tokens.
*/

/* CSS imports have been moved to functions.php for proper enqueueing */

/*************** ADD CUSTOM CSS HERE.   ***************/
@media (min-width: 850px) {
    .row.large-columns-1 .product-small.box {
        max-height: 50vh;

        & .box-image {
            max-height: 50vh;
            position: relative;
            width: 50%;
        }

        & img {
        }
    }
}
.sd-product-videos-grid {
    margin-bottom: 32px;
}

.sd-acf-sections div:has(span) {
    margin-bottom: 1em;
}
.sd-index-up {
    position: relative;
    z-index: 299;
}
.show-for-medium.flex-left:has(.mobile-nav) {
    display: none;
}
.country-selector.weglot-dropdown .wgcurrent span {
    padding: 0 4px;
}
.sd-scope .country-selector.weglot-dropdown .wgcurrent,
.aelia_cs_currencies {
    border: none;
}
.aelia_cs_currencies {
    padding: 10px 0;
}
.cart-item.has-icon {
    padding-right: 8px;
}
.country-selector.weglot-dropdown .wgcurrent:after {
    display: none;
}
.is-small h4 {
    font-size: 1.5rem !important;
}

.product-thumbnails img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background-color: white;
    transform: none;
    margin-bottom: unset !important;
    padding: 0.5rem;
}

.product-gallery-slider img {
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin-bottom: unset !important;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.2);
}

.product-thumbnails .is-nav-selected a img {
    transform: none;
    background-color: white !important;
}

.sd-scope .left-prod-col {
    padding-top: 60px;
}
.sd-scope .right-prod-col {
    padding-top: 60px;
}

.pay-safe .payment-icons {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    margin: 0;

    & .payment-icon {
        margin: 0;
    }
}

@media (max-width: 849px) {
    .sd-scope .left-prod-col {
        padding-top: 30px;
    }
    .sd-scope .right-prod-col {
        padding-top: 0;
    }
    .pay-safe {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
    .pay-safe svg {
        height: 15px !important;
    }
    .pay-safe .text {
        flex-shrink: 0;
    }
}

@media (min-width: 850px) {
    /* Right column sticks once its top hits -160px (so the inner content sits at viewport top) */
    .right-prod-col {
        position: sticky;
        top: -212px;
        align-self: flex-start; /* critical - without this it stretches to row height and sticky becomes inert */
    }
}

/*************** ADD MOBILE ONLY CSS HERE  ***************/

@media only screen and (max-width: 48em) {
    .sd-index-up {
        position: relative;
        z-index: 299;
    }
    #logo {
        width: 100px !important;
        margin-right: 0;
    }
    .footer-wrapper {
        & .text-center,
        .text-right {
            text-align: left !important;
        }
    }
}
