/* ============================================================
   Cart AJAX notifications
   ============================================================ */

.dz-cart-toast-root {
  position: fixed;
  top: 92px;
  right: 18px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.dz-cart-toast {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  gap: 12px;
  align-items: center;

  padding: 14px 14px;
  border-radius: 18px;

  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(17, 108, 179, .12);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, .16),
    inset 0 1px 0 rgba(255, 255, 255, .92);

  color: #102033;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);

  pointer-events: auto;

  opacity: 0;
  transform: translateY(-8px) scale(.98);
  transition:
    opacity .18s ease,
    transform .18s ease;
}

.dz-cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dz-cart-toast.is-leaving {
  opacity: 0;
  transform: translateY(-8px) scale(.98);
}

.dz-cart-toast__icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 900;

  background: rgba(11, 127, 150, .10);
  color: #0b7f96;
}

.dz-cart-toast--success .dz-cart-toast__icon {
  background: rgba(23, 163, 74, .12);
  color: #16803b;
}

.dz-cart-toast--danger .dz-cart-toast__icon {
  background: rgba(220, 53, 69, .12);
  color: #b42318;
}

.dz-cart-toast--info .dz-cart-toast__icon {
  background: rgba(11, 127, 150, .10);
  color: #0b7f96;
}

.dz-cart-toast__body {
  min-width: 0;
}

.dz-cart-toast__title {
  margin: 0;
  color: #102033;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
}

.dz-cart-toast__text {
  margin: 2px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.35;
}

.dz-cart-toast__close {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, .06);
  color: #475467;
  cursor: pointer;
  line-height: 1;
}

.dz-cart-toast__close:hover {
  background: rgba(15, 23, 42, .10);
  color: #102033;
}

@media (max-width: 575.98px) {
  .dz-cart-toast-root {
    top: 82px;
    left: 12px;
    right: 12px;
    width: auto;
  }

  .dz-cart-toast {
    border-radius: 16px;
  }
}

/* Cart badge must never disappear during AJAX cart updates */
#cart-badge,
#cart-badge-desktop,
.cart-badge {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  visibility: visible !important;
  opacity: 1 !important;
}
