:root {
  --notam-live-toast-top: calc(var(--topbarHeight, 0px) + 12px);
}

.notam-live-toast {
  position: fixed;
  top: var(--notam-live-toast-top);
  left: 14px;
  z-index: 10020;
  width: min(340px, calc(100vw - 28px));
  box-sizing: border-box;
  padding: 16px 16px 13px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--info);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translate3d(-12px, 0, 0);
  transition: opacity .2s ease, transform .2s ease, top .2s ease;
  pointer-events: auto;
}

.notam-live-toast[hidden] {
  display: none;
}

.notam-live-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.notam-live-toast__title {
  display: block;
  padding-right: 30px;
  font-size: 15px;
  line-height: 1.3;
}

.notam-live-toast__message {
  margin: 7px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.notam-live-toast__close {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.notam-live-toast__cta {
  display: block;
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--hover-bg);
  color: var(--text);
  font: 700 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  cursor: pointer;
}

.notam-live-toast button:hover {
  background: var(--hover-bg);
}

.notam-live-toast button:focus-visible,
#updates-fab:focus-visible {
  outline: 3px solid var(--info);
  outline-offset: 2px;
}

#updates-fab.notam-live-pulse {
  animation: notam-live-fab-pulse .82s ease-in-out 3;
}

@keyframes notam-live-fab-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, .30); }
  45% { transform: scale(1.13); box-shadow: 0 0 0 9px color-mix(in srgb, var(--info) 22%, transparent), 0 10px 28px rgba(0, 0, 0, .36); }
}

@media (max-width: 640px) {
  .notam-live-toast {
    left: 10px;
    width: min(320px, calc(100vw - 20px));
    padding: 14px 14px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notam-live-toast {
    transition: none;
  }

  #updates-fab.notam-live-pulse {
    animation: none;
  }
}
