/**
 * Habitare – ps_emailalerts
 * Estilos alineados con CTA / add-to-cart de ficha de producto.
 */
#product .habitare-mailalert,
.habitare-mailalert {
  --habitare-mailalert-radius: 21px;
  --habitare-mailalert-font: Poppins, sans-serif;
  --habitare-mailalert-size: 16px;
  --habitare-mailalert-height: calc(0.85rem * 2 + 1.35em);

  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 0.5rem;
  font-family: var(--habitare-mailalert-font);
}

#product .habitare-mailalert__row,
.habitare-mailalert__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.75rem;
  width: 100%;
}

#product .habitare-mailalert__email,
.habitare-mailalert__email {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  min-height: var(--habitare-mailalert-height);
  margin: 0;
  padding: 0.85rem 1.25rem;
  border: 1px solid #000;
  border-radius: var(--habitare-mailalert-radius);
  background: #fff;
  box-shadow: none;
  font-family: var(--habitare-mailalert-font);
  font-size: var(--habitare-mailalert-size);
  font-weight: 400;
  line-height: 1.35;
  color: #000;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#product .habitare-mailalert__email::placeholder,
.habitare-mailalert__email::placeholder {
  color: #686868;
  opacity: 1;
}

#product .habitare-mailalert__email:focus,
.habitare-mailalert__email:focus {
  border-color: #000;
  box-shadow: 0 0 0 1px #000;
}

#product .habitare-mailalert__btn,
.habitare-mailalert__btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--habitare-mailalert-height);
  margin: 0;
  padding: 0.85rem 1.5rem;
  border: 1px solid #000;
  border-radius: var(--habitare-mailalert-radius);
  background: #000;
  color: #fff;
  font-family: var(--habitare-mailalert-font);
  font-size: var(--habitare-mailalert-size);
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

#product .habitare-mailalert--guest .habitare-mailalert__btn,
.habitare-mailalert--guest .habitare-mailalert__btn {
  flex: 0 1 auto;
}

#product .habitare-mailalert--logged .habitare-mailalert__btn,
.habitare-mailalert--logged .habitare-mailalert__btn {
  width: 100%;
}

#product .habitare-mailalert__btn:hover,
#product .habitare-mailalert__btn:focus,
.habitare-mailalert__btn:hover,
.habitare-mailalert__btn:focus {
  background: #1a1a1a;
  border-color: #000;
  color: #fff;
  outline: none;
  box-shadow: none;
}

#product .habitare-mailalert__btn:disabled,
.habitare-mailalert__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#product .habitare-mailalert__btn-icon,
.habitare-mailalert__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
}

#product .habitare-mailalert__btn-icon svg,
.habitare-mailalert__btn-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

#product .habitare-mailalert__gdpr,
.habitare-mailalert__gdpr {
  width: 100%;
  font-size: 0.85rem;
  color: #686868;
}

#product .habitare-mailalert__alerts,
.habitare-mailalert__alerts {
  width: 100%;
}

#product .habitare-mailalert__alerts .alert,
.habitare-mailalert__alerts .alert,
#product .habitare-mailalert__status,
.habitare-mailalert__status {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: var(--habitare-mailalert-font);
  font-size: 0.9rem;
  line-height: 1.4;
}

@media (max-width: 575.98px) {
  #product .habitare-mailalert__row,
  .habitare-mailalert__row {
    flex-direction: column;
  }

  #product .habitare-mailalert--guest .habitare-mailalert__btn,
  .habitare-mailalert--guest .habitare-mailalert__btn {
    width: 100%;
  }
}
