.form-item,
.form-item > input {
  margin: 0 !important;
}

/* Hide Drupal's default form-actions wrapper styling */
.newsletter-submit-wrapper .form-actions {
  margin: 0 !important;
  padding: 0 !important;
}

/* Alert base styles */
.newsletter-alert {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 500px;
  font-size: 16px;
  font-weight: 500;
  color: white !important;
}

.newsletter-alert * {
  color: white !important;
}

.newsletter-alert.bg-green-600 {
  background-color: #059669;
}

.newsletter-alert.bg-red-600 {
  background-color: #dc2626;
}

.newsletter-alert .text-2xl {
  font-size: 24px;
  line-height: 1;
}

.newsletter-alert .flex-1 {
  flex: 1 1 0%;
}

.newsletter-alert .close-btn {
  background: none;
  border: none;
  color: white !important;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.newsletter-alert .close-btn:hover {
  opacity: 1;
}

.block {
  display: block !important;
}

/* Custom animations */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.animate-slideInDown {
  animation: slideInDown 0.3s ease-out;
}

.animate-fadeOut {
  animation: fadeOut 0.3s ease-out forwards;
}

/* AJAX progress throbber styling */
.newsletter-form .ajax-progress {
  display: inline-block;
  margin-left: 0.5rem;
}

.newsletter-form .ajax-progress-throbber {
  display: inline-block;
}
