/* Shopping China — toasts top-left + glass navy (no tapa el carrito/checkout) */
:root {
  --sc-toast-navy: #002055;
  --sc-toast-ok: #5ddea8;
  --sc-toast-danger: #ff8b93;
  --sc-toast-warn: #fcb92c;
  --sc-toast-info: #9db7ff;
  --sc-toast-radius: 0.9rem;
  --sc-toast-shadow: 0 12px 32px rgba(0, 16, 40, 0.28);
}

#toast-container {
  z-index: 11000;
  pointer-events: none;
  padding: 0;
}

/* Default / top-left: arriba a la izquierda */
#toast-container.toast-top-left,
#toast-container.toast-top-center,
#toast-container.toast-top-right {
  top: 1rem !important;
  bottom: auto !important;
  left: 1rem !important;
  right: auto !important;
  transform: none !important;
  width: min(20rem, calc(100vw - 1.5rem));
}

/* Bottom variants (si se piden explícito) */
#toast-container.toast-bottom-center,
#toast-container.toast-bottom-right,
#toast-container.toast-bottom-left {
  top: auto !important;
  bottom: 1rem !important;
  left: 1rem !important;
  right: auto !important;
  transform: none !important;
  width: min(20rem, calc(100vw - 1.5rem));
}

@media (min-width: 768px) {
  #toast-container.toast-top-left,
  #toast-container.toast-top-center,
  #toast-container.toast-top-right,
  #toast-container.toast-bottom-left,
  #toast-container.toast-bottom-center,
  #toast-container.toast-bottom-right {
    width: min(19rem, calc(100vw - 2rem));
  }

  #toast-container.toast-top-right,
  #toast-container.toast-bottom-right {
    left: auto !important;
    right: 1rem !important;
  }

  #toast-container.toast-top-center,
  #toast-container.toast-bottom-center {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }
}

#toast-container > div {
  position: relative;
  pointer-events: auto;
  opacity: 1 !important;
  width: 100%;
  min-height: 0;
  padding: 0.58rem 1.85rem 0.58rem 0.65rem !important;
  margin: 0.4rem 0 0 !important;
  border-radius: var(--sc-toast-radius) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-left: 3px solid rgba(255, 255, 255, 0.35) !important;
  background: rgba(0, 32, 85, 0.88) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: var(--sc-toast-shadow) !important;
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow: hidden;
}

#toast-container > div::before {
  content: none !important;
  display: none !important;
}

#toast-container > .toast-success,
#toast-container > .toast-error,
#toast-container > .toast-warning,
#toast-container > .toast-info {
  background: rgba(0, 32, 85, 0.88) !important;
  background-image: none !important;
  color: #fff !important;
  opacity: 1 !important;
}

#toast-container > .toast-success {
  border-left-color: var(--sc-toast-ok) !important;
}
#toast-container > .toast-error {
  border-left-color: var(--sc-toast-danger) !important;
}
#toast-container > .toast-warning {
  border-left-color: var(--sc-toast-warn) !important;
}
#toast-container > .toast-info {
  border-left-color: var(--sc-toast-info) !important;
}

.sc-toast-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.sc-toast-ico {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.05rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
}

.sc-toast-ico svg {
  width: 0.72rem;
  height: 0.72rem;
  display: block;
}

.toast-success .sc-toast-ico {
  color: var(--sc-toast-ok);
}
.toast-error .sc-toast-ico {
  color: var(--sc-toast-danger);
}
.toast-warning .sc-toast-ico {
  color: var(--sc-toast-warn);
}
.toast-info .sc-toast-ico {
  color: var(--sc-toast-info);
}

.sc-toast-txt {
  flex: 1;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  word-break: break-word;
}

#toast-container .toast-title {
  display: none;
}

#toast-container .toast-message {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.94);
  word-break: break-word;
  margin: 0;
}

#toast-container .toast-close-button {
  position: absolute;
  right: 0.3rem;
  top: 0.3rem;
  transform: none;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.35rem;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-shadow: none !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  line-height: 1 !important;
  opacity: 1 !important;
  background: transparent;
}

#toast-container .toast-close-button:hover,
#toast-container .toast-close-button:focus {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

/* Sin barra de progreso: menos ruido visual */
#toast-container .toast-progress {
  display: none !important;
}

@media (max-width: 575.98px) {
  #toast-container.toast-top-center,
  #toast-container.toast-top-right,
  #toast-container.toast-top-left,
  #toast-container.toast-bottom-center,
  #toast-container.toast-bottom-right,
  #toast-container.toast-bottom-left {
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    width: min(19.5rem, calc(100vw - 1.1rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  #toast-container > div {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #002055 !important;
  }
}
