/* ======================================================
   CART TOAST / MODAL - versión cuadrada y simple
   - Fondo blanco
   - Icono grande en color principal
   ====================================================== */

.cartToast{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(.85rem, 2vw, 1.4rem);
}

.cartToast.is-open{ display:flex; }

.cartToast__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.52);
  backdrop-filter: blur(5px);
}

/* CUADRADO */
.cartToast__dialog--square{
  position: relative;
  width: min(320px, 92vw);
  aspect-ratio: 1 / 1;            /* ✅ cuadrado real */
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 0;
  box-shadow: 0 34px 110px rgba(0,0,0,.26);
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1.35rem 1.25rem;

  transform: translateY(10px);
  opacity: 0;
  animation: cartToastIn 180ms ease forwards;
}

@keyframes cartToastIn{
  to { transform: translateY(0); opacity: 1; }
}

/* Icono grande (solo color principal) */
.cartToast__icon--big{
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: var(--color-primary);
  border: 1px solid rgba(231,76,60,.35);
  background: rgba(231,76,60,.08);
  box-shadow: 0 14px 30px rgba(0,0,0,.10);
}

/* Texto centrado */
.cartToast__title{
  font-size: 1.12rem;
  font-weight: 850;
  color: rgba(0,0,0,.90);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  line-height: 1.15;
  text-align: center;
}

.cartToast__sub{
  font-size: .92rem;
  color: rgba(0,0,0,.62);
  text-align: center;
  max-width: 26ch;
}

/* Cerrar pequeño en esquina (minimal) */
.cartToast__close--corner{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 0;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,.72);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.cartToast__close--corner span{
  font-size: 1.35rem;
  line-height: 1;
  transform: translateY(-1px);
}

.cartToast__close--corner:hover{
  background:#fff;
  border-color: rgba(0,0,0,.24);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.08);
}

.cartToast__close--corner:focus{
  outline:none;
  box-shadow: 0 0 0 3px rgba(231,76,60,.12);
  border-color: rgba(231,76,60,.55);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .cartToast__dialog--square{
    animation:none !important;
    transform:none !important;
    opacity:1 !important;
  }
  .cartToast__close--corner{ transition:none !important; }
}