form .form-group {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #DADADA;
}

.form-group .help-block {
  font-size: 13px;
}

body {
  background: #f5f7f8;
  color: #25313b;
}

.navbar-brand .label {
  position: relative;
  top: -1px;
  margin-left: 6px;
  font-size: 11px;
  vertical-align: middle;
}

.container {
  max-width: 1320px;
  width: 96%;
}

.page-heading {
  margin: 24px 0 18px;
  color: #1f2f3d;
  font-weight: 600;
}

.alert {
  border-radius: 3px;
}

.emailer-editor .panel {
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(31, 47, 61, 0.08);
}

.emailer-editor .panel-heading {
  background: #fdfdfd;
  border-bottom-color: #d9e0e6;
}

.emailer-editor .panel-title {
  font-size: 17px;
  font-weight: 600;
}

.emailer-editor form .form-group {
  margin-top: 18px;
  padding-top: 0;
  border-top: 0;
}

.emailer-editor .form-control {
  border-radius: 3px;
}

.emailer-editor textarea.form-control {
  min-height: 220px;
  color: #25313b;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0;
  background: #fff;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
  overflow-y: auto;
  resize: vertical;
  tab-size: 4;
  text-rendering: auto;
}




.highlighted-source-editor {
  position: relative;
}

.highlighted-source-editor__layer {
  box-sizing: border-box;
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: 220px;
  margin: 0;
  padding: 6px 12px;
  color: #25313b;
  font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: 0;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  overflow-x: hidden;
  overflow-y: auto;
  tab-size: 4;
  text-rendering: auto;
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 3px;
  pointer-events: none;
}

.highlighted-source-editor.is-highlighted .highlighted-source-editor__layer {
  display: block;
}

.highlighted-source-editor.is-highlighted textarea.form-control {
  color: transparent;
  caret-color: #25313b;
}

.highlighted-source-editor.is-highlighted textarea.form-control::selection {
  color: transparent;
  background: rgba(51, 122, 183, 0.32);
}

.highlighted-source-token--tag,
.highlighted-source-token--punctuation {
  color: #8a2635;
}

.highlighted-source-token--tag-name {
  color: #9b2f45;
  font-weight: 600;
}

.highlighted-source-token--attribute-name {
  color: #705a1a;
}

.highlighted-source-token--attribute-value {
  color: #1f6f50;
}

.highlighted-source-token--comment {
  color: #6f7f8f;
  font-style: italic;
}

.highlighted-source-token--entity {
  color: #5b4a91;
}

.highlighted-source-token--custom-prefix {
  color: #9b2f45;
  font-weight: 700;
}

.required-marker {
  color: #a94442;
  font-weight: 700;
}

.help-block {
  color: #627384;
}

.form-actions {
  margin: 24px 0 40px;
  padding-top: 18px;
  border-top: 1px solid #d9e0e6;
}

.formatting-guide {
  margin: 12px 0 18px;
}

.formatting-guide__toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  color: #25313b;
  font-weight: 600;
  text-align: left;
  background: #f7f9fa;
  border: 1px solid #c9d3dc;
  border-radius: 3px;
}

.formatting-guide__toggle:hover,
.formatting-guide__toggle:focus {
  background: #eef3f6;
  border-color: #9fb0bf;
}

.formatting-guide__chevron {
  display: inline-block;
  margin-right: 7px;
  transition: transform 0.15s ease;
}

.formatting-guide.is-open .formatting-guide__chevron {
  transform: rotate(90deg);
}

.formatting-guide__body {
  margin-top: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #d9e0e6;
  border-radius: 3px;
}

.formatting-guide__body[hidden] {
  display: none;
}

.formatting-toolbar {
  margin: 8px 0 8px;
}

.formatting-toolbar .btn {
  margin-bottom: 4px;
}

.live-preview {
  width: 100%;
}

.live-preview__shell {
  width: 100%;
  padding: 10px;
  background: #f7f9fb;
  border: 1px solid #d9e0e6;
  border-radius: 3px;
}

.live-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.live-preview__title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.preview-status {
  font-size: 12px;
  white-space: nowrap;
}

.preview-workspace {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 520px;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 10px;
  background: #eef2f5;
  border-radius: 2px;
}

.preview-scale-box {
  position: relative;
  flex: 0 0 auto;
  margin: 0 auto;
  overflow: visible;
}

.preview-device {
  position: absolute;
  top: 0;
  left: 0;
  width: 660px;
  height: 520px;
}

.preview-device--desktop {
  width: 660px;
}

.preview-device--mobile {
  width: 300px;
}

.preview-frame {
  display: block;
  width: 660px;
  height: 100%;
  min-height: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(31, 47, 61, 0.14);
}

.preview-state {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  padding: 24px;
  color: #627384;
  text-align: center;
  background: #fff;
  border: 1px dashed #c3ccd4;
  border-radius: 3px;
}

.preview-state--error {
  color: #8a3b38;
  background: #f8eeee;
  border-color: #d8a8a5;
}

.preview-note {
  margin: 8px 0 0;
  font-size: 12px;
}

.preview-message {
  margin-top: 12px;
  margin-bottom: 0;
}

.table > thead > tr > th,
.table > thead > th {
  background: #eef3f6;
  color: #25313b;
}

.btn-danger {
  border-color: #a94442;
}

@media (min-width: 992px) {
  html,
  body.emailer-editor-page {
    height: 100%;
  }

  body.emailer-editor-page {
    overflow: hidden;
  }

  body.emailer-editor-page > .container {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: none;
    height: calc(100vh - 70px);
    min-height: 0;
    margin-right: 12px;
    margin-left: 12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  body.emailer-editor-page .emailer-editor {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  body.emailer-editor-page .emailer-editor > .row {
    display: flex;
    height: 100%;
    min-height: 0;
    align-items: stretch;
  }

  body.emailer-editor-page .editor-pane,
  body.emailer-editor-page .preview-pane-shell {
    float: none;
  }

  body.emailer-editor-page .editor-pane {
    flex: 0 0 60%;
    max-width: 60%;
    width: 60%;
  }

  body.emailer-editor-page .preview-pane-shell {
    flex: 0 0 40%;
    max-width: 40%;
    width: 40%;
  }

  body.emailer-editor-page .editor-pane {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 30px;
  }

  body.emailer-editor-page .preview-pane-shell {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.emailer-editor-page .live-preview,
  body.emailer-editor-page .live-preview__shell {
    height: 100%;
    min-height: 0;
  }

  body.emailer-editor-page .live-preview__shell {
    display: flex;
    flex-direction: column;
  }

  body.emailer-editor-page .preview-workspace {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }

  body.emailer-editor-page .preview-device {
    height: 100%;
  }
}

.preview-pane-shell {
  min-width: 0;
}

@media (max-width: 991px) {
  body.emailer-editor-page {
    height: auto;
    overflow: visible;
  }

  body.emailer-editor-page > .container {
    display: block;
    height: auto;
  }

  body.emailer-editor-page .emailer-editor {
    height: auto;
    overflow: visible;
  }

  body.emailer-editor-page .emailer-editor > .row {
    display: block;
    height: auto;
  }

  body.emailer-editor-page .editor-pane,
  body.emailer-editor-page .preview-pane-shell,
  body.emailer-editor-page .live-preview,
  body.emailer-editor-page .live-preview__shell {
    height: auto;
    overflow: visible;
  }

  .preview-workspace {
    height: auto;
    min-height: 520px;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 8px;
  }

  .preview-device,
  .preview-frame {
    height: 520px;
    min-height: 520px;
  }
}

@media (max-width: 560px) {
  .live-preview__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .preview-toolbar {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 420px) {
  .preview-toolbar .btn-group {
    display: flex;
  }
}

.html-preview-modal__dialog {
  width: min(1100px, 96vw);
}

.html-preview-modal__content {
  height: 88vh;
  display: flex;
  flex-direction: column;
}

.html-preview-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
}

.html-preview-modal__iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

@media (max-width: 767px) {
  .html-preview-modal__dialog {
    width: auto;
    margin: 10px;
  }

  .html-preview-modal__content {
    height: 86vh;
  }
}

.share-link-copy {
  margin-top: 6px;
}

.share-link-copy__feedback {
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
}

.share-link-copy__fallback {
  margin-top: 6px;
  max-width: 100%;
}

.html-preview-modal__share {
  float: left;
  margin-top: 0;
  text-align: left;
}

@media (max-width: 767px) {
  .html-preview-modal__share {
    float: none;
    margin-bottom: 8px;
  }
}


.generated-preview-actions {
  margin-bottom: 10px;
}

.generated-text-preview {
  position: relative;
}

.generated-text-preview__close {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #25313b;
  font-size: 22px;
  line-height: 24px;
  background: #fff;
  border: 1px solid #c9d3dc;
  border-radius: 3px;
}

.generated-text-preview__close:hover,
.generated-text-preview__close:focus {
  background: #eef3f6;
  border-color: #9fb0bf;
}

.generated-text-preview__textarea {
  padding-right: 44px;
}
