.site-notifications {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1400;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  gap: 10px;
  pointer-events: none;
}

.site-notification {
  --notification-accent: #1f6b55;
  --notification-soft: #e8f4ee;
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  gap: 11px;
  align-items: start;
  overflow: hidden;
  padding: 15px 12px 15px 15px;
  border: 1px solid color-mix(in srgb, var(--notification-accent) 20%, #fff);
  border-radius: 17px;
  background: rgba(255, 254, 251, .97);
  box-shadow: 0 20px 48px rgba(18, 41, 34, .18);
  color: #173c31;
  opacity: 0;
  pointer-events: auto;
  transform: translate3d(18px, 8px, 0) scale(.97);
  transition: opacity .2s ease, transform .24s cubic-bezier(.2, .85, .3, 1);
}

.site-notification.is-visible { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.site-notification.is-leaving { opacity: 0; transform: translate3d(12px, 0, 0) scale(.98); }
.site-notification--error { --notification-accent: #b74f3b; --notification-soft: #fff0ea; }
.site-notification--warning { --notification-accent: #a06a20; --notification-soft: #fff6df; }
.site-notification--info { --notification-accent: #39758e; --notification-soft: #e9f5f8; }

.site-notification__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--notification-soft);
  color: var(--notification-accent);
}

.site-notification__icon svg { width: 20px; height: 20px; }
.site-notification__content { min-width: 0; padding-top: 1px; }
.site-notification__title { display: block; font-size: .9rem; font-weight: 800; letter-spacing: -.01em; }
.site-notification__message { margin: 3px 0 0; color: #62746d; font-size: .84rem; font-weight: 600; line-height: 1.42; }
.site-notification__close { width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent; color: #789087; cursor: pointer; font-size: 1.38rem; line-height: 1; }
.site-notification__close:hover { background: #f2f5f1; color: #173c31; }
.site-notification__close:focus-visible { outline: 3px solid rgba(31, 107, 85, .28); outline-offset: 2px; }
.site-notification__progress { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; transform: scaleX(0); transform-origin: left; background: var(--notification-accent); opacity: .78; }
.site-notification.is-visible .site-notification__progress { animation: site-notification-progress var(--notification-duration, 5000ms) linear forwards; }

@keyframes site-notification-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 767.98px) {
  .site-notifications { right: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px)); }
  .site-notification { border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-notification { transition: none; }
  .site-notification.is-visible .site-notification__progress { animation: none; transform: scaleX(1); }
}
