/* ── StoreBuild toast overrides ───────────────────────────────────────────
   Fades in upward from bottom-center, clean card style, dismissable.
─────────────────────────────────────────────────────────────────────────── */

@keyframes strb-fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes strb-fade-out-down {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}

.strb-toast-enter { animation: strb-fade-in-up 0.28s cubic-bezier(.22, 1, .36, 1) both; }
.strb-toast-exit  { animation: strb-fade-out-down 0.22s ease both; }

.Toastify__toast-container {
  width: 340px;
  padding: 0;

  &--bottom-center {
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
  }
}

.Toastify__toast {
  border-radius: 14px;
  min-height: unset;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .06);
  border: 1px solid transparent;
  font-family: inherit;
  cursor: default;

  &--success {
    background: #ffffff;
    border-color: rgba(34, 197, 94, .2);
    .Toastify__toast-icon svg { fill: #16a34a; }
    .Toastify__progress-bar { background: linear-gradient(90deg, #22c55e, #16a34a); }
  }

  &--error {
    background: #ffffff;
    border-color: rgba(239, 68, 68, .2);
    .Toastify__toast-icon svg { fill: #dc2626; }
    .Toastify__progress-bar { background: linear-gradient(90deg, #f87171, #dc2626); }
  }

  &--warning {
    background: #ffffff;
    border-color: rgba(234, 179, 8, .25);
    .Toastify__toast-icon svg { fill: #ca8a04; }
    .Toastify__progress-bar { background: linear-gradient(90deg, #facc15, #ca8a04); }
  }

  &--info {
    background: #ffffff;
    border-color: rgba(109, 86, 250, .2);
    .Toastify__toast-icon svg { fill: #6d56fa; }
    .Toastify__progress-bar { background: linear-gradient(90deg, #8b78fb, #6d56fa); }
  }
}

.Toastify__toast-body {
  padding: 14px 4px 14px 16px;
  margin: 0;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #1a1c2e;
  line-height: 1.4;

  .Toastify__toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-inline-end: 0;
  }
}

.Toastify__close-button {
  color: #94a3b8;
  opacity: 1;
  align-self: center;
  padding: 6px 12px 6px 4px;
  flex-shrink: 0;

  svg {
    width: 14px;
    height: 14px;
  }

  &:hover {
    color: #475569;
    opacity: 1;
  }
}

.Toastify__progress-bar {
  height: 3px;
  border-radius: 0 0 14px 14px;
}

.Toastify__progress-bar-theme--light {
  background: #e2e8f0;
}
