/* Christmas accents for the shared header, footer, homepage and Ask Alice. */
:is(.ad-site-header, .ad-site-header.is-scrolled) {
    background-image: linear-gradient(105deg, #fff1f4a6, transparent 30%, transparent 74%, #e4f4edb3);
}

.ad-site-header::before {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, #ad2048 0 23%, #d5ab67 23% 25%, #25735c 25% 75%, #d5ab67 75% 77%, #ad2048 77%);
    content: '';
    pointer-events: none;
}

.ad-site-header__brand { position: relative; }

.ad-site-header__brand::before {
    position: absolute;
    z-index: 1;
    top: -17px;
    left: -9px;
    width: 33px;
    height: 26px;
    background: url('../images/seasonal/christmas-hat.svg') center / contain no-repeat;
    content: '';
    pointer-events: none;
    transform: rotate(-16deg);
}

.ad-site-footer.ad-footer {
    background:
        radial-gradient(ellipse at 87% 6%, #213f37, transparent 53%),
        radial-gradient(ellipse at 10% 0, #33234b, transparent 62%),
        #171127;
}

.ad-footer__group--emergency::after {
    display: block;
    width: min(100%, 230px);
    aspect-ratio: 7 / 2;
    margin-block-start: 6px;
    margin-inline-start: auto;
    background: url('../images/seasonal/christmas-footer.svg') right bottom / contain no-repeat;
    content: '';
    pointer-events: none;
}

html:not([data-ad-contrast]) .ad-support-chat__launcher {
    border-color: #d9a9b4;
    background: linear-gradient(120deg, #fff4f6, #fff 60%, #f0f9f4);
}

html[data-astley-theme="dark"]:not([data-ad-contrast]) .ad-support-chat__launcher {
    border-color: #9b6a84;
    background: linear-gradient(120deg, #39213c, #202e3d 62%, #1b3c36);
}

html:not([data-ad-contrast]) .ad-support-chat__header {
    background:
        radial-gradient(ellipse at 88% 0%, #458b70a8, transparent 70%),
        linear-gradient(115deg, #2d1847, #262d45 54%, #1c483c);
}

html:not([data-ad-contrast]) :is(.ad-support-chat__launcher-icon, .ad-support-chat__brand) {
    position: relative;
    overflow: visible !important;
    border-color: #e4bf87;
}

.ad-support-chat__brand img { border-radius: 50%; }

html:not([data-ad-contrast]) :is(.ad-support-chat__launcher-icon, .ad-support-chat__brand)::after {
    position: absolute;
    z-index: 1;
    inset-block-end: calc(100% - 8px);
    left: 50%;
    width: 95%;
    aspect-ratio: 39 / 31;
    background: url('../images/seasonal/christmas-hat.svg') center / contain no-repeat;
    content: '';
    pointer-events: none;
    transform: translateX(-50%) rotate(-8deg);
}

.ad-support-chat__brand::after { margin-block-end: -7px; }

#content.ad-home .ad-home-cinematic {
    background:
        radial-gradient(ellipse at 85% 0%, #1c574941, transparent 62%),
        radial-gradient(ellipse at 12% 102%, #48213b 0%, transparent 62%),
        #0b1022;
}

@media (prefers-reduced-motion: no-preference) {
    html:not([data-ad-motion], [data-ad-contrast]) .ad-home-cinematic__art { overflow: hidden; }

    html:not([data-ad-motion], [data-ad-contrast]) :is(.ad-home-cinematic__art, .ad-home-cinematic__rack)::before {
        --snow-tile: 250px;
        --snow-speed: 12s;
        position: absolute;
        z-index: 1;
        inset: calc(-1 * var(--snow-tile)) 0 0;
        background: url('../images/seasonal/christmas-snow.svg') 0 0 / var(--snow-tile) var(--snow-tile) repeat;
        animation: ad-festive-snowfall var(--snow-speed) linear infinite;
        pointer-events: none;
        content: '';
    }

    html:not([data-ad-motion], [data-ad-contrast]) .ad-home-cinematic__rack::before {
        --snow-tile: 365px;
        --snow-speed: 20s;
        background-position: 94px 70px;
        opacity: .55;
    }
}

@keyframes ad-festive-snowfall {
    to { transform: translateY(var(--snow-tile)); }
}

@media (max-width: 580px) {
    .ad-site-header__brand::before {
        top: -14px;
        left: -7px;
        width: 27px;
        height: 22px;
    }
}

[data-ad-contrast] .ad-site-header::before,
[data-ad-contrast] .ad-site-header__brand::before,
[data-ad-contrast] .ad-footer__group--emergency::after,
[data-ad-compact] .ad-footer__group--emergency::after { display: none; }

[data-ad-contrast] .ad-site-footer.ad-footer { background: var(--ad-contrast-canvas); }

@media (forced-colors: active) {
    .ad-site-header::before,
    .ad-site-header__brand::before,
    .ad-footer__group--emergency::after,
    html:not([data-ad-contrast]) :is(.ad-support-chat__launcher-icon, .ad-support-chat__brand)::after,
    :is(.ad-home-cinematic__art, .ad-home-cinematic__rack)::before { display: none; }
}
