/* Keep the rotated gallery arrow label inside its button. */
.product-card__slideshow #sync1 .owl-nav button.owl-prev,
.product-card__slideshow #sync1 .owl-nav button.owl-next {
    text-indent: 0;
    overflow: hidden;
    font-size: 0;
}

@media (max-width: 767px) {
    .product-card__container {
        padding-top: 8px;
    }

    .product-card__slideshow {
        margin-bottom: 8px;
    }

    .product-card__slideshow #sync1 {
        margin-bottom: 0;
    }

    .product-card__slideshow #sync1 .item {
        display: block;
        width: 100%;
        height: 144px;
    }

    .product-card__slideshow #sync1 .item img {
        width: 100%;
        height: 144px;
        max-height: 144px;
        aspect-ratio: auto;
        object-fit: contain;
    }

    .product-card__slideshow #sync1 .owl-dots {
        top: 0;
        width: 100%;
        margin-top: 4px;
    }
}

@media (max-width: 991px) {
    /* The existing mobile search/cart panel is 50px high. */
    #cookie-modal {
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
        left: 12px;
        right: 12px;
        width: auto;
        height: auto;
    }

    #cookie-modal .cookie-modal__content {
        box-sizing: border-box;
        width: 100%;
        max-width: 600px;
        margin: 0 0 0 auto;
        padding: 12px;
        gap: 8px;
        flex-wrap: wrap;
    }
}

/* On product pages the notice participates in main's normal flow. */
main #cookie-modal.lc18-cookie-notice--flow {
    position: static;
    inset: auto;
    z-index: auto;
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 1160px;
    height: auto;
    min-height: 0;
    margin: 16px auto;
    padding: 0;
    background: transparent;
}

main #cookie-modal.lc18-cookie-notice--flow .cookie-modal__content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 12px;
    flex-wrap: wrap;
}
