/* Email Preferences */

.htha-ep-header {
  padding: var(--htha-space-24) 0 var(--htha-space-40);
}

.htha-ep-header h1 {
  font-size: clamp(36px, 4.5vw, 48px);
  margin: 0 0 var(--htha-space-16);
}

.htha-ep-header__intro {
  font-size: 17px;
  line-height: 1.75;
  max-width: 40em;
  margin: 0;
}

.htha-ep-body {
  padding-bottom: var(--htha-space-96);
  max-width: 40em;
}

.htha-ep-section {
  padding: 0 0 var(--htha-space-40);
  margin: 0 0 var(--htha-space-40);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.htha-ep-section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.htha-ep-section h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  margin: 0 0 var(--htha-space-16);
}

.htha-ep-section h3 {
  font-size: 18px;
  margin: 0 0 10px;
}

.htha-ep-section p,
.htha-ep-list {
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 1em;
}

.htha-ep-list {
  padding-left: 1.2em;
}

.htha-ep-list li + li {
  margin-top: 0.35em;
}

.htha-ep-status {
  display: grid;
  gap: 6px;
  margin: 0 0 1em;
}

.htha-ep-status__label {
  font-weight: 600;
}

.htha-ep-status__email {
  color: var(--htha-text-muted);
  font-size: 15px;
}

.htha-ep-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--htha-space-32);
}

.htha-ep-notice {
  padding: 14px 16px;
  margin: 0 0 var(--htha-space-32);
  border-left: 3px solid var(--htha-accent, #8a6a45);
  background: #f7f3ed;
  font-size: 15px;
  line-height: 1.6;
}

.htha-ep-notice--error {
  border-left-color: #8a3b2d;
  background: #f8eeeb;
}

.htha-ep-notice--success {
  border-left-color: #3d6b4f;
  background: #eef5f0;
}

.htha-ep-form {
  margin: 0 0 var(--htha-space-32);
}

.htha-ep-fieldset {
  border: 0;
  margin: 0 0 var(--htha-space-24);
  padding: 0;
}

.htha-ep-fieldset legend {
  font-weight: 600;
  margin-bottom: 12px;
  padding: 0;
}

.htha-ep-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}

.htha-ep-check input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
}

.htha-ep-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.htha-ep-form select {
  width: 100%;
  max-width: 28rem;
  min-height: 44px;
  margin-bottom: var(--htha-space-16);
}

.htha-ep-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: var(--htha-space-16);
}

.htha-ep-form--unsubscribe {
  padding-top: var(--htha-space-24);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 700px) {
  .htha-ep-types {
    grid-template-columns: 1fr;
  }
}
