/*
 * Inline newsletter box on guide pages (includes/newsletter-inline.php).
 * Selectors are two classes deep so the host page's own `.edible-guide p`-style
 * rules, printed later in the body, don't restyle the box.
 */

.sm-newsletter-inline {
  background: #f5f7f4;
  border: 1px solid #e0e5dc;
  border-left: 4px solid #d4a853;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}

/* .sm-nl-form sets display:flex, which would otherwise beat the hidden attribute */
.sm-newsletter-inline [hidden] {
  display: none !important;
}

.sm-newsletter-inline .sm-nl-heading {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a3a1a;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.sm-newsletter-inline .sm-nl-text {
  color: #4a5a4a;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 auto 1rem;
  max-width: 520px;
}

.sm-newsletter-inline .sm-nl-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 0 auto;
}

.sm-newsletter-inline .sm-nl-email {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 1rem;
  border: 1px solid #c9d1c4;
  border-radius: 8px;
  background: #fff;
  color: #2c2c2c;
  font-size: 0.95rem;
  outline: none;
}

.sm-newsletter-inline .sm-nl-email:focus {
  border-color: #d4a853;
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
}

.sm-newsletter-inline .sm-nl-button {
  padding: 0.65rem 1.3rem;
  background: linear-gradient(135deg, #d4a853, #b8923d);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.sm-newsletter-inline .sm-nl-button:hover {
  transform: translateY(-1px);
}

.sm-newsletter-inline .sm-nl-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.sm-newsletter-inline .sm-nl-msg {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  color: #c62828;
}

.sm-newsletter-inline .sm-nl-msg.is-success {
  color: #2e7d32;
  font-weight: 700;
}

.sm-newsletter-inline .sm-nl-fine {
  margin: 0.6rem 0 0;
  font-size: 0.75rem;
  color: #7a867a;
}

@media (max-width: 480px) {
  .sm-newsletter-inline {
    padding: 1.25rem 1rem;
  }

  .sm-newsletter-inline .sm-nl-form {
    flex-direction: column;
  }
}
