.bnb-email-delivery-settings,
.bnb-email-template-settings {
  color: #27352e;
}

.bnb-email-page-heading {
  margin: 0 0 20px;
}

.bnb-email-page-heading h3 {
  margin: 4px 0 5px;
  color: #173c30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.3vw, 2rem);
}

.bnb-email-page-heading > p:last-child,
.bnb-email-card > p,
.bnb-email-section-heading p {
  margin: 5px 0 0;
  color: #68756b;
}

.bnb-email-eyebrow {
  margin: 0;
  color: #66786b;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.bnb-email-card {
  margin: 0 0 16px;
  padding: 20px;
}

.bnb-email-card h4,
.bnb-email-editor-heading h4,
.bnb-email-preview-heading h4 {
  margin: 0;
  color: #173c30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.bnb-email-provider-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 13px 15px;
  border: 1px solid #dce3da;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.bnb-email-delivery-settings .bnb-email-provider-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  min-width: 0;
}

.bnb-email-provider-option:has(input:checked) {
  border-color: #668571;
  background: #f4f7f1;
  box-shadow: 0 0 0 1px #668571;
}

.bnb-email-provider-option input {
  flex: 0 0 auto;
  margin: 4px 0 0;
  accent-color: #315d49;
}

.bnb-email-delivery-settings .bnb-email-provider-option input[type="radio"] {
  appearance: auto !important;
  -webkit-appearance: radio !important;
  flex: 0 0 18px !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  accent-color: #365a43;
}

.bnb-email-provider-option span,
.bnb-email-provider-option small {
  display: block;
}

.bnb-email-delivery-settings .bnb-email-provider-option > span {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.bnb-email-provider-option small {
  margin-top: 3px;
  color: #6b786e;
}

.bnb-email-delivery-settings .bnb-email-provider-option:focus-within {
  outline: 3px solid #82b58a;
  outline-offset: 2px;
}

.bnb-email-info,
.bnb-email-required-note {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #91a996;
  border-radius: 7px;
  background: #f4f7f1;
  color: #53645a;
  font-size: .88rem;
}

.bnb-email-smtp-fields {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  border-top: 1px solid #e5e9e2;
}

.bnb-email-smtp-fields[hidden] {
  display: none;
}

.bnb-email-smtp-fields legend {
  padding: 14px 0 0;
  color: #254737;
  font-weight: 700;
}

.bnb-email-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  margin-top: 14px;
}

.bnb-email-field-grid label,
.bnb-email-template-editor > label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #415347;
  font-size: .85rem;
  font-weight: 650;
}

.bnb-email-field-grid input:not([type="checkbox"]),
.bnb-email-field-grid select,
.bnb-email-field-grid textarea,
.bnb-email-template-editor input[type="text"],
.bnb-email-template-editor textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d9dfd7;
  border-radius: 8px;
  background: #fff;
  color: #27352e;
}

.bnb-email-field-grid input:not([type="checkbox"]),
.bnb-email-field-grid select,
.bnb-email-template-editor input[type="text"] {
  min-height: 42px;
  padding: 8px 11px;
}

.bnb-email-field-grid textarea,
.bnb-email-template-editor textarea {
  padding: 10px 11px;
  line-height: 1.55;
}

.bnb-email-field-grid input:focus,
.bnb-email-field-grid select:focus,
.bnb-email-field-grid textarea:focus,
.bnb-email-template-editor input:focus,
.bnb-email-template-editor textarea:focus {
  border-color: #668571;
  outline: 3px solid rgba(102, 133, 113, .18);
}

.bnb-email-field-grid small,
.bnb-email-field-grid .description {
  color: #738078;
  font-size: .76rem;
  font-weight: 400;
}

.bnb-email-field-wide {
  grid-column: 1 / -1;
}

.bnb-email-check {
  align-self: end;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  min-height: 40px;
}

.bnb-email-check input {
  accent-color: #315d49;
}

.bnb-email-hours-enable {
  align-self: start;
  width: fit-content;
  margin: 12px 0;
}

.bnb-email-hours-enable input,
.bnb-email-hours-option input {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex: 0 0 18px;
  margin: 1px 0 0 !important;
}

.bnb-email-hours-times {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 640px;
  margin: 12px 0;
}

.bnb-email-hours-times label {
  display: grid;
  gap: 6px;
}

.bnb-email-hours-times input {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
}

.bnb-email-hours-types {
  margin-top: 20px;
}

.bnb-email-hours-types > h5 {
  margin: 0 0 10px;
}

.bnb-email-hours-group {
  min-width: 0;
  margin: 12px 0 0;
  padding: 12px 14px 14px;
  border: 1px solid #dfe5df;
  border-radius: 10px;
}

.bnb-email-hours-group legend {
  padding: 0 6px;
  color: #315d49;
  font-weight: 700;
}

.bnb-email-hours-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
}

.bnb-email-hours-option {
  align-self: stretch;
  align-items: flex-start;
  min-height: 40px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid #edf0ec;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.bnb-email-hours-option:focus-within,
.bnb-email-hours-enable:focus-within {
  outline: 2px solid #315d49;
  outline-offset: 2px;
}

.bnb-email-hours-fixed {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 40px;
  padding: 7px 9px;
  border-radius: 8px;
  background: #f4f6f2;
}

.bnb-email-hours-fixed span,
.bnb-email-hours-security {
  color: #66736b;
  font-size: .85rem;
}

.bnb-email-hours-security {
  margin-top: 18px;
}

.bnb-email-queue-status {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #b08b45;
  border-radius: 4px;
  background: #f8f5eb;
}

.bnb-email-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.bnb-email-form-actions button:disabled {
  cursor: wait;
  opacity: .62;
}

.bnb-email-form-actions [role="status"],
.bnb-email-ajax-result {
  margin: 0;
  color: #315d49;
  font-size: .86rem;
}

.bnb-email-form-actions .is-error,
.bnb-email-ajax-result.is-error {
  color: #8c352c;
}

.bnb-email-form-actions .is-success,
.bnb-email-ajax-result.is-success {
  color: #315d49;
}

.bnb-email-activity {
  margin-top: 20px;
}

.bnb-email-section-heading,
.bnb-email-editor-heading,
.bnb-email-preview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bnb-email-section-heading {
  margin-bottom: 14px;
}

.bnb-email-section-heading a,
.bnb-email-restore {
  color: #315d49;
  font-size: .84rem;
  font-weight: 650;
}

.bnb-email-activity .bnb-table {
  width: 100%;
  margin: 0;
}

.bnb-email-activity td small {
  display: block;
  margin-top: 4px;
  color: #87372f;
}

.bnb-email-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
}

.bnb-email-status-accepted,
.bnb-email-status-default {
  background: #edf4ed;
  color: #315d49;
}

.bnb-email-status-queued {
  background: #f4f1e7;
  color: #71613d;
}

.bnb-email-status-failed {
  background: #fbefec;
  color: #8b4034;
}

.bnb-email-status-custom {
  background: #f4f1e7;
  color: #71613d;
}

.bnb-email-empty {
  color: #718078;
}

.bnb-email-deliverability {
  border-top: 3px solid #91a996;
}

.bnb-email-sender-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 16px 0 0;
  border: 1px solid #e1e7df;
  border-radius: 10px;
  background: #e1e7df;
}

.bnb-email-sender-summary > div {
  min-width: 0;
  padding: 12px 14px;
  background: #fff;
}

.bnb-email-sender-summary dt {
  color: #738078;
  font-size: .72rem;
  font-weight: 650;
}

.bnb-email-sender-summary dd {
  overflow-wrap: anywhere;
  margin: 4px 0 0;
  color: #27352e;
  font-size: .86rem;
  font-weight: 650;
}

.bnb-email-dns-controls,
.bnb-email-test-controls,
.bnb-email-auth-review-controls {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.bnb-email-dns-controls > label,
.bnb-email-test-controls > label,
.bnb-email-auth-review-controls > label {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 5px;
  color: #415347;
  font-size: .84rem;
  font-weight: 650;
}

.bnb-email-dns-controls input,
.bnb-email-test-controls input,
.bnb-email-auth-review-controls select,
.bnb-email-auth-details textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #d9dfd7;
  border-radius: 8px;
  background: #fff;
  color: #27352e;
}

.bnb-email-dns-controls input,
.bnb-email-test-controls input,
.bnb-email-auth-review-controls select {
  min-height: 42px;
  padding: 8px 11px;
}

.bnb-email-dns-controls input:focus,
.bnb-email-test-controls input:focus,
.bnb-email-auth-review-controls select:focus,
.bnb-email-auth-details textarea:focus {
  border-color: #668571;
  outline: 3px solid rgba(102, 133, 113, .18);
}

.bnb-email-dns-controls small {
  color: #738078;
  font-size: .76rem;
  font-weight: 400;
}

.bnb-email-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.bnb-email-auth-result {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e1e7df;
  border-radius: 9px;
  background: #fcfdfb;
}

.bnb-email-auth-result > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bnb-email-auth-result > div > strong {
  color: #254737;
  font-size: .88rem;
}

.bnb-email-auth-result > p {
  margin: 9px 0 0;
  color: #68756b;
  font-size: .82rem;
  line-height: 1.5;
}

.bnb-email-auth-result > small {
  display: block;
  margin-top: 7px;
  color: #7a857b;
  font-size: .74rem;
  line-height: 1.45;
}

.bnb-email-status-record_valid {
  background: #eef2f5;
  color: #435866;
}

.bnb-email-status-record_present {
  background: #f3f1e9;
  color: #685d3c;
}

.bnb-email-status-reported_pass {
  background: #eef1f7;
  color: #3d5473;
}

.bnb-email-status-reported_nonpass {
  background: #fbf4e7;
  color: #795c28;
}

.bnb-email-status-needs_attention {
  background: #fbf4e7;
  color: #795c28;
}

.bnb-email-status-unable_to_verify {
  background: #f1f2ef;
  color: #66736a;
}

.bnb-email-auth-alignment,
.bnb-email-deliverability-feedback,
.bnb-email-test-result {
  margin: 12px 0 0;
  color: #52645a;
  font-size: .84rem;
  line-height: 1.5;
}

.bnb-email-deliverability-feedback.is-error,
.bnb-email-test-result.is-error {
  color: #8c352c;
}

.bnb-email-deliverability-feedback.is-success,
.bnb-email-test-result.is-success {
  color: #315d49;
}

.bnb-email-test-panel,
.bnb-email-provider-checklist {
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid #e5e9e2;
}

.bnb-email-test-panel h5,
.bnb-email-provider-checklist h5 {
  margin: 0;
  color: #254737;
  font-size: 1rem;
}

.bnb-email-test-panel > div:first-child p {
  margin: 5px 0 0;
  color: #68756b;
  font-size: .84rem;
}

.bnb-email-test-controls {
  align-items: end;
}

.bnb-email-provider-checklist ol {
  margin: 11px 0 0;
  padding-left: 1.35rem;
  color: #59695f;
  font-size: .84rem;
  line-height: 1.6;
}

.bnb-email-provider-checklist li + li {
  margin-top: 4px;
}

.bnb-email-auth-details {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #e1e7df;
  border-radius: 9px;
  background: #fcfdfb;
}

.bnb-email-auth-details summary {
  color: #315d49;
  font-size: .88rem;
  font-weight: 700;
  cursor: pointer;
}

.bnb-email-auth-details > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 13px;
  color: #415347;
  font-size: .84rem;
  font-weight: 650;
}

.bnb-email-auth-details textarea {
  padding: 10px 11px;
  line-height: 1.5;
}

.bnb-email-auth-parsed {
  margin-top: 12px;
  color: #647168;
  font-size: .81rem;
}

.bnb-email-auth-parsed p {
  margin: 5px 0;
}

.bnb-email-auth-parsed-reported_pass {
  color: #3d5473;
}

.bnb-email-auth-parsed-reported_nonpass {
  color: #795c28;
}

.bnb-email-auth-parsed-needs_attention {
  color: #8a5e26;
}

.bnb-email-auth-parsed-unable_to_verify {
  color: #6b756d;
}

.bnb-email-auth-warning {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 3px solid #b9a276;
  border-radius: 7px;
  background: #f8f5ed;
  color: #665c48;
  font-size: .82rem;
  line-height: 1.5;
}

.bnb-email-evidence-notice {
  margin: 10px 0;
  padding: 9px 11px;
  border-left: 3px solid #8796a3;
  border-radius: 5px;
  background: #f0f3f5;
  color: #43535f;
  font-size: .82rem;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .bnb-email-sender-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bnb-email-auth-grid {
    grid-template-columns: 1fr;
  }

  .bnb-email-auth-result > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .bnb-email-dns-controls > button,
  .bnb-email-test-controls > button,
  .bnb-email-auth-review-controls > button {
    width: 100%;
  }
}

.bnb-email-template-workspace {
  display: grid;
  grid-template-columns: minmax(185px, 225px) minmax(340px, 1fr) minmax(315px, .92fr);
  align-items: start;
  gap: 16px;
}

.bnb-email-template-list,
.bnb-email-template-editor,
.bnb-email-live-preview {
  min-width: 0;
  padding: 17px;
  border: 1px solid #e0e4dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(36, 57, 44, .035);
}

.bnb-email-template-list section + section {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #e8ebe5;
}

.bnb-email-template-list h4 {
  margin: 0 0 7px;
  color: #65776b;
  font-size: .69rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.bnb-email-template-list a {
  display: block;
  margin: 3px 0;
  padding: 8px 9px;
  border-radius: 8px;
  color: #34463a;
  text-decoration: none;
}

.bnb-email-template-list a:hover,
.bnb-email-template-list a:focus-visible {
  background: #f5f7f2;
  outline-color: #668571;
}

.bnb-email-template-list a.is-selected {
  background: #edf3eb;
  box-shadow: inset 3px 0 #315d49;
}

.bnb-email-template-list a strong,
.bnb-email-template-list a small {
  display: block;
}

.bnb-email-template-list a strong {
  font-size: .84rem;
}

.bnb-email-template-list a small {
  margin-top: 2px;
  color: #748078;
  font-size: .71rem;
}

.bnb-email-editor-heading {
  margin-bottom: 16px;
}

.bnb-email-editor-heading h4 {
  margin-top: 3px;
}

.bnb-email-template-editor > label {
  margin: 13px 0;
}

.bnb-email-template-editor textarea {
  resize: vertical;
}

.bnb-email-placeholders {
  margin: 13px 0;
  color: #53645a;
  font-size: .79rem;
}

.bnb-email-placeholders > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.bnb-email-placeholders button {
  padding: 5px 7px;
  border: 1px solid #dce5d9;
  border-radius: 6px;
  background: #f5f8f3;
  color: #365944;
  font: 600 .7rem/1.25 ui-monospace, SFMono-Regular, Menlo, monospace;
  cursor: pointer;
}

.bnb-email-placeholders button:hover,
.bnb-email-placeholders button:focus-visible {
  border-color: #76937d;
  outline: 2px solid rgba(102, 133, 113, .2);
}

.bnb-email-required-note {
  margin: 12px 0;
}

.bnb-email-template-actions {
  gap: 8px;
  margin-top: 14px;
}

.bnb-email-restore-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid #e8ebe5;
}

.bnb-email-restore {
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-decoration: underline;
}

.bnb-email-restore-row small {
  color: #7b857e;
  font-size: .72rem;
  text-align: right;
}

.bnb-email-live-preview {
  position: sticky;
  top: 18px;
  background: #f8f9f6;
}

.bnb-email-preview-heading {
  margin-bottom: 12px;
}

.bnb-email-preview-heading > span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f4f1e7;
  color: #766640;
  font-size: .68rem;
  font-weight: 700;
}

.bnb-email-preview-subject {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e0e4dc;
  font-size: .81rem;
}

.bnb-email-preview-subject strong {
  color: #7a847c;
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bnb-email-live-preview iframe {
  display: block;
  width: 100%;
  min-height: 620px;
  border: 1px solid #e0e4dc;
  border-radius: 9px;
  background: #fff;
}

.bnb-email-template-settings .bnb-notice {
  padding: 10px 13px;
  border-radius: 8px;
}

.bnb-email-template-settings .bnb-notice-success {
  background: #edf4ed;
  color: #315d49;
}

.bnb-email-template-settings .bnb-notice-error {
  background: #fbefec;
  color: #8b4034;
}

@media (max-width: 1150px) {
  .bnb-email-template-workspace {
    grid-template-columns: minmax(160px, 205px) minmax(320px, 1fr);
  }

  .bnb-email-live-preview {
    position: static;
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .bnb-email-card,
  .bnb-email-template-list,
  .bnb-email-template-editor,
  .bnb-email-live-preview {
    padding: 14px;
  }

  .bnb-email-template-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .bnb-email-live-preview {
    grid-column: auto;
  }

  .bnb-email-template-list {
    max-height: 340px;
    overflow-y: auto;
  }

  .bnb-email-field-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bnb-email-hours-times,
  .bnb-email-hours-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bnb-email-field-wide {
    grid-column: auto;
  }

  .bnb-email-form-actions {
    align-items: stretch;
  }

  .bnb-email-form-actions .bnb-button {
    min-height: 40px;
  }

  .bnb-email-live-preview iframe {
    min-height: 550px;
  }
}
