/* Jobs Hub alerts: modal, sticky bar, job nudge */

.jh-alerts-modal[hidden],
.jh-alerts-bar[hidden],
.jh-alerts-nudge[hidden] {
  display: none !important;
}

.jh-alerts-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 640px) {
  .jh-alerts-modal {
    align-items: center;
  }
}

.jh-alerts-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 24, 0.55);
}

.jh-alerts-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #182230;
  color: #f2f5f8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 1.35rem 1.25rem 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .jh-alerts-modal__dialog {
  background: #fff;
  color: #15202b;
  border-color: rgba(15, 20, 25, 0.12);
}

.jh-alerts-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
}

.jh-alerts-modal__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffc107;
}

.jh-alerts-modal__title {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  line-height: 1.2;
}

.jh-alerts-modal__text,
.jh-alerts-modal__note {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.45;
}

.jh-alerts-modal__note {
  font-size: 0.8rem;
  opacity: 0.7;
}

.jh-alerts-modal__actions,
.jh-alerts-nudge__actions,
.jh-alerts-bar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.jh-alerts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 42px;
}

.jh-alerts-btn--sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.85rem;
  min-height: 36px;
}

.jh-alerts-btn--wa {
  background: #25d366;
  color: #0b1a10 !important;
}

.jh-alerts-btn--email {
  background: #ff6a1a;
  color: #fff !important;
}

.jh-alerts-btn--fb {
  background: #1877f2;
  color: #fff !important;
}

.jh-alerts-link {
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0.25rem;
}

.jh-alerts-modal__skip {
  margin-top: 0.85rem;
  font-size: 0.85rem;
}

.jh-alerts-modal__status,
.jh-alerts-nudge__status {
  margin: 0.65rem 0 0;
  font-weight: 600;
  color: #25d366;
}

.jh-alerts-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99990;
  background: #182230;
  color: #f2f5f8;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.65rem 0;
}

[data-theme="light"] .jh-alerts-bar {
  background: #fff;
  color: #15202b;
  border-top-color: rgba(15, 20, 25, 0.12);
}

.jh-alerts-bar__inner {
  width: min(1040px, 92%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.jh-alerts-bar__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.jh-alerts-bar__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.4rem;
}

.jh-alerts-nudge {
  margin: 1.5rem 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #25d366;
  border-radius: 10px;
  background: rgba(24, 34, 48, 0.9);
  color: #f2f5f8;
}

[data-theme="light"] .jh-alerts-nudge {
  background: #fff;
  color: #15202b;
  border-color: rgba(15, 20, 25, 0.12);
}

.jh-alerts-nudge strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.jh-alerts-nudge p {
  margin: 0 0 0.75rem;
  opacity: 0.9;
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .jh-alerts-modal,
  .jh-alerts-bar {
    transition: none !important;
  }
}

/* Keep chat toggle clear of sticky bar */
body.jh-alerts-bar-visible .jh-chat {
  bottom: 4.5rem;
}
