
.chatenex-design-layout{
  display:grid;
  grid-template-columns:minmax(420px, 1fr) 420px;
  gap:24px;
  align-items:start;
  margin-top:20px;
}
.chatenex-design-settings,
.chatenex-preview-card{
  background:transparent;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:20px;
  box-shadow:0 10px 30px rgba(15,23,42,.05);
}
.chatenex-preview-title{
  font-size:18px;
  font-weight:700;
  margin-bottom:16px;
}
.chatenex-preview-stage{
  --chx-preview-bubble-size:64px;
  position:relative;
  min-height:640px;
  background:linear-gradient(180deg,#f8fafc,#eef2ff);
  border-radius:22px;
  overflow:hidden;
  padding:20px;
}
.chatenex-preview-bubble{
  position:absolute;
  left:20px;
  bottom:20px;
  width:var(--chx-preview-bubble-size);
  height:var(--chx-preview-bubble-size);
  min-width:var(--chx-preview-bubble-size);
  max-width:var(--chx-preview-bubble-size);
  min-height:var(--chx-preview-bubble-size);
  max-height:var(--chx-preview-bubble-size);
  aspect-ratio:1 / 1;
  box-sizing:border-box;
  padding:0;
  margin:0;
  border:none;
  border-radius:50%;
  appearance:none;
  -webkit-appearance:none;
  color:#fff;
  font-size:calc(var(--chx-preview-bubble-size) * .375);
  box-shadow:0 16px 40px rgba(91,109,248,.35);
}
.chatenex-preview-helper{
  position:absolute;
  left:20px;
  bottom:calc(var(--chx-preview-bubble-size) + 30px);
  max-width:250px;
  background:#111827;
  color:#fff;
  border-radius:16px;
  padding:10px 14px;
  font-size:14px;
  line-height:1.3;
}
.chatenex-preview-window{
  position:absolute;
  left:20px;
  right:20px;
  bottom:98px;
  height:470px;
  border-radius:24px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 24px 70px rgba(15,23,42,.18);
}
.chatenex-preview-header{
  color:#fff;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.chatenex-preview-brand{
  display:flex;
  gap:10px;
  align-items:center;
}
.chatenex-preview-logo{
  width:32px;
  height:32px;
  object-fit:contain;
  border-radius:10px;
  background:transparent;
}
.chatenex-preview-name{font-weight:700}
.chatenex-preview-status{font-size:12px;opacity:.9}
.chatenex-preview-close{
  width:34px;height:34px;border:none;border-radius:999px;background:rgba(255,255,255,.2);color:#fff;font-size:18px;
}
.chatenex-preview-messages{
  flex:1;
  padding:16px;
}
.chatenex-preview-msg{display:flex;gap:10px;margin-bottom:12px}
.chatenex-preview-msg.user{justify-content:flex-end}
.chatenex-preview-avatar{
  width:32px;height:32px;border-radius:999px;object-fit:cover;flex:none;
}
.chatenex-preview-bubble-msg{
  max-width:78%;
  padding:12px 14px;
  border-radius:18px;
  background:transparent;
  border:1px solid rgba(91,109,248,.12);
}
.chatenex-preview-msg.user .chatenex-preview-bubble-msg{
  color:#fff;
}
.chatenex-preview-composer{
  display:flex;
  gap:8px;
  padding:10px;
  border-top:1px solid #e5e7eb;
}
.chatenex-preview-composer input{
  flex:1;
  height:34px;
  border:1px solid #d1d5db;
  border-radius:14px;
  padding:0 10px;
  background:transparent;
}
.chatenex-preview-composer button{
  width:74px;
  height:34px;
  border:none;
  border-radius:14px;
  color:#fff;
}
.chatenex-range-value{
  display:inline-block;
  min-width:52px;
  font-weight:600;
}
@media (max-width: 1200px){
  .chatenex-design-layout{grid-template-columns:1fr}
}

.chatenex-preview-note{
  font-size:13px;
  color:#6b7280;
  margin-bottom:12px;
}
.chatenex-preview-stage{
  background:
    linear-gradient(135deg, rgba(91,109,248,.08), rgba(114,130,255,.04)),
    repeating-linear-gradient(45deg, #eef2ff 0 12px, #f8fafc 12px 24px);
}
.chatenex-preview-bg-grid{
  position:absolute;
  inset:0;
  background:
    linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)),
    radial-gradient(circle at 20% 20%, rgba(91,109,248,.18), transparent 20%),
    radial-gradient(circle at 80% 30%, rgba(249,115,22,.14), transparent 18%),
    radial-gradient(circle at 30% 80%, rgba(34,197,94,.16), transparent 18%);
  pointer-events:none;
}
.chatenex-preview-window{
  background:transparent;
  backdrop-filter: blur(8px);
}
.chatenex-preview-messages{
  position:relative;
  background:transparent;
}


.chatnex-quick-questions-admin {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.chatnex-quick-question-extra {
  display: none;
}
.chatnex-quick-question-extra.is-visible {
  display: block;
}


.chatenex-preview-stage{
  background:
    linear-gradient(135deg, rgba(91,109,248,.10), rgba(114,130,255,.06)),
    repeating-linear-gradient(45deg, #eef2ff 0 14px, #f8fafc 14px 28px);
}

.chatenex-preview-stage::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(255,255,255,.55), rgba(255,255,255,.35)),
    radial-gradient(circle at 18% 18%, rgba(91,109,248,.22), transparent 20%),
    radial-gradient(circle at 82% 22%, rgba(249,115,22,.20), transparent 18%),
    radial-gradient(circle at 28% 80%, rgba(34,197,94,.18), transparent 18%);
  pointer-events:none;
}

.chatenex-preview-page-mock{
  position:absolute;
  inset:20px 20px 20px 20px;
  border-radius:22px;
  pointer-events:none;
  opacity:.95;
}

.chatenex-preview-page-top{
  height:58px;
  border-radius:18px;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(15,23,42,.05);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  margin-bottom:18px;
}

.chatenex-preview-page-hero{
  height:130px;
  border-radius:20px;
  background:
    linear-gradient(135deg, rgba(91,109,248,.18), rgba(114,130,255,.10)),
    rgba(255,255,255,.70);
  border:1px solid rgba(15,23,42,.05);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
  margin-bottom:16px;
}

.chatenex-preview-page-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.chatenex-preview-page-card{
  height:82px;
  border-radius:18px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(15,23,42,.05);
  box-shadow:0 10px 24px rgba(15,23,42,.035);
}

.chatenex-preview-window{
  backdrop-filter: blur(8px);
}

.chatenex-preview-note{
  font-size:13px;
  color:#6b7280;
  margin-bottom:12px;
}


.chatenex-preview-bubble{
  display:flex;
  align-items:center;
  justify-content:center;
}
.chatenex-preview-bubble-image{
  width:calc(var(--chx-preview-bubble-size) * .46875);
  height:calc(var(--chx-preview-bubble-size) * .46875);
  object-fit:contain;
}
.chatenex-preview-bubble-icon{
  line-height:1;
}
.chatnex-bubble-icon-custom-wrap{
  max-width:560px;
}

.chatenex-preview-header img{
  background:none !important;
  box-shadow:none !important;
  padding:0 !important;
}

.chatenex-preview-logo{
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}


.chatnex-avatar-custom-wrap{
  max-width: 560px;
}


.chatnex-lead-recipients .chatnex-recipients-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}

.chatnex-lead-recipients .chatnex-recipient-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.chatnex-lead-recipients .chatnex-recipient-row input[type="email"] {
  min-width: 320px;
}

.chatenex-toggle-group{
  display: inline-flex;
  gap: 0;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.chatenex-toggle-option{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  cursor: pointer;
  border-right: 1px solid #c3c4c7;
  background: #fff;
  font-weight: 500;
}

.chatenex-toggle-option:last-child{
  border-right: 0;
}

.chatenex-toggle-option input{
  margin: 0;
}

.chatenex-toggle-option.is-active{
  background: #2271b1;
  color: #fff;
}

.chatenex-contact-stage-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  max-width: 720px;
}

.chatenex-contact-stage-card{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #c3c4c7;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 500;
}

.chatenex-contact-stage-card input{
  margin: 0;
}

.chatenex-contact-stage-card.is-active{
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1 inset;
  background: #f0f6fc;
}
