/* Seasonal shell adapts to Centro de Copiado's header and mobile dock. */
.cc-christmas-season .cc-header { height: 88px; }
.cc-christmas-season .cc-header__inner { height: 62px; top: 26px; }
.cc-header > .cc-christmas { background: #f4f1ed; height: 26px; }
.cc-christmas-season .cc-mobile-menu { padding-top: 38px; }
.cc-christmas-season .cc-footer,
.cc-christmas-season .site-footer,
.cc-christmas-season .cc-highlights,
.cc-christmas-season .cc-quote { position: relative; }
.cc-christmas-season .cc-footer,
.cc-christmas-season .cc-highlights,
.cc-christmas-season .cc-quote { padding-top: 76px !important; }
.cc-christmas-season #csdc-close { z-index: 5; }
@media (max-width: 750px) {
    .cc-christmas-season .cc-header { height: 78px; }
    .cc-christmas-season .cc-header__inner { height: 52px; }
    .cc-christmas-season .cc-header .cc-christmas__bulb:nth-child(n + 17) { display: none; }
    .cc-christmas-season .cc-footer,
    .cc-christmas-season .cc-highlights,
    .cc-christmas-season .cc-quote { padding-top: 60px !important; }
}

/* Transparent ornaments sit directly over the campaign artwork. */
.cc-popup-christmas {
    position: absolute;
    inset: 0 0 auto;
    z-index: 4;
    height: 26px;
    width: 100%;
    pointer-events: none;
    user-select: none;
    background-image: url('../images/christmas-poinsettia.svg'), url('../images/christmas-poinsettia.svg'), url('../images/christmas-garland.svg');
    background-position: 2px center, right 48px center, center top;
    background-size: 24px 24px, 24px 24px, auto 26px;
    background-repeat: no-repeat, no-repeat, repeat-x;
}

.cc-christmas-scene { display: none; }
@media (min-width: 1280px) {
    .cc-christmas-scene { display: block; position: absolute; left: calc(100% + 12px); top: -3px; width: 112px; height: 70px; pointer-events: none; }
    .cc-christmas-scene img { display: block; width: 100%; height: 100%; object-fit: contain; }
}

.cc-christmas {
    position: absolute;
    inset: 0 0 auto;
    height: 36px;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    contain: layout paint;
}

.cc-christmas__lights {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    position: absolute;
    inset: 0;
    padding: 0 8px;
}

.cc-christmas__lights::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 10px;
    border-top: 2px solid #274e3d;
    border-radius: 50%;
}

.cc-christmas__bulb {
    --bulb-color: #ffd51a;
    position: relative;
    flex: 0 0 8px;
    height: 13px;
    margin-top: 7px;
    border-radius: 45% 45% 50% 50%;
    background: var(--bulb-color);
    box-shadow: inset -2px -2px 2px #0002, 0 0 5px var(--bulb-color);
    transform: rotate(12deg);
    animation: cc-christmas-colors 4.8s steps(1, end) infinite;
}

.cc-christmas__bulb::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    top: -4px;
    left: 1.5px;
    border-radius: 1px;
    background: #274e3d;
}

.cc-christmas__bulb::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: radial-gradient(ellipse, var(--bulb-color), transparent 70%);
    opacity: .25;
    animation: cc-christmas-glow 3.6s ease-in-out infinite alternate;
}

.cc-christmas__bulb:nth-child(4n + 2) { --bulb-color: #f52b25; animation-delay: -1.2s; transform: rotate(-12deg); }
.cc-christmas__bulb:nth-child(4n + 3) { --bulb-color: #16bd35; animation-delay: -2.4s; }
.cc-christmas__bulb:nth-child(4n) { --bulb-color: #164bff; animation-delay: -3.6s; transform: rotate(-8deg); }
.cc-christmas__bulb:nth-child(3n)::after { animation-delay: -1.2s; }
.cc-christmas__bulb:nth-child(3n + 1)::after { animation-delay: -2.4s; }
.cc-christmas__bulb:nth-child(even) { margin-top: 11px; }

/* Discrete values keep every frame strictly red, green, blue or yellow. */
.cc-christmas--lights .cc-christmas__bulb::after {
    animation: none;
    opacity: .85;
}
@keyframes cc-christmas-colors {
    0%, 100% { --bulb-color: #ffd51a; }
    25% { --bulb-color: #f52b25; }
    50% { --bulb-color: #16bd35; }
    75% { --bulb-color: #164bff; }
}

.cc-christmas-snow {
    position: fixed;
    inset: 0;
    z-index: 60;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
    contain: strict;
}
.cc-christmas-snow__flake {
    position: absolute;
    top: -20px;
    left: var(--snow-left);
    width: var(--snow-size);
    height: var(--snow-size);
    border-radius: 50%;
    background: #fff;
    border: 1px solid #9cabbc70;
    box-shadow: 0 1px 4px #5a71894d, 0 0 5px #fff9;
    opacity: var(--snow-opacity);
    animation: cc-christmas-snowfall var(--snow-duration) linear var(--snow-delay) infinite;
}
.cc-christmas-snow__flake:nth-child(4n) {
    background: none;
    border: 0;
    box-shadow: none;
}
.cc-christmas-snow__flake:nth-child(4n)::before {
    content: '\2744';
    position: absolute;
    inset: -5px;
    color: #fff;
    font: calc(var(--snow-size) * 2.4)/1 Arial, sans-serif;
    text-shadow: 0 1px 2px #536c87b3, 0 0 2px #fff;
}
@keyframes cc-christmas-snowfall {
    from { transform: translate3d(0, -12px, 0); }
    to { transform: translate3d(var(--snow-drift), calc(100vh + 36px), 0); }
}

.cc-christmas-snowbank,
.cc-christmas-snow-clear { display: none; }
@media (max-width: 750px) {
    .cc-christmas-snowbank {
        display: block;
        position: absolute;
        inset: auto 0 0;
        height: var(--snow-depth, 0px);
        background: url('../images/christmas-snowbank.svg') center bottom / 100% 100% no-repeat;
        filter: drop-shadow(0 -1px 2px #73879c55);
        pointer-events: none;
        transition: height .35s ease-out;
    }
    .cc-christmas-snow-clear:not([hidden]) {
        display: block;
        position: fixed;
        right: 12px;
        left: auto;
        bottom: var(--cc-snow-dock, 0px);
        z-index: 61;
        max-width: calc(100vw - 24px);
        min-height: 44px;
        box-sizing: border-box;
        border: 0;
        border-radius: 0;
        padding: 28px 0 4px;
        background: transparent;
        color: #64748b;
        box-shadow: none;
        text-align: right;
        text-shadow: 0 1px 2px #ffffffe6;
        font: 400 10px/1.2 system-ui, sans-serif;
        cursor: pointer;
    }
    .cc-christmas-snow-clear:focus-visible { outline: 3px solid #4d8b36; outline-offset: 3px; }
}
.cc-christmas-snowburst { position: absolute; inset: auto 0 0; height: 1px; pointer-events: none; }
.cc-christmas-snowburst span {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 2px #718aa3;
    animation: cc-christmas-snow-scatter 1s ease-out both;
}
@keyframes cc-christmas-snow-scatter {
    from { transform: translate(0, 0); opacity: 1; }
    to { transform: translate(var(--burst-x), var(--burst-y)); opacity: 0; }
}

.cc-christmas--garland {
    height: 68px;
    background: url('../images/christmas-garland.svg') repeat-x center top / 360px 68px;
}
.cc-christmas--garland .cc-christmas__lights { top: 22px; padding: 0 18px; }
.cc-christmas--garland .cc-christmas__lights::before { display: none; }
.cc-christmas--garland .cc-christmas__bulb { width: 6px; height: 9px; flex-basis: 6px; }
.cc-christmas--garland .cc-christmas__bulb:nth-child(odd) { margin-top: 0; }

@keyframes cc-christmas-glow {
    from { opacity: .18; }
    to { opacity: .85; }
}

@media (max-width: 750px) {
    .cc-popup-christmas { height: 18px; background-size: 18px 18px, 18px 18px, auto 18px; background-position: 0 center, right 44px center, center top; }
    .cc-christmas-snow__flake:nth-child(n + 33) { display: none; }
    .cc-christmas--lights { height: 28px; }
    .cc-christmas__bulb:nth-child(n + 19) { display: none; }
    .cc-christmas--garland { height: 50px; background-size: 265px 50px; }
    .cc-christmas--garland .cc-christmas__lights { top: 13px; }
    .cc-christmas--garland .cc-christmas__bulb:nth-child(n + 13) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-christmas-snow-clear:not([hidden]) { display: none; }
    .cc-christmas-snow { display: none; }
    .cc-christmas__bulb { animation: none; }
    .cc-christmas--lights .cc-christmas__bulb::after,
    .cc-christmas__bulb::after { animation: none; opacity: .4; }
}

@media print {
    .cc-christmas,
    .cc-christmas-mobile-lights,
    .cc-popup-christmas,
    .cc-christmas-scene,
    .cc-christmas-snow-clear,
    .cc-christmas-snow { display: none; }
}

@media (max-width: 750px) {
    .cc-christmas-snowbank, .cc-christmas-snowburst { bottom: var(--cc-snow-dock, 0px); }
    .cc-christmas-snow-clear:not([hidden]) { bottom: var(--cc-snow-dock, 0px); }
}
