/*
 * Productivity — newsletter widget styling
 *
 * Auto-generated from project tokens. Do not edit literals; override the
 * design tokens (colors, fonts, accent) and rebuild instead. All values
 * read from CSS custom properties emitted by style.css.
 */

.productivity-newsletter .sf-newsletter {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--color-on-surface);
  font-family: var(--font-body);
}

/* Row layout: email input + submit share a single bordered shell. */
.productivity-newsletter .sf-newsletter__row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--color-outline-variant);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.productivity-newsletter .sf-newsletter__row:focus-within {
  border-color: var(--accent-fresh);
  box-shadow: 0 0 0 1px var(--accent-fresh);
}

.productivity-newsletter .sf-newsletter__row .sf-newsletter__label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.productivity-newsletter .sf-newsletter__input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-on-surface);
  box-sizing: border-box;
}

.productivity-newsletter .sf-newsletter__input::placeholder {
  color: var(--color-on-surface-variant);
  opacity: 0.7;
}

.productivity-newsletter .sf-newsletter__input:focus {
  outline: none;
  box-shadow: none;
}

.productivity-newsletter .sf-newsletter__submit {
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  padding: 1rem 1.5rem;
  background: var(--accent-fresh);
  color: #fff;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
}

.productivity-newsletter .sf-newsletter__submit:hover,
.productivity-newsletter .sf-newsletter__submit:focus {
  background: var(--color-primary);
  outline: none;
}

.productivity-newsletter .sf-newsletter__submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Disclosure + consent fields: sit below the row, separated by a hairline. */
.productivity-newsletter .sf-newsletter__disclosure,
.productivity-newsletter .sf-newsletter__field--consent {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-outline-variant);
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-on-surface-variant);
}

.productivity-newsletter .sf-newsletter__disclosure summary {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-surface);
  text-decoration: none;
  padding: 0;
  cursor: pointer;
}

.productivity-newsletter .sf-newsletter__disclosure summary::-webkit-details-marker { display: none; }

.productivity-newsletter .sf-newsletter__disclosure-body {
  margin-top: 12px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.productivity-newsletter .sf-newsletter__disclosure-body p {
  margin: 0 0 8px;
  color: var(--color-on-surface-variant);
}

.productivity-newsletter .sf-newsletter__disclosure-body p:last-child { margin-bottom: 0; }

.productivity-newsletter .sf-newsletter__consent {
  align-items: flex-start;
  gap: 12px;
  color: var(--color-on-surface);
}

.productivity-newsletter .sf-newsletter__checkbox {
  margin-top: 4px;
  accent-color: var(--accent-fresh);
}

.productivity-newsletter .sf-newsletter__consent-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.productivity-newsletter .sf-newsletter__consent-text a:hover { color: var(--accent-fresh); }

/* Helper line: lock icon + reassurance text. */
.productivity-newsletter .sf-newsletter__helper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-on-surface-variant);
  text-transform: none;
}

.productivity-newsletter .sf-newsletter__helper-icon {
  font-size: 14px;
  line-height: 1;
  color: var(--color-on-surface-variant);
}

.productivity-newsletter .sf-newsletter__helper-text { line-height: 1.4; }

/* Status messages. */
.productivity-newsletter .sf-newsletter__message {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
}

.productivity-newsletter .sf-newsletter__message.is-success {
  background: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  border: 1px solid var(--color-secondary);
}

.productivity-newsletter .sf-newsletter__message.is-error {
  background: var(--color-error-container);
  color: var(--color-on-error-container);
  border: 1px solid var(--color-error);
}

/* Mobile: stack the row vertically. */
@media (max-width: 639px) {
  .productivity-newsletter .sf-newsletter__row {
    flex-direction: column;
  }
  .productivity-newsletter .sf-newsletter__submit {
    width: 100%;
  }
}
