/* =====================================================================
   MODALS, TOASTS & STATUS MESSAGES
   Search/mobile overlays live in 07-navigation.css.
   This component covers generic overlay, toast, and error-notice
   patterns used by theme scripts (cookie consent v2, form AJAX,
   error boundaries).
   ===================================================================== */

.mc-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--mc-ink, #064e3b);
  color: #ffffff;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.mc-toast.mc-toast-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mc-toast.mc-toast-error {
  background: #b91c1c;
}

.mc-toast.mc-toast-success {
  background: var(--mc-leaf, #16a34a);
}

.mc-error-boundary {
  background: rgba(185, 28, 28, 0.06);
  border: 1px solid rgba(185, 28, 28, 0.3);
  color: #b91c1c;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
}

.mc-loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid rgba(22, 163, 74, 0.25);
  border-top-color: var(--mc-leaf, #16a34a);
  border-radius: 50%;
  animation: mc-spin 0.7s linear infinite;
}

@keyframes mc-spin {
  to {
    transform: rotate(360deg);
  }
}

.mc-aria-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 600px) {
  .mc-toast {
    left: 16px;
    right: 16px;
    max-width: none;
  }
}