#ownerEmailPreview {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

#ownerEmailPreview .card {
  padding: clamp(20px, 3vw, 32px);
}

.owner-email-preferences {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 5vw, 65px);
}

#ownerEmailPreview h3 {
  margin: 7px 0 0;
  font: 400 clamp(23px, 3vw, 34px) / 1.3 var(--serif);
  overflow-wrap: anywhere;
}

.owner-email-description,
.owner-email-options p,
.owner-email-empty {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.owner-email-options {
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f4f6ee;
}

.owner-email-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.owner-email-toggle input {
  flex: none;
  inline-size: 19px;
  block-size: 19px;
  margin: 0;
  accent-color: var(--ink);
}

#ownerEmailPreview .owner-email-feedback {
  margin: 9px 0 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.owner-email-feedback:empty {
  display: none;
}

.owner-email-staff summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

.owner-email-staff summary::-webkit-details-marker {
  display: none;
}

.owner-email-staff summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.owner-email-staff summary::after {
  content: '';
  inline-size: 8px;
  block-size: 8px;
  margin-inline-start: auto;
  border-block-end: 1.5px solid;
  border-inline-end: 1.5px solid;
  rotate: 45deg;
}

.owner-email-staff[open] summary::after {
  rotate: 225deg;
}

.owner-email-staff-content {
  margin-top: 13px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.owner-email-form {
  display: grid;
  gap: 9px;
  max-width: 720px;
  margin-top: 17px;
}

.owner-email-form label {
  font-size: 12px;
  font-weight: 600;
}

.owner-email-form input,
.owner-email-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 16px;
}

.owner-email-form textarea {
  min-height: 114px;
  resize: vertical;
}

.owner-email-form button {
  justify-self: start;
  margin-top: 4px;
}

.owner-email-review {
  max-width: 720px;
  margin-top: 19px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f6ee;
}

.owner-email-review h4,
.owner-email-updates h4 {
  margin: 0 0 7px;
  font-size: 14px;
}

.owner-email-review strong,
.owner-email-review p,
.owner-email-updates li {
  overflow-wrap: anywhere;
}

.owner-email-review p,
.owner-email-updates p {
  white-space: pre-wrap;
}

.owner-email-updates {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.owner-email-updates:empty {
  margin: 0;
}

.owner-email-updates li {
  padding-block: 13px;
  border-top: 1px solid var(--line);
}

.owner-email-updates li:last-child {
  padding-bottom: 0;
}

.owner-email-updates time {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.owner-email-updates p {
  margin: 0;
  font-size: 13px;
}

@media (max-width: 660px) {
  .owner-email-preferences {
    grid-template-columns: minmax(0, 1fr);
  }
}

#ownerEmailPreview .owner-sms-form {
  display:grid;
  gap:8px;
  margin-top:16px;
  padding-top:16px;
  border-top:1px solid #dfebd449;
}
#ownerEmailPreview .owner-sms-form label {
  font-size:13px;
  font-weight:650;
}
#ownerEmailPreview .owner-sms-form input {
  width:100%;
  min-height:44px;
  border:1px solid #d6e2d1;
  border-radius:9px;
  padding:9px 11px;
  background:#fffef8;
  color:#193a2d;
  font-size:16px;
}
#ownerEmailPreview .owner-sms-form input[aria-invalid=true] {
  border-color:#e3a98f;
  box-shadow:0 0 0 2px #e3a98f6b;
}
#ownerEmailPreview .owner-sms-form p {margin:0}
#ownerEmailPreview .owner-sms-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin-top:3px;
}
#ownerEmailPreview .owner-sms-actions .button {
  min-height:42px;
  padding:8px 12px;
  background:#eadab1;
  border:1px solid transparent;
  color:#213c31;
  font-weight:600;
}
#ownerEmailPreview .owner-sms-actions .button:hover {background:#f5e9c9}
#ownerEmailPreview .owner-sms-actions .owner-sms-disable {
  background:transparent;
  border-color:#dce8d45e;
  color:#edf3e7;
}
#ownerEmailPreview .owner-sms-actions .owner-sms-disable:hover {background:#385e49}
#ownerEmailPreview .owner-sms-review {
  margin:12px 0;
  padding:12px;
  border:1px solid #dce3d6;
  border-radius:10px;
  background:#f2f5ee;
}
#ownerEmailPreview .owner-sms-review p {margin:0;font-size:13px}

#ownerEmailPreview .owner-notification-consent {
  display:flex;
  align-items:flex-start;
  gap:12px;
  width:100%;
  min-height:54px;
  padding:14px;
  border:1px solid #d9c48b80;
  border-radius:11px;
  background:#294d3c;
  color:#fff9e8;
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.55;
  text-align:start;
  cursor:pointer;
  transition:background .18s, border-color .18s;
}
#ownerEmailPreview .owner-notification-consent:enabled:hover {
  border-color:#ebd49b;
  background:#385f4a;
}
#ownerEmailPreview .owner-notification-consent:focus-visible {
  outline:2px solid #f5dc9a;
  outline-offset:4px;
}
#ownerEmailPreview .owner-notification-consent.is-accepted:disabled {
  opacity:1;
  border-color:#dfce9c;
  background:#ecdfba;
  color:#213e30;
  cursor:default;
}
#ownerEmailPreview .owner-consent-check {
  display:grid;
  place-items:center;
  flex:0 0 21px;
  width:21px;
  height:21px;
  margin-top:1px;
  border:1px solid #e0cd9b;
  border-radius:6px;
}
#ownerEmailPreview .owner-consent-check svg {
  width:17px;
  height:17px;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:0;
}
#ownerEmailPreview .is-accepted .owner-consent-check {
  border-color:#31513b;
  background:#31513b;
  color:#fff9e8;
}
#ownerEmailPreview .is-accepted .owner-consent-check svg {opacity:1}
#ownerEmailPreview .owner-consent-status {
  margin:0 0 9px;
  font-size:11px;
  line-height:1.6;
}
#ownerEmailPreview .owner-email-toggle:has(input:disabled) {
  opacity:.6;
  cursor:not-allowed;
}
#ownerEmailPreview .owner-email-toggle input:disabled {cursor:not-allowed}
#ownerEmailPreview .owner-sms-form input:disabled {
  opacity:.75;
  border-style:dashed;
  background:#e4eada;
  color:#536752;
  cursor:not-allowed;
}
#ownerEmailPreview .owner-sms-actions .button:disabled,
#ownerEmailPreview .owner-sms-actions .button:disabled:hover {
  opacity:.65;
  border-color:#d4dfcc50;
  background:#d4dfcc30;
  color:#e1ead9;
  cursor:not-allowed;
}
