/* CUY GAMES · Avisos temporales (toast) — v2.24. Lo cargan el panel (trabajador y motorizado) y el Portal
   de Tiendas; el comportamiento está en js/toast.js. Diseño basado en Uiverse.io (akshat-patel28, MIT):
   tarjeta blanca, onda decorativa a la izquierda, ícono en un círculo, título, texto y «X».
   Colores de la marca para éxito (turquesa), advertencia (amarillo) y error (rojo); información en azul
   (pedido expreso: la paleta de la marca no tiene azul). Los textos usan los tonos oscuros (contraste AA). */
.toast{
  --t-acento:#4EB7B5; --t-texto:#2B6564; --t-fondo-icono:rgba(78,183,181,.18);
  position:relative; overflow:hidden; box-sizing:border-box; pointer-events:auto;
  display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px;
  width:360px; max-width:100%; min-height:72px; padding:12px 8px 12px 22px;
  background:#fff; border-radius:12px; border:1px solid #DEDEDE; box-shadow:0 8px 24px rgba(52,52,52,.16);
  font-family:'Montserrat', sans-serif; color:#343434; text-align:left;
  animation:toast-entra .22s cubic-bezier(.2,.8,.3,1);
  transition:opacity .2s ease, transform .2s ease;
}
.toast-ok{ --t-acento:#4EB7B5; --t-texto:#2B6564; --t-fondo-icono:rgba(78,183,181,.18); }
.toast-warn{ --t-acento:#FDC641; --t-texto:#72591D; --t-fondo-icono:rgba(253,198,65,.28); }
.toast-err{ --t-acento:#FF495D; --t-texto:#B53442; --t-fondo-icono:rgba(255,73,93,.16); }
.toast-info{ --t-acento:#4A8FD8; --t-texto:#235E9C; --t-fondo-icono:rgba(74,143,216,.16); }
/* Onda: decorativa, girada en el borde izquierdo y con poca opacidad (no compite con el texto). */
.toast-onda{ position:absolute; left:-40px; top:50%; width:100px; height:23px; transform:translateY(-50%) rotate(90deg); fill:var(--t-acento); opacity:.35; pointer-events:none; }
.toast-icono{ position:relative; display:grid; place-items:center; width:38px; height:38px; border-radius:50%; background:var(--t-fondo-icono); color:var(--t-texto); }
.toast-icono svg{ width:19px; height:19px; }
.toast-textos{ position:relative; min-width:0; }
.toast-titulo{ margin:0; font-size:15px; line-height:1.3; font-weight:700; color:var(--t-texto); overflow-wrap:anywhere; }
.toast-detalle{ margin:2px 0 0; font-size:13px; line-height:1.4; font-weight:500; color:#5E5E5E; overflow-wrap:anywhere; }
.toast-cerrar{ position:relative; align-self:start; display:grid; place-items:center; width:36px; height:36px; padding:0; border:0; border-radius:8px; background:transparent; color:#6F6F6F; cursor:pointer; }
.toast-cerrar svg{ width:18px; height:18px; }
.toast-cerrar:hover{ background:#F2F2F2; color:#222; }
.toast-cerrar:focus-visible{ outline:2px solid #343434; outline-offset:2px; }
.toast .sr-solo{ position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.toast-sale{ opacity:0; transform:translateY(6px); }
.toast-repite{ animation:toast-repite .3s ease; }
@keyframes toast-entra{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:none; } }
@keyframes toast-repite{ 50%{ transform:scale(1.02); } }

/* Contenedores. Panel: abajo a la derecha, por encima del botón «Tarifario». Portal: lo mismo en
   escritorio. En celular ocupan el ancho (con margen) y quedan sobre la navegación inferior. */
#toast-host, .pt-toasts{ position:fixed; right:20px; bottom:76px; z-index:120; display:flex; flex-direction:column; align-items:flex-end; gap:8px; width:360px; max-width:calc(100vw - 32px); pointer-events:none; }
.pt-toasts{ bottom:max(20px, env(safe-area-inset-bottom)); z-index:80; }
@media (max-width:860px){
  #toast-host{ left:12px; right:12px; width:auto; max-width:none; align-items:stretch; bottom:calc(122px + env(safe-area-inset-bottom)); }
  #toast-host .toast{ width:100%; }
}
@media (max-width:640px){
  .pt-toasts{ left:12px; right:12px; width:auto; max-width:none; align-items:stretch; }
  .pt-toasts .toast{ width:100%; }
}
@media (max-width:400px){
  .toast{ gap:10px; padding:10px 6px 10px 18px; min-height:64px; }
  .toast-icono{ width:34px; height:34px; }
  .toast-titulo{ font-size:14px; }
}
@media (prefers-reduced-motion: reduce){
  .toast, .toast-sale, .toast-repite{ animation:none; transition:none; }
}
