/* Scope is deliberately restricted to the homepage hero. */
#front-page-hero.orzel-home-visual {
  --orzel-home-card-width: 300px;
  --orzel-home-card-height: 104px;
  --orzel-home-gold: #f6d569;
}

#front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-home-card {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  box-sizing: border-box !important;
  flex: 0 0 var(--orzel-home-card-width) !important;
  width: var(--orzel-home-card-width) !important;
  height: var(--orzel-home-card-height) !important;
  min-height: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 1.5px solid var(--orzel-home-gold) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--orzel-home-gold) !important;
  text-decoration: none !important;
  line-height: 1.15 !important;
  box-shadow: 0 2px 6px #00131e33;
}

#front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-app-hero-link {
  background: #041d30 !important;
}

#front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-app-hero-link > svg {
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 40px !important;
}

#front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-app-hero-link > span {
  font-size: 12px !important;
  line-height: 1.3 !important;
  min-width: 0;
}

#front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-app-hero-link strong {
  display: block;
  margin-top: 4px;
  font-size: 19px !important;
  line-height: 1.15 !important;
}

#front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-home-voucher {
  background: linear-gradient(110deg, #7d0f19, #b61e2a) !important;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

#front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-home-voucher[hidden] {
  display: none !important;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-snowman {
  flex: 0 0 36px;
  width: 36px;
  height: 64px;
  overflow: visible;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-copy {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 4px;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-title {
  display: block;
  color: inherit;
  font-size: clamp(18px, 1.3vw, 21px);
  font-weight: 700;
  line-height: 1.12;
  text-decoration: none;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-title > span {
  display: block;
}

#front-page-hero.orzel-home-visual a.orzel-home-voucher-title:hover,
#front-page-hero.orzel-home-visual a.orzel-home-voucher-title:focus-visible {
  text-decoration: underline;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-terms {
  justify-self: start;
  color: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-decoration: underline;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-countdown {
  flex: 0 0 100px;
  box-sizing: content-box;
  border-left: 1px solid #e6c46e80;
  padding-left: 9px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  text-align: center;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-remaining {
  font-size: 11px;
  line-height: 1.15;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-days {
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-unit {
  font-size: 15px;
  line-height: 1.05;
}

#front-page-hero.orzel-home-visual .orzel-home-voucher-promotion {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .01em;
  color: #ffe78a;
  text-transform: uppercase;
  white-space: nowrap;
  animation: orzel-home-promotion-pulse 1.8s ease-in-out infinite;
}

@keyframes orzel-home-promotion-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* A quarter of each 300 x 104 desktop card, always on the photo. */
@media (max-width: 820px) {
  #front-page-hero.orzel-home-visual {
    --orzel-home-card-width: min(150px, calc((100vw - 32px) / 2));
    --orzel-home-card-height: 52px;
  }
  #front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-home-card {
    padding: 5px !important;
    border-width: 1px !important;
    border-radius: 7px !important;
    gap: 4px !important;
  }
  #front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-app-hero-link > svg {
    flex-basis: 18px !important;
    width: 18px !important;
    height: 28px !important;
  }
  #front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-app-hero-link > span {
    font-size: 0 !important;
    line-height: 0 !important;
  }
  #front-page-hero.orzel-home-visual .orzel-home-utilities > .orzel-app-hero-link strong {
    margin-top: 0;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-snowman {
    flex-basis: 14px;
    width: 14px;
    height: 30px;
  }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-snowman svg {
    width: 100%;
    height: 100%;
  }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-copy { gap: 0; }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-title {
    font-size: 10px;
    line-height: 1.1;
  }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-terms { font-size: 9px; }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-countdown {
    flex-basis: 52px;
    padding-left: 4px;
    gap: 1px;
  }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-remaining { display: none; }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-value { gap: 2px; }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-days { font-size: 18px; }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-unit { font-size: 9px; }
  #front-page-hero.orzel-home-visual .orzel-home-voucher-promotion { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  #front-page-hero.orzel-home-visual .orzel-home-voucher-promotion {
    animation: none;
    opacity: 1;
  }
}
