/* Urgency banner (shared/mhh-urgency.js): "Specialists available for HH:MM:SS" + Call button while the
   call center is open, "Our specialists are back ..." when it's closed. Moved from the Optimizely
   extension "Urgency Banner" into the site on 2026-11-12. Used on the search pages (homepage + ad
   pages: inside the sticky header) and the social advertorial (above the header and atop the quiz). */
.mhh-cc-timer {
  background: #eef1fb;
  border-top: 1px solid #d6dcf5;
  border-bottom: 1px solid #d6dcf5;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}
.mhh-cc-timer[hidden] { display: none; }
/* data-sticky: the banner stays at the top of the screen while the page (or the quiz overlay) scrolls. */
.mhh-cc-timer[data-sticky] { position: sticky; top: 0; z-index: 25; }
.mhh-cc-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

/* Label + pulsing dot */
.mhh-cc-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.3;
}
.mhh-cc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: mhh-pulse 2s infinite;
}

/* Segmented clock */
.mhh-cc-clock { display: flex; gap: 6px; }
.mhh-cc-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
  padding: 7px 8px 5px;
  background: #0e223f;
  color: #ffffff;
  border-radius: 8px;
  box-sizing: border-box;
}
.mhh-cc-unit[hidden] { display: none; }
.mhh-cc-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.mhh-cc-cap {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
  margin-top: 4px;
}

/* Call button */
.mhh-cc-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 26px;
  /* The page's own orange CTA color: --coral on the search pages, --cta on the advertorial (2026-11-12). */
  background: var(--coral, var(--cta, #ff5a36));
  color: #ffffff !important;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.mhh-cc-cta:hover { background: var(--coral-dark, var(--cta-dark, #e4441f)); color: #ffffff !important; }
.mhh-cc-icon { flex-shrink: 0; }

/* Closed state */
.mhh-cc-timer.is-closed { background: #f3f4f6; border-color: #e5e7eb; }
.mhh-cc-timer.is-closed .mhh-cc-dot { background: #9ca3af; animation: none; }
.mhh-cc-timer.is-closed .mhh-cc-clock,
.mhh-cc-timer.is-closed .mhh-cc-cta { display: none; }
.mhh-cc-timer.is-closed .mhh-cc-label { font-size: 17px; color: #374151; }

@keyframes mhh-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
@media (prefers-reduced-motion: reduce) { .mhh-cc-dot { animation: none; } }

/* Phones: everything on one line */
@media (max-width: 600px) {
  .mhh-cc-inner { flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding: 8px 10px; }
  .mhh-cc-label { gap: 6px; font-size: 14px; white-space: nowrap; }
  .mhh-cc-dot { width: 8px; height: 8px; }
  .mhh-cc-clock { gap: 3px; }
  .mhh-cc-unit { min-width: 40px; padding: 4px 4px 3px; border-radius: 6px; }
  .mhh-cc-num { font-size: 18px; }
  .mhh-cc-cap { font-size: 10px; letter-spacing: 0.03em; margin-top: 2px; }
  .mhh-cc-cta { min-height: 44px; padding: 0 14px; gap: 6px; font-size: 15px; }
  .mhh-cc-icon { width: 16px; height: 16px; }
  /* Closed: the message can wrap, since the clock and button are hidden */
  .mhh-cc-timer.is-closed .mhh-cc-inner { flex-wrap: wrap; justify-content: center; }
  .mhh-cc-timer.is-closed .mhh-cc-label { white-space: normal; font-size: 14px; text-align: center; }
}
/* 360-375px phones: tighter spacing */
@media (max-width: 375px) {
  .mhh-cc-inner { gap: 6px; padding: 8px; }
  .mhh-cc-label { gap: 5px; }
  .mhh-cc-unit { min-width: 36px; }
  .mhh-cc-cta { padding: 0 12px; font-size: 14px; }
}
/* Only the tiniest screens: drop the label text */
@media (max-width: 340px) {
  .mhh-cc-timer:not(.is-closed) .mhh-cc-text { display: none; }
}
