/**
 * Puente visual: wizard legacy PHP (mailing) + estilos nueva_campana (audience/envios).
 */
html.fx-mailing-wizard-page,
html.fx-mailing-wizard-page body {
  font-family: 'Roboto', sans-serif;
  background: var(--bg, #F0F4F9);
  color: var(--text, #1D1B20);
}

/* Toasts modernos — reemplazo visual de toastr legacy */
html.fx-mailing-wizard-page #toast-container {
  display: none !important;
}

html.fx-mailing-wizard-page .fx-wizard-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--wizard-footer-h, 72px) + 18px);
  z-index: 10060;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: min(420px, calc(100vw - 32px));
  max-width: min(560px, calc(100vw - 32px));
  padding: 14px 16px 14px 18px;
  border-radius: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--surface-variant, #e1e3e1);
  box-shadow: 0 12px 40px rgba(29, 27, 32, 0.16);
  transform: translateX(-50%) translateY(24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), opacity 0.22s ease, visibility 0s 0.28s;
}

html.fx-mailing-wizard-page .fx-wizard-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.28s cubic-bezier(0.2, 0, 0, 1), opacity 0.22s ease, visibility 0s;
}

html.fx-mailing-wizard-page .fx-wizard-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex-shrink: 0;
}

html.fx-mailing-wizard-page .fx-wizard-toast-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text, #1d1b20);
}

html.fx-mailing-wizard-page .fx-wizard-toast-close {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-3, #79747e);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

html.fx-mailing-wizard-page .fx-wizard-toast-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text, #1d1b20);
}

html.fx-mailing-wizard-page .fx-wizard-toast--success .fx-wizard-toast-icon {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

html.fx-mailing-wizard-page .fx-wizard-toast--warning .fx-wizard-toast-icon {
  background: rgba(230, 167, 0, 0.14);
  color: #b8860b;
}

html.fx-mailing-wizard-page .fx-wizard-toast--error .fx-wizard-toast-icon {
  background: rgba(179, 38, 30, 0.1);
  color: #b3261e;
}

html.fx-mailing-wizard-page .fx-wizard-toast--info .fx-wizard-toast-icon {
  background: rgba(149, 122, 251, 0.12);
  color: var(--primary, #957afb);
}

html.fx-mailing-wizard-page .fx-wizard-toast--success {
  border-color: rgba(46, 125, 50, 0.22);
}

html.fx-mailing-wizard-page .fx-wizard-toast--warning {
  border-color: rgba(230, 167, 0, 0.28);
}

html.fx-mailing-wizard-page .fx-wizard-toast--error {
  border-color: rgba(179, 38, 30, 0.22);
}

html.fx-mailing-wizard-page .fx-wizard-toast--info {
  border-color: rgba(149, 122, 251, 0.28);
}

html.fx-mailing-wizard-page #container {
  background: var(--bg, #F0F4F9);
}

html.fx-mailing-wizard-page #container > .header.fixed-top {
  display: none;
}

html.fx-mailing-wizard-page #sidebar,
html.fx-mailing-wizard-page aside {
  z-index: 110;
}

html.fx-mailing-wizard-page #main-content.fx-mailing-wizard-main {
  margin-left: 240px;
  padding: 0;
  background: var(--bg, #F0F4F9);
  min-height: 100vh;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-wrap {
  padding: 0;
  margin: 0;
  max-width: none;
}

html.fx-mailing-wizard-page .page-nueva-campana.content-wizard-embed {
  --wizard-footer-h: 72px;
  --wizard-footer-inset-x: 48px;
  margin-left: 0;
  min-height: calc(100vh - var(--wizard-footer-h));
  background: var(--bg, #F0F4F9);
}

html.fx-mailing-wizard-page .content-wizard {
  padding: 24px var(--wizard-footer-inset-x, 48px) calc(var(--wizard-footer-h) + 32px);
  max-width: 1280px;
  margin: 0 auto;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-header {
  margin-bottom: 8px;
}

html.fx-mailing-wizard-page .fx-legacy-tabs-header,
html.fx-mailing-wizard-page #fiweex-tabs > .col-md-12 > h5 {
  display: none !important;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-panel {
  background: transparent;
  border: none;
  box-shadow: none;
  margin: 0;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-panel > .panel-body {
  background: transparent !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: none;
}

html.fx-mailing-wizard-page .wizard-mailling-legacy-tabs > .col-sm-12 {
  padding: 0;
  float: none;
  width: 100%;
}

/* Pestañas legacy: solo el paso activo visible (estilo envios) */
html.fx-mailing-wizard-page .tab-content .tab-pane {
  display: none !important;
  padding: 0 !important;
}

html.fx-mailing-wizard-page .tab-content .tab-pane.active {
  display: flex !important;
  flex-direction: column;
  gap: 32px;
}

html.fx-mailing-wizard-page .div_btn_next1,
html.fx-mailing-wizard-page .div_btn_next2 {
  display: none !important;
}

/* Cards legacy → estilo MD3 */
html.fx-mailing-wizard-page .fx-mailing-wizard-panel .panel {
  border-radius: var(--r-card, 24px);
  border: 1px solid var(--card-border, rgba(0, 0, 0, 0.03));
  box-shadow: var(--elevation-soft, 0 1px 3px rgba(0, 0, 0, 0.04));
  background: var(--surface, #fff);
  margin-bottom: 24px;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-panel .panel-heading {
  background: var(--surface, #fff) !important;
  border-bottom: 1px solid var(--surface-variant, #E1E3E1);
  color: var(--text, #1D1B20);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-card, 24px) var(--r-card, 24px) 0 0;
  padding: 18px 24px;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-panel .panel-body {
  background: var(--surface, #fff) !important;
  padding: 24px 28px !important;
}

html.fx-mailing-wizard-page .nc-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 20px;
}

/* Paso 1 — emojioneArea dentro de input-box (estilo envios) */
html.fx-mailing-wizard-page .nc-card-campana,
html.fx-mailing-wizard-page .nc-card-campana .card {
  overflow: visible;
}

html.fx-mailing-wizard-page .fx-emojione-field {
  position: relative;
  min-height: 52px;
  height: auto;
  align-items: center;
  padding: 0;
  overflow: visible;
  gap: 0;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea {
  display: flex !important;
  align-items: center;
  width: 100%;
  flex: 1;
  min-width: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  min-height: 52px;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea.focused {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-editor {
  width: 100% !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 14px 0 14px 18px !important;
  margin: 0 !important;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--text);
  overflow-x: hidden;
  overflow-y: auto;
  white-space: nowrap;
  display: block !important;
  cursor: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  user-select: text;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-editor:empty:before {
  color: var(--text-3, #79767A);
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea.emojionearea-inline {
  height: 52px;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea.emojionearea-inline > .emojionearea-editor {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: 48px;
  min-height: 48px;
  white-space: nowrap;
}

/* Botón emoji → estilo .emoji-btn de nueva_campana */
html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-button {
  position: absolute;
  right: 44px !important;
  top: 50% !important;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  opacity: 1;
  z-index: 3;
  border-radius: 50%;
  transition: background .2s ease;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-button:hover {
  background: rgba(0, 0, 0, .05);
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-button > div {
  background-image: none !important;
  width: 32px !important;
  height: 32px !important;
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-button .emojionearea-button-open::before {
  content: '😀';
  font-size: 18px;
  line-height: 1;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-button.active .emojionearea-button-open::before {
  content: '✕';
  font-size: 15px;
  color: var(--text-2, #49454F);
  font-weight: 600;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-button .emojionearea-button-close {
  display: none !important;
}

html.fx-mailing-wizard-page .fx-emojione-field:has(.emojionearea-button.active) {
  z-index: 120;
}

html.fx-mailing-wizard-page .fx-char-counter {
  flex-shrink: 0;
  align-self: center;
  margin-right: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3, #79767A);
  min-width: 24px;
  text-align: right;
  border-radius: 6px;
  padding: 2px 4px;
  transition: background .2s, color .2s;
}

html.fx-mailing-wizard-page .fx-char-counter.is-limit {
  background: var(--error, #B3261E);
  color: #fff;
}

html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-editor .emojioneemoji,
html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-editor [class*=emojione-],
html.fx-mailing-wizard-page .fx-emojione-field .emojionearea .emojionearea-editor img.emojioneemoji {
  height: 1.2em;
  width: 1.2em;
  min-height: 18px;
  min-width: 18px;
  vertical-align: -0.12em;
  pointer-events: auto;
  cursor: text;
  -webkit-user-select: all;
  -moz-user-select: all;
  user-select: all;
}

/* Panel selector de emojis (emojioneArea picker) */
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker {
  background: var(--surface, #fff);
  border: 1px solid var(--surface-variant, #E1E3E1);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  width: 320px !important;
  height: auto !important;
  z-index: 10050 !important;
  opacity: 1 !important;
  filter: none !important;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker.emojionearea-picker-position-bottom {
  margin-top: 8px !important;
  top: calc(100% + 4px) !important;
  right: 0 !important;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-wrapper {
  width: 320px !important;
  height: auto !important;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-wrapper:after {
  display: none !important;
}

/* Cabecera compacta: filtros + búsqueda en flujo normal (sin hueco) */
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-filters {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 auto;
  width: 100%;
  height: 36px !important;
  min-height: 36px;
  background: var(--surface-variant, #F3F3F3);
  border-bottom: 1px solid var(--surface-variant, #E1E3E1);
  padding: 4px 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-sizing: border-box;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-filters .emojionearea-filter {
  float: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 10px;
  opacity: .75;
  filter: grayscale(1);
  -webkit-filter: grayscale(1);
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-filters .emojionearea-filter > i,
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-filters .emojionearea-filter > img {
  width: 20px;
  height: 20px;
  margin: 0;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-filters .emojionearea-filter.active,
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-filters .emojionearea-filter:hover {
  background: var(--primary-container, #E8DEF8);
  opacity: 1;
  filter: grayscale(0);
  -webkit-filter: grayscale(0);
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-search-panel {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  flex: 0 0 auto;
  height: auto !important;
  min-height: 0;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--surface-variant, #E1E3E1);
  padding: 8px 10px;
  box-sizing: border-box;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-search {
  float: none;
  width: 100%;
  height: auto;
  max-width: none;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-search > input {
  width: 100% !important;
  min-width: 0;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--surface-variant, #E1E3E1);
  padding: 8px 10px;
  font-size: 13px;
  box-sizing: border-box;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-tones-panel,
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-tones {
  display: none;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-scroll-area {
  position: relative !important;
  top: auto !important;
  bottom: auto !important;
  flex: 1 1 auto;
  width: 100% !important;
  height: 250px !important;
  min-height: 220px;
  max-height: 280px;
  padding: 0 0 6px;
  box-sizing: border-box;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-search-panel + .emojionearea-scroll-area {
  height: 250px !important;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker.emojionearea-filters-position-top.emojionearea-search-position-top .emojionearea-scroll-area,
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker.emojionearea-filters-position-top.emojionearea-search-position-bottom .emojionearea-scroll-area,
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker.emojionearea-filters-position-bottom.emojionearea-search-position-top .emojionearea-scroll-area,
html.fx-mailing-wizard-page .emojionearea .emojionearea-picker.emojionearea-filters-position-bottom.emojionearea-search-position-bottom .emojionearea-scroll-area {
  top: auto !important;
  bottom: auto !important;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-scroll-area .emojionearea-category-title {
  color: var(--text-2, #49454F);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.3;
  padding: 6px 0 4px 6px;
  background: transparent;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-scroll-area .emojionearea-category-block {
  padding: 0 0 0 6px;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-scroll-area .emojibtn {
  margin: 2px;
  padding: 2px;
  border-radius: 8px;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-picker .emojionearea-scroll-area .emojibtn:hover {
  background: var(--primary-container, #E8DEF8);
  border-radius: 8px;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-button.active + .emojionearea-picker {
  opacity: 1 !important;
  transform: none !important;
}

html.fx-mailing-wizard-page .emojionearea .emojionearea-button.active + .emojionearea-picker-position-bottom {
  margin-top: 8px !important;
}

/* Radios y verificación */
html.fx-mailing-wizard-page .fx-radio-email-group,
html.fx-mailing-wizard-page .fx-radio-aws-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

html.fx-mailing-wizard-page .fx-email-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

html.fx-mailing-wizard-page .fx-email-option-row .custom-radio {
  flex: 1;
  min-width: 0;
}

html.fx-mailing-wizard-page .fx-radio-email-group .divbtn1,
html.fx-mailing-wizard-page .fx-radio-email-group .divbtn2,
html.fx-mailing-wizard-page .fx-radio-aws-group .divbtn1,
html.fx-mailing-wizard-page .fx-radio-aws-group .divbtn2 {
  width: auto;
  float: none;
  padding: 0;
}

html.fx-mailing-wizard-page .step1-email-option-row .step1-icon-btn {
  flex-shrink: 0;
}

html.fx-mailing-wizard-page .fx-editor-tool-btn {
  border-radius: 100px;
  font-weight: 500;
  margin-bottom: 8px;
}

html.fx-mailing-wizard-page .fx-metodo-label {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
}

html.fx-mailing-wizard-page .fx-badge-nuevo {
  display: inline-block;
  background: var(--primary-container, #E8DEF8);
  color: var(--primary, #957AFB);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  margin-right: 6px;
}

html.fx-mailing-wizard-page .fx-verify-block {
  margin-top: 16px;
}

html.fx-mailing-wizard-page .fx-verify-block .verify-box .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
  height: 44px;
  padding: 0;
}

html.fx-mailing-wizard-page .fx-verify-success {
  text-align: center;
  padding: 16px 0;
}

html.fx-mailing-wizard-page .fx-verify-success-body p {
  color: var(--text-2);
  margin: 8px 0;
}

html.fx-mailing-wizard-page .fx-no-aws-email {
  color: var(--text-2);
  font-size: 13px;
  margin: 12px 0;
}

html.fx-mailing-wizard-page .fx-pending-label {
  color: #fa8564;
  font-size: 12px;
}

html.fx-mailing-wizard-page .fx-btn-aws-start {
  margin-top: 12px;
}

/* Paso 2 — email builder (estilo envios) */
html.fx-mailing-wizard-page .fx-legacy-template-hidden {
  display: none !important;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active.main {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active.main > .content.content-wizard {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active .wizard-container {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active .fx-wizard-steps-host {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active #crea_template {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  gap: 0;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active #crea_template .step2-wrapper {
  flex: 1 1 0%;
  min-height: 0;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active #crea_template .step2-editor {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* Paso 2 — panel de bloques: asegurar que reciba clics */
html.fx-mailing-wizard-page #step2Editor .eb-lp,
html.fx-mailing-wizard-page #step2Editor .lp-body,
html.fx-mailing-wizard-page #step2Editor .lp-blocks-scroll,
html.fx-mailing-wizard-page #step2Editor .cat-row-toggle,
html.fx-mailing-wizard-page #step2Editor .blk {
  pointer-events: auto;
}

html.fx-mailing-wizard-page #step2Editor .cat-row-toggle {
  cursor: pointer;
  position: relative;
  z-index: 2;
}

html.fx-mailing-wizard-page #step2Editor .blk {
  cursor: pointer;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active .fx-mailing-wizard-header {
  display: none;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active .content-wizard {
  padding: 8px var(--wizard-footer-inset-x, 48px) calc(var(--wizard-footer-h) + 8px);
  max-width: none;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active .md-stepper {
  margin-bottom: 12px;
  flex-shrink: 0;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active #crea_template.tab-pane.active {
  gap: 0 !important;
}

html.fx-mailing-wizard-page .page-nueva-campana.step2-active .fx-wizard-steps-host > .col-sm-12,
html.fx-mailing-wizard-page .page-nueva-campana.step2-active .fx-wizard-steps-host .fx-mailing-wizard-panel,
html.fx-mailing-wizard-page .page-nueva-campana.step2-active .fx-wizard-steps-host .panel-body,
html.fx-mailing-wizard-page .page-nueva-campana.step2-active .fx-wizard-steps-host .tab-content {
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.fx-mailing-wizard-page body.sidebar-hidden #sidebar,
html.fx-mailing-wizard-page body.sidebar-hidden aside {
  display: none;
}

html.fx-mailing-wizard-page body.sidebar-hidden #main-content.fx-mailing-wizard-main {
  margin-left: 0;
}

html.fx-mailing-wizard-page body.sidebar-hidden .fx-mailing-wizard-footer {
  left: 0;
}

/* Paso 4 — confirmación (alineado a nueva_campana: step-grid-step1 + preview-card) */
html.fx-mailing-wizard-page #confirmacion.fx-step4-layout.tab-pane.step-content.active {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas:
    "step4-head step4-head"
    "step4-summary step4-preview"
    "step4-send step4-send";
  gap: 24px 32px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 12px;
}

html.fx-mailing-wizard-page #confirmacion.fx-step4-layout:not(.fx-builder-confirm-active).tab-pane.step-content.active {
  grid-template-columns: 1fr;
  grid-template-areas:
    "step4-head"
    "step4-summary"
    "step4-send";
}

html.fx-mailing-wizard-page .fx-step4-header {
  grid-area: step4-head;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 4px;
  width: 100%;
  min-width: 0;
}

html.fx-mailing-wizard-page .fx-step4-header.section-header {
  margin-bottom: 0;
}

html.fx-mailing-wizard-page .fx-step4-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #957afb);
}

html.fx-mailing-wizard-page .fx-step4-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text, #1d1b20);
  line-height: 1.3;
}

html.fx-mailing-wizard-page .fx-step4-lead {
  margin: 0;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2, #49454f);
}

html.fx-mailing-wizard-page .fx-step4-lead strong {
  color: var(--primary, #957afb);
  font-weight: 600;
}

html.fx-mailing-wizard-page .fx-step4-header-actions {
  flex-shrink: 0;
  padding-bottom: 2px;
}

html.fx-mailing-wizard-page .fx-step4-modal-preview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--surface-variant, #e1e3e1);
  background: var(--surface, #fff);
  color: var(--text-2, #49454f);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--elevation-soft, 0 1px 3px rgba(0, 0, 0, 0.04));
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

html.fx-mailing-wizard-page .fx-step4-modal-preview:hover {
  border-color: var(--primary, #957afb);
  color: var(--primary, #957afb);
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(149, 122, 251, 0.12);
}

html.fx-mailing-wizard-page #confirmacion.fx-builder-confirm-active .fx-step4-header-actions {
  display: none;
}

html.fx-mailing-wizard-page #confirmacion.fx-builder-confirm-active .fx-legacy-preview-link {
  display: none !important;
}

html.fx-mailing-wizard-page .fx-step4-body {
  display: contents;
}

html.fx-mailing-wizard-page .fx-step4-summary {
  grid-area: step4-summary;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  width: 100%;
  padding-right: 4px;
}

html.fx-mailing-wizard-page .fx-confirmacion-preview-slot {
  grid-area: step4-preview;
  min-width: 0;
  width: 100%;
  position: relative;
  align-self: start;
}

html.fx-mailing-wizard-page .fx-step4-card {
  background: var(--surface, #fff);
  border: 1px solid var(--surface-variant, #e1e3e1);
  border-radius: var(--r-card, 16px);
  box-shadow: var(--elevation-soft, 0 1px 3px rgba(0, 0, 0, 0.04));
  padding: 22px 26px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.fx-mailing-wizard-page .fx-step4-card:hover {
  border-color: rgba(149, 122, 251, 0.28);
  box-shadow: 0 4px 16px rgba(149, 122, 251, 0.08);
}

html.fx-mailing-wizard-page .fx-step4-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--surface-variant, #e1e3e1);
}

html.fx-mailing-wizard-page .fx-step4-card-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-container, #e8def8);
  color: var(--primary, #957afb);
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(149, 122, 251, 0.15);
}

html.fx-mailing-wizard-page .fx-step4-card-titles {
  flex: 1;
  min-width: 0;
}

html.fx-mailing-wizard-page .fx-step4-card-titles h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text, #1d1b20);
  line-height: 1.35;
}

html.fx-mailing-wizard-page .fx-step4-card-titles p {
  margin: 0;
  font-size: 13px;
  color: var(--text-3, #79747e);
  line-height: 1.45;
}

html.fx-mailing-wizard-page .fx-step4-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid rgba(149, 122, 251, 0.3);
  background: var(--surface, #fff);
  color: var(--primary, #957afb);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

html.fx-mailing-wizard-page .fx-step4-edit .fa {
  font-size: 11px;
  opacity: 0.9;
}

html.fx-mailing-wizard-page .fx-step4-edit:hover {
  background: var(--primary-container, #e8def8);
  border-color: var(--primary, #957afb);
  color: var(--primary, #957afb);
  text-decoration: none;
  transform: translateY(-1px);
}

html.fx-mailing-wizard-page .fx-step4-meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

html.fx-mailing-wizard-page .fx-step4-meta-row {
  display: grid;
  grid-template-columns: minmax(130px, 34%) 1fr;
  gap: 8px 20px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

html.fx-mailing-wizard-page .fx-step4-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

html.fx-mailing-wizard-page .fx-step4-meta-row:first-child {
  padding-top: 0;
}

html.fx-mailing-wizard-page .fx-step4-meta-row dt {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-3, #79747e);
  line-height: 1.4;
}

html.fx-mailing-wizard-page .fx-step4-meta-row dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text, #1d1b20);
  word-break: break-word;
  line-height: 1.45;
}

html.fx-mailing-wizard-page .fx-step4-meta-row dd:empty::before {
  content: '—';
  color: var(--text-3, #79747e);
  font-weight: 400;
}

html.fx-mailing-wizard-page .fx-step4-meta-row dd .fa-check-circle {
  color: var(--primary, #957afb) !important;
}

html.fx-mailing-wizard-page .fx-step4-meta-row dd .fa-exclamation-circle {
  color: #e6a700 !important;
}

html.fx-mailing-wizard-page #conf_email_envio {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--surface-container, #f3f3f3);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text, #1d1b20);
}

html.fx-mailing-wizard-page #conf_bd_utilizadas {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

html.fx-mailing-wizard-page .fx-step4-meta-row--highlight {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(149, 122, 251, 0.12) 0%, rgba(149, 122, 251, 0.04) 100%);
  border: 1px solid rgba(149, 122, 251, 0.2);
  grid-template-columns: 1fr;
  gap: 6px;
  border-bottom: none;
}

html.fx-mailing-wizard-page .fx-step4-meta-row--highlight dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary, #957afb);
  font-weight: 600;
}

html.fx-mailing-wizard-page .fx-step4-meta-row--highlight dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--text, #1d1b20);
}

html.fx-mailing-wizard-page .fx-step4-audience-count {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary, #957afb);
  line-height: 1;
  margin-right: 4px;
}

html.fx-mailing-wizard-page .fx-step4-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary, #957afb);
  font-weight: 600;
}

html.fx-mailing-wizard-page .fx-step4-ok .fa {
  font-size: 15px;
}

html.fx-mailing-wizard-page .fx-step4-send-bar {
  grid-area: step4-send;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  width: 100%;
  min-width: 0;
  padding: 22px 28px;
  border-radius: var(--r-card, 16px);
  background: var(--surface, #fff);
  border: 1px solid rgba(149, 122, 251, 0.22);
  box-shadow: 0 8px 28px rgba(149, 122, 251, 0.1);
  position: relative;
  overflow: hidden;
}

html.fx-mailing-wizard-page .fx-step4-send-bar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary, #957afb) 0%, #7c5fd4 100%);
}

html.fx-mailing-wizard-page .fx-step4-send-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
  min-width: 240px;
  padding-left: 8px;
}

html.fx-mailing-wizard-page .fx-step4-send-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary, #957afb) 0%, #7c5fd4 100%);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(149, 122, 251, 0.35);
}

html.fx-mailing-wizard-page .fx-step4-send-title {
  display: block;
  margin-bottom: 5px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text, #1d1b20);
  line-height: 1.3;
}

html.fx-mailing-wizard-page .fx-step4-send-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2, #49454f);
  line-height: 1.5;
}

html.fx-mailing-wizard-page .fx-step4-send-count {
  font-weight: 700;
  color: var(--primary, #957afb);
  font-size: 15px;
}

html.fx-mailing-wizard-page .fx-step4-send-btn {
  min-width: 220px;
  padding: 14px 36px !important;
  border: none !important;
  border-radius: 100px !important;
  background: var(--primary, #957afb) !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(149, 122, 251, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

html.fx-mailing-wizard-page .fx-step4-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(149, 122, 251, 0.42);
  background: #8669fa !important;
}

html.fx-mailing-wizard-page .fx-step4-send-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(149, 122, 251, 0.28), 0 6px 20px rgba(149, 122, 251, 0.35);
}

html.fx-mailing-wizard-page .fx-step4-send-btn:active {
  transform: translateY(0);
}

html.fx-mailing-wizard-page #confirmacion.fx-step4-layout .panel,
html.fx-mailing-wizard-page #confirmacion.fx-step4-layout .row > [class*="col-"] {
  display: none !important;
}

html.fx-mailing-wizard-page #confirmacion.fx-builder-confirm-active #fxMailingStep4Preview {
  display: flex;
}

html.fx-mailing-wizard-page #fxMailingStep4Preview {
  display: none;
  position: sticky;
  top: 100px;
  width: 100%;
  max-height: calc(100vh - 200px);
  min-height: 440px;
  min-width: 0;
  overflow: hidden;
  background: var(--surface, #fff);
  border: 1px solid var(--surface-variant, #e1e3e1);
  border-radius: 16px;
  padding: 0;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  box-shadow: var(--elevation-soft, 0 1px 3px rgba(0, 0, 0, 0.04));
}

html.fx-mailing-wizard-page .fx-confirmation-preview-header,
html.fx-mailing-wizard-page #fxMailingStep4Preview .preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  padding: 18px 22px;
  border-bottom: 1px solid var(--surface-variant, #e1e3e1);
  background: var(--surface-variant, #f3f3f3);
  margin: 0;
}

html.fx-mailing-wizard-page .fx-confirmation-preview-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

html.fx-mailing-wizard-page .fx-confirmation-preview-header-title svg {
  color: var(--text-2, #49454f);
  flex-shrink: 0;
}

html.fx-mailing-wizard-page .fx-confirmation-preview-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1d1b20);
}

html.fx-mailing-wizard-page .fx-view-toggles {
  display: flex;
  gap: 4px;
  background: var(--surface-container, #F3F3F3);
  border-radius: 8px;
  padding: 3px;
}

html.fx-mailing-wizard-page .fx-view-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2, #49454F);
  cursor: pointer;
}

html.fx-mailing-wizard-page .fx-view-btn.active {
  background: var(--surface, #fff);
  color: var(--primary, #957AFB);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

html.fx-mailing-wizard-page .fx-confirmation-email-viewport {
  position: relative;
  width: 100%;
  min-height: 340px;
  flex: 1 1 auto;
  margin: 16px 18px 0;
  border: 1px solid var(--surface-variant, #e1e3e1);
  border-radius: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #f8f9fa;
}

html.fx-mailing-wizard-page .fx-confirmation-preview-canvas-area {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  min-height: 100%;
  padding: 18px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
  background-color: #f8f9fa;
  background-image: radial-gradient(#e0e2e7 1px, transparent 1px);
  background-size: 16px 16px;
}

html.fx-mailing-wizard-page .fx-step4-preview-iframe-shell {
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  flex-shrink: 0;
  max-width: 100%;
  line-height: 0;
}

html.fx-mailing-wizard-page .fx-step4-preview-scale-inner {
  position: relative;
  display: block;
  transform-origin: top left;
  line-height: 0;
  overflow: hidden;
}

html.fx-mailing-wizard-page #fxStep4PreviewIframe {
  display: block;
  width: 640px;
  border: none;
  background: #fff;
  min-height: 280px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform-origin: top center;
}

html.fx-mailing-wizard-page .fx-confirmation-email-viewport.fx-step4-view-mobile #fxStep4PreviewIframe {
  width: 390px !important;
  max-width: 390px;
}

html.fx-mailing-wizard-page .fx-email-viewport-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
}

html.fx-mailing-wizard-page .fx-email-viewport-placeholder-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-2, #49454F);
}

html.fx-mailing-wizard-page .fx-btn-ver-preview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 36px);
  margin: 14px 18px 18px;
  padding: 11px 16px;
  border: 1px solid var(--surface-variant, #e1e3e1);
  border-radius: 100px;
  background: var(--surface, #fff);
  color: var(--text-2, #49454f);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
  flex-shrink: 0;
}

html.fx-mailing-wizard-page .fx-btn-ver-preview:hover {
  border-color: var(--primary, #957afb);
  color: var(--primary, #957afb);
  background: var(--primary-container, #e8def8);
}

html.fx-mailing-wizard-page #fxModalBuilderPreviewWrap {
  display: none;
  width: 100%;
  min-height: 70vh;
  background: #f8f9fa;
  background-image: radial-gradient(#e0e2e7 1px, transparent 1px);
  background-size: 16px 16px;
  padding: 24px;
  box-sizing: border-box;
}

html.fx-mailing-wizard-page #fxModalBuilderPreviewWrap.is-open {
  display: block;
}

html.fx-mailing-wizard-page #fxModalBuilderPreviewIframe {
  display: block;
  width: 100%;
  min-height: 70vh;
  border: none;
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.14);
  border-radius: 8px;
}

html.fx-mailing-wizard-page #confirmacion .fx-template-builder-summary {
  display: none;
}

html.fx-mailing-wizard-page #confirmacion.fx-builder-confirm-active .fx-template-legacy-summary {
  display: none;
}

html.fx-mailing-wizard-page #confirmacion.fx-builder-confirm-active .fx-template-builder-summary {
  display: block;
}

/* Paso 3 — audiencia */
html.fx-mailing-wizard-page #selecciona > .row {
  margin: 0;
}

html.fx-mailing-wizard-page #selecciona .panel {
  margin-bottom: 20px;
}

/* Inputs legacy dentro del wizard */
html.fx-mailing-wizard-page .fx-mailing-wizard-panel .form-control,
html.fx-mailing-wizard-page .fx-mailing-wizard-panel .textarea-control {
  border-radius: 12px;
  border: 1px solid var(--surface-variant, #E1E3E1);
  background: var(--surface-container, #F3F3F3);
  box-shadow: none;
  font-size: 14px;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-panel .form-control:focus,
html.fx-mailing-wizard-page .fx-mailing-wizard-panel .textarea-control:focus {
  border-color: var(--primary, #957AFB);
  box-shadow: 0 0 0 3px rgba(149, 122, 251, 0.12);
}

html.fx-mailing-wizard-page .fx-mailing-wizard-panel .btn-success,
html.fx-mailing-wizard-page .fx-mailing-wizard-panel .btn-primary:not(.ba):not(.bp):not(.bo) {
  background: var(--primary, #957AFB) !important;
  border-color: var(--primary, #957AFB) !important;
  border-radius: 100px;
  padding: 8px 20px;
  font-weight: 500;
}

html.fx-mailing-wizard-page .fx-mailing-wizard-panel .alert {
  border-radius: 12px;
  border: none;
  background: var(--primary-container, #E8DEF8);
  color: var(--text);
}

/* Paso 3 — Selecciona tu Target */
html.fx-mailing-wizard-page #selecciona.fx-target-step {
  padding: 0;
}

html.fx-mailing-wizard-page .fx-target-step-grid {
  display: grid;
  grid-template-columns: minmax(340px, 400px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
}

html.fx-mailing-wizard-page .fx-target-step-grid > [class*="col-"],
html.fx-mailing-wizard-page .fx-target-step-grid .fx-target-main-col,
html.fx-mailing-wizard-page .fx-target-step-grid .fx-target-sidebar,
html.fx-mailing-wizard-page .fx-target-step-grid .fx-target-summary-col {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  min-width: 0;
}

html.fx-mailing-wizard-page .fx-target-sidebar {
  grid-column: 1;
  grid-row: 1;
  position: sticky;
  top: 24px;
  align-self: start;
  width: 100%;
}

html.fx-mailing-wizard-page .fx-target-main-col {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

html.fx-mailing-wizard-page .fx-target-panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin: 0;
}

html.fx-mailing-wizard-page .fx-target-panel .fx-target-tabs-head {
  background: #fff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 16px 0;
  border-radius: 20px 20px 0 0;
}

html.fx-mailing-wizard-page .fx-target-panel .nav-tabs {
  border-bottom: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

html.fx-mailing-wizard-page .fx-target-panel .nav-tabs > li {
  float: none;
  margin: 0;
}

html.fx-mailing-wizard-page .fx-target-panel .nav-tabs > li > a {
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #49454f;
  background: transparent;
  margin: 0;
}

html.fx-mailing-wizard-page .fx-target-panel .nav-tabs > li.active > a,
html.fx-mailing-wizard-page .fx-target-panel .nav-tabs > li.active > a:hover,
html.fx-mailing-wizard-page .fx-target-panel .nav-tabs > li.active > a:focus {
  color: var(--primary, #957afb);
  background: rgba(149, 122, 251, 0.08);
  border: none;
  border-bottom: 2px solid var(--primary, #957afb);
}

html.fx-mailing-wizard-page .fx-target-panel > .panel-body {
  background: #fff;
  padding: 24px 28px;
}

html.fx-mailing-wizard-page .fx-target-panel .tab-pane > h5 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 20px;
  color: #1d1b20;
}

html.fx-mailing-wizard-page .fx-target-opt-intro {
  font-size: 14px;
  font-weight: 500;
  color: #49454f;
  margin: 0 0 14px;
  line-height: 1.45;
}

html.fx-mailing-wizard-page .fx-target-opt-intro strong {
  color: var(--primary, #957afb);
  font-weight: 600;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px !important;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt {
  display: flex !important;
  align-items: flex-start;
  width: 100%;
  text-align: left;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  background: #faf8fc !important;
  color: #1d1b20 !important;
  border-radius: 14px !important;
  padding: 14px 16px 14px 44px !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  box-shadow: none !important;
  margin: 0 !important;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cac4d0;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt:hover {
  border-color: rgba(149, 122, 251, 0.35) !important;
  background: #f6f2ff !important;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt.active,
html.fx-mailing-wizard-page #selecciona .fx-target-opt:has(input[type="radio"]:checked) {
  border-color: var(--primary, #957afb) !important;
  background: rgba(149, 122, 251, 0.08) !important;
  color: #1d1b20 !important;
  box-shadow: 0 0 0 3px rgba(149, 122, 251, 0.12) !important;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt.active::before,
html.fx-mailing-wizard-page #selecciona .fx-target-opt:has(input[type="radio"]:checked)::before {
  border-color: var(--primary, #957afb);
  background: var(--primary, #957afb);
  box-shadow: inset 0 0 0 3px #fff;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1d1b20;
  line-height: 1.3;
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt.active .fx-target-opt-title {
  color: var(--primary, #957afb);
}

html.fx-mailing-wizard-page #selecciona .fx-target-opt-desc {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #49454f;
  line-height: 1.4;
}

html.fx-mailing-wizard-page #selecciona label.fx-target-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Segmentación WiFi — filtros internos */
html.fx-mailing-wizard-page #contenido_segmentacion.fx-seg-panel {
  margin-top: 18px;
  padding: 20px 22px 8px;
  background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
  border: 1px solid rgba(149, 122, 251, 0.18);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html.fx-mailing-wizard-page .fx-seg-filter {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

html.fx-mailing-wizard-page .fx-seg-filter:last-child,
html.fx-mailing-wizard-page #contenido_segmentacion .fx-seg-locales-wrap {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

html.fx-mailing-wizard-page .fx-seg-filter-label,
html.fx-mailing-wizard-page .fx-seg-locales-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1d1b20;
  margin: 0 0 10px;
  letter-spacing: 0.01em;
}

html.fx-mailing-wizard-page .fx-seg-opt-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: #f3edf7;
  border-radius: 14px;
  border: 1px solid rgba(149, 122, 251, 0.12);
  margin-top: 0 !important;
}

html.fx-mailing-wizard-page .fx-seg-opt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 18px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #49454f !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

html.fx-mailing-wizard-page .fx-seg-opt:hover {
  background: rgba(255, 255, 255, 0.65) !important;
  color: #1d1b20 !important;
}

html.fx-mailing-wizard-page .fx-seg-opt.active,
html.fx-mailing-wizard-page .fx-seg-opt:has(input[type="radio"]:checked) {
  background: #fff !important;
  color: var(--primary, #957afb) !important;
  box-shadow: 0 2px 8px rgba(149, 122, 251, 0.18) !important;
  font-weight: 600 !important;
}

html.fx-mailing-wizard-page .fx-seg-opt:active {
  transform: scale(0.98);
}

html.fx-mailing-wizard-page .fx-seg-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

html.fx-mailing-wizard-page .fx-seg-slider-wrap {
  margin-top: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(149, 122, 251, 0.15);
  border-radius: 12px;
}

html.fx-mailing-wizard-page .fx-seg-slider .slider-selection {
  background: var(--primary, #957afb) !important;
}

html.fx-mailing-wizard-page .fx-seg-slider .slider-handle {
  background: #fff !important;
  border: 2px solid var(--primary, #957afb) !important;
  box-shadow: 0 2px 6px rgba(149, 122, 251, 0.25) !important;
}

html.fx-mailing-wizard-page .fx-seg-slider .slider-track-high,
html.fx-mailing-wizard-page .fx-seg-slider .slider-track-low {
  background: #e8e0f0 !important;
}

html.fx-mailing-wizard-page .fx-seg-slider .slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary, #957afb);
}

html.fx-mailing-wizard-page .fx-seg-locales-wrap {
  margin-top: 12px !important;
}

html.fx-mailing-wizard-page .fx-seg-locales-chips {
  margin-top: 10px !important;
}

html.fx-mailing-wizard-page .fx-seg-chip {
  display: inline-flex !important;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px !important;
  margin: 0 !important;
  border: 1.5px solid rgba(149, 122, 251, 0.2) !important;
  border-radius: 100px !important;
  background: #fff !important;
  color: #49454f !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

html.fx-mailing-wizard-page .fx-seg-chip:hover {
  border-color: rgba(149, 122, 251, 0.45) !important;
  background: #f6f2ff !important;
}

html.fx-mailing-wizard-page .fx-seg-chip.active,
html.fx-mailing-wizard-page .fx-seg-chip:has(input[type="checkbox"]:checked) {
  border-color: var(--primary, #957afb) !important;
  background: rgba(149, 122, 251, 0.1) !important;
  color: var(--primary, #957afb) !important;
  font-weight: 600 !important;
  box-shadow: 0 0 0 3px rgba(149, 122, 251, 0.1) !important;
}

html.fx-mailing-wizard-page .fx-seg-chip input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

html.fx-mailing-wizard-page .fx-target-side-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  margin: 0;
}

html.fx-mailing-wizard-page .fx-target-side-card .panel-body {
  background: #fff !important;
  padding: 20px 22px;
  border-radius: 16px;
}

html.fx-mailing-wizard-page .fx-target-summary-heading {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary, #957afb);
  margin: 0 0 12px;
  line-height: 1.45;
}

html.fx-mailing-wizard-page .fx-target-summary-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

html.fx-mailing-wizard-page .fx-target-summary-col ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

html.fx-mailing-wizard-page .fx-target-summary-col ul li p {
  margin: 0;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

html.fx-mailing-wizard-page .fx-target-summary-card .panel-body {
  background: #fff !important;
  padding: 22px !important;
}

html.fx-mailing-wizard-page .fx-target-total-row {
  color: #1d1b20;
  font-weight: 700;
  text-align: left;
  font-size: 13px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
}

html.fx-mailing-wizard-page .fx-target-total-value {
  color: var(--primary, #957afb);
  font-weight: 700;
}

html.fx-mailing-wizard-page .fx-target-calc-block {
  margin-top: 20px;
  padding: 20px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(149, 122, 251, 0.12) 0%, rgba(149, 122, 251, 0.04) 100%);
  border: 1px solid rgba(149, 122, 251, 0.2);
}

html.fx-mailing-wizard-page .fx-target-calc-header {
  text-align: center;
  margin-bottom: 16px;
}

html.fx-mailing-wizard-page .fx-target-calc-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary, #957afb);
  margin-bottom: 6px;
}

html.fx-mailing-wizard-page .fx-target-calc-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1d1b20;
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0;
}

html.fx-mailing-wizard-page .fx-target-calc-result-area {
  text-align: center;
}

html.fx-mailing-wizard-page #btn_calcular_segmentado.fx-target-calc-btn {
  width: 100% !important;
  max-width: none;
  min-height: 52px;
  height: auto !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  white-space: normal;
  background: var(--primary, #957afb) !important;
  border: none !important;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 4px 14px rgba(149, 122, 251, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

html.fx-mailing-wizard-page #btn_calcular_segmentado.fx-target-calc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(149, 122, 251, 0.34);
}

html.fx-mailing-wizard-page #btn_calcular_segmentado.fx-target-calc-btn.fx-calc-loading {
  font-size: 14px !important;
  background: #7f6cf0 !important;
}

html.fx-mailing-wizard-page #btn_calcular_segmentado.fx-target-calc-btn.fx-calc-has-result {
  flex-direction: column;
  min-height: 88px;
  padding: 18px 16px !important;
  font-size: 36px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #957afb 0%, #7c5fd4 100%) !important;
  box-shadow: 0 8px 24px rgba(149, 122, 251, 0.35);
}

html.fx-mailing-wizard-page #btn_calcular_segmentado.fx-target-calc-btn.fx-calc-has-result::after {
  content: 'clientes únicos';
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 4px;
}

html.fx-mailing-wizard-page .fx-target-calc-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: #49454f;
}

html.fx-mailing-wizard-page #extra_dos {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

html.fx-mailing-wizard-page #ver_como_se_calcula.fx-target-calc-link {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary, #957afb) !important;
  text-align: center;
  text-decoration: underline;
  cursor: pointer;
}

html.fx-mailing-wizard-page #ver_como_se_calcula.fx-target-calc-link:hover {
  color: #7c5fd4 !important;
}

html.fx-mailing-wizard-page #information {
  margin-top: 10px;
  font-size: 12px;
  color: #49454f;
}

/* Paso 3 y 4 — más ancho útil (como step 2) */
html.fx-mailing-wizard-page .page-nueva-campana.step3-active .content-wizard,
html.fx-mailing-wizard-page .page-nueva-campana.step4-active .content-wizard {
  max-width: none;
  padding-left: 32px;
  padding-right: 32px;
}

html.fx-mailing-wizard-page .page-nueva-campana.step4-active .fx-mailing-wizard-panel > .panel-body {
  background: transparent !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html.fx-mailing-wizard-page .page-nueva-campana.step4-active .wizard-container {
  max-width: none;
}

html.fx-mailing-wizard-page .page-nueva-campana.step4-active .fx-wizard-steps-host,
html.fx-mailing-wizard-page .page-nueva-campana.step4-active .fx-wizard-steps-host .tab-content,
html.fx-mailing-wizard-page .page-nueva-campana.step4-active #confirmacion.fx-step4-layout {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html.fx-mailing-wizard-page .page-nueva-campana.step4-active .fx-mailing-wizard-panel > .panel-body {
  padding-bottom: 0 !important;
}

/* Footer fijo */
html.fx-mailing-wizard-page .fx-mailing-wizard-footer {
  position: fixed;
  left: 240px;
  right: 0;
  bottom: 0;
  z-index: 90;
}

/* Modales wizard mailing — diseño compartido */
.fx-mkt-modal .fx-mkt-modal-dialog {
  width: min(560px, calc(100vw - 32px));
  margin: 40px auto;
}

.fx-mkt-modal .fx-mkt-modal-dialog--compact {
  width: min(420px, calc(100vw - 32px));
}

.fx-mkt-modal .fx-mkt-modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(29, 27, 32, 0.18);
  overflow: hidden;
}

.fx-mkt-modal .fx-mkt-modal-body {
  padding: 28px 28px 12px;
}

.fx-mkt-modal .fx-mkt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.fx-mkt-modal .fx-mkt-modal-brand {
  font-size: 16px;
  font-weight: 700;
  color: #1d1b20;
}

.fx-mkt-modal .fx-mkt-modal-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(149, 122, 251, 0.12);
  color: var(--primary, #957afb);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.fx-mkt-modal .fx-mkt-modal-badge::before {
  content: 'Tipo: ';
  color: #49454f;
  font-weight: 500;
}

.fx-mkt-modal .fx-mkt-modal-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  color: #1d1b20;
  text-align: center;
  line-height: 1.35;
}

.fx-mkt-modal .fx-mkt-modal-subtitle,
.fx-mkt-modal .fx-mkt-modal-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #49454f;
  text-align: center;
}

.fx-mkt-modal .fx-mkt-modal-lead {
  color: var(--primary, #957afb);
  font-weight: 600;
}

.fx-mkt-modal .fx-mkt-modal-alert {
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff4ed;
  border: 1px solid rgba(250, 133, 100, 0.25);
  margin-bottom: 18px;
}

.fx-mkt-modal .fx-mkt-modal-alert strong {
  display: block;
  color: #c44f2e;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.fx-mkt-modal .fx-mkt-modal-alert p {
  margin: 0;
  color: #8b4d38;
  font-size: 13px;
  line-height: 1.45;
}

.fx-mkt-modal .fx-mkt-modal-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fx-mkt-modal .fx-mkt-modal-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: #faf8fc;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 13px;
  font-weight: 600;
  color: #1d1b20;
  line-height: 1.4;
}

.fx-mkt-modal .fx-mkt-modal-list li span {
  font-weight: 400;
  color: #49454f;
}

.fx-mkt-modal .fx-mkt-modal-offer {
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(149, 122, 251, 0.14) 0%, rgba(149, 122, 251, 0.05) 100%);
  border: 1px solid rgba(149, 122, 251, 0.2);
  margin-bottom: 14px;
  text-align: center;
}

.fx-mkt-modal .fx-mkt-modal-offer-title {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--primary, #957afb);
  line-height: 1.45;
}

.fx-mkt-modal .fx-mkt-modal-offer-title strong {
  color: #1d1b20;
}

.fx-mkt-modal .fx-mkt-modal-offer-total {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #1d1b20;
  letter-spacing: -0.5px;
}

.fx-mkt-modal .fx-mkt-modal-list--pricing li {
  background: #fff;
}

.fx-mkt-modal .fx-mkt-modal-note {
  margin: 0 0 8px;
  font-size: 12px;
  color: #49454f;
  line-height: 1.45;
  text-align: center;
}

.fx-mkt-modal .fx-mkt-modal-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-mkt-modal .fx-mkt-modal-info-list li {
  padding: 14px 16px;
  border-radius: 12px;
  background: #faf8fc;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.fx-mkt-modal .fx-mkt-modal-info-list li strong {
  display: block;
  font-size: 13px;
  color: #1d1b20;
  margin-bottom: 4px;
}

.fx-mkt-modal .fx-mkt-modal-info-list li span {
  display: block;
  font-size: 12px;
  color: #49454f;
  line-height: 1.45;
}

.fx-mkt-modal .fx-mkt-modal-form {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.fx-mkt-modal .fx-mkt-modal-form-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1d1b20;
}

.fx-mkt-modal .fx-mkt-modal-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.fx-mkt-modal .fx-mkt-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}

.fx-mkt-modal .fx-mkt-modal-field-label {
  font-size: 12px;
  font-weight: 600;
  color: #49454f;
}

.fx-mkt-modal .fx-mkt-modal-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  font-size: 14px;
  color: #1d1b20;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fx-mkt-modal .fx-mkt-modal-input:focus {
  outline: none;
  border-color: var(--primary, #957afb);
  box-shadow: 0 0 0 3px rgba(149, 122, 251, 0.12);
}

.fx-mkt-modal .fx-mkt-modal-body--success {
  text-align: center;
  padding-bottom: 28px;
}

.fx-mkt-modal .fx-mkt-modal-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #957afb 0%, #7c5fd4 100%);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(149, 122, 251, 0.35);
}

.fx-mkt-modal .fx-mkt-modal-success-text {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary, #957afb);
  line-height: 1.45;
}

.fx-mkt-modal .fx-mkt-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #faf8fc;
}

.fx-mkt-modal .fx-mkt-modal-footer--center {
  justify-content: center;
}

.fx-mkt-modal .fx-mkt-modal-btn {
  flex: 1 1 0;
  min-height: 46px;
  padding: 12px 18px;
  border: none;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fx-mkt-modal .fx-mkt-modal-footer--center .fx-mkt-modal-btn {
  flex: 0 1 auto;
  min-width: 140px;
}

.fx-mkt-modal .fx-mkt-modal-btn:hover {
  transform: translateY(-1px);
}

.fx-mkt-modal .fx-mkt-modal-btn--secondary {
  background: #1d1b20 !important;
  color: #fff !important;
}

.fx-mkt-modal .fx-mkt-modal-btn--primary {
  background: var(--primary, #957afb) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(149, 122, 251, 0.28);
}

/* Modal verificación email AWS (Método 2) */
.fx-mkt-modal.fx-mkt-modal--email-verify .fx-mkt-modal-dialog--wide {
  width: min(720px, calc(100vw - 32px));
}

.fx-mkt-modal .fx-mkt-email-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 4px;
}

.fx-mkt-modal .fx-mkt-email-method {
  position: relative;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: #faf8fc;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.fx-mkt-modal .fx-mkt-email-method--featured {
  background: linear-gradient(160deg, rgba(149, 122, 251, 0.12) 0%, rgba(149, 122, 251, 0.04) 100%);
  border-color: rgba(149, 122, 251, 0.22);
}

.fx-mkt-modal .fx-mkt-email-method-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--primary, #957afb);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fx-mkt-modal .fx-mkt-email-method-title {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #1d1b20;
  line-height: 1.35;
}

.fx-mkt-modal .fx-mkt-email-method--featured .fx-mkt-email-method-title {
  color: var(--primary, #957afb);
}

.fx-mkt-modal .fx-mkt-email-fields {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fx-mkt-modal .fx-mkt-email-field {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 12px;
  align-items: baseline;
}

.fx-mkt-modal .fx-mkt-email-field dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: lowercase;
  color: #79747e;
  text-align: right;
}

.fx-mkt-modal .fx-mkt-email-field dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #1d1b20;
  line-height: 1.4;
  word-break: break-word;
}

.fx-mkt-modal .fx-mkt-modal-form--verify {
  margin-top: 22px;
  text-align: center;
}

.fx-mkt-modal .fx-mkt-modal-form--verify .fx-mkt-modal-form-title {
  text-align: center;
  margin-bottom: 6px;
}

.fx-mkt-modal .fx-mkt-modal-form--verify .fx-mkt-modal-note {
  margin-bottom: 14px;
}

.fx-mkt-modal .fx-mkt-verify-box {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  padding: 4px 4px 4px 16px;
  border-radius: 14px;
  background: var(--surface-container, #f3f3f3);
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.fx-mkt-modal .fx-mkt-verify-box:focus-within {
  background: #fff;
  border-color: var(--primary, #957afb);
  box-shadow: 0 0 0 3px rgba(149, 122, 251, 0.12);
}

.fx-mkt-modal .fx-mkt-verify-box .fx-mkt-modal-input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: none;
  background: transparent;
  padding: 10px 0;
  box-shadow: none;
}

.fx-mkt-modal .fx-mkt-verify-box .fx-mkt-modal-input:focus {
  outline: none;
  box-shadow: none;
}

.fx-mkt-modal .fx-mkt-modal-btn--inline {
  flex: 0 0 auto;
  min-width: 110px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 10px !important;
}

.fx-mkt-modal.fx-mkt-modal--email-sent .fx-mkt-modal-success-icon {
  background: linear-gradient(135deg, #6b8afd 0%, #957afb 100%);
}

@media (max-width: 600px) {
  .fx-mkt-modal .fx-mkt-modal-footer {
    flex-direction: column;
  }

  .fx-mkt-modal .fx-mkt-modal-btn {
    width: 100%;
  }

  .fx-mkt-modal .fx-mkt-modal-form-grid {
    grid-template-columns: 1fr;
  }

  .fx-mkt-modal .fx-mkt-email-compare {
    grid-template-columns: 1fr;
  }

  .fx-mkt-modal .fx-mkt-verify-box {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    max-width: none;
  }

  .fx-mkt-modal .fx-mkt-verify-box .fx-mkt-modal-input {
    padding: 10px 12px;
    text-align: center;
  }

  .fx-mkt-modal .fx-mkt-modal-btn--inline {
    width: 100%;
    min-width: 0;
  }

  html.fx-mailing-wizard-page .fx-step4-meta-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  html.fx-mailing-wizard-page .fx-step4-send-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  html.fx-mailing-wizard-page .fx-step4-send-copy {
    flex-direction: column;
    align-items: center;
  }

  html.fx-mailing-wizard-page .fx-step4-send-btn {
    width: 100%;
    min-width: 0;
  }

  html.fx-mailing-wizard-page .fx-wizard-toast {
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    bottom: calc(var(--wizard-footer-h, 72px) + 12px);
  }
}

@media (max-width: 1100px) {
  html.fx-mailing-wizard-page .fx-target-step-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  html.fx-mailing-wizard-page .fx-target-main-col {
    grid-column: 1;
    grid-row: 1;
  }

  html.fx-mailing-wizard-page .fx-target-sidebar {
    position: static;
    grid-column: 1;
    grid-row: 2;
  }

  html.fx-mailing-wizard-page .step-grid-step1 {
    grid-template-columns: 1fr;
  }

  html.fx-mailing-wizard-page .step-grid-step1 .preview-card {
    position: static;
  }

  html.fx-mailing-wizard-page #crea_template > .row {
    grid-template-columns: 1fr;
  }

  html.fx-mailing-wizard-page .f-row,
  html.fx-mailing-wizard-page .f-row-split {
    grid-template-columns: 1fr;
  }

  html.fx-mailing-wizard-page .f-divider {
    display: none;
  }

  html.fx-mailing-wizard-page #confirmacion.fx-step4-layout.tab-pane.step-content.active {
    grid-template-columns: 1fr;
    gap: 24px;
    grid-template-areas:
      "step4-head"
      "step4-preview"
      "step4-summary"
      "step4-send";
  }

  html.fx-mailing-wizard-page #confirmacion.fx-step4-layout:not(.fx-builder-confirm-active).tab-pane.step-content.active {
    grid-template-areas:
      "step4-head"
      "step4-summary"
      "step4-send";
  }

  html.fx-mailing-wizard-page .fx-step4-header {
    flex-direction: column;
  }

  html.fx-mailing-wizard-page #fxMailingStep4Preview {
    position: static;
    max-height: none;
  }
}

@media (max-width: 991px) {
  html.fx-mailing-wizard-page #main-content.fx-mailing-wizard-main {
    margin-left: 0;
  }

  html.fx-mailing-wizard-page .fx-mailing-wizard-footer {
    left: 0;
  }

  html.fx-mailing-wizard-page .content-wizard {
    padding-left: 20px;
    padding-right: 20px;
  }
}
