/* UX Black Friday Countdown — v1.2.1. Separate brand palettes and scoped CSS. */
.uxbf-countdown[hidden],
.uxbf-countdown [hidden] { display: none !important; }

.uxbf-countdown {
  --uxbf-accent: #078cf5;
  --uxbf-surface: #f5faff;
  --uxbf-text: #303944;
  --uxbf-muted: #647381;
  --uxbf-border: #e3edf5;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  direction: rtl;
  text-align: right;
  width: 100%;
  min-height: 124px;
  margin: 20px auto;
  padding: 20px clamp(18px, 3vw, 36px);
  gap: clamp(16px, 3.5vw, 48px);
  color: var(--uxbf-text);
  background: var(--uxbf-surface);
  border: 1px solid var(--uxbf-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  box-sizing: border-box;
  font-family: inherit;
}

.uxbf-countdown *,
.uxbf-countdown *::before,
.uxbf-countdown *::after { box-sizing: border-box; }

/* A single thin brand mark, instead of gradients, decorative corners or sparkles. */
.uxbf-countdown::before {
  content: '';
  position: absolute;
  right: 0;
  top: 19px;
  bottom: 19px;
  width: 4px;
  background: var(--uxbf-accent);
  border-radius: 4px 0 0 4px;
}

.uxbf-countdown--remowin {
  /* Remowin campaign palette: charcoal + confident orange, no visual noise. */
  --uxbf-accent: #ff8200;
  --uxbf-surface: #13151a;
  --uxbf-text: #ffffff;
  --uxbf-muted: #bec2cc;
  --uxbf-border: #31343c;
  background: #13151a;
  border: 1px solid #31343c;
  box-shadow: none;
}

.uxbf-countdown--remowin::before {
  background: #ff8200;
}

.uxbf-countdown--remowin .uxbf-countdown__eyebrow {
  color: #ff9d34;
}

.uxbf-countdown--remowin .uxbf-countdown__title {
  color: #fff !important;
}

.uxbf-countdown--remowin .uxbf-countdown__subtitle {
  color: #bec2cc !important;
}

.uxbf-countdown--remowin .uxbf-countdown__digits {
  background: #202329;
  border-color: #3a3d45;
}

.uxbf-countdown--remowin .uxbf-countdown__unit:not(:last-child)::after {
  border-right-color: #3a3d45;
}

.uxbf-countdown--remowin .uxbf-countdown__num {
  color: var(--uxbf-accent);
}

.uxbf-countdown--remowin .uxbf-countdown__label {
  color: #bec2cc;
}

.uxbf-countdown--remowin .uxbf-countdown__finished {
  color: #ff9d34 !important;
}

.uxbf-countdown--joorland {
  --uxbf-accent: #ff8a00;
  --uxbf-surface: #07188f;
  --uxbf-text: #ffffff;
  --uxbf-muted: rgba(255,255,255,.82);
  --uxbf-border: rgba(255,255,255,.18);
  background: linear-gradient(180deg, #0820a8 0%, #07188f 100%);
  border-color: rgba(5, 19, 98, .45);
  box-shadow: 0 18px 36px rgba(2, 10, 58, .16);
}

.uxbf-countdown--joorland::before {
  width: 6px;
  background: linear-gradient(180deg, #ff9e26 0%, #ff7b00 100%);
  border-radius: 8px 0 0 8px;
}

.uxbf-countdown--joorland .uxbf-countdown__eyebrow {
  color: #ffd08a;
}

.uxbf-countdown--joorland .uxbf-countdown__title,
.uxbf-countdown--joorland .uxbf-countdown__subtitle {
  color: #ffffff !important;
}

.uxbf-countdown--joorland .uxbf-countdown__digits {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.uxbf-countdown--joorland .uxbf-countdown__unit:not(:last-child)::after {
  border-right-color: rgba(255,255,255,.14);
}

.uxbf-countdown--joorland .uxbf-countdown__num {
  color: #ffb347;
  text-shadow: 0 1px 0 rgba(0,0,0,.1);
}

.uxbf-countdown--joorland .uxbf-countdown__label {
  color: rgba(255,255,255,.78);
}

.uxbf-countdown--joorland .uxbf-countdown__finished {
  color: #ffd08a !important;
}

.uxbf-countdown__intro {
  flex: 1 1 52%;
  min-width: 0;
}

.uxbf-countdown__eyebrow {
  display: block;
  width: fit-content;
  margin: 0 0 6px;
  color: var(--uxbf-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.7;
}

.uxbf-countdown .uxbf-countdown__title {
  color: var(--uxbf-text) !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: clamp(18px, 1.7vw, 23px) !important;
  line-height: 1.65 !important;
  letter-spacing: 0 !important;
  margin: 0 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-transform: none !important;
}

.uxbf-countdown .uxbf-countdown__subtitle {
  margin: 0 !important;
  color: var(--uxbf-muted) !important;
  font-family: inherit !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  line-height: 1.8 !important;
  padding: 0 !important;
}

/* The four values are one restrained component, not four floating cards. */
.uxbf-countdown__digits {
  /* LTR only for the four-column sequence: days → hours → minutes → seconds. */
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(4, minmax(59px, 1fr));
  align-items: stretch;
  flex: 0 0 auto;
  min-width: 305px;
  background: #fff;
  border: 1px solid var(--uxbf-border);
  border-radius: 10px;
  padding: 10px 7px;
}

.uxbf-countdown__unit {
  direction: rtl;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 65px;
  gap: 3px;
  padding: 3px 9px;
  text-align: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.uxbf-countdown__unit:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  border-right: 1px solid var(--uxbf-border);
}

.uxbf-countdown__num {
  color: var(--uxbf-accent);
  font-family: inherit;
  font-size: clamp(24px, 2.25vw, 31px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  white-space: nowrap;
}

.uxbf-countdown__label {
  color: var(--uxbf-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.uxbf-countdown .uxbf-countdown__finished {
  flex: 1;
  padding: 0;
  margin: 0;
  color: var(--uxbf-accent) !important;
  font-size: 19px !important;
  font-weight: 750;
  text-align: center;
  line-height: 1.7;
}

@media (max-width: 920px) {
  .uxbf-countdown { flex-direction: column; align-items: stretch; gap: 18px; padding: 22px 24px; }
  .uxbf-countdown__intro { flex: initial; }
  .uxbf-countdown__digits { min-width: 0; width: 100%; }
}

@media (max-width: 520px) {
  .uxbf-countdown {
    padding: 18px 16px 16px;
    margin: 14px auto;
    gap: 16px;
    min-height: 0;
    border-radius: 12px;
  }
  .uxbf-countdown::before { top: 17px; bottom: auto; height: 43px; width: 3px; }
  .uxbf-countdown--joorland::before { width: 4px; }
  .uxbf-countdown__intro { padding-right: 4px; }
  .uxbf-countdown__eyebrow { font-size: 11px; margin-bottom: 3px; }
  .uxbf-countdown .uxbf-countdown__title { font-size: 18px !important; line-height: 1.6 !important; margin-bottom: 5px !important; }
  .uxbf-countdown .uxbf-countdown__subtitle { font-size: 12px !important; }
  .uxbf-countdown__digits { padding: 8px 4px; border-radius: 9px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .uxbf-countdown__unit { min-height: 59px; padding: 3px 1px; }
  .uxbf-countdown__num { font-size: clamp(23px, 6.5vw, 29px); }
  .uxbf-countdown__label { font-size: 10px; }
}

@media (max-width: 350px) {
  .uxbf-countdown { padding: 16px 11px; }
  .uxbf-countdown__num { font-size: 22px; }
}
