/* mesh — shared toast / snackbar. Pairs with assets/js/mesh-toast.js.
   !important across .mesh-toast-act because the toast appears on public mesh
   pages, where Astra/Elementor/theme buttons inject background + padding
   rules that out-specify our component (we shipped once with a magenta
   action button because of exactly that bleed). */

.mesh-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 9px 8px 9px 20px;
  background: #0d0d0d;
  color: #f5f2eb;
  border: 0;
  border-radius: 32px;
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  z-index: 9500;
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
  max-width: calc(100vw - 32px);
  transition: opacity .22s ease, transform .28s cubic-bezier(.16,1,.3,1);
}
.mesh-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mesh-toast-msg {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  color: inherit;
  padding-right: 4px;
}

/* Action button: locked-down with !important so the host theme can't
   repaint it (we previously got a pink Astra background on this element). */
.mesh-toast-act,
button.mesh-toast-act {
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #ffe135 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 6px 14px !important;
  margin: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
}
.mesh-toast-act:hover { color: #fff !important; background: rgba(255,225,53,.12) !important; }
.mesh-toast-act:focus-visible { outline: 2px solid #ffe135 !important; outline-offset: 2px !important; }

@media (max-width: 560px) {
  .mesh-toast { font-size: 14px; padding: 10px 8px 10px 20px; bottom: 16px; max-width: calc(100vw - 24px); }
  .mesh-toast-act, button.mesh-toast-act { font-size: 14px !important; padding: 7px 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .mesh-toast { transition: opacity .15s ease; transform: translateX(-50%); }
  .mesh-toast.is-show { transform: translateX(-50%); }
}
