#emergency-notice-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

#emergency-notice-slot:empty {
  display: none;
}

.emergency-notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-weight: 800;
  text-align: left;
  line-height: 1.3;
  color: #1a0a0a;
  background: #ffd166;
  border: 2px solid #ff4d4d;
  animation: emergency-notice-flash 1.2s steps(2, end) infinite;
}

.emergency-notice-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.emergency-notice-text {
  font-size: 13px;
  line-height: 1.3;
}

@keyframes emergency-notice-flash {
  0% {
    background: #ffd166;
    color: #1a0a0a;
  }
  50% {
    background: #c1121f;
    color: #fff8e8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .emergency-notice {
    animation: none;
    background: #c1121f;
    color: #fff8e8;
  }
}
