.pharmalp-newsletter-form {
  width: 100%;
}

.pharmalp-newsletter-form__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.pharmalp-newsletter-form input[type="email"] {
  min-width: 0;
  width: 100%;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0 1rem;
  color: #31205b;
}

.pharmalp-newsletter-form--popup input[type="email"] {
  border-color: rgba(49, 32, 91, 0.3);
}

.pharmalp-newsletter-form button[type="submit"] {
  min-height: 3rem;
  border: 1px solid #d5508f;
  background: #d5508f;
  color: #fff;
  padding: 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.pharmalp-newsletter-form button[type="submit"]:hover,
.pharmalp-newsletter-form button[type="submit"]:focus {
  background: #fff;
  color: #d5508f;
}

.pharmalp-newsletter-form button[type="submit"]:disabled {
  cursor: progress;
  opacity: 0.65;
}

.pharmalp-newsletter-altcha {
  color: currentColor;
  font-size: 0.75rem;
  line-height: 1.35;
  margin-top: 0.6rem;
  opacity: 0.75;
}

.pharmalp-newsletter-form__message {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-top: 0.6rem;
}

.pharmalp-newsletter-form__message[data-state="success"] {
  color: #16803c;
}

.pharmalp-newsletter-form__message[data-state="error"] {
  color: #b42318;
}

.pharmalp-newsletter-popup {
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.22);
  color: #515581;
  display: none;
  flex-direction: column;
  gap: 2rem;
  left: 50%;
  margin-left: -45%;
  max-width: 500px;
  padding: 3rem;
  position: fixed;
  top: 6rem;
  width: 90%;
  z-index: 60;
}

.pharmalp-newsletter-popup.open {
  display: flex !important;
}

.pharmalp-newsletter-popup__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: flex;
  font-size: 1.75rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 1.6rem;
  top: 1.4rem;
  width: 2rem;
}

.pharmalp-newsletter-popup__no-thanks {
  background: transparent;
  border: 0;
  display: block;
  margin: 1rem auto 0;
  padding: 0;
}

.pharmalp-newsletter-checkout {
  margin-top: 1rem;
}

.woocommerce form .form-row.pharmalp-newsletter-checkout-field label,
.pharmalp-newsletter-checkout .form-row label,
.pharmalp-newsletter-checkout label.checkbox {
  color: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  left: auto;
  line-height: 1.4;
  padding: 0;
  pointer-events: auto;
  position: static;
  top: auto;
}

.pharmalp-newsletter-checkout input[type="checkbox"] {
  margin-right: 0.5rem;
}

.pharmalp-newsletter-block-optin {
  border-top: 1px solid rgba(81, 85, 129, 0.15);
  color: #515581;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
}

.pharmalp-newsletter-block-optin .wc-block-components-checkbox {
  margin-bottom: 1rem;
}

.pharmalp-newsletter-block-optin label {
  line-height: 1.4;
}

#ws_opt_in_field {
  display: none !important;
}

@media (max-width: 640px) {
  .pharmalp-newsletter-form__row {
    flex-direction: column;
  }

  .pharmalp-newsletter-form button[type="submit"] {
    width: 100%;
  }
}

@media (min-width: 768px) {
  .pharmalp-newsletter-popup {
    margin-left: -250px;
  }
}
