/* Onboarding abandonment recovery banner: sticky top, 24h countdown, dismissible */

.onboarding-recovery-banner-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  min-height: 48px;
}

.onboarding-recovery-banner {
  position: relative;
  background-color: #5c3d2e;
  color: #f5f0e8;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  min-height: 48px;
  box-sizing: border-box;
}

.onboarding-recovery-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}

.onboarding-recovery-banner__countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(139, 115, 85, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9999px;
  padding: 0.25rem 0.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.onboarding-recovery-banner__clock {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.onboarding-recovery-banner__timer {
  white-space: nowrap;
}

.onboarding-recovery-banner__message {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.onboarding-recovery-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.onboarding-recovery-banner__lock {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.onboarding-recovery-banner__dismiss {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #fff;
  line-height: 0;
  border-radius: 4px;
  transition: background-color 0.15s ease;
}

.onboarding-recovery-banner__dismiss:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.onboarding-recovery-banner__dismiss svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

/* Navbar sits below banner when banner is visible */
body.onboarding-banner-visible #navbar {
  top: var(--onboarding-banner-height, 48px);
}

/* Extra top padding so content is not hidden under fixed banner (navbar moves down via #navbar top) */
body.onboarding-banner-visible {
  padding-top: var(--onboarding-banner-height, 48px);
}

/* Responsive: stack on small screens */
@media (max-width: 640px) {
  .onboarding-recovery-banner {
    padding: 0.5rem 2.25rem 0.5rem 0.75rem;
    justify-content: center;
  }

  .onboarding-recovery-banner__inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .onboarding-recovery-banner__message {
    text-align: center;
  }

  .onboarding-recovery-banner__cta {
    width: 100%;
    justify-content: center;
  }
}
