/* Shared by every theme (WI 5705). Linked only while a theme is on, before the theme's own stylesheet,
   so a theme is mostly a list of the variables below. */

:root {
    --theme-accent: var(--clr-brand, #d93d88);
    --theme-on-accent: #fff;
    --theme-header-text: #fff;
    --theme-header-link: #fff;
    --theme-menu-link: #fff;
    --theme-menu-link-hover: #4d4d4d;
    --theme-checkout-link: #5fd3cb;
    --theme-muted: #aab3c8;
    --theme-banner-bg: #b82565;
    --theme-banner-text: #fff;
    --theme-top-bg: var(--theme-accent);
    --theme-top-text: var(--theme-on-accent);
    --theme-focus: var(--theme-header-link);
    --theme-focus-on-light: var(--theme-accent);
}

/* Top strip. Each theme decorates .theme-top; the words, when a message is set, scroll in the ticker. */
.theme-top__ticker {
    overflow: hidden;
    background: var(--theme-top-bg);
    color: var(--theme-top-text);
}

.theme-top__track {
    display: flex;
    width: max-content;
}

.theme-top__group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;
    gap: 2.5rem;
    min-width: 100vw;
    margin: 0;
    padding: 0 1.25rem;
    font-size: var(--txt-sm);
    font-weight: 800;
    line-height: 2.25rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.theme-top__part {
    display: inline-flex;
    align-items: center;
    gap: 2.5rem;
}

.theme-top__part + .theme-top__part::before {
    content: "\2605";
    font-size: .75em;
    opacity: .8;
}

@media (prefers-reduced-motion: no-preference) {
    .theme-top__track {
        animation: theme-ticker 36s linear infinite;
    }

    .theme-top__ticker:hover .theme-top__track {
        animation-play-state: paused;
    }
}

@keyframes theme-ticker {
    to { transform: translateX(-50%); }
}

/* Promo banner */
html[data-theme] .announcement-bar {
    background: var(--theme-banner-bg);
}

html[data-theme] .announcement-bar__link,
html[data-theme] .announcement-bar__link:hover,
html[data-theme] .announcement-bar__link:focus,
html[data-theme] .announcement-bar__close {
    color: var(--theme-banner-text);
}

/* Header */
.header .header__icon-link,
.header .header__icon-link:hover,
.header .header__icon-link:focus,
.header .header__account-link,
.header .header__account-link:hover,
.header .header__account-link:focus {
    color: var(--theme-header-link);
}

.header--checkout .call-wrapper__title {
    color: var(--theme-header-text);
}

.header--checkout .header__call-wrapper a {
    color: var(--theme-checkout-link);
}

.header--checkout .header__ssl img {
    filter: brightness(0) invert(1);
    opacity: .85;
}

.header__logo a {
    position: relative;
    display: inline-block;
}

.header__menu ul li .menu-link {
    color: var(--theme-menu-link);
}

.header__menu ul li:hover .menu-link {
    color: var(--theme-menu-link-hover);
}

.menu-wrapper::after {
    background: var(--theme-accent);
}

.header a:focus-visible,
.header button:focus-visible,
.header input:focus-visible {
    outline: 2px solid var(--theme-focus);
    outline-offset: 2px;
}

.header .sub-menu a:focus-visible,
.header .offcanvas a:focus-visible,
.header .offcanvas button:focus-visible,
.header .offcanvas input:focus-visible {
    outline-color: var(--theme-focus-on-light);
}

/* Trust bar */
.usp-bar .review-summary--compact .review-summary__score {
    color: var(--clr-usp-title);
}

.usp-bar .review-summary--compact .review-summary__count {
    color: var(--clr-usp-copy);
}

a.usp-bar__item:hover .usp-bar__title,
a.usp-bar__item:hover .review-summary--compact .review-summary__score {
    color: var(--theme-header-link);
}

.usp-bar__icon--theme {
    color: var(--theme-accent);
}

.usp-bar__countdown {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--theme-accent);
    color: var(--theme-on-accent);
    font-size: var(--txt-xs);
    letter-spacing: .02em;
}

@media only screen and (max-width: 767px) {
    .usp-bar__item.usp-bar__item--countdown {
        order: -1;
        grid-column: 1 / -1;
        margin-bottom: 2px;
        border-left: none;
        border-bottom: 1px solid var(--clr-usp-divider);
    }
}

/* Footer. The gap above it is for the theme's footer scene. */
.footer {
    position: relative;
    margin-top: 130px;
}

.footer__copyright,
.footer-checkout {
    color: var(--theme-muted);
}

.footer-checkout a {
    color: var(--clr-footer-link);
}

.theme-footer-scene {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 110px;
    pointer-events: none;
}

@media only screen and (max-width: 767px) {
    .footer {
        margin-top: 90px;
    }

    .theme-footer-scene {
        height: 76px;
    }
}

/* Page content (gap 8). Page stylesheets read --clr-* and two mix hooks, with today's colour as the
   fallback, so a theme only sets values. --theme-text-mix moves coloured text towards --clr-heading and
   --theme-tint-mix moves tinted panels towards --clr-surface; both are 0% with no theme. */
html[data-theme] {
    --bs-body-bg: var(--clr-surface, #fff);
    --bs-body-color: var(--clr-text, #212529);
    --bs-emphasis-color: var(--clr-heading, #000);
    --bs-heading-color: var(--clr-heading, inherit);
    --bs-secondary-color: var(--clr-text-muted, rgba(33, 37, 41, .75));
    --bs-secondary-bg: var(--clr-surface-alt, #e9ecef);
    --bs-tertiary-bg: var(--clr-surface-alt, #f8f9fa);
    --bs-border-color: var(--clr-border, #dee2e6);
    --bs-link-color-rgb: var(--theme-link-rgb, 13, 110, 253);
    --bs-link-hover-color-rgb: var(--theme-link-rgb, 10, 88, 202);
}

/* Light islands: the header, footer and the basket's orange catalogue offer keep their own look, and photos and
   payment sit on white cards. initial makes each hook fall back to the colour the page stylesheet had before themes. */
html[data-theme] .header,
html[data-theme] .footer,
html[data-theme] .catLog-boxSec,
html[data-theme] .payment-select,
html[data-theme] .basket__item-content:has(> .opayo-headrow),
html[data-theme] #opayo-3ds-modal {
    --clr-surface: initial;
    --clr-surface-alt: initial;
    --clr-text: initial;
    --clr-text-muted: initial;
    --clr-heading: initial;
    --clr-border: initial;
    --clr-input-bg: initial;
    --clr-input-text: initial;
    --clr-input-border: initial;
    --clr-btn-bg: initial;
    --clr-btn-text: initial;
    --theme-text-mix: initial;
    --theme-tint-mix: initial;
    --bs-body-bg: #fff;
    --bs-body-color: #212529;
    --bs-emphasis-color: #000;
    --bs-heading-color: initial;
    --bs-secondary-color: rgba(33, 37, 41, .75);
    --bs-secondary-bg: #e9ecef;
    --bs-tertiary-bg: #f8f9fa;
    --bs-border-color: #dee2e6;
    --bs-link-color-rgb: 13, 110, 253;
    --bs-link-hover-color-rgb: 10, 88, 202;
    color: var(--clr-text, #4d4d4d);
}

html[data-theme] .payment-select,
html[data-theme] .basket__item-content:has(> .opayo-headrow) {
    padding: 1rem;
    border-radius: 12px;
    background: #fff;
    color: #4d4d4d;
}

html[data-theme] #opayo-3ds-modal {
    background: #fff;
}

html[data-theme] .product__image,
html[data-theme] .product__image--container,
html[data-theme] .basket__product-image,
html[data-theme] .popup__basket-item-img,
html[data-theme] .poup__product-image,
html[data-theme] .product-gallery__stage,
html[data-theme] .product-gallery__thumb,
html[data-theme] .product-options__image,
html[data-theme] .materials-configurator__image,
html[data-theme] .wishlist__image-wrapper,
html[data-theme] .wishlist-card__image,
html[data-theme] .sale-landing-product__image-wrap,
html[data-theme] .seller-detail-card__product-thumb,
html[data-theme] .vo-item__thumb {
    border-radius: 8px;
    background-color: #fff;
}

/* Bootstrap's utility is !important, so only !important can move it off black on a dark page. */
html[data-theme] .text-black-50 {
    color: var(--clr-text-muted, rgba(0, 0, 0, .5)) !important;
}

html[data-theme] .form-control,
html[data-theme] .form-select {
    border-color: var(--clr-input-border, var(--bs-border-color));
    background-color: var(--clr-input-bg, var(--bs-body-bg));
    color: var(--clr-input-text, var(--bs-body-color));
}

/* Fields with no colours of their own would keep the browser's white box and dark text. */
:where(html[data-theme]) :where(input:not([type=checkbox], [type=radio], [type=submit], [type=button], [type=image], [type=range]), select, textarea) {
    border-color: var(--clr-input-border, revert);
    background-color: var(--clr-input-bg, Field);
    color: var(--clr-input-text, FieldText);
}

/* White-background banners (5706 D7). A theme sets --theme-slide-dim and --theme-slide-frame. The frame is an overlay
   because the slider clips anything outside a slide and the images are layered above an outline. */
.slider__items .wrap,
.home-image-tile {
    border-radius: 14px;
}

.home-image-tile {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .65);
}

.slider__items .wrap::after,
.home-image-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 2px solid var(--theme-slide-frame, transparent);
    border-radius: inherit;
    pointer-events: none;
}

.slider__items .background-img,
.home-image-tile__image {
    filter: brightness(var(--theme-slide-dim, 1));
    transition: filter .2s ease;
}

.slider__items a:hover .background-img,
.slider__items a:focus-visible .background-img,
.home-image-tile:hover .home-image-tile__image,
.home-image-tile:focus-visible .home-image-tile__image {
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .slider__items .background-img,
    .home-image-tile__image {
        transition: none;
    }
}

/* Phone menu (5706 D8). It sits inside the header, which stays light for the desktop drop-down, and menu.css
   hard-codes light colours, so a theme sets the --theme-phone-menu-* values. Bootstrap's .text-dark is !important. */
#offcanvasNavbar {
    --bs-offcanvas-bg: var(--theme-phone-menu-bg, #fff);
    background-color: var(--theme-phone-menu-bg, #fff);
    color: var(--theme-phone-menu-text, #212529) !important;
}

#offcanvasNavbar .btn-close {
    filter: var(--theme-phone-menu-close-filter, none);
}

.mobile-menu__sections,
.mobile-menu__section,
.mobile-menu__utility,
.mobile-menu__all-link--spaced {
    border-color: var(--theme-phone-menu-line, #ececec);
}

.mobile-menu__toggle,
.mobile-menu__utility a {
    background: transparent;
    color: var(--theme-phone-menu-text, #2f3743);
}

.mobile-menu__toggle i,
.mobile-menu__toggle:not(.collapsed):not([class*="mobile-menu__toggle--"]),
.mobile-menu__toggle:not(.collapsed):not([class*="mobile-menu__toggle--"]) i {
    color: var(--theme-phone-menu-accent, var(--clr-brand, #d93d88));
}

.mobile-menu__panel a {
    color: var(--theme-phone-menu-link, #2f3743);
}

.mobile-menu__panel a:hover,
.mobile-menu__panel a:focus,
.mobile-menu__utility a:hover,
.mobile-menu__utility a:focus {
    background: var(--theme-phone-menu-tint, #fdeaf3);
    color: var(--theme-phone-menu-accent, var(--clr-brand, #d93d88));
}

#offcanvasNavbar .mobile-menu__all-link {
    color: var(--theme-phone-menu-accent, var(--clr-brand, #d93d88)) !important;
}

.mobile-menu__subheading {
    color: var(--theme-phone-menu-subheading, #1ea199);
}

/* A theme's own promo styles (festive, sale) load later and win. */
.mobile-menu__promo {
    background: var(--theme-phone-menu-tint, #fdeaf3);
    color: var(--theme-phone-menu-accent, var(--clr-brand, #d93d88));
}
