/* Hearing Solutions Inc. — Temporary Stacked Gift of Hearing Hero (Divi-Isolated)
 * Strictly scoped to #hsi-goh-temp-hero so tDivi cannot override it and it cannot affect tDivi below.
 * Auto-hides permanently when countdown ends (Nov 30, 2026 @ 5:00 PM EST).
 */

#hsi-goh-temp-hero,
#hsi-goh-temp-hero *,
#hsi-goh-temp-hero *::before,
#hsi-goh-temp-hero *::after {
  box-sizing: border-box;
}

#hsi-goh-temp-hero.hsi-goh-th-expired {
  display: none !important;
}

#hsi-goh-temp-hero {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 46px 20px 50px !important;
  overflow: hidden !important;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  color: #f8fafc !important;
  line-height: 1.5 !important;
  background:
    radial-gradient(circle at 80% 18%, rgba(168, 207, 232, 0.24), transparent 48%),
    radial-gradient(circle at 14% 85%, rgba(58, 125, 135, 0.26), transparent 50%),
    linear-gradient(135deg, #0b1623 0%, #102438 55%, #163346 100%) !important;
  border-bottom: 3px solid #d4be8d !important;
  box-shadow: 0 18px 44px rgba(6, 17, 26, 0.24) !important;
  -webkit-font-smoothing: antialiased;
  z-index: 5;
}

#hsi-goh-temp-hero .hsi-goh-th-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  opacity: 0.92;
  z-index: 1;
}

#hsi-goh-temp-hero .hsi-goh-th-preview-bar {
  position: relative;
  z-index: 4;
  max-width: 1180px;
  margin: 0 auto 20px !important;
  padding: 9px 16px !important;
  border-radius: 10px;
  background: rgba(212, 190, 141, 0.18);
  border: 1px solid rgba(212, 190, 141, 0.55);
  color: #f8fafc !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

#hsi-goh-temp-hero .hsi-goh-th-inner {
  position: relative;
  z-index: 3;
  max-width: 1180px !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 0.76fr) !important;
  gap: 38px !important;
  align-items: center !important;
}

#hsi-goh-temp-hero .hsi-goh-th-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 7px 16px !important;
  margin: 0 0 16px 0 !important;
  border-radius: 999px !important;
  background: rgba(212, 190, 141, 0.14) !important;
  border: 1px solid rgba(212, 190, 141, 0.45) !important;
  color: #e8f1f8 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
}

#hsi-goh-temp-hero .hsi-goh-th-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: #d4be8d !important;
  box-shadow: 0 0 0 0 rgba(212, 190, 141, 0.75);
  animation: hsiGohPulse 2s infinite;
  flex-shrink: 0;
}

@keyframes hsiGohPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 190, 141, 0.75); }
  70% { box-shadow: 0 0 0 10px rgba(212, 190, 141, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 190, 141, 0); }
}

#hsi-goh-temp-hero .hsi-goh-th-title {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
  font-size: clamp(32px, 3.8vw, 50px) !important;
  font-weight: 700 !important;
  line-height: 1.12 !important;
  color: #f8fafc !important;
  margin: 0 0 14px 0 !important;
  padding: 0 !important;
  letter-spacing: -0.01em !important;
}

#hsi-goh-temp-hero .hsi-goh-th-shimmer {
  background: linear-gradient(110deg, #cfe2ee 0%, #ffffff 42%, #d4be8d 70%, #e8f1f8 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: hsiGohShimmer 6.5s linear infinite;
}

@keyframes hsiGohShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

#hsi-goh-temp-hero .hsi-goh-th-lead {
  font-size: 16.5px !important;
  line-height: 1.58 !important;
  color: rgba(248, 250, 252, 0.86) !important;
  margin: 0 0 22px 0 !important;
  padding: 0 !important;
  max-width: 60ch !important;
}

#hsi-goh-temp-hero .hsi-goh-th-lead strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Synchronized Countdown Panel */
#hsi-goh-temp-hero .hsi-goh-th-cd-box {
  background: rgba(11, 22, 35, 0.78) !important;
  border: 1px solid rgba(212, 190, 141, 0.42) !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  margin: 0 0 22px 0 !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28) !important;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-kicker {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #d4be8d !important;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-date {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #cfe2ee !important;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-grid {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr !important;
  align-items: center !important;
  gap: 8px !important;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-unit {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(207, 226, 238, 0.2) !important;
  border-radius: 12px !important;
  padding: 10px 8px !important;
  text-align: center !important;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-val {
  display: block !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: clamp(24px, 2.7vw, 34px) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-lbl {
  display: block !important;
  margin-top: 3px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: #cfe2ee !important;
}

#hsi-goh-temp-hero .hsi-goh-th-cd-sep {
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #d4be8d !important;
  text-align: center !important;
  line-height: 1 !important;
}

/* CTAs & Eligible Towns */
#hsi-goh-temp-hero .hsi-goh-th-actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin: 0 0 16px 0 !important;
}

#hsi-goh-temp-hero .hsi-goh-th-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 48px !important;
  padding: 12px 26px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #d4be8d 0%, #e5d4ab 100%) !important;
  color: #0b1623 !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  border: none !important;
  box-shadow: 0 10px 26px rgba(212, 190, 141, 0.3) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
  cursor: pointer !important;
}

#hsi-goh-temp-hero .hsi-goh-th-btn-primary:hover,
#hsi-goh-temp-hero .hsi-goh-th-btn-primary:focus-visible {
  transform: translateY(-2px) !important;
  filter: brightness(1.06) !important;
  box-shadow: 0 14px 30px rgba(212, 190, 141, 0.42) !important;
  color: #0b1623 !important;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

#hsi-goh-temp-hero .hsi-goh-th-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 48px !important;
  padding: 12px 20px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(207, 226, 238, 0.38) !important;
  color: #f8fafc !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.2s ease, border-color 0.2s ease !important;
  cursor: pointer !important;
}

#hsi-goh-temp-hero .hsi-goh-th-btn-secondary:hover,
#hsi-goh-temp-hero .hsi-goh-th-btn-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: #d4be8d !important;
  color: #ffffff !important;
  outline: 2px solid #d4be8d;
  outline-offset: 2px;
}

#hsi-goh-temp-hero .hsi-goh-th-skip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 8px 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #cfe2ee !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
}

#hsi-goh-temp-hero .hsi-goh-th-skip:hover {
  color: #d4be8d !important;
  text-decoration: underline !important;
}

#hsi-goh-temp-hero .hsi-goh-th-towns {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  font-size: 13px !important;
  color: #cfe2ee !important;
  margin: 0 !important;
  padding: 0 !important;
}

#hsi-goh-temp-hero .hsi-goh-th-town-tag {
  display: inline-block !important;
  padding: 3px 10px !important;
  border-radius: 999px !important;
  background: rgba(58, 125, 135, 0.34) !important;
  border: 1px solid rgba(207, 226, 238, 0.24) !important;
  color: #f8fafc !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

/* Right Portrait Showcase */
#hsi-goh-temp-hero .hsi-goh-th-visual {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

#hsi-goh-temp-hero .hsi-goh-th-card {
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  border: 2px solid rgba(212, 190, 141, 0.58) !important;
  background: #102438 !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42) !important;
}

#hsi-goh-temp-hero .hsi-goh-th-photo {
  display: block !important;
  width: 100% !important;
  height: 315px !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#hsi-goh-temp-hero .hsi-goh-th-caption {
  padding: 14px 18px !important;
  background: linear-gradient(180deg, rgba(11, 22, 35, 0.94) 0%, #0b1623 100%) !important;
  border-top: 1px solid rgba(212, 190, 141, 0.28) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}

#hsi-goh-temp-hero .hsi-goh-th-caption strong {
  display: block !important;
  font-family: 'Playfair Display', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

#hsi-goh-temp-hero .hsi-goh-th-caption span {
  display: block !important;
  font-size: 12.5px !important;
  color: #cfe2ee !important;
  margin-top: 2px !important;
}

#hsi-goh-temp-hero .hsi-goh-th-gift-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 12px !important;
  padding: 9px 16px !important;
  border-radius: 14px !important;
  background: rgba(11, 22, 35, 0.84) !important;
  border: 1px solid rgba(207, 226, 238, 0.32) !important;
  width: 100% !important;
  max-width: 380px !important;
}

#hsi-goh-temp-hero .hsi-goh-th-gift-badge img {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

#hsi-goh-temp-hero .hsi-goh-th-gift-badge b {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #d4be8d !important;
  line-height: 1.25 !important;
}

#hsi-goh-temp-hero .hsi-goh-th-gift-badge small {
  display: block !important;
  font-size: 12px !important;
  color: rgba(248, 250, 252, 0.82) !important;
  line-height: 1.3 !important;
}

@media (max-width: 960px) {
  #hsi-goh-temp-hero {
    padding: 36px 18px 40px !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-inner {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-card,
  #hsi-goh-temp-hero .hsi-goh-th-gift-badge {
    max-width: 440px !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-photo {
    height: 290px !important;
  }
}

@media (max-width: 560px) {
  #hsi-goh-temp-hero {
    padding: 28px 14px 32px !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-cd-grid {
    gap: 4px !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-cd-unit {
    padding: 8px 4px !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-btn-primary,
  #hsi-goh-temp-hero .hsi-goh-th-btn-secondary {
    width: 100% !important;
  }
  #hsi-goh-temp-hero .hsi-goh-th-skip {
    justify-content: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #hsi-goh-temp-hero .hsi-goh-th-dot,
  #hsi-goh-temp-hero .hsi-goh-th-shimmer {
    animation: none !important;
  }
}
