/* Top-notification bar (driven by Settings, one row per active slot).
   Standalone stylesheet so the bar is styled on every layout — both the
   regular `application` layout and the SPA `application_spa` layout (checkout,
   order, …) which does not load the Tailwind build. */
.top-notification {
  display: block;
  color: #fff;
  text-align: center;
  font-weight: 300;
  padding: 0.5em;
}

/* Store-online status bar (SUCCESS type): smaller font, tighter padding and a
   centered flex row with the blinking dot — matches the design mockup. */
.top-notification[data-notification-type="SUCCESS"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 400;
  padding: 9px 20px;
}

/* Blinking "online" indicator shown before the SUCCESS top-notification text.
   Light lime dot with a soft glow that pulses. */
.top-notification__dot {
  flex: none;
  display: inline-block;
  vertical-align: middle;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #cdee4f;
  box-shadow: 0 0 0 0 rgba(205, 238, 79, 0.7);
  animation: top-notification-dot-pulse 1.6s ease-out infinite;
}

@keyframes top-notification-dot-pulse {
  0% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(205, 238, 79, 0.7);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 6px 2px rgba(205, 238, 79, 0.55), 0 0 0 6px rgba(205, 238, 79, 0);
  }
  100% {
    opacity: 0.55;
    box-shadow: 0 0 0 0 rgba(205, 238, 79, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-notification__dot {
    animation: none;
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(205, 238, 79, 0.2);
  }
}
