#onlineBookingResponseSettings > .paid-sms-settings-row { margin-top: 12px; }
.cm-editor-dialog { width: min(1140px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); box-sizing: border-box; padding: 0; border: 1px solid #d5dfeb; border-radius: 18px; }
.cm-editor-dialog::backdrop { background: #172b4c99; }
.cm-editor-card { display: flex; flex-direction: column; max-height: calc(100dvh - 28px); min-height: 0; }
.cm-editor-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 20px 22px; border-bottom: 1px solid #d8e2ef; }
.cm-editor-header h2 { margin: 0 0 .5rem; }
.cm-editor-header p { margin: 0; color: #63758d; }
.cm-editor-body { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 28px; padding: 22px; min-height: 0; overflow: auto; }
.cm-editor-email .cm-editor-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cm-editor-preview, .cm-editor-fields { min-width: 0; }
.cm-editor-fields { display: flex; flex-direction: column; gap: 14px; }
.cm-editor-fields label { display: grid; gap: .5rem; font-weight: 600; }
.cm-editor-fields textarea, .cm-editor-fields input:not([type=checkbox]), .cm-editor-fields select { box-sizing: border-box; width: 100%; border: 1px solid #c8d5e7; border-radius: 10px; padding: 11px 12px; background: #fff; color: #173452; font: inherit; font-weight: 400; line-height: 1.45; }
.cm-editor-fields textarea { min-height: 180px; resize: vertical; }
.cm-editor-fields textarea:focus, .cm-editor-fields input:focus, .cm-editor-fields select:focus { outline: 2px solid #4b75cd; outline-offset: 1px; }
.cm-message-versions { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .6rem; }
.cm-message-versions > label { flex: 1; min-width: 150px; }
.cm-marker-list { display: flex; gap: .5rem; flex-wrap: wrap; }
.cm-marker-list > button { display: grid; gap: .2rem; min-width: 0; max-width: 100%; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.cm-marker-list code { font-size: .75rem; color: #526980; }
.cm-editor-fields .cm-check { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400; }
.cm-check input { flex: 0 0 auto; width: 1.1rem; height: 1.1rem; margin-top: .2rem; }
.cm-normalize-label { padding: .8rem; border: 1px solid #d6e0ef; border-radius: 10px; }
.cm-collapsed { padding: 12px; border: 1px solid #d6e0ef; border-radius: 12px; background: #f8fbff; }
.cm-collapsed summary { cursor: pointer; font-weight: 600; }
.cm-collapsed[open] summary { margin-bottom: 12px; }
.cm-collapsed p { font-size: .9rem; line-height: 1.5; color: #63758d; }
.cm-options, .cm-test[open] { display: grid; gap: .7rem; }
.cm-test[open] summary { margin-bottom: 0; }
.cm-validation { margin: 0; color: #a12d2d; overflow-wrap: anywhere; }
.cm-validation:empty { display: none; }
.cm-email-meta { display: grid; gap: .5rem; padding: 14px; border: 1px solid #d6e0ef; border-radius: 12px 12px 0 0; overflow-wrap: anywhere; font-size: .9rem; }
.cm-email-frame { box-sizing: border-box; display: block; width: 100%; height: 590px; border: 1px solid #d6e0ef; background: white; }
.cm-editor-status { padding: 0 22px; margin: .7rem 0; overflow-wrap: anywhere; }
.cm-editor-status:empty { margin: 0; }
.cm-editor-status.is-error { color: #a12d2d; }
.cm-editor-actions { display: flex; justify-content: flex-end; gap: .7rem; flex-shrink: 0; padding: 16px 22px; border-top: 1px solid #d8e2ef; background: #fff; }
@media (max-width: 740px) {
  .cm-editor-dialog { width: calc(100vw - 12px); max-width: calc(100vw - 12px); max-height: calc(100dvh - 12px); }
  .cm-editor-card { max-height: calc(100dvh - 14px); }
  .cm-editor-header { padding: 14px; }
  .cm-editor-body, .cm-editor-email .cm-editor-body { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 14px; }
  .cm-editor-preview .mp-phone { width: 300px; height: 480px; margin: 0 auto; }
  .cm-email-frame { height: 420px; }
  .cm-editor-actions { padding: 12px 14px; }
  .cm-editor-actions > button { flex: 1; min-width: 0; white-space: normal; }
}

.cm-editor-preview .mp-phone { max-width: 100%; box-sizing: border-box; }
