/* FIXES PDP PRODUCT IMAGE OVERFLOWING ON MOBILE */
.ms-buybox__media-gallery .css-override.ms-media-gallery {
    max-width: 100% !important;
    height: fit-content !important;
}

@media (min-width: 993px) {
    .ms-buybox__media-gallery .css-override.ms-media-gallery {
        > .ms-media-gallery__thumbnails-container {
            .msc-ss-carousel-vert {
                .msc-ss-carousel-vert-slide {
                    top: 0 !important;
                }
            }
        }
    }
}

@media (min-width: 993px) {
    .ms-buybox__media-gallery
        > div
        > div.ms-media-gallery__thumbnails-container
        > .msc-ss-carousel-vert
        > .msc-ss-carousel-vert-strip
        > .msc-ss-carousel-vert-slide {
        top: 0 !important;
    }
}

.css-override.ms-search {
    @media (min-width: 992px) {
        height: 100%;
    }

    .ms-search__searchForm {
        height: 100%;

        .ms-search__form-control {
            font-size: 12px;
        }
    }
}

@media (max-width: 768px) {
    .css-override.ms-search .ms-search__searchForm {
        height: auto !important;
    }
}

.ms-search-result-container:has(.msc-sort-filter-wrapper.lock-Filter) .ms-search-result-container__Products {
    margin-top: 74px !important;
}

.ms-search-result-container__refine-product-section:has(.ms-refiner-heading.lock-Filter) .ms-search-result-container__product-section {
    margin-top: 110px !important;
}

/* FIXES MISALIGNED PAYPAL BUTTON */
.ms-checkout-payment-instrument-paypal .ms-checkout-payment-instrument__add {
    max-width: none !important;
    margin: 0 !important;
}

.ms-checkout-payment-instrument-paypal .ms-checkout-payment-instrument__add body {
    margin: 0 !important;
}

/* HIDES GOOGLE PAY BUTTON */
.ms-checkout-section-container__item:has(.css-override.google-pay-class) {
    display: none !important;
}

/*FIXES CHECKOUT DELIVERY OPTIONS RADIO BUTTON ALIGNMENT - RRO*/
.ms-checkout__guided-form .ms-checkout__guided-card-body > div.ms-checkout__guided-card-content .ms-checkout-delivery-options__input-radio {
    margin-left: 0 !important;
}

/* INDENTS DELIVERY ADDRESS UNDER RADIO BTN - RRO, 11-07 */
.ms-checkout__guided-form
    > div.ms-checkout__guided-card.active.expanded.initialized.updating
    > div.ms-checkout__guided-card-body
    > div.ms-checkout__guided-card-content
    > div
    > div
    > div:nth-child(1)
    > div:nth-child(3)
    > span {
    @media screen and (max-width: 599px) {
        margin-left: 40px !important;
    }

    @media screen and (min-width: 600px) {
        margin-left: 35px;
    }
}

/* INDENTS CHOICE BUTTON, PICKUP ADDRESS - RRO, 11-07 */
.ms-checkout-delivery-options__option_wrapper-box-item .ms-centiro__preferred-store-btn {
    @media screen and (max-width: 599px) {
        margin-left: 40px !important;
    }

    @media screen and (min-width: 600px) {
        margin-left: 35px;
    }
}

/* PREVENTS PUSHING PRICE PAST MARGIN - RRO, 11-07 */
.ms-checkout-delivery-options__option div:not(:first-child) {
    margin-left: 0 !important;
}

/* ENSURES DELIVERY OPTION TEXT IS NOT SPLIT ON TWO LINES - RRO, 11-07 */
.ms-checkout-delivery-options label:has(> .ms-checkout-delivery-options__input-radio) {
    min-width: 270px !important;

    @media screen and (min-width: 600px) {
        min-width: 330px !important;
    }
}

/* FIXES WHITE BG ON BTN HOVER, HOMEPAGE (10% PÅ FØRSTE KØB) */
.ms-content-block[data-m-layout='left-right'].texttheme__light .ms-content-block__cta .msc-cta__primary:hover {
    background-color: transparent !important;
}

/* FIXES USELESS LOGGED ERROR IN FOOTER ACCORDION */
.ms-footer .ms-accordion-header-section-toggle-button-container {
    display: none;
}

/* FIXES HEIGHT AND TEXT OVERLAY ON VIDEO MODULE */
@media screen and (max-width: 768px) {
    .css-override .msc-videoplayer .msc-videoplayer__wrapper video.msc-videoplayer__video {
        min-height: auto !important;
    }
}

@media (max-width: 768px) {
    .css-override .ms-video-player__details {
        background: none !important;
        height: 0 !important;
        padding: 52px 28px;
        position: absolute !important;
        display: flex !important;
        width: 100% !important;
        height: 100% !important;
        justify-content: flex-end !important;
    }

    .css-override .ms-video-player__details__cta__link {
        background: rgb(143 143 143 / 50%);
        height: auto !important;
        margin-top: 22px;
    }
}

.ms-promo-banner.deu {
    background-color: #e30000;
}

/* REMOVES DEFAULT BOTTOM MARGIN ON CONTAINERS */

.default-container {
    margin-bottom: 0 !important;

    @media screen and (min-width: 992px) {
        margin-bottom: 0 !important;
    }
}

/* CHANGES ASPECT RATIO ON CONTENT BLOCK HERO 2 */

.ms-content-block[data-m-layout='full-width-with-container'] {
    box-shadow: none !important;
    aspect-ratio: 4 / 5 !important;
}

/* FIX MISALIGNED IMAGE LISTS - NOA */

.image-list__country-picker.ms-image-list.displaystyle__horizontal.imageplacement__left.contentalignment__center {
    .ms-image-list__list {
        justify-content: center;
    }
}

.ms-image-list.contentalignment__center {
    .ms-image-list__list {
        justify-content: space-evenly !important;
    }
}

/* Re-align trustbadge with other elements in the footer */

div[id^='trustbadge-container'] {
    div {
        div:not([id^='ratingStarsContainer']) {
            bottom: 33px !important;
        }
    }
}

/* Filter button on plp stays behind the trustbadge popup */

.ms-search-result-container .msc-sort-filter-wrapper.lock-Filter {
    z-index: 1 !important;
}

.bs-promo-banner {
    z-index: 10;
}

/* FIX SPACING ON VIDEO MODULE - NOA */
.ms-video-player__details,
.ms-ext-video-player__details {
    .ms-video-player__details__cta__link,
    .ms-video-player__details__additional-content,
    .ms-ext-video-player__details__cta__link {
        margin-top: 0 !important;
    }

    @media (max-width: 768px) {
        gap: 1rem !important;
    }

    @media (min-width: 769px) {
        gap: 1.25rem !important;
    }
}

/*FIX PRODUCT LABEL PINK COLOR - NOA*/
.product-label {
    background-color: #000000 !important;
}

.msc-price__discount {
    color: #000000 !important;
}

/*CHECKOUT HEADER STYLING - NOA*/
.ms-header.checkout-header {
    margin: 0;
    width: 100%;
}

.ms-header.checkout-header .ms-header__container {
    padding: 0;
}

.ms-header.checkout-header .ms-header__container .ms-header__topbar {
    height: 68px;
}

/* REMOVES NEGATIVE MARGIN ON CHECKOUT BOOTSTRAP ROWS */
body.checkout-page .row {
  margin: 0 !important;
}

.ms-header.checkout-header .ms-header__container .ms-header__topbar .left-side-container {
    flex: 1;
}

/* FIX FOR PLACEMENT OF VIDEO PLAYER OVERLAY AFTER RELEASE 9.55_05 */
.ms-ext-video-player__details > div {
  width: 100% !important;
  height: 100% !important;
}