/* =================================================================== */
/* FILE: css/components/toast.css                                      */
/* Injected dynamically by js/global/newsletter.js                      */
/* Base holds shared layout/sizing; modifiers hold color + padding      */
/* (padding is per-variant: tuned to each message length in Figma)      */
/* =================================================================== */

.toast {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  width: 180px;
  min-height: 99px;
  border-radius: 10px;
  border: 2px solid transparent;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 18px;
  line-height: normal;
}

.toast__icon {
  width: 30px;
  height: 30px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.toast__message {
  color: inherit; /* inherits variant fg set on .toast--* */
  text-align: center;
  margin: 0; /* reset global p */
  letter-spacing: normal; /* reset global p */
  font: inherit; /* inherit family/weight/size from .toast */
}

/* --- Success --- */
.toast--success {
  color: var(--Toast-Success-Fg);
  border-color: var(--Toast-Success-Border);
  background: var(--Toast-Success-Bg);
  padding: 9px 17px 8px 17px;
}

/* --- Error --- */
.toast--error {
  color: var(--Toast-Error-Fg);
  border-color: var(--Toast-Error-Border);
  background: var(--Toast-Error-Bg);
  padding: 9px 12px 8px 13px;
}

/* ≥768 */
@media (min-width: 768px) {
  .toast {
    width: 200px;
  }
  .toast--success {
    padding: 9px 27px 8px 27px;
  }
  .toast--error {
    padding: 8px 22px 9px 23px;
  }
}

/* ≥1200 — icon doubles, font steps up, width triples */
@media (min-width: 1200px) {
  .toast {
    width: 511px;
    min-height: 100px;
    font-size: 24px;
  }
  .toast__icon {
    width: 60px;
    height: 60px;
  }
  .toast--success {
    padding: 20px 37px;
    flex-direction: row;
  }
  .toast--error {
    padding: 20px 18px 20px 17px;
    flex-direction: row;
  }
}

/* ≥1621 */
@media (min-width: 1621px) {
  .toast {
    width: 584px;
  }
  .toast--success {
    padding: 20px 74px;
  }
  .toast--error {
    padding: 20px 54px;
  }
}
.toast[hidden] {
  display: none;
}