/** ============================================================
    COMPONENT: Alerts, Popups, Toasts
    Source: style.css, details.css
    ============================================================ */

/* --- Popup message --- */
#popupMessage {
  display: none;
  position: fixed;
  top: 45px;
  right: 15px;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 14px;
  text-align: center;
  box-shadow: var(--shadow-md);
  z-index: 9999;
  transition: all 0.3s ease-in-out;
}

/* SUCCESS */
#popupMessage.success {
  background-color: var(--clr-green);
}

/* ERROR */
#popupMessage.error {
  background-color: var(--clr-red);
}

/* --- Toast notification --- */
#notify-message {
  position: fixed;
  top: 20px;
  right: -300px;
  z-index: 99999;
  transition: right 0.5s var(--ease-out);
  min-width: 250px;
}
#notify-message.show { right: 20px; }

.toast-custom {
  background-color: var(--clr-green);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

/* --- Ajax toast (newsletter) --- */

/* --- PDP alert --- */
.pdp-alert-active {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(38 92% 96%);
  border: 1px solid hsl(38 92% 82%);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(38 92% 35%);
}
