/*
 * cc_deals: common styles of the storefront (top bar, product banner, deal cards and their state chips, hub,
 * campaign page, home block). Plain CSS outside the bundles of the shop, loaded only by a cc_deals fragment.
 * Every class starts with cc-deals-; nothing of the theme (ty-*, ut2-*, ab-*, cm-*) is restyled.
 * Tokens of the theme with fallbacks: red #c9181a, dark #1e1e1e, greys, radius 8 / 12 / 16 px, 40 px pill buttons.
 * Mobile first (360 px), breakpoints 576 / 768 / 1024 / 1200. Motion: transform and opacity only, removed under
 * prefers-reduced-motion. Countdowns: tabular digits in a reserved width, so nothing moves when they tick.
 * Files next to this one, requested only by a rule or a tag that needs them: fonts/ (Barlow Condensed),
 * img/blackfriday/ (backdrop of a Black Friday hero), img/combatcorner_logo.png (the logo, printed as an <img>).
 */

/* ---- fonts: Barlow Condensed 600 / 700 / 800 (SIL Open Font License 1.1, fonts/OFL-barlow.txt) --------------------
   Declared once, here, for every stylesheet of the add-on: cc-deals-advent.css only names the family. A browser
   requests a face when a text on screen uses it and not before: only a hero with a backdrop and the Advent
   calendar do, so a page that carries just the top bar, a product banner or deal cards downloads no font file. */
@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/barlow-condensed-800.woff2") format("woff2");
}

/* ---- shared ---------------------------------------------------------------------------------------------------- */
.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;
  overflow-wrap: anywhere;
}

.cc-deals-cd {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.45em;
  visibility: hidden;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.cc-deals-cd--on {
  visibility: visible;
}

/* the script hides a start countdown at its instant: the display value above would beat the hidden attribute */
.cc-deals-cd[hidden] {
  display: none;
}

.cc-deals-cd__label {
  font-size: 0.86em;
  letter-spacing: 0.02em;
}

.cc-deals-cd__digits {
  display: inline-block;
  min-width: 8ch;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-align: left;
  white-space: nowrap;
}

.cc-deals-cd--ended .cc-deals-cd__label {
  display: none;
}

.cc-deals-cd--ended .cc-deals-cd__digits {
  min-width: 0;
  font-weight: 600;
}

.cc-deals-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 3px 10px;
  border-radius: var(--border-radius, 8px);
  background: var(--fill-dark, #1e1e1e);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

a.cc-deals-badge:hover,
a.cc-deals-badge:focus {
  color: #fff;
  text-decoration: none;
}

.cc-deals-badge--F {
  background: var(--color-primary, #c9181a);
}

.cc-deals-badge--A {
  box-shadow: inset 0 0 0 1px #c8a24a;
}

.cc-deals-badge__icon {
  display: none;
  flex: 0 0 auto;
  width: 10px;
  height: 14px;
  background: no-repeat center / contain;
}

/* the flash symbol is a decoration, never a character of a text */
.cc-deals-badge--F .cc-deals-badge__icon {
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath fill='%23fff' d='M6.2 0 0 8h3.6L2.8 14 10 5.6H6z'/%3E%3C/svg%3E");
  animation: cc-deals-pulse 1.8s ease-in-out infinite;
}

.cc-deals-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: var(--border-radius, 8px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cc-deals-chip--out {
  color: #5f5f5f;
  background: #f0f0f0;
}

.cc-deals-chip--soon {
  color: var(--fill-dark, #1e1e1e);
  background: #fff;
}

@keyframes cc-deals-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.88); }
}

/* ---- top bar: in normal flow, above the header of the theme ----------------------------------------------------- */
.cc-deals-bar {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  background: var(--fill-dark, #1e1e1e);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
}

.cc-deals-bar--flash_deals {
  background: var(--color-primary, #c9181a);
}

.cc-deals-bar__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2px 14px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 6px 10px;
  text-align: center;
}

.cc-deals-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
}

.cc-deals-bar__link:hover,
.cc-deals-bar__link:focus {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cc-deals-bar__link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  border-radius: 4px;
}

.cc-deals-bar__icon {
  flex: 0 0 auto;
  width: 14px;
  height: 16px;
  background: no-repeat center / contain;
}

.cc-deals-bar--black_friday .cc-deals-bar__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23e8262a' d='M7 0c1 3-.9 4.6-2.4 6.5C3.3 8.2 2 9.8 2 11.6 2 14.2 4.2 16 7 16s5-1.8 5-4.500c0-2.100-1.200-3.600-2.200-4.900-.2 1-.7 1.700-1.500 2.100C8.900 5.800 8.700 2.700 7 0z'/%3E%3Cpath fill='%23ffb23e' d='M7 16c-1.500 0-2.600-1-2.600-2.400 0-1.300.9-2.200 1.700-3.200.6.9 1.200 1.300 1.900 1.500.2-.8.2-1.500.1-2.200 1 1 1.600 2.100 1.600 3.500C9.700 14.900 8.600 16 7 16z'/%3E%3C/svg%3E");
}

.cc-deals-bar--flash_deals .cc-deals-bar__icon {
  width: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath fill='%23fff' d='M6.2 0 0 8h3.6L2.8 14 10 5.6H6z'/%3E%3C/svg%3E");
}

.cc-deals-bar--advent_calendar .cc-deals-bar__icon {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 16'%3E%3Cpath fill='%23c8a24a' d='m7 1 1.800 4.300 4.600.4-3.500 3 1.100 4.500L7 10.800l-4 2.400 1.100-4.500-3.500-3 4.600-.4z'/%3E%3C/svg%3E");
}

.cc-deals-bar--standard .cc-deals-bar__icon {
  display: none;
}

.cc-deals-bar .cc-deals-cd {
  color: #fff;
}

/* ---- product banner: between the title and the price box of the theme ------------------------------------------ */
.cc-deals-pd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  box-sizing: border-box;
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: var(--border-radius, 8px);
  background: var(--fill-gray, #f6f6f6);
  color: var(--color-font, #1e1e1e);
  font-size: 14px;
}

.cc-deals-pd--bare {
  display: none;
}

.cc-deals-pd--F {
  box-shadow: inset 3px 0 0 var(--color-primary, #c9181a);
}

.cc-deals-pd .cc-deals-cd {
  justify-content: flex-start;
}

.cc-deals-pd .cc-deals-cd__digits {
  font-size: 18px;
}

/* the counter of a limited deal sits in the row of the banner: its bar needs a width of its own */
.cc-deals-pd .cc-deals-qty {
  flex: 0 1 220px;
  min-width: 150px;
  font-size: 14px;
}

.cc-deals-pd a.cc-deals-badge:focus-visible {
  outline: 2px solid var(--color-primary, #c9181a);
  outline-offset: 2px;
}

/* ---- pages -------------------------------------------------------------------------------------------------------- */
.cc-deals {
  box-sizing: border-box;
  width: 100%;
  color: var(--color-font, #1e1e1e);
}

.cc-deals a:focus-visible {
  outline: 2px solid var(--color-primary, #c9181a);
  outline-offset: 2px;
}

.cc-deals-hero {
  position: relative;
  margin: 0 0 20px;
  padding: 28px 16px;
  overflow: hidden;
  border-radius: var(--border-radius-decreased, 12px);
  background: #1e1e1e linear-gradient(135deg, #1e1e1e 0%, #2b2b2b 55%, #3a1011 100%);
  color: #fff;
  text-align: center;
}

.cc-deals-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--color-primary, #c9181a);
}

.cc-deals-hero__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: MuseoSansBlack, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cc-deals-hero__sub {
  margin: 10px 0 0;
  color: #e6e6e6;
  font-size: 15px;
  line-height: 1.4;
}

.cc-deals-hero__phase {
  margin: 12px 0 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.cc-deals-hero__state {
  margin: 12px 0 0;
}

.cc-deals-hero .cc-deals-cd {
  margin-top: 14px;
  font-size: 15px;
}

.cc-deals-hero .cc-deals-cd__digits {
  font-size: 24px;
}

.cc-deals-intro {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.55;
}

.cc-deals-section {
  margin: 0 0 30px;
}

.cc-deals-section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  font-family: MuseoSansBlack, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: uppercase;
}

.cc-deals-section__title::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 22px;
  border-radius: 2px;
  background: var(--color-primary, #c9181a);
}

.cc-deals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cc-deals-empty {
  margin: 0 0 30px;
  padding: 26px 16px;
  border: 1px dashed #c9c9c9;
  border-radius: var(--border-radius-decreased, 12px);
  color: #5f5f5f;
  font-size: 15px;
  text-align: center;
}

.cc-deals-back {
  margin: 0 0 30px;
  text-align: center;
}

.cc-deals-back__link {
  display: inline-block;
  padding: 10px 4px;
  color: var(--color-font, #1e1e1e);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- deal card ---------------------------------------------------------------------------------------------------- */
.cc-deals-card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-base, #e4e4e4);
  border-radius: var(--border-radius-decreased, 12px);
  background: #fff;
  color: var(--color-font, #1e1e1e);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-deals-card--F {
  border-color: var(--color-primary, #c9181a);
}

.cc-deals-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #fff;
}

.cc-deals-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cc-deals-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.cc-deals-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 24px;
}

.cc-deals-card__name {
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}

.cc-deals-card__link {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cc-deals-card__link:hover,
.cc-deals-card__link:focus {
  color: inherit;
  text-decoration: underline;
}

.cc-deals-card__teaser,
.cc-deals-card__when {
  margin: 0;
  color: #5f5f5f;
  font-size: 13px;
  line-height: 1.35;
}

.cc-deals-card__when {
  color: var(--color-font, #1e1e1e);
  font-weight: 700;
}

.cc-deals-card__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  margin-top: auto;
}

.cc-deals-card__old {
  color: #5f5f5f;
  font-size: 13px;
}

.cc-deals-card__new,
.cc-deals-card__cur {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.cc-deals-card__new {
  color: var(--color-primary, #c9181a);
}

.cc-deals-card__pct {
  padding: 1px 7px;
  border: 1px solid var(--color-primary, #c9181a);
  border-radius: var(--border-radius, 8px);
  color: var(--color-primary, #c9181a);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.cc-deals-card__save {
  flex: 1 0 100%;
  color: #5f5f5f;
  font-size: 12px;
}

.cc-deals-card__hidden {
  color: #5f5f5f;
  font-size: 13px;
  font-style: italic;
}

.cc-deals-card .cc-deals-cd {
  justify-content: flex-start;
  font-size: 13px;
}

.cc-deals-card .cc-deals-cd__digits {
  font-size: 16px;
}

.cc-deals-card__cta {
  justify-content: center;
  margin-top: 2px;
  text-align: center;
}

.cc-deals-card--sold_out .cc-deals-card__media,
.cc-deals-card--out_of_stock .cc-deals-card__media {
  opacity: 0.55;
}

/* ---- upcoming drop whose product and price are hidden ---------------------------------------------------------- */
.cc-deals-up {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 220px;
  padding: 18px 12px;
  border-radius: var(--border-radius-decreased, 12px);
  background: #2b2b2b linear-gradient(160deg, #2b2b2b 0%, #1e1e1e 100%);
  color: #fff;
  text-align: center;
}

.cc-deals-up__mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-primary, #c9181a);
  border-radius: 50%;
  background: no-repeat center / 14px 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath fill='%23fff' d='M6.2 0 0 8h3.6L2.8 14 10 5.6H6z'/%3E%3C/svg%3E");
  animation: cc-deals-glow 2.4s ease-in-out infinite;
}

.cc-deals-up__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: MuseoSansBlack, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cc-deals-up__when {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.cc-deals-up__teaser {
  margin: 0;
  color: #d9d9d9;
  font-size: 13px;
}

.cc-deals-up .cc-deals-cd {
  flex-direction: column;
  align-items: center;
  color: #e6e6e6;
  font-size: 12px;
  text-transform: uppercase;
}

.cc-deals-up .cc-deals-cd__digits {
  color: #fff;
  font-size: 22px;
  text-align: center;
}

@keyframes cc-deals-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ---- running campaigns and Advent teaser ------------------------------------------------------------------------ */
.cc-deals-camps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.cc-deals-camp {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  box-sizing: border-box;
  padding: 18px 16px;
  border-radius: var(--border-radius-decreased, 12px);
  background: var(--fill-dark, #1e1e1e);
  color: #fff;
}

.cc-deals-camp__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: MuseoSansBlack, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.cc-deals-camp__sub {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.cc-deals-camp__dates {
  margin: 0 0 6px;
  color: #d9d9d9;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cc-deals-advent-teaser {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  margin: 0 0 30px;
  padding: 26px 16px;
  border: 1px solid #c8a24a;
  border-radius: var(--border-radius-box, 16px);
  background: #1e1e1e linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%);
  color: #fff;
  text-align: center;
}

.cc-deals-advent-teaser__mark {
  width: 34px;
  height: 2px;
  background: #c8a24a;
}

.cc-deals-advent-teaser__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: MuseoSansBlack, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.cc-deals-advent-teaser__text {
  margin: 0 0 8px;
  color: #c8a24a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- home block ---------------------------------------------------------------------------------------------------- */
.cc-deals-home {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 20px;
  color: var(--color-font, #1e1e1e);
}

.cc-deals-home__in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  padding: 30px 16px;
  border-radius: var(--border-radius-box, 16px);
  background: #1e1e1e linear-gradient(135deg, #1e1e1e 0%, #2b2b2b 50%, #4a1213 100%);
  color: #fff;
  text-align: center;
}

.cc-deals-home--advent_calendar .cc-deals-home__in {
  border: 1px solid #c8a24a;
  background: #1e1e1e linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%);
}

.cc-deals-home__title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: MuseoSansBlack, "Arial Black", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.02;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.cc-deals-home__sub {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.cc-deals-home__tag {
  margin: 4px 0 0;
  color: #e6e6e6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cc-deals-home .cc-deals-cd {
  margin-top: 6px;
  color: #e6e6e6;
  font-size: 14px;
}

.cc-deals-home .cc-deals-cd__digits {
  color: #fff;
  font-size: 24px;
}

.cc-deals-home__action {
  margin: 10px 0 0;
}

.cc-deals-home__cta:focus-visible,
.cc-deals-camp__cta:focus-visible,
.cc-deals-advent-teaser__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cc-deals-home__cards {
  margin-top: 12px;
}

.cc-deals-home a:focus-visible {
  outline: 2px solid var(--color-primary, #c9181a);
  outline-offset: 2px;
}

/* ---- counter of a deal in a limited quantity (components/qty_meter.tpl): cards, product banner, Advent offer ---- */
.cc-deals-qty {
  display: flex;
  flex-direction: column;
  gap: 5px;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
}

.cc-deals-qty__text {
  color: #9b1314;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* the bar: a track and, inside, a drawing as wide as the track whose filled part is sold / limit of its width */
.cc-deals-qty__track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4e4e4;
}

.cc-deals-qty__bar {
  display: block;
  width: 100%;
  height: 100%;
}

.cc-deals-qty__fill {
  fill: var(--color-primary, #c9181a);
}

/* every unit is sold: the bar is full and quiet, the "sold out" chip speaks */
.cc-deals-qty--full .cc-deals-qty__text {
  color: #5f5f5f;
}

.cc-deals-qty--full .cc-deals-qty__fill {
  fill: #5f5f5f;
}

/* ---- wider screens ------------------------------------------------------------------------------------------------- */
@media (min-width: 576px) {
  .cc-deals-bar {
    font-size: 13px;
  }

  .cc-deals-grid {
    gap: 15px;
  }

  .cc-deals-card__body {
    padding: 14px;
  }

  .cc-deals-camps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .cc-deals-bar {
    font-size: 14px;
  }

  .cc-deals-bar__in {
    padding: 6px 20px;
  }

  .cc-deals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cc-deals-hero {
    padding: 44px 30px;
  }

  .cc-deals-hero__title {
    font-size: 44px;
  }

  .cc-deals-hero__sub {
    font-size: 18px;
  }

  .cc-deals-section__title {
    font-size: 24px;
  }

  .cc-deals-home__in {
    padding: 46px 30px;
  }

  .cc-deals-home__title {
    font-size: 48px;
  }

  .cc-deals-home__sub {
    font-size: 26px;
  }
}

@media (min-width: 1024px) {
  .cc-deals-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .cc-deals-hero__title {
    font-size: 56px;
  }

  .cc-deals-home__title {
    font-size: 60px;
  }
}

@media (min-width: 1200px) {
  .cc-deals-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .cc-deals-home__cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---- hero with a backdrop: hub, campaign page and home block during a campaign -----------------------------------
   The element carries cc-deals-skin and cc-deals-skin--bf (the Black Friday backdrop shipped with the add-on: a
   background chosen below by the width of the screen) or cc-deals-skin--image (the banner uploaded for the
   campaign: an image layer printed by components/hero_skin.tpl). Titles, countdown and button are real text over
   the picture, never part of it, and a dark gradient lies between the two: over an uploaded picture it lets
   through 38 % of the picture at most, so the white texts keep a contrast of 4.5:1 or more whatever was uploaded
   (tests/js/cc-deals.test.mjs computes it). The box has its height before a picture or a font arrives: nothing
   moves while they load. Headings in Barlow Condensed (faces declared at the top); until a face arrives the text
   stands in a condensed face of the device (Impact is within 3 % of its width), so a title keeps its lines when
   the font is swapped in. Declared after the breakpoints above: at equal weight these rules win. */
.cc-deals-hero.cc-deals-skin,
.cc-deals-home__in.cc-deals-skin {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
  min-height: 420px;
  min-height: clamp(360px, 72vh, 640px);
  padding: 28px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #060607 none no-repeat center 42% / cover;
  color: #fff;
  text-align: center;
}

.cc-deals-home__in.cc-deals-skin {
  min-height: 380px;
  min-height: clamp(320px, 62vh, 560px);
}

/* an uploaded banner is a landscape picture: on a phone its box is low (it grows with its texts), so that more than
   the middle of the picture shows; the tall box above is made for the portrait file of the shipped backdrop.
   From 768 px the rules of the breakpoint below apply to both */
.cc-deals-hero.cc-deals-skin--image,
.cc-deals-home__in.cc-deals-skin--image {
  min-height: 240px;
  min-height: clamp(220px, 60vw, 360px);
}

/* phones: the portrait picture; the two landscape files follow in the breakpoints below */
.cc-deals-skin.cc-deals-skin--bf {
  background-image: url("img/blackfriday/bf-arena-mobile.webp");
}

.cc-deals-skin::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  pointer-events: none;
}

/* a picture made for it: light grading only */
.cc-deals-skin--bf::before {
  background:
    radial-gradient(55% 60% at 50% 46%, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0) 75%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, 0.5));
}

/* any picture: never less than 62 % of black between it and the texts */
.cc-deals-skin--image::before {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.62) 34%, rgba(0, 0, 0, 0.62) 66%, rgba(0, 0, 0, 0.8) 100%);
}

.cc-deals-skin__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -2;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
}

.cc-deals-skin__media img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* the logo of the shop: the official file as it is, only scaled in proportion by its width */
.cc-deals-skin__logo {
  display: block;
  width: 200px;
  width: clamp(170px, 20vw, 360px);
  max-width: 100%;
  height: auto;
  margin: 0 auto 10px;
  margin-bottom: clamp(8px, 1.4vw, 20px);
}

.cc-deals-skin .cc-deals-hero__title,
.cc-deals-skin .cc-deals-home__title {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", Impact, "HelveticaNeue-CondensedBlack", "Arial Narrow", sans-serif-condensed, sans-serif;
  font-size: 48px;
  font-size: clamp(40px, 13vw, 96px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.85), 0 0 30px rgba(0, 0, 0, 0.8);
}

.cc-deals-skin .cc-deals-home__title {
  font-size: 44px;
  font-size: clamp(38px, 12vw, 80px);
}

.cc-deals-skin--bf .cc-deals-hero__title,
.cc-deals-skin--bf .cc-deals-home__title {
  text-shadow: 0 0 44px rgba(255, 34, 40, 0.55), 0 3px 0 rgba(0, 0, 0, 0.85);
}

.cc-deals-skin .cc-deals-hero__sub,
.cc-deals-skin .cc-deals-home__sub {
  margin: 8px 0 0;
  margin-top: clamp(6px, 1.2vw, 16px);
  color: #fff;
  font-family: "Barlow Condensed", Impact, "HelveticaNeue-CondensedBlack", "Arial Narrow", sans-serif-condensed, sans-serif;
  font-size: 24px;
  font-size: clamp(22px, 3.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 26px rgba(0, 0, 0, 0.8);
}

/* the LED red of the arena: on the picture shipped with the add-on only, which is dark where the texts stand */
.cc-deals-skin--bf .cc-deals-hero__sub,
.cc-deals-skin--bf .cc-deals-home__sub {
  color: #ff3b3b;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.85), 0 0 26px rgba(255, 34, 40, 0.6);
}

.cc-deals-skin .cc-deals-hero__tag,
.cc-deals-skin .cc-deals-home__tag,
.cc-deals-skin .cc-deals-hero__phase {
  margin: 12px 0 0;
  margin-top: clamp(10px, 1.4vw, 18px);
  color: #e9e6df;
  font-family: "Barlow Condensed", "Arial Narrow", "HelveticaNeue-CondensedBold", sans-serif-condensed, Arial, sans-serif;
  font-size: 12px;
  font-size: clamp(11px, 1.15vw, 18px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.85);
}

/* the headline of the phase on a campaign page: a line of its own between the subtitle and the countdown */
.cc-deals-skin .cc-deals-hero__phase {
  font-size: 15px;
  font-size: clamp(14px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: 0.2em;
}

.cc-deals-skin .cc-deals-cd {
  margin-top: 14px;
  margin-top: clamp(12px, 1.8vw, 24px);
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(8, 8, 10, 0.72);
  box-shadow: 0 0 0 1px #000, 0 0 22px rgba(255, 34, 40, 0.25);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", "HelveticaNeue-CondensedBold", sans-serif-condensed, Arial, sans-serif;
  font-size: 16px;
  font-size: clamp(15px, 1.7vw, 24px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cc-deals-skin .cc-deals-cd__label {
  font-size: 1em;
  letter-spacing: inherit;
}

.cc-deals-skin .cc-deals-cd__digits {
  color: #fff;
  font-size: 1.15em;
  font-weight: 700;
}

.cc-deals-home .cc-deals-skin .cc-deals-home__action {
  margin: 16px 0 0;
  margin-top: clamp(14px, 1.8vw, 24px);
}

.cc-deals-home .cc-deals-skin .cc-deals-home__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 48px;
  background: #c9181a linear-gradient(180deg, #e0262a, #a31114);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 34, 40, 0.35);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", "HelveticaNeue-CondensedBold", sans-serif-condensed, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}

@media (min-width: 768px) {
  .cc-deals-hero.cc-deals-skin,
  .cc-deals-home__in.cc-deals-skin {
    min-height: 380px;
    min-height: clamp(320px, 43vw, 640px);
    padding: 44px 16px;
    padding: clamp(28px, 5vw, 70px) 16px;
    border-radius: 16px;
    background-position: center 60%;
  }

  .cc-deals-home__in.cc-deals-skin {
    min-height: 320px;
    min-height: clamp(280px, 34vw, 480px);
  }

  .cc-deals-skin.cc-deals-skin--bf {
    background-image: url("img/blackfriday/bf-arena-1280.webp");
  }

  .cc-deals-skin .cc-deals-hero__title {
    font-size: 96px;
    font-size: clamp(56px, 11vw, 176px);
    line-height: 0.86;
  }

  .cc-deals-skin .cc-deals-home__title {
    font-size: 80px;
    font-size: clamp(48px, 8vw, 128px);
    line-height: 0.86;
  }
}

/* wide or dense screens: the large landscape file */
@media (min-width: 1281px), (min-width: 768px) and (-webkit-min-device-pixel-ratio: 1.5), (min-width: 768px) and (min-resolution: 1.5dppx) {
  .cc-deals-skin.cc-deals-skin--bf {
    background-image: url("img/blackfriday/bf-arena-1920.webp");
  }
}

@media (hover: hover) {
  .cc-deals-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(30, 30, 30, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-deals-card {
    transition: none;
  }

  .cc-deals-card:hover {
    transform: none;
  }

  .cc-deals-badge--F .cc-deals-badge__icon,
  .cc-deals-up__mark {
    animation: none;
  }
}
