/* Use the Christmas Deals palette on the header utility bar. */
.swatcom-design.swatcom-header .sc-utility-bar {
    background-color: #d90027;
    color: #fff;
}

.swatcom-design.swatcom-header .sc-utility-bar,
.swatcom-design.swatcom-header .sc-utility-bar .sc-sub-menu {
    --sc-selection-background: #fff;
    --sc-selection-color: #b90022;
}

.swatcom-design.swatcom-header .sc-utility-bar :is(.sc-header-offer, .sc-header-utility-text, .sc-social-link),
.swatcom-design.swatcom-header .sc-utility-bar .sc-nav--utility :is(a, .sc-submenu-toggle),
.swatcom-design.swatcom-header .sc-utility-bar .sc-nav--utility li:is(:hover, :focus-within) > :is(a, .sc-submenu-toggle) {
    color: #fff;
}

.swatcom-design.swatcom-header .sc-utility-bar .sc-header-offer:is(:hover, :focus-visible),
.swatcom-design.swatcom-header .sc-utility-bar .sc-nav--utility a:is(:hover, :focus-visible) {
    color: #fff;
    text-decoration: underline !important; /* Header suppresses link underlines by default. */
    text-underline-offset: 0.2em;
}

.swatcom-design.swatcom-header .sc-utility-bar .sc-social-link:is(:hover, :focus-visible) {
    background-color: #fff;
    color: #b90022;
}

.swatcom-design.swatcom-header .sc-utility-bar :is(a, button):focus-visible {
    outline-color: #fff;
}

.swatcom-design.swatcom-header .sc-utility-bar .sc-nav--utility {
    --sc-menu-hover: rgb(0 0 0 / 18%);
}

.swatcom-design.swatcom-header .sc-utility-bar .sc-sub-menu {
    background-color: #b90022;
}

.swatcom-design.swatcom-header .sc-utility-bar .sc-sub-menu,
.swatcom-design.swatcom-header .sc-utility-bar .sc-sub-menu li + li {
    border-color: rgb(255 255 255 / 32%);
}

/* The hero already clips its contents. Its own stacking context puts the snow
   above the colour-changing glow and behind the watermark, product and controls. */
.swatcom-homepage .sc-hero {
    isolation: isolate;
}

.swatcom-homepage .sc-hero::before,
.swatcom-homepage .sc-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: calc(0px - var(--sc-snow-height)) -12px 0;
    pointer-events: none;
    background-repeat: repeat;
    background-size: var(--sc-snow-width) var(--sc-snow-height);
}

.swatcom-homepage .sc-hero::before {
    --sc-snow-width: 282px;
    --sc-snow-height: 218px;
    --sc-snow-drift: 8px;
    opacity: 0.52;
    background-image:
        radial-gradient(circle at 5% 23%, #fff 0.6px, transparent 1.5px),
        radial-gradient(circle at 19% 81%, #fffd 0.6px, transparent 1.6px),
        radial-gradient(circle at 32% 46%, #fff 0.8px, transparent 1.7px),
        radial-gradient(circle at 43% 9%, #fffb 0.5px, transparent 1.3px),
        radial-gradient(circle at 58% 62%, #fff 0.8px, transparent 1.8px),
        radial-gradient(circle at 69% 93%, #fffc 0.6px, transparent 1.4px),
        radial-gradient(circle at 84% 34%, #fff 0.7px, transparent 1.7px),
        radial-gradient(circle at 96% 71%, #fffb 0.5px, transparent 1.5px);
}

.swatcom-homepage .sc-hero::after {
    --sc-snow-width: 397px;
    --sc-snow-height: 279px;
    --sc-snow-drift: -11px;
    opacity: 0.72;
    background-image:
        radial-gradient(circle at 8% 55%, #fff 0.9px, transparent 2.3px),
        radial-gradient(circle at 22% 15%, #fffe 1px, transparent 2.5px),
        radial-gradient(circle at 39% 86%, #fffd 0.8px, transparent 2px),
        radial-gradient(circle at 54% 39%, #fff 1.3px, transparent 3.1px),
        radial-gradient(circle at 71% 11%, #fffd 0.9px, transparent 2.2px),
        radial-gradient(circle at 88% 74%, #fff 1.1px, transparent 2.7px);
}

/* Travel exactly one tile per loop so the last frame joins the first. */
@media (prefers-reduced-motion: no-preference) {
    .swatcom-homepage .sc-hero::before {
        animation: sc-christmas-snowfall 11s linear -5s infinite;
    }

    .swatcom-homepage .sc-hero::after {
        animation: sc-christmas-snowfall 7.5s linear -2s infinite;
    }
}

@keyframes sc-christmas-snowfall {
    from { transform: translate3d(0, 0, 0); }
    50%  { transform: translate3d(var(--sc-snow-drift), calc(var(--sc-snow-height) / 2), 0); }
    to   { transform: translate3d(0, var(--sc-snow-height), 0); }
}
