/*
 * cc_deals: Advent calendar (page /deals/advent/, the large view of a door and the offer of an opened door).
 * Plain CSS, loaded by components/assets_advent.tpl only. Every class starts with cc-deals-; nothing of the theme
 * is restyled. The approved design: the arena photo as a layer that stays in the window while the wall scrolls
 * (a sticky element, never a fixed background), snow in front of everything, the official logo (a plain image:
 * no rule of this file puts a filter, a blend, a mask, a clip, a transform or an opacity on it), the title in
 * Barlow Condensed (font faces: cc-deals.css), then the steel wall with its 24 doors, 4 per row on every screen.
 * One door = the same image files for the 24 doors (img/advent/door-<frame>-<size>.webp), stacked in the button;
 * the attribute data-cc-deals-frame of the door says which frame shows. Numbers and contents are text and markup
 * placed over the images; the content of an opened door is sized from the flat back panel of the locker.
 * Sizes: --cc-deals-cw is the width of one door, derived from the width of the calendar itself (container query
 * units; a fallback in viewport units follows for browsers without them).
 * The only fixed element is the large view (.cc-deals-advent-view), a dialog opened by a click on a door.
 * Motion runs on transform / opacity; with prefers-reduced-motion nothing moves (no snow, no pulse, the frames of
 * a door are swapped at once).
 */

.cc-deals-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cc-deals-text {
  white-space: pre-line;
}

.cc-deals-ribbon__title {
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---- scene ------------------------------------------------------------------------------------------------ */

.cc-deals-advent,
.cc-deals-advent-view {
  --cc-deals-red: #c9181a;
  --cc-deals-led: #ff2228;
  --cc-deals-gold: #e3bf6a;
  --cc-deals-gold-deep: #b8862b;
  --cc-deals-gold-soft: #f3d58a;
  --cc-deals-cream: #efe7d3;
  /* until Barlow Condensed arrives the text stands in a condensed face of the device (Windows and macOS: Impact; iOS:
     Helvetica Neue Condensed; Android: sans-serif-condensed): the title keeps its lines when the font is swapped in */
  --cc-deals-display: "Barlow Condensed", Impact, "HelveticaNeue-CondensedBlack", "Arial Narrow", sans-serif-condensed, sans-serif;
  --cc-deals-step: 130ms;
  color: #f2f0ea;
  font-size: 14px;
  line-height: 1.45;
}

.cc-deals-advent {
  --cc-deals-pad: 12px;
  --cc-deals-gap: 6px;
  /* 4 doors + 3 gaps + the padding and the border of the wall = the width of the calendar */
  --cc-deals-cw: calc((100cqw - 52px) / 4);
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  overflow: clip;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto 30px;
  padding: 0 var(--cc-deals-pad) 64px;
  border-radius: 16px;
  background: #07070a;
}

.cc-deals-advent *,
.cc-deals-advent *::before,
.cc-deals-advent *::after,
.cc-deals-advent-view *,
.cc-deals-advent-view *::before,
.cc-deals-advent-view *::after {
  box-sizing: border-box;
}

/* the arena and the snow stay in the window while the tall wall scrolls: two sticky layers, no fixed background */
.cc-deals-advent__bg,
.cc-deals-advent__snow {
  position: sticky;
  top: 0;
  flex: 0 0 auto;
  align-self: stretch;
  height: 100vh;
  height: 100svh;
  margin: 0 calc(var(--cc-deals-pad) * -1) -100vh;
  margin-bottom: -100svh;
  pointer-events: none;
}

.cc-deals-advent__bg {
  z-index: -2;
  background: #07070a url(img/advent/arena-mobile.webp) center top / cover no-repeat;
}

/* grading only: the photo stays the decor */
.cc-deals-advent__bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.25) 18%, rgba(0, 0, 0, 0.5) 42%, rgba(0, 0, 0, 0.78) 100%);
}

/* haze drifting over the floor, in front of the feet of the wall */
.cc-deals-advent::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: 0;
  left: -10%;
  z-index: 3;
  height: 30%;
  max-height: 60vh;
  background:
    radial-gradient(40% 60% at 22% 70%, rgba(255, 60, 50, 0.1), rgba(255, 60, 50, 0) 70%),
    radial-gradient(46% 70% at 78% 76%, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, 0.55) 100%);
  pointer-events: none;
  animation: cc-deals-haze 16s ease-in-out infinite alternate;
}

@keyframes cc-deals-haze {
  from {
    transform: translateX(-1.5%);
  }

  to {
    transform: translateX(1.5%);
  }
}

/* snow: three depths (far = small and slow, near = larger, soft and faster); the flakes are added by the script */
.cc-deals-advent__snow {
  z-index: 6;
  overflow: hidden;
}

.cc-deals-advent__flake {
  position: absolute;
  top: 0;
  left: var(--cc-deals-x);
  width: var(--cc-deals-s);
  height: var(--cc-deals-s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0) 72%);
  opacity: 0;
  will-change: transform;
  animation: cc-deals-snow var(--cc-deals-d) linear var(--cc-deals-delay) infinite;
}

.cc-deals-advent__flake--near {
  filter: blur(2px);
}

@keyframes cc-deals-snow {
  0% {
    opacity: 0;
    transform: translate3d(0, -4vh, 0);
  }

  8% {
    opacity: var(--cc-deals-o);
  }

  30% {
    transform: translate3d(var(--cc-deals-sway), 30vh, 0);
  }

  60% {
    transform: translate3d(calc(var(--cc-deals-sway) * -0.6), 63vh, 0);
  }

  90% {
    opacity: var(--cc-deals-o);
  }

  100% {
    opacity: 0;
    transform: translate3d(calc(var(--cc-deals-sway) * 0.8), 104vh, 0);
  }
}

/* the tab is hidden: nothing is animated (class set by the script) */
.cc-deals-advent--paused::after,
.cc-deals-advent--paused .cc-deals-advent__flake,
.cc-deals-advent--paused .cc-deals-door__halo,
.cc-deals-advent--paused .cc-deals-door__btn::before {
  animation-play-state: paused;
}

/* ---- head: logo, title, subtitle, status ------------------------------------------------------------------- */

.cc-deals-advent__hero {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding-top: 14px;
  text-align: center;
}

.cc-deals-advent__logo-wrap {
  position: relative;
  max-width: 100%;
}

/* light behind the logo: a separate element, the logo itself is untouched */
.cc-deals-advent__logo-wrap::before {
  content: "";
  position: absolute;
  top: -22%;
  right: -12%;
  bottom: -22%;
  left: -12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.cc-deals-advent__logo {
  display: block;
  width: min(74vw, 300px);
  width: min(74cqw, 300px);
  max-width: 100%;
  height: auto;
  aspect-ratio: 2152 / 612;
}

.cc-deals-advent__title {
  margin: 6px 0 0;
  padding: 0;
  color: #f6f3ec;
  font-family: var(--cc-deals-display);
  font-size: clamp(25px, 7.6vw, 40px);
  font-size: clamp(25px, 7.6cqw, 40px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 26px rgba(0, 0, 0, 0.85), 0 0 46px rgba(201, 24, 26, 0.35);
  overflow-wrap: anywhere;
}

.cc-deals-advent__year {
  color: var(--cc-deals-gold);
  font-weight: 800;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .cc-deals-advent__year {
    background: linear-gradient(180deg, #f6e2a6 0%, var(--cc-deals-gold) 45%, var(--cc-deals-gold-deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.8));
  }
}

.cc-deals-advent__subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin: 6px 0 0;
  color: #ecdcae;
  font-family: var(--cc-deals-display);
  font-size: clamp(10px, 2.75vw, 13px);
  font-size: clamp(10px, 2.75cqw, 13px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000, 0 0 12px #000;
}

.cc-deals-advent__subtitle::before,
.cc-deals-advent__subtitle::after {
  content: "";
  flex: none;
  width: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(227, 191, 106, 0), rgba(227, 191, 106, 0.9));
}

.cc-deals-advent__subtitle::after {
  transform: scaleX(-1);
}

.cc-deals-advent__status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 12px;
  min-height: 34px;
  margin: 10px 0 0;
  padding: 6px 16px;
  border: 1px solid rgba(227, 191, 106, 0.4);
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.cc-deals-advent__next {
  color: var(--cc-deals-gold-soft);
}

.cc-deals-advent__next-label {
  margin-right: 6px;
  color: #d6d6d6;
  font-weight: 400;
}

/* the countdown hides itself at the opening of the door: its lead-in goes with it (a browser without :has() ignores
   this rule and shows the lead-in alone until the page reloads) */
.cc-deals-advent__next:has(> .cc-deals-cd[hidden]) {
  display: none;
}

/* a ticking countdown never moves its neighbours */
.cc-deals-advent .cc-deals-cd__digits,
.cc-deals-offer .cc-deals-cd__digits {
  display: inline-block;
  min-width: 8ch;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-align: left;
}

.cc-deals-advent__intro {
  position: relative;
  z-index: 4;
  max-width: 820px;
  margin: 12px auto 0;
  color: #ece6d6;
  text-align: center;
  text-shadow: 0 1px 0 #000, 0 0 10px #000;
}

.cc-deals-advent__foot {
  position: relative;
  z-index: 4;
  margin: 34px 0 0;
  text-align: center;
}

.cc-deals-advent__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 44px;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: inset 0 0 0 1px rgba(227, 191, 106, 0.6);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.cc-deals-advent__back:hover {
  box-shadow: inset 0 0 0 2px var(--cc-deals-gold);
  color: #fff;
}

.cc-deals-advent__back:focus-visible,
.cc-deals-offer .cc-deals-offer__btn:focus-visible,
.cc-deals-advent-view__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---- the wall --------------------------------------------------------------------------------------------- */

.cc-deals-advent__rig {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

/* red rim light of the arena behind the structure */
.cc-deals-advent__rig::before {
  content: "";
  position: absolute;
  top: -9%;
  right: -14%;
  bottom: -4%;
  left: -14%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 34, 40, 0.3), rgba(255, 34, 40, 0.1) 55%, rgba(255, 34, 40, 0) 100%);
  filter: blur(6px);
  pointer-events: none;
}

/* contact shadow on the wet floor */
.cc-deals-advent__rig::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: calc(var(--cc-deals-cw) * -0.2);
  left: -6%;
  z-index: -1;
  height: calc(var(--cc-deals-cw) * 0.42);
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.cc-deals-advent__wall {
  position: relative;
  padding: 10px 15px 12px;
  border: 2px solid #3a3a42;
  border-radius: calc(var(--cc-deals-cw) * 0.07);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 10%),
    radial-gradient(120% 90% at 50% 0%, rgba(30, 30, 35, 0.94) 0%, rgba(13, 13, 16, 0.95) 55%, rgba(6, 6, 8, 0.97) 100%);
  box-shadow:
    0 0 0 1px #000,
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 0 calc(var(--cc-deals-cw) * 0.4) rgba(0, 0, 0, 0.9),
    0 calc(var(--cc-deals-cw) * 0.2) calc(var(--cc-deals-cw) * 0.5) rgba(0, 0, 0, 0.75);
}

/* steel beams: top and bottom rails with a red light line, rivets on the posts */
.cc-deals-advent__rail {
  position: absolute;
  right: -2px;
  left: -2px;
  height: calc(var(--cc-deals-cw) * 0.085);
  border: 1px solid #000;
  background: linear-gradient(180deg, #4a4a52 0%, #26262b 38%, #101013 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.cc-deals-advent__rail--top {
  top: calc(var(--cc-deals-cw) * -0.05);
  border-radius: 4px 4px 0 0;
}

.cc-deals-advent__rail--bottom {
  bottom: calc(var(--cc-deals-cw) * -0.05);
  border-radius: 0 0 4px 4px;
}

.cc-deals-advent__rail::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12%;
  left: 12%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 34, 40, 0), var(--cc-deals-led) 18%, #ff8a70 50%, var(--cc-deals-led) 82%, rgba(255, 34, 40, 0));
  box-shadow: 0 0 10px 1px rgba(255, 34, 40, 0.8);
  transform: translateY(-50%);
}

.cc-deals-advent__post {
  position: absolute;
  top: -2px;
  bottom: -2px;
  width: calc(var(--cc-deals-cw) * 0.1);
  border: 1px solid #000;
  background:
    radial-gradient(circle at 50% 50%, #8d8d96 0, #8d8d96 18%, #1a1a1e 22%, #1a1a1e 34%, rgba(0, 0, 0, 0) 36%) center top / 100% calc(var(--cc-deals-cw) * 0.55) repeat-y,
    linear-gradient(90deg, #111114 0%, #3a3a41 45%, #17171a 100%);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.cc-deals-advent__post--l {
  left: calc(var(--cc-deals-cw) * -0.05);
  border-radius: 4px 0 0 4px;
}

.cc-deals-advent__post--r {
  right: calc(var(--cc-deals-cw) * -0.05);
  border-radius: 0 4px 4px 0;
}

.cc-deals-advent__leg {
  position: absolute;
  bottom: calc(var(--cc-deals-cw) * -0.17);
  width: calc(var(--cc-deals-cw) * 0.5);
  height: calc(var(--cc-deals-cw) * 0.14);
  border: 1px solid #000;
  border-radius: 0 0 5px 5px;
  background: linear-gradient(180deg, #34343a, #0b0b0d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.cc-deals-advent__leg--l {
  left: 7%;
}

.cc-deals-advent__leg--r {
  right: 7%;
}

/* thin gold corner marks: wide screens only */
.cc-deals-advent__mark {
  display: none;
  position: absolute;
  width: calc(var(--cc-deals-cw) * 0.22);
  height: calc(var(--cc-deals-cw) * 0.22);
  border: 1px solid rgba(227, 191, 106, 0.85);
  filter: drop-shadow(0 0 4px rgba(227, 191, 106, 0.5));
  pointer-events: none;
}

.cc-deals-advent__mark--tl {
  top: calc(var(--cc-deals-cw) * -0.2);
  left: calc(var(--cc-deals-cw) * -0.2);
  border-right: 0;
  border-bottom: 0;
}

.cc-deals-advent__mark--tr {
  top: calc(var(--cc-deals-cw) * -0.2);
  right: calc(var(--cc-deals-cw) * -0.2);
  border-bottom: 0;
  border-left: 0;
}

.cc-deals-advent__mark--bl {
  bottom: calc(var(--cc-deals-cw) * -0.2);
  left: calc(var(--cc-deals-cw) * -0.2);
  border-top: 0;
  border-right: 0;
}

.cc-deals-advent__mark--br {
  right: calc(var(--cc-deals-cw) * -0.2);
  bottom: calc(var(--cc-deals-cw) * -0.2);
  border-top: 0;
  border-left: 0;
}

/* 4 doors per row on every screen: 6 rows, the page scrolls */
.cc-deals-advent__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, var(--cc-deals-cw));
  gap: 7px var(--cc-deals-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- one door --------------------------------------------------------------------------------------------- */

.cc-deals-door {
  position: relative;
  z-index: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the box of the locker: every frame is placed on it, the leaf of an open door overflows to the left */
.cc-deals-door__btn,
.cc-deals-door--big {
  position: relative;
  display: block;
  width: 100%;
  height: calc(var(--cc-deals-cw) * 1.1083);
  aspect-ratio: 480 / 532;
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

@supports (aspect-ratio: 1) {
  .cc-deals-door__btn,
  .cc-deals-door--big {
    height: auto;
  }
}

.cc-deals-door__f,
.cc-deals-door__halo {
  position: absolute;
  top: -9.0226%;
  left: -27.5%;
  width: 137.5%;
  max-width: none;
  height: 118.4211%;
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

/* a frame that leaves waits until the next one is fully in: no flash of the arena between two frames */
.cc-deals-door__f {
  filter: drop-shadow(0 calc(var(--cc-deals-cw) * 0.05) calc(var(--cc-deals-cw) * 0.05) rgba(0, 0, 0, 0.65));
  transition: opacity var(--cc-deals-step) linear var(--cc-deals-step);
}

.cc-deals-door[data-cc-deals-frame="closed"] .cc-deals-door__f--closed,
.cc-deals-door[data-cc-deals-frame="active"] .cc-deals-door__f--active,
.cc-deals-door[data-cc-deals-frame="opening-1"] .cc-deals-door__f--opening-1,
.cc-deals-door[data-cc-deals-frame="opening-2"] .cc-deals-door__f--opening-2,
.cc-deals-door[data-cc-deals-frame="open"] .cc-deals-door__f--open {
  opacity: 1;
  transition-delay: 0s;
}

/* the leaf of an open door passes over its neighbours */
.cc-deals-door[data-cc-deals-frame="open"] {
  z-index: 5;
}

.cc-deals-door__num {
  position: absolute;
  top: 17.38%;
  left: 27.6%;
  display: grid;
  place-items: center;
  width: 44.12%;
  height: 24.95%;
  color: var(--cc-deals-cream);
  font-family: var(--cc-deals-display);
  font-size: calc(var(--cc-deals-cw) * 0.275);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 calc(var(--cc-deals-cw) * 0.06) rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: opacity calc(var(--cc-deals-step) * 2.2) linear;
}

/* decoration fixed by the number of the day, never by the content */
.cc-deals-door__sym {
  position: absolute;
  top: 60%;
  left: 30%;
  width: 17%;
  height: auto;
  aspect-ratio: 1;
  color: var(--cc-deals-cream);
  opacity: 0.5;
  pointer-events: none;
  transition: opacity calc(var(--cc-deals-step) * 2) linear;
}

/* the own picture of a door: a poster on the plate, under the number and beside the latch */
.cc-deals-door__img {
  position: absolute;
  top: 44%;
  left: 28.28%;
  width: 31.67%;
  max-width: none;
  height: 40%;
  border-radius: 6%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.6);
  object-fit: cover;
  opacity: 0.92;
  pointer-events: none;
  transition: opacity calc(var(--cc-deals-step) * 2) linear;
}

/* the state in words: read by screen readers on every door, shown as the red label of the door of the day */
.cc-deals-door__state {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cc-deals-door__teaser {
  display: none;
}

.cc-deals-door[data-cc-deals-frame="open"] .cc-deals-door__num,
.cc-deals-door[data-cc-deals-frame="open"] .cc-deals-door__sym,
.cc-deals-door[data-cc-deals-frame="open"] .cc-deals-door__img,
.cc-deals-door[data-cc-deals-frame^="opening"] .cc-deals-door__num {
  opacity: 0;
}

/* locked: the same door, a little dimmer, so that the door of the day leads */
.cc-deals-door--locked .cc-deals-door__f--closed {
  filter: brightness(0.72) saturate(0.62) drop-shadow(0 calc(var(--cc-deals-cw) * 0.05) calc(var(--cc-deals-cw) * 0.05) rgba(0, 0, 0, 0.65));
  transition: filter 200ms linear, opacity var(--cc-deals-step) linear var(--cc-deals-step);
}

.cc-deals-door--locked .cc-deals-door__num {
  color: #d9d2c0;
}

/* special days: gold light instead of red, a filter on the door image only */
.cc-deals-door--special .cc-deals-door__f {
  filter: hue-rotate(36deg) saturate(1.2) brightness(1.06) drop-shadow(0 calc(var(--cc-deals-cw) * 0.05) calc(var(--cc-deals-cw) * 0.05) rgba(0, 0, 0, 0.65));
}

.cc-deals-door--special .cc-deals-door__num {
  color: var(--cc-deals-gold-soft);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 calc(var(--cc-deals-cw) * 0.1) rgba(227, 191, 106, 0.55);
}

.cc-deals-door--special .cc-deals-door__sym {
  color: var(--cc-deals-gold-soft);
  opacity: 0.8;
}

/* the door of the day: the lit frame, its halo as a separate layer that pulses, a gold ring, the label */
.cc-deals-door--available .cc-deals-door__btn {
  cursor: pointer;
}

.cc-deals-door__halo {
  transition: opacity 240ms linear;
}

.cc-deals-door--available[data-cc-deals-frame="active"] .cc-deals-door__halo,
.cc-deals-door--big[data-cc-deals-frame="active"] .cc-deals-door__halo {
  opacity: 1;
  animation: cc-deals-halo 2.4s ease-in-out infinite;
}

@keyframes cc-deals-halo {
  0%,
  100% {
    opacity: 1;
    transform: scale(1.012);
  }

  50% {
    opacity: 0.5;
    transform: scale(1);
  }
}

.cc-deals-door--available .cc-deals-door__btn::before {
  content: "";
  position: absolute;
  top: -5%;
  right: -4%;
  bottom: -5%;
  left: -4%;
  border-radius: 12%;
  box-shadow: 0 0 0 1px rgba(227, 191, 106, 0.65), 0 0 calc(var(--cc-deals-cw) * 0.16) rgba(227, 191, 106, 0.5), inset 0 0 calc(var(--cc-deals-cw) * 0.1) rgba(227, 191, 106, 0.22);
  opacity: 0;
  pointer-events: none;
}

.cc-deals-door--available[data-cc-deals-frame="active"] .cc-deals-door__btn::before {
  opacity: 1;
  animation: cc-deals-ring 2.4s ease-in-out infinite;
}

@keyframes cc-deals-ring {
  0%,
  100% {
    opacity: 0.95;
  }

  50% {
    opacity: 0.35;
  }
}

.cc-deals-door--available .cc-deals-door__num,
.cc-deals-door--big[data-cc-deals-frame="active"] .cc-deals-door__num {
  color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9), 0 0 calc(var(--cc-deals-cw) * 0.12) rgba(255, 60, 50, 0.85);
}

.cc-deals-door--available[data-cc-deals-frame="active"] .cc-deals-door__state {
  top: 68%;
  left: 50%;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.28em 0.8em 0.26em;
  overflow: visible;
  clip: auto;
  border: 1px solid rgba(255, 220, 160, 0.7);
  border-radius: 99px;
  background: linear-gradient(180deg, #e0262a, #a31114);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 34, 40, 0.6);
  color: #fff;
  font-family: var(--cc-deals-display);
  font-size: calc(var(--cc-deals-cw) * 0.115);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  transform: translateX(-50%);
}

/* the deal of the day is sold out: the door can still be opened, without the call of the halo */
.cc-deals-door--soldout[data-cc-deals-frame="active"] .cc-deals-door__halo {
  opacity: 0;
  animation: none;
}

.cc-deals-door--soldout[data-cc-deals-frame="active"] .cc-deals-door__btn::before {
  box-shadow: 0 0 0 1px rgba(200, 200, 200, 0.5);
  opacity: 1;
  animation: none;
}

.cc-deals-door--soldout[data-cc-deals-frame="active"] .cc-deals-door__f--active {
  filter: saturate(0.4) brightness(0.8) drop-shadow(0 calc(var(--cc-deals-cw) * 0.05) calc(var(--cc-deals-cw) * 0.05) rgba(0, 0, 0, 0.65));
}

.cc-deals-door--soldout[data-cc-deals-frame="active"] .cc-deals-door__state {
  border-color: rgba(255, 255, 255, 0.4);
  background: #4a4a4a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* opened: the open frame and the content; a click shows the large view again */
.cc-deals-door--open .cc-deals-door__btn {
  cursor: pointer;
}

.cc-deals-door--busy .cc-deals-door__btn {
  cursor: progress;
}

/* ended: closed again, light off */
.cc-deals-door--expired .cc-deals-door__f {
  filter: grayscale(1) brightness(0.5) drop-shadow(0 calc(var(--cc-deals-cw) * 0.05) calc(var(--cc-deals-cw) * 0.05) rgba(0, 0, 0, 0.65));
}

.cc-deals-door--expired .cc-deals-door__num {
  color: #77736a;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.9);
}

.cc-deals-door--expired .cc-deals-door__sym {
  color: #77736a;
  opacity: 0.5;
}

.cc-deals-door--expired .cc-deals-door__img {
  filter: grayscale(1) brightness(0.6);
}

/* ended, but left open on the picture of its offer: the open frame with its lights turned down (a special day
   included: no gold light any more) and the picture slightly dimmed */
.cc-deals-door--past .cc-deals-door__f {
  filter: grayscale(0.45) brightness(0.66) drop-shadow(0 calc(var(--cc-deals-cw) * 0.05) calc(var(--cc-deals-cw) * 0.05) rgba(0, 0, 0, 0.65));
}

.cc-deals-door--past .cc-deals-gift__thumb {
  filter: brightness(0.86);
}

.cc-deals-door__btn:focus-visible::after {
  content: "";
  position: absolute;
  top: -6%;
  right: -6%;
  bottom: -6%;
  left: -6%;
  border: 2px solid #fff;
  border-radius: 12%;
  pointer-events: none;
}

@media (hover: hover) {
  .cc-deals-door--locked .cc-deals-door__btn:hover .cc-deals-door__f--closed {
    filter: brightness(0.9) saturate(0.85) drop-shadow(0 calc(var(--cc-deals-cw) * 0.05) calc(var(--cc-deals-cw) * 0.05) rgba(0, 0, 0, 0.65));
  }

  .cc-deals-door--available:not(.cc-deals-door--soldout) .cc-deals-door__btn:hover .cc-deals-door__f--active {
    filter: brightness(1.14) drop-shadow(0 0 calc(var(--cc-deals-cw) * 0.07) rgba(255, 34, 40, 0.8));
  }

  .cc-deals-offer .cc-deals-offer__btn:hover {
    background: linear-gradient(180deg, #f03034, #b51417);
    color: #fff;
  }

  .cc-deals-advent-view__close:hover {
    border-color: #fff;
  }
}

/* ---- the content of an opened door: placed by the script in the empty interior ------------------------------ */

/* the flat back wall of the open locker: the content is sized from this box and never leaves it (the LED bars
   around it stay free) */
.cc-deals-door__gift {
  position: absolute;
  top: 29.89%;
  left: 25.69%;
  display: grid;
  place-items: center;
  width: 42.61%;
  height: 44.48%;
  overflow: hidden;
  container-type: size;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
  transition: opacity 260ms ease-out calc(var(--cc-deals-step) * 1.2), transform 420ms cubic-bezier(0.2, 1.3, 0.4, 1) calc(var(--cc-deals-step) * 1.2);
}

.cc-deals-door[data-cc-deals-frame="open"] .cc-deals-door__gift {
  opacity: 1;
  transform: scale(1);
}

/* the short form of an offer is part of the answer of the server: shown in a door only */
.cc-deals-offer .cc-deals-gift {
  display: none;
}

.cc-deals-door__gift .cc-deals-gift {
  display: block;
  max-width: 100%;
  color: #fff;
}

.cc-deals-gift__big {
  display: block;
  color: #fff;
  font-family: var(--cc-deals-display);
  font-size: calc(var(--cc-deals-cw) * 0.17);
  font-size: 40cqw;
  font-weight: 800;
  line-height: 0.9;
  white-space: nowrap;
  text-shadow: 0 0 calc(var(--cc-deals-cw) * 0.06) rgba(255, 34, 40, 0.95), 0 2px 0 rgba(0, 0, 0, 0.8);
  /* the interior is a container of its own: --cc-deals-cw would be computed from it there (0 on a phone) */
  text-shadow: 0 0 14cqw rgba(255, 34, 40, 0.95), 0 2px 0 rgba(0, 0, 0, 0.8);
}

.cc-deals-gift__big--amount {
  font-size: calc(var(--cc-deals-cw) * 0.09);
  font-size: 21cqw;
}

.cc-deals-gift__small {
  display: block;
  margin-top: 0.35em;
  color: var(--cc-deals-gold-soft);
  font-family: var(--cc-deals-display);
  font-size: calc(var(--cc-deals-cw) * 0.0575);
  font-size: 13.5cqw;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-deals-gift__sym {
  display: block;
  width: 52%;
  width: 52cqw;
  height: auto;
  margin: 0 auto;
  color: #fff;
  filter: drop-shadow(0 0 calc(var(--cc-deals-cw) * 0.04) rgba(255, 34, 40, 0.9));
  filter: drop-shadow(0 0 10cqw rgba(255, 34, 40, 0.9));
}

.cc-deals-gift__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(var(--cc-deals-cw) * 0.3);
  max-height: 66cqh;
  margin: 0 auto;
  border-radius: 6%;
  background: #fff;
  object-fit: contain;
}

.cc-deals-gift--soldout .cc-deals-gift__small {
  color: #d6d6d6;
}

.cc-deals-gift--soldout .cc-deals-gift__img {
  filter: grayscale(1);
}

/* in the wall an opened door only carries the big value or the picture: the full text is read in the large view */
.cc-deals-advent__grid .cc-deals-gift__small {
  display: none;
}

.cc-deals-advent__grid .cc-deals-gift__big {
  font-size: calc(var(--cc-deals-cw) * 0.185);
  font-size: 43cqw;
}

.cc-deals-advent__grid .cc-deals-gift__big--amount {
  font-size: calc(var(--cc-deals-cw) * 0.105);
  font-size: 25cqw;
}

.cc-deals-advent__grid .cc-deals-gift__sym {
  width: 62%;
  width: 62cqw;
}

.cc-deals-advent__grid .cc-deals-gift__img {
  max-height: calc(var(--cc-deals-cw) * 0.4);
  max-height: 92cqh;
}

/* the picture of the offer: a white tile that fills the flat back wall of the open locker (96 % of the interior, so
   it never leaves that box and the light bars around it stay free). Shown by the doors of the wall only, in place of
   the short form in words; the door of the large view keeps the words */
.cc-deals-gift__thumb {
  display: none;
}

.cc-deals-advent__grid .cc-deals-gift--thumb .cc-deals-gift__big,
.cc-deals-advent__grid .cc-deals-gift--thumb .cc-deals-gift__sym,
.cc-deals-advent__grid .cc-deals-gift--thumb .cc-deals-gift__img {
  display: none;
}

.cc-deals-advent__grid .cc-deals-gift--thumb .cc-deals-gift__thumb {
  display: block;
  width: calc(var(--cc-deals-cw) * 0.409);
  width: 96cqw;
  height: calc(var(--cc-deals-cw) * 0.4733);
  height: 96cqh;
  margin: 0 auto;
  overflow: hidden;
  border-radius: calc(var(--cc-deals-cw) * 0.034);
  border-radius: 8cqw;
  background: #fff;
}

/* the size attributes of the picture reserve nothing here: the tile has its size before the file arrives */
.cc-deals-gift__pic {
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: contain;
}

.cc-deals-gift--soldout .cc-deals-gift__pic {
  filter: grayscale(1);
}

/* ---- the large view: the clicked door comes forward and opens at a readable size ----------------------------- */

/* the page behind the large view does not scroll (class set on the root element of the document by the script) */
.cc-deals-advent-lock {
  overflow: hidden;
}

.cc-deals-advent-view {
  --cc-deals-cw: min(40vh, 62vw, 430px);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  background: rgba(4, 4, 6, 0.86);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 240ms ease-out;
}

.cc-deals-advent-view[hidden] {
  display: none;
}

.cc-deals-advent-view--in {
  opacity: 1;
}

.cc-deals-advent-view__scroll {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  padding: 64px 16px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cc-deals-advent-view__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 460px;
  margin: auto;
}

.cc-deals-advent-view__day {
  margin: 0;
  color: #ecdcae;
  font-family: var(--cc-deals-display);
  font-size: clamp(14px, 2.3vh, 22px);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px 0 #000;
}

/* the leaf swings out to the left: the door is shifted so that the open locker stays in the middle */
.cc-deals-advent-view__door {
  flex: none;
  width: var(--cc-deals-cw);
  margin: calc(var(--cc-deals-cw) * 0.06) 0 calc(var(--cc-deals-cw) * 0.08) calc(var(--cc-deals-cw) * 0.14);
  transform: scale(0.55);
  transition: transform 420ms cubic-bezier(0.2, 1.25, 0.3, 1);
}

.cc-deals-advent-view--in .cc-deals-advent-view__door {
  transform: scale(1);
}

.cc-deals-advent-view__panel {
  width: 100%;
  border: 1px solid rgba(227, 191, 106, 0.3);
  border-top: 3px solid var(--cc-deals-red);
  border-radius: 12px;
  outline: 0;
  background: rgba(18, 18, 21, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.cc-deals-advent-view__panel:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 3px;
}

.cc-deals-advent-view__offer[hidden],
.cc-deals-advent__note[hidden] {
  display: none;
}

.cc-deals-advent__note {
  margin: 0;
  padding: 18px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.cc-deals-advent-view__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

/* ---- the offer of an opened door (markup of the reveal answer), read in the panel of the large view ------- */

.cc-deals-offer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  color: #fff;
}

.cc-deals-offer *,
.cc-deals-offer *::before {
  box-sizing: border-box;
}

.cc-deals-offer__media {
  display: flex;
  flex: none;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.cc-deals-offer__img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
}

.cc-deals-offer__body {
  min-width: 0;
}

.cc-deals-offer__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 6px;
  color: var(--cc-deals-gold, #e3bf6a);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cc-deals-offer__date {
  color: #d6d6d6;
  letter-spacing: 0.06em;
}

.cc-deals-offer__special {
  padding: 2px 10px;
  border: 1px solid var(--cc-deals-gold, #e3bf6a);
  border-radius: 12px;
  color: var(--cc-deals-gold, #e3bf6a);
  letter-spacing: 0.08em;
}

.cc-deals-offer__title {
  margin: 0 0 6px;
  padding: 0;
  color: #fff;
  font-family: var(--cc-deals-display, "Barlow Condensed", Impact, "HelveticaNeue-CondensedBlack", "Arial Narrow", sans-serif-condensed, sans-serif);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cc-deals-offer__name {
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.cc-deals-offer__soldout {
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #4a4a4a;
  color: #fff;
  font-weight: 700;
}

.cc-deals-offer__prices {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
}

.cc-deals-offer__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.cc-deals-offer__row dt {
  margin: 0;
  color: #d6d6d6;
  font-weight: 400;
}

.cc-deals-offer__row dd {
  margin: 0;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.cc-deals-offer__strike {
  text-decoration: line-through;
}

.cc-deals-offer__row--deal dt {
  color: #fff;
  font-weight: 700;
}

.cc-deals-offer__price {
  font-family: var(--cc-deals-display, "Barlow Condensed", Impact, "HelveticaNeue-CondensedBlack", "Arial Narrow", sans-serif-condensed, sans-serif);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.cc-deals-offer__row--save dd {
  color: var(--cc-deals-gold-soft, #f3d58a);
  font-weight: 700;
}

.cc-deals-offer__percent {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--cc-deals-red, #c9181a);
  color: #fff;
}

/* 1.0.5, an offer on several variations of one product: "from" before the lowest price, the percentage beside it */
.cc-deals-offer__from {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cc-deals-offer__price .cc-deals-offer__percent {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  vertical-align: middle;
}

/* ... and its sizes / colours (components/card_variants.tpl): the chips of cc-deals.css, coloured for the dark panel */
.cc-deals-offer .cc-deals-variants {
  margin: -4px 0 12px;
}

.cc-deals-offer .cc-deals-variants__chip {
  padding: 2px 9px;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
}

.cc-deals-offer .cc-deals-variants__chip--more {
  border-color: rgba(255, 255, 255, 0.4);
  background: none;
  color: #d6d6d6;
}

.cc-deals-offer__text {
  margin: 0 0 12px;
  color: #d6d6d6;
}

.cc-deals-offer__cd {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}

.cc-deals-offer__qty {
  margin: 0 0 14px;
}

/* the sold / total counter of a limited deal (components/qty_meter.tpl; cc-deals.css colours it for a light page):
   its colours on the dark panel */
.cc-deals-offer .cc-deals-qty {
  font-size: 14px;
}

.cc-deals-offer .cc-deals-qty__text {
  color: #fff;
}

.cc-deals-offer .cc-deals-qty__track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.cc-deals-offer .cc-deals-qty__fill {
  fill: var(--cc-deals-led, #ff2228);
}

.cc-deals-offer .cc-deals-qty--full .cc-deals-qty__text {
  color: #d6d6d6;
}

.cc-deals-offer .cc-deals-qty--full .cc-deals-qty__fill {
  fill: #8a8a8a;
}

.cc-deals-offer__cta {
  margin: 0;
}

.cc-deals-offer .cc-deals-offer__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 52px;
  padding: 6px 30px;
  border: 1px solid rgba(255, 220, 160, 0.6);
  border-radius: 52px;
  background: linear-gradient(180deg, #e0262a, #a31114);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6), 0 0 26px rgba(255, 34, 40, 0.4);
  color: #fff;
  font-family: var(--cc-deals-display, "Barlow Condensed", Impact, "HelveticaNeue-CondensedBlack", "Arial Narrow", sans-serif-condensed, sans-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.14em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  /* a long text wraps inside the button, whatever the theme says about its buttons */
  white-space: normal;
  overflow-wrap: anywhere;
}

.cc-deals-offer--special {
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--cc-deals-gold, #e3bf6a);
}

/* ---- wider screens ------------------------------------------------------------------------------------------ */

@media (min-width: 761px) {
  .cc-deals-advent {
    --cc-deals-pad: 16px;
    --cc-deals-gap: calc(var(--cc-deals-cw) * 0.0575);
    /* large doors, the page scrolls: the wall is about as wide as the window is high. Never wider than the calendar
       itself (a narrow content column of the shop): 4 doors + 3 gaps + 2 paddings = 4.6125 doors, + 4 px of border */
    --cc-deals-cw: min(clamp(138px, min(14.1cqw, 19.6vh), 300px), calc((100cqw - 4px) / 4.6125));
    padding-bottom: 80px;
  }

  .cc-deals-advent__bg {
    background-image: url(img/advent/arena-1280.webp);
    background-position: center 42%;
  }

  .cc-deals-advent__bg::after {
    background:
      radial-gradient(60% 46% at 50% 60%, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.34) 55%, rgba(0, 0, 0, 0) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 24%, rgba(0, 0, 0, 0) 46%, rgba(0, 0, 0, 0) 80%, rgba(0, 0, 0, 0.55) 100%),
      radial-gradient(120% 90% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.55) 100%);
  }

  .cc-deals-advent__hero {
    padding-top: clamp(8px, 1.6vh, 20px);
  }

  .cc-deals-advent__logo {
    width: clamp(210px, min(22vw, 37vh), 440px);
    width: clamp(210px, min(22cqw, 37vh), 440px);
  }

  .cc-deals-advent__title {
    margin-top: clamp(2px, 0.7vh, 10px);
    font-size: clamp(26px, min(3.5vw, 5.5vh), 64px);
    font-size: clamp(26px, min(3.5cqw, 5.5vh), 64px);
  }

  .cc-deals-advent__subtitle {
    gap: 14px;
    margin-top: clamp(4px, 0.9vh, 10px);
    font-size: clamp(11px, min(1.15vw, 1.9vh), 19px);
    font-size: clamp(11px, min(1.15cqw, 1.9vh), 19px);
    letter-spacing: 0.34em;
  }

  .cc-deals-advent__subtitle::before,
  .cc-deals-advent__subtitle::after {
    width: clamp(18px, 4vw, 70px);
  }

  .cc-deals-advent__rig {
    margin-top: clamp(8px, 1.5vh, 20px);
  }

  .cc-deals-advent__wall {
    padding: calc(var(--cc-deals-cw) * 0.15) calc(var(--cc-deals-cw) * 0.22) calc(var(--cc-deals-cw) * 0.16);
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 10%),
      repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) calc(var(--cc-deals-cw) * 1.0575 - 3px), rgba(255, 255, 255, 0.07) calc(var(--cc-deals-cw) * 1.0575 - 3px), rgba(0, 0, 0, 0.7) calc(var(--cc-deals-cw) * 1.0575)),
      radial-gradient(120% 90% at 50% 0%, rgba(30, 30, 35, 0.94) 0%, rgba(13, 13, 16, 0.95) 55%, rgba(6, 6, 8, 0.97) 100%);
    background-position: 0 0, calc(var(--cc-deals-cw) * 0.22 - var(--cc-deals-cw) * 0.029) 0, 0 0;
  }

  .cc-deals-advent__mark {
    display: block;
  }

  .cc-deals-advent__grid {
    gap: calc(var(--cc-deals-cw) * 0.05) var(--cc-deals-gap);
  }

  .cc-deals-advent-view {
    --cc-deals-cw: min(46vh, 60vw, 430px);
  }
}

@media (min-width: 1000px) {
  /* the offer next to the door */
  .cc-deals-advent-view {
    --cc-deals-cw: min(52vh, 32vw, 430px);
  }

  .cc-deals-advent-view__scroll {
    padding: 32px 72px;
  }

  .cc-deals-advent-view__box {
    display: grid;
    grid-template-columns: auto minmax(340px, 460px);
    grid-template-areas:
      "day panel"
      "door panel";
    align-items: center;
    justify-content: center;
    gap: 14px clamp(32px, 5vw, 80px);
    max-width: none;
  }

  .cc-deals-advent-view__day {
    grid-area: day;
    align-self: end;
  }

  .cc-deals-advent-view__door {
    grid-area: door;
    align-self: start;
  }

  .cc-deals-advent-view__panel {
    grid-area: panel;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

@media (min-width: 1281px) {
  .cc-deals-advent__bg {
    background-image: url(img/advent/arena-1920.webp);
  }
}

/* ---- browsers without container query units: the same wall, sized from the window --------------------------- */

@supports not (width: 1cqw) {
  .cc-deals-advent {
    /* the page of the shop keeps up to 20 px on each side of the calendar */
    --cc-deals-cw: calc((100vw - 116px) / 4);
  }

  @media (min-width: 761px) {
    .cc-deals-advent {
      --cc-deals-cw: clamp(138px, min(13vw, 19.6vh), 300px);
    }
  }
}

/* ---- no motion asked: no snow, no pulse, no slide; the frames of a door are swapped at once -------------------- */

@media (prefers-reduced-motion: reduce) {
  .cc-deals-advent::after,
  .cc-deals-advent__flake,
  .cc-deals-door--available[data-cc-deals-frame="active"] .cc-deals-door__halo,
  .cc-deals-door--big[data-cc-deals-frame="active"] .cc-deals-door__halo,
  .cc-deals-door--available[data-cc-deals-frame="active"] .cc-deals-door__btn::before {
    animation: none;
  }

  .cc-deals-advent__snow {
    display: none;
  }

  .cc-deals-door__f,
  .cc-deals-door--locked .cc-deals-door__f--closed,
  .cc-deals-door[data-cc-deals-frame] .cc-deals-door__f,
  .cc-deals-door__halo,
  .cc-deals-door__num,
  .cc-deals-door__sym,
  .cc-deals-door__img,
  .cc-deals-door__gift,
  .cc-deals-advent-view,
  .cc-deals-advent-view__door {
    transition: none;
  }

  .cc-deals-advent-view__door,
  .cc-deals-door__gift {
    transform: none;
  }
}
