/* ── Newsletter widget ────────────────────────────────────────────────────
   Standalone newsletter-signup block — drop into a footer column, a
   sidebar, or any Elementor location. Mirrors the success-page form's
   styling (gradient button, rounded inputs) so both signup spots feel
   like the same product. */

.dsw-nl {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: inherit;
}

.dsw-nl__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
}

.dsw-nl__description {
  margin: 0;
  color: inherit;
  opacity: 0.85;
  font-size: 0.92rem;
  line-height: 1.45;
}

.dsw-nl__form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsw-nl__names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dsw-nl__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dsw-nl input[type="email"],
.dsw-nl input[type="text"] {
  width: 100%;
  padding: 11px 14px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
  background: #fff;
  color: #222;
  transition: border-color 0.15s;
}

.dsw-nl input[type="email"]:focus,
.dsw-nl input[type="text"]:focus {
  border-color: var(--e-global-color-accent, #2e5266);
}

.dsw-nl__btn {
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(
    90deg,
    var(--e-global-color-accent, #0a7a3e),
    var(--e-global-color-primary, #1a5faf)
  );
  color: #fff;
  border: 2px solid #0a2a3a;
  border-radius: 6px;
  cursor: pointer;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 0.15s;
}

.dsw-nl__btn:hover {
  opacity: 0.95;
}

.dsw-nl__btn:active,
.dsw-nl__btn:focus {
  outline: none;
  background: linear-gradient(
    90deg,
    var(--e-global-color-accent, #0a7a3e),
    var(--e-global-color-primary, #1a5faf)
  );
  color: #fff;
}

.dsw-nl__btn:disabled {
  background: #aaa;
  border-color: #888;
  cursor: not-allowed;
  opacity: 1;
}

/* Inline layout: email field grows, button hugs the right. Stacks
   below 480px so footers on phones don't get a microscopic input. */
.dsw-nl--inline .dsw-nl__row {
  flex-direction: row;
  align-items: stretch;
}
.dsw-nl--inline .dsw-nl__row input[type="email"] {
  flex: 1;
}
@media (max-width: 480px) {
  .dsw-nl--inline .dsw-nl__row {
    flex-direction: column;
  }
}

/* Compact layout: minimalist footer-style — input and icon-only
   button visually joined into one pill. Flat accent-coloured button,
   no gradient, no border on the seam, paper-plane SVG centred.
   Stays inline at every viewport because that's the whole point of
   compact. */
.dsw-nl--compact .dsw-nl__row {
  flex-direction: row;
  align-items: stretch;
  gap: 0;
}

.dsw-nl--compact .dsw-nl__row input[type="email"] {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: 0;
}

.dsw-nl--compact .dsw-nl__btn {
  flex: 0 0 auto;
  width: 56px;
  padding: 0;
  background: var(--e-global-color-accent, #0a7a3e);
  border: 1px solid var(--e-global-color-accent, #0a7a3e);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.dsw-nl--compact .dsw-nl__btn:hover {
  opacity: 0.92;
}

.dsw-nl--compact .dsw-nl__btn:active,
.dsw-nl--compact .dsw-nl__btn:focus {
  background: var(--e-global-color-accent, #0a7a3e);
}

.dsw-nl--compact .dsw-nl__btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.dsw-nl--compact .dsw-nl__btn i {
  font-size: 18px;
  line-height: 1;
}

.dsw-nl--compact .dsw-nl__btn:disabled {
  background: #aaa;
  border-color: #888;
}

.dsw-nl__done {
  padding: 14px;
  background: #e8f5e9;
  border: 1px solid #c5e1c8;
  border-radius: 8px;
  text-align: center;
  color: #1b5e20;
  font-size: 0.95rem;
}

/* Editor placeholder when newsletter is disabled in plugin settings. */
.dsw-nl-disabled {
  padding: 16px;
  border: 1px dashed #c62828;
  background: #fdecea;
  color: #7a1e1c;
  border-radius: 4px;
  font-size: 0.9rem;
}
