/* Keep one scene behind the storefront while sections scroll across it. */
body.ubs-christmas-enabled {
 --ubs-xmas-admin-offset:0px;
 --ubs-page-gutter:clamp(8px,3vw,54px);
 --ubs-reading-paper:#fffbf4;
 background:#680b12;
 isolation:isolate;
}
body.ubs-christmas-enabled::before {
 content:"";
 position:fixed;
 inset:var(--ubs-xmas-admin-offset) 0 0;
 z-index:-1;
 pointer-events:none;
 background:#680b12 var(--ubs-season-paper,url('trystan-christmas.jpg')) center top / cover no-repeat;
}
body.ubs-christmas-enabled.admin-bar {--ubs-xmas-admin-offset:32px}
body.ubs-christmas-enabled .wp-site-blocks {
 background:transparent !important;
 padding:clamp(48px,8vw,128px) var(--ubs-page-gutter) clamp(24px,5vw,80px);
 box-sizing:border-box;
}
body.ubs-christmas-enabled .wp-site-blocks :is(main,footer.wp-block-template-part,.ubs-footer,.uslm-brand-wall) {
 background:var(--ubs-reading-paper) !important;
 color:#20372e;
}
body.ubs-christmas-enabled .wp-site-blocks > main {
 border-radius:14px;
 box-shadow:0 2px 14px #36060d33;
}
/* Printer libraries use both the managed video grid and the block pattern. */
body.ubs-christmas-enabled .wp-site-blocks main:has(:is(.uslm-video-library,.usl-video-library)) {
 background:transparent !important;
 box-shadow:none;
}
body.ubs-christmas-enabled .wp-site-blocks :is(.uslm-video-library,.usl-video-library) {
 background:transparent;
}
body.ubs-christmas-enabled main.usl-shop :is(.wp-block-term-description,.term-description) {
 color:#fff;
 background:#580e1c;
 width:fit-content;
 max-width:100%;
 box-sizing:border-box;
 padding:.45em .8em;
 border-radius:8px;
}
body.ubs-christmas-enabled main.usl-shop :is(.wp-block-term-description,.term-description) :is(p,span,li,a) {
 color:inherit;
}
/* Keep equal space above and below the last homepage banner. */
body.ubs-christmas-enabled #ubs-main:has(> .ubs-band:last-child) {
 --ubs-band-gap:clamp(20px,3vw,36px);
 padding-bottom:var(--ubs-band-gap);
}
body.ubs-christmas-enabled #ubs-main > .ubs-band:last-child {
 margin-block:var(--ubs-band-gap) 0;
 margin-inline:auto;
 width:calc(100% - 2 * var(--usl-gutter,20px));
 box-sizing:border-box;
}
/* Extend only the navigation strip beyond the content gutters. */
body.ubs-christmas-enabled header.wp-block-template-part > nav.ubs-nav {
 margin-inline:calc(-1 * var(--ubs-page-gutter)) !important;
 max-width:none;
 width:auto;
}
/* Expose the scene through the ancestors of the three storefront product grids. */
body.ubs-christmas-enabled .wp-site-blocks :is(main,.wp-block-group,.usl-showcase,.usl-home-popular,.usl-product-tabs,.ubs-ppanels,.ubs-ppanel,.usl-retail,.usl-listing):has(:is(.usl-compact-products,.ubs-products,.wc-block-product-template)),
body.ubs-christmas-enabled .wp-site-blocks :is(main.usl-shop,.usl-shop-tools,.usl-compact-products,.ubs-products,.wc-block-product-template) {
 background:transparent !important;
 box-shadow:none;
}
body.ubs-christmas-enabled .wp-site-blocks .usl-listing {
 backdrop-filter:none;
 -webkit-backdrop-filter:none;
 border-color:transparent;
}
body.ubs-christmas-enabled :is(.usl-listing-title,.usl-listing-bar,.usl-subcategory-list,.usl-shop-tools > form,.usl-shop-tools > h2,.usl-shop-tools > .widget,.usl-detail-intro,.wp-block-woocommerce-product-details,.usl-home-depts,.usl-home-finder,.ubs-section) {
 background:var(--ubs-reading-paper);
 color:#20372e;
 border-radius:12px;
}
body.ubs-christmas-enabled :is(.usl-listing-title,.usl-shop-tools > form,.usl-shop-tools > h2,.usl-subcategory-list) {
 padding:10px 14px;
 box-sizing:border-box;
}
body.ubs-christmas-enabled .usl-shop-tools > h2:has(+form) {margin-bottom:0;border-radius:12px 12px 0 0}
body.ubs-christmas-enabled .usl-shop-tools > h2 + form {margin-top:0;border-radius:0 0 12px 12px}
body.ubs-christmas-enabled :is(.woocommerce-breadcrumb,.woocommerce-pagination,.usl-home-popular > h2,.wp-block-woocommerce-product-collection > h2,.ubs-more,.usl-slide-controls output) {
 background:var(--ubs-reading-paper);
 color:#20372e;
 width:fit-content;
 max-width:100%;
 border-radius:9px;
 padding:5px 10px;
}
body.ubs-christmas-enabled :is(.usl-compact-products,.ubs-products,.wc-block-product-template) > li {
 background-color:#fffdf8;
 box-shadow:0 4px 14px #31040c33;
}
body.ubs-christmas-enabled .ubs-header {
 background:transparent !important;
}
body.ubs-christmas-enabled :is(.ubs-header .ubs-logo a,.uslm-footer .uslm-identity) {
 box-sizing:border-box;
 background:linear-gradient(#fff,#fff9ec);
 padding:4px 6px;
 border:1px solid #bd9555;
 border-radius:12px;
 box-shadow:0 0 0 2px #fff8,0 3px 10px #3c071833;
}
body.ubs-christmas-enabled .ubs-header .ubs-icons {
 background:#fffaf1;
 color:#60172b;
 border-radius:12px;
 padding:4px 10px;
}
body.ubs-christmas-enabled .ubs-header .ubs-icons a {color:#70182b}
body.ubs-christmas-enabled .ubs-header form:has(input:is([type=search],[name=s])) {
 background:#fffdf8 !important;
 color:#21392f;
 border-radius:14px;
}
body.ubs-christmas-enabled .ubs-header input:is([type=search],[name=s]) {
 background:#fffdf8 !important;
 color:#21392f !important;
}
body.ubs-christmas-enabled .ubs-header input::placeholder {color:#505d57;opacity:1}
@media(max-width:480px){
 body.ubs-christmas-enabled .ubs-header .ubs-icons {padding:3px 5px}
}
@media(max-width:782px){body.ubs-christmas-enabled.admin-bar {--ubs-xmas-admin-offset:46px}}
@media(orientation:portrait){
 body.ubs-christmas-enabled::before {
  background-size:cover;
  background-color:#780f18;
 }
}
body.ubs-christmas-enabled :is(.usl-home-depts,.usl-home-popular){color:#20372e}
body.ubs-christmas-enabled :is(.usl-home-depts,.usl-home-popular)>h2,
body.ubs-christmas-enabled .usl-circle-grid a,
body.ubs-christmas-enabled .ubs-more a,
body.ubs-christmas-enabled .usl-slide-controls output {color:#20372e}
body.ubs-christmas-enabled .ubs-nav {background:#103f31}
body.ubs-christmas-enabled .ubs-nav a {color:white}
body.ubs-christmas-enabled .ubs-nav .wp-block-navigation__submenu-container {background:#103f31;color:white}
body.ubs-christmas-enabled .ubs-header .ubs-logo {
 flex:0 0 clamp(205px,22vw,322px);
 width:clamp(205px,22vw,322px);
 max-width:100%;
}
body.ubs-christmas-enabled .ubs-header .ubs-logo a {display:block;width:100%}
/* Let the uploaded artwork supply its own aspect ratio. */
body.ubs-christmas-enabled .ubs-header .ubs-logo a {
 background:#fff;
 padding:3px 5px;
}
body.ubs-christmas-enabled .ubs-header .ubs-logo img {
 content:var(--ubs-season-logo,url('santa-wordmark.png'));
 display:block;
 width:100% !important;
 height:auto !important;
 max-width:100%;
 aspect-ratio:auto;
 object-fit:contain;
 object-position:center;
 background:none;
}
body.ubs-christmas-enabled .uslm-footer .uslm-identity img {
 display:block;
 width:100% !important;
 max-width:100%;
 height:auto !important;
 aspect-ratio:952/196;
 object-position:-99999px -99999px;
 background:var(--ubs-season-logo,url('santa-wordmark.png')) left center / contain no-repeat;
}
@media(min-width:701px){
 body.ubs-christmas-enabled .ubs-header .usl-search-shell {flex:1 1 0;min-width:0}
}
@media(max-width:700px){
 body.ubs-christmas-enabled .ubs-header .ubs-logo {width:min(60vw,248px);flex-basis:min(60vw,248px)}
}
/* WordPress flow spacing also applies to injected children and adjacent grid items. */
body.ubs-christmas-enabled .ubs-xmas-cap,
body.ubs-christmas-enabled .usl-thresholds > .usl-threshold {margin-block:0 !important}
body.ubs-christmas-decor :is(.usl-threshold,.usl-contact-card){
 background:#fffdf8;color:#20372e;border:1px solid #c7ae7e;border-top:3px solid #28634b;
}
body.ubs-christmas-decor .ubs-band{
 background:linear-gradient(110deg,#143c31,#21503e);
 color:#fff;box-shadow:inset 0 0 0 1px #c7ae7e;
}
body.ubs-christmas-decor .ubs-band::before{background:#c7ae7e}
body.ubs-christmas-enabled .ubs-xmas-card {position:relative;background-color:#fffdf8;color:#20372e;box-shadow:inset 0 0 0 1px #a47c3b,0 0 0 1px #176047}
body.ubs-christmas-enabled .ubs-xmas-card :is(h2,h3,h2 a,h3 a,.ubs-count,.usl-maker){color:#20372e}
body.ubs-christmas-enabled .ubs-xmas-card :is(.ubs-price,.price,.woocommerce-Price-amount){color:#93132e}
body.ubs-christmas-enabled .ubs-xmas-banner {position:relative;box-shadow:0 0 0 2px #1b6149,0 0 0 4px #eac477}
body.ubs-christmas-enabled .ubs-xmas-cap {display:block;position:absolute;inset:0;pointer-events:none;border-radius:inherit;overflow:hidden;z-index:2}
body.ubs-christmas-enabled .ubs-xmas-cap::before {content:'';position:absolute;inset:0 0 auto;height:7px;background:url('snow-cap.svg') top / 100% 100% no-repeat;transform-origin:top}
body.ubs-christmas-enabled .ubs-xmas-cap::after {content:'';position:absolute;inset:auto 0 0;height:3px;background:repeating-linear-gradient(120deg,#ae233d 0 7px,#fff7db 7px 12px,#1d624b 12px 19px,#fff7db 19px 24px)}
@media(prefers-reduced-motion:no-preference){
 body.ubs-christmas-snow .ubs-xmas-cap::before {animation:ubs-settle 25s ease-out both;animation-play-state:var(--ubs-snow-play,running)}
}
@keyframes ubs-settle {from{transform:scaleY(.12)}to{transform:scaleY(1)}}
body.ubs-christmas-enabled .ubs-xmas-controls {position:fixed;right:8px;bottom:8px;z-index:990}
body.ubs-christmas-enabled .ubs-xmas-snow-toggle {background:#134332;color:white;border:1px solid #d9bd83;border-radius:24px;min-height:40px;padding:4px 6px;cursor:pointer}
body.ubs-christmas-enabled [hidden].ubs-xmas-snow,body.ubs-christmas-enabled [hidden].ubs-xmas-snow-toggle {display:none}
@media print {body.ubs-christmas-enabled :is(.ubs-xmas-controls,.ubs-xmas-snow,.ubs-xmas-cap,.ubs-xmas-lights){display:none}}
body.ubs-christmas-enabled .ubs-xmas-lights {
  position: fixed;
  top: var(--ubs-xmas-admin-offset);
  left: 0; right: 0;
  height: 14px;
  z-index: 9990;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 13px 8px, #f5d983 0 3px, #a17a31 3px 3.6px, transparent 4px) 0 0 / 72px 14px repeat-x,
    radial-gradient(ellipse at 37px 8px, #bf3448 0 3px, #81162a 3px 3.6px, transparent 4px) 0 0 / 72px 14px repeat-x,
    radial-gradient(ellipse at 61px 8px, #3b9272 0 3px, #15543e 3px 3.6px, transparent 4px) 0 0 / 72px 14px repeat-x,
    linear-gradient(#315944,#315944) 0 0 / 100% 2px no-repeat;
}
body.ubs-christmas-enabled .ubs-xmas-snow {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 40;
  pointer-events: none;
  user-select: none;
}

body.ubs-christmas-enabled nav.ubs-nav :is(a,.wp-block-navigation-item__label,.wp-block-navigation-item__content){color:#fff !important}
body.ubs-christmas-enabled nav.ubs-nav a:hover {text-decoration:underline}
body.ubs-christmas-enabled .ubs-xmas-controls:has(.ubs-xmas-snow-toggle[hidden]) {display:none}
@media (prefers-reduced-motion:reduce){body.ubs-christmas-enabled .ubs-xmas-snow{display:none}}

/* Reserve narrow strips inside the card perimeter for the supplied artwork. */
body.ubs-christmas-enabled .ubs-xmas-card:not(.usl-circle-art,.ubs-products > li,.uslm-brand-wall a) {
 padding-block-start:max(20px,1.25rem);
 padding-block-end:max(17px,1rem);
 box-sizing:border-box;
}
body.ubs-christmas-enabled .ubs-xmas-cap.ubs-xmas-art::before,
body.ubs-christmas-enabled .ubs-xmas-cap.ubs-xmas-art::after {
  content:''; position:absolute; left:0; right:0; width:auto;
  background-position:center; background-repeat:no-repeat; background-size:100% 100%;
  pointer-events:none;
}
body.ubs-christmas-enabled .ubs-xmas-cap.ubs-xmas-art::before {
  top:0; bottom:auto;height:min(12%,18px);background-image:url('ribbon.png');
  animation:none;transform:none;
}
body.ubs-christmas-enabled .ubs-xmas-cap.ubs-xmas-art::after {
  bottom:0;top:auto;height:min(10%,15px);background-image:url('gifts.png');
}
body.ubs-christmas-enabled .ubs-xmas-banner > .ubs-xmas-art::before,
body.ubs-christmas-enabled .ubs-xmas-banner > .ubs-xmas-art::after {
  height:min(6%,22px);background-size:min(100%,220px) 100%;
  background-repeat:repeat-x;
}
body.ubs-christmas-enabled .ubs-xmas-art > i {
 position:absolute;inset:0 0 auto;height:5px;z-index:1;
 background:url('snow-cap.svg') top / 100% 100% no-repeat;
 transform-origin:top;
}
@media(prefers-reduced-motion:no-preference){
 body.ubs-christmas-snow .ubs-xmas-art > i {animation:ubs-settle 25s ease-out both;animation-play-state:var(--ubs-snow-play,running)}
}
