/* Shipping Countdown Timer
   Premium frontend system. Scoped, resilient and deliberately defensive against theme styles. */

.dct-container,
.dct-container *,
.dct-container *::before,
.dct-container *::after {
  box-sizing: border-box;
}

.dct-container {
  --dct-text: #2f3b4f;
  --dct-muted: #667085;
  --dct-surface: #f8fafc;
  --dct-surface-2: #eef3f8;
  --dct-border: #d2dce8;
  --dct-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 8px 18px rgba(15, 23, 42, 0.06);
  --dct-dark: #263246;
  --dct-radius: 12px;
  --dct-font-family: inherit;
  --dct-font-size: inherit;
  --dct-font-size-mobile: var(--dct-font-size);
  --dct-font-weight: 400;
  --dct-line-height: 1.35;
  --dct-letter-spacing: normal;
  --dct-timer-text: inherit;
  --dct-timer-border: var(--dct-border);
  --dct-timer-radius: var(--dct-radius);
  --dct-gap: 0.5rem;
  display: block;
  width: 100%;
  margin: 0 0 1rem;
  color: var(--dct-text);
  font-family: var(--dct-font-family);
  font-size: var(--dct-font-size);
  font-weight: var(--dct-font-weight);
  line-height: var(--dct-line-height);
  letter-spacing: var(--dct-letter-spacing);
}

.countdown-timer-wrap {
  display: block;
  width: 100%;
}

.wc_countdowntimer {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.35em;
  max-width: 100%;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  white-space: normal;
}

.dct-clock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.1em;
  height: 1.1em;
  margin: 0 0.1em 0 0;
  font-size: 0.95em;
  line-height: 1;
  transform: translateY(-0.02em);
}

.dct-timer {
  isolation: isolate;
  contain: layout style;
  display: inline-grid !important;
  grid-template-columns: 2ch 0.45ch 2ch 0.45ch 2ch;
  align-items: center !important;
  justify-items: center !important;
  column-gap: 0.04em;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
  margin: 0 0 0 0.06em !important;
  padding: 0;
  color: var(--dct-timer-text);
  font-family: inherit;
  font-size: 1em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  letter-spacing: 0.01em;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  vertical-align: middle !important;
}

.dct-unit,
.dct-value,
.dct-label,
.dct-separator {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  float: none !important;
  clear: none !important;
  display: block;
  width: auto;
  min-width: 0;
  max-width: none;
  height: auto;
  min-height: 0;
  max-height: none;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: 1 !important;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  transform: none !important;
  vertical-align: middle !important;
}

.dct-unit {
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: center !important;
  min-width: 2ch;
}

.dct-value {
  font-weight: 700;
}

.dct-label {
  display: none !important;
}

.dct-separator {
  display: grid !important;
  place-items: center !important;
  align-self: center !important;
  justify-self: center !important;
  opacity: 0.68;
  font-weight: 700;
}

.cdn_before_adt_cart {
  margin-bottom: 1rem;
}

.dct-style-inline .dct-timer {
  font-weight: 700;
}

.dct-style-pill .dct-timer {
  min-height: 2.55em;
  padding: 0.54em 0.82em;
  border: 1px solid var(--dct-timer-border);
  border-radius: var(--dct-timer-radius, 999px);
  background: var(--dct-timer-bg, linear-gradient(180deg, #ffffff 0%, var(--dct-surface-2) 100%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), var(--dct-shadow);
  color: var(--dct-text);
  font-weight: 800;
}

.dct-style-pill .dct-separator {
  opacity: 0.5;
}

.dct-style-badge .dct-timer {
  min-height: 2.45em;
  padding: 0.52em 0.78em;
  border: 1px solid var(--dct-timer-border, rgba(15, 23, 42, 0.2));
  border-radius: var(--dct-timer-radius, 0.55em);
  background: var(--dct-timer-bg, linear-gradient(180deg, #334156 0%, var(--dct-dark) 100%));
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.2), 0 8px 16px rgba(15, 23, 42, 0.12);
  color: var(--dct-timer-text, #fff) !important;
  font-weight: 800;
}

.dct-style-badge .dct-value,
.dct-style-badge .dct-separator {
  color: var(--dct-timer-text, #fff) !important;
}

.dct-style-badge .dct-separator {
  opacity: 0.78;
}

.dct-style-cards .wc_countdowntimer {
  gap: 0.45em;
}

.dct-style-cards .dct-timer {
  display: inline-grid !important;
  grid-template-columns: repeat(3, minmax(3.3em, 3.3em));
  column-gap: 0.32em;
  align-items: stretch !important;
  padding: 0;
}

.dct-style-cards .dct-unit {
  min-width: 3.3em;
  min-height: 3.35em;
  padding: 0.44em 0.44em 0.38em;
  border: 1px solid var(--dct-timer-border);
  border-radius: var(--dct-timer-radius, 0.62em);
  background: var(--dct-timer-bg, linear-gradient(180deg, #ffffff 0%, var(--dct-surface-2) 100%));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), var(--dct-shadow);
  color: var(--dct-text);
  align-content: center !important;
  gap: 0.18em;
}

.dct-style-cards .dct-value {
  font-size: 1.02em;
  font-weight: 850;
}

.dct-style-cards .dct-label {
  display: block !important;
  color: var(--dct-muted);
  font-size: 0.56em;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1 !important;
  text-transform: uppercase;
}

.dct-style-cards .dct-separator {
  display: none !important;
}

@media (max-width: 520px) {
  .dct-container {
    font-size: var(--dct-font-size-mobile);
  }

  .wc_countdowntimer {
    gap: 0.32em;
  }

  .dct-style-cards .dct-timer {
    grid-template-columns: repeat(3, minmax(3.05em, 3.05em));
    column-gap: 0.22em;
  }

  .dct-style-cards .dct-unit {
    min-width: 3.05em;
  }
}

/* v4.7: Ensure the dedicated clock text colour always wins inside the timer UI. */
.dct-container .dct-timer,
.dct-container .dct-timer .dct-unit,
.dct-container .dct-timer .dct-value,
.dct-container .dct-timer .dct-label,
.dct-container .dct-timer .dct-separator {
  color: var(--dct-timer-text) !important;
}

.dct-style-pill .dct-timer,
.dct-style-pill .dct-timer .dct-unit,
.dct-style-pill .dct-timer .dct-value,
.dct-style-pill .dct-timer .dct-label,
.dct-style-pill .dct-timer .dct-separator,
.dct-style-cards .dct-timer,
.dct-style-cards .dct-timer .dct-unit,
.dct-style-cards .dct-timer .dct-value,
.dct-style-cards .dct-timer .dct-label,
.dct-style-cards .dct-timer .dct-separator,
.dct-style-badge .dct-timer,
.dct-style-badge .dct-timer .dct-unit,
.dct-style-badge .dct-timer .dct-value,
.dct-style-badge .dct-timer .dct-label,
.dct-style-badge .dct-timer .dct-separator,
.dct-style-inline .dct-timer,
.dct-style-inline .dct-timer .dct-unit,
.dct-style-inline .dct-timer .dct-value,
.dct-style-inline .dct-timer .dct-label,
.dct-style-inline .dct-timer .dct-separator {
  color: var(--dct-timer-text) !important;
}
