/* =========================================================
   247ChatMate Sales Demo v0.1.5
   Demo widget pacing/layout aligned to live 247ChatMate widget; stronger Elementor override and intent lock flow.
   Prefix: cmsd — deliberately avoids matewa conflicts.
========================================================= */

.cmsd-shell,
.cmsd-shell * {
  box-sizing: border-box !important;
}

.cmsd-shell {
  --cmsd-accent: #22C55E;
  --cmsd-accent-dark: #16A34A;
  --cmsd-bg-soft: #F8FAFC;
  --cmsd-bg-bubble: #F1F5F9;
  --cmsd-border: #E2E8F0;
  --cmsd-text: #0F172A;
  --cmsd-muted: #334155;
  --cmsd-radius: 24px;
  --cmsd-radius-inner: 16px;
  --cmsd-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  width: min(1120px, calc(100% - 32px));
  margin: 56px auto;
  font-family: var(--cmsd-font) !important;
  color: var(--cmsd-text) !important;
}

.cmsd-shell button,
.cmsd-shell input,
.cmsd-shell select,
.cmsd-shell textarea {
  font-family: var(--cmsd-font) !important;
}

.cmsd-demo-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.cmsd-eyebrow {
  margin: 0 0 10px !important;
  color: var(--cmsd-accent-dark) !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.cmsd-demo-header h2 {
  margin: 0 0 12px !important;
  max-width: 760px;
  font-size: clamp(32px, 4.5vw, 52px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.055em !important;
  font-weight: 900 !important;
  color: var(--cmsd-text) !important;
}

.cmsd-demo-header p:not(.cmsd-eyebrow) {
  margin: 0 !important;
  max-width: 700px;
  color: var(--cmsd-muted) !important;
  font-size: 18px !important;
  line-height: 1.65 !important;
}

.cmsd-selector-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--cmsd-border);
  border-radius: 22px;
  background: #FFFFFF;
  box-shadow: 0 14px 42px rgba(15,23,42,.07);
}

.cmsd-selector-card label {
  display: grid;
  gap: 7px;
  color: var(--cmsd-text) !important;
  font-size: 13px;
  font-weight: 900;
}

.cmsd-selector-card select {
  width: 100%;
  height: 50px;
  border: 1px solid var(--cmsd-border);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--cmsd-text) !important;
  font-size: 15px;
  font-weight: 800;
  padding: 0 14px;
}

.cmsd-demo-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  border: 1px solid var(--cmsd-border);
  border-radius: 30px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 28px;
  box-shadow: 0 24px 70px rgba(15,23,42,.08);
}

.cmsd-widget-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.cmsd-widget {
  width: 320px;
  height: 520px;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--cmsd-border);
  box-shadow: 0 32px 70px rgba(15,23,42,.22);
}

.cmsd-widget-header {
  height: 64px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, var(--cmsd-accent), var(--cmsd-accent-dark));
  color: #FFFFFF !important;
  flex: 0 0 auto;
}

.cmsd-widget-title {
  color: #FFFFFF !important;
  font-size: 18px;
  line-height: 1;
  font-weight: 850;
}

.cmsd-widget-close {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 999px;
  border: 0 !important;
  background: transparent !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  text-decoration: none !important;
  font-size: 22px;
  line-height: 1 !important;
  font-weight: 900;
  cursor: pointer;
}

.cmsd-widget-close::before,
.cmsd-widget-close::after {
  content: none !important;
  display: none !important;
}

.cmsd-bubbles {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 16px;
  overflow: hidden !important;
  background: #FFFFFF;
}

.cmsd-stream {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmsd-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cmsd-intro-bubble {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}

.cmsd-intro-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cmsd-bubble {
  padding: 14px 16px;
  border-radius: var(--cmsd-radius-inner);
  background: var(--cmsd-bg-bubble);
  color: var(--cmsd-text) !important;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 4px 10px rgba(15,23,42,.10);
}

.cmsd-bubble-muted {
  color: var(--cmsd-muted) !important;
  font-weight: 650;
}

.cmsd-task {
  opacity: 0;
  transition: opacity .32s ease;
}

.cmsd-task.is-active {
  opacity: 1;
}

.cmsd-task-intent.is-active {
  padding-bottom: 58px;
}

.cmsd-chip-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.cmsd-chip {
  height: 52px;
  min-height: 52px;
  padding: 6px 7px;
  border-radius: 14px;
  border: 1.5px solid var(--cmsd-accent);
  background: #FFFFFF;
  color: var(--cmsd-accent-dark) !important;
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
}

.cmsd-chip.is-selected {
  background: var(--cmsd-accent);
  color: #FFFFFF !important;
}

.cmsd-chip.is-locked {
  pointer-events: none;
}

.cmsd-intent-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
  padding: 8px 0 0;
  background: linear-gradient(to top, rgba(255,255,255,.98), rgba(255,255,255,.86));
  box-shadow: 0 -12px 24px rgba(255,255,255,.92);
}

.cmsd-intent-actions .cmsd-add-notes {
  display: none !important;
}

.cmsd-step-button,
.cmsd-submit,
.cmsd-mini-button {
  min-height: 42px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
}

.cmsd-step-button,
.cmsd-submit {
  background: var(--cmsd-accent-dark);
  color: #FFFFFF !important;
}

.cmsd-mini-button {
  background: #FFFFFF;
  color: var(--cmsd-accent-dark) !important;
  border: 1px solid var(--cmsd-accent) !important;
}

.cmsd-notes-textarea,
.cmsd-phone-input,
.cmsd-contact-name,
.cmsd-contact-email,
.cmsd-contact-website {
  width: 100%;
  border: 1px solid var(--cmsd-border);
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--cmsd-text) !important;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 12px;
  margin-top: 8px;
}

.cmsd-notes-textarea {
  min-height: 70px;
  resize: none;
}

.cmsd-char-counter,
.cmsd-soft-hint,
.cmsd-status {
  color: #64748B !important;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 700;
  margin: 6px 0 8px;
}

.cmsd-status.is-error {
  color: #B91C1C !important;
}

.cmsd-checkline {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--cmsd-text) !important;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 750;
  margin: 8px 0;
}

.cmsd-success-actions {
  display: grid;
  gap: 8px;
}

.cmsd-success-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 12px;
  background: var(--cmsd-accent-dark);
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
}

.cmsd-branding {
  height: 46px;
  flex: 0 0 auto;
  border-top: 1px solid var(--cmsd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cmsd-accent-dark) !important;
  font-size: 13px;
  font-weight: 900;
}

.cmsd-lead-preview {
  align-self: stretch;
  background: #FFFFFF;
  border: 1px solid var(--cmsd-border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(15,23,42,.06);
}

.cmsd-preview-kicker {
  margin: 0 0 12px !important;
  color: var(--cmsd-accent-dark) !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}

.cmsd-lead-preview h3 {
  margin: 0 0 20px !important;
  color: var(--cmsd-text) !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  font-weight: 900 !important;
}

.cmsd-lead-preview dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px 18px;
  margin: 0 0 22px !important;
}

.cmsd-lead-preview dt {
  color: #475569 !important;
  font-size: 14px;
  font-weight: 900;
}

.cmsd-lead-preview dd {
  margin: 0 !important;
  color: var(--cmsd-text) !important;
  font-size: 14px;
  font-weight: 850;
}

.cmsd-preview-note {
  border-left: 4px solid var(--cmsd-accent);
  background: #DCFCE7;
  border-radius: 16px;
  padding: 18px;
}

.cmsd-preview-note strong,
.cmsd-preview-note span {
  display: block;
  color: #0F172A !important;
}

.cmsd-preview-note strong {
  font-size: 15px;
  font-weight: 900;
  margin-bottom: 8px;
}

.cmsd-preview-note span {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}

@media (max-width: 980px) {
  .cmsd-demo-header,
  .cmsd-demo-layout {
    grid-template-columns: 1fr;
  }

  .cmsd-selector-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cmsd-shell {
    width: min(100%, calc(100% - 20px));
    margin: 36px auto;
  }

  .cmsd-demo-layout {
    padding: 16px;
  }

  .cmsd-widget {
    width: 320px;
    max-width: 100%;
  }

  .cmsd-lead-preview dl {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   HARD THEME OVERRIDE LAYER — v0.1.4
   Purpose: keep the demo widget layout intact inside Elementor,
   block themes, and aggressive global button/link styles.
========================================================= */

.cmsd-shell .cmsd-widget,
.cmsd-shell .cmsd-widget * {
  box-sizing: border-box !important;
}

.cmsd-shell .cmsd-widget {
  width: 320px !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
}

.cmsd-shell .cmsd-widget-header {
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  flex: 0 0 64px !important;
}

.cmsd-shell .cmsd-bubbles {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  overflow-y: hidden !important;
  overflow-x: hidden !important;
  padding: 16px !important;
}

.cmsd-shell .cmsd-stream {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.cmsd-shell .cmsd-task[hidden],
.cmsd-shell .cmsd-intent-actions[hidden],
.cmsd-shell .cmsd-intro[hidden] {
  display: none !important;
}

.cmsd-shell .cmsd-task:not([hidden]) {
  display: block !important;
}

.cmsd-shell .cmsd-intent-actions:not([hidden]) {
  display: grid !important;
  grid-template-columns: 1fr 1.4fr !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.cmsd-shell .cmsd-chip-group {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

.cmsd-shell .cmsd-chip,
.cmsd-shell .cmsd-step-button,
.cmsd-shell .cmsd-submit,
.cmsd-shell .cmsd-mini-button,
.cmsd-shell .cmsd-success-button {
  appearance: none !important;
  -webkit-appearance: none !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  outline: none !important;
  font-family: var(--cmsd-font) !important;
  cursor: pointer !important;
}

.cmsd-shell .cmsd-chip {
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 6px 7px !important;
  border: 1.5px solid var(--cmsd-accent) !important;
  border-bottom: 1.5px solid var(--cmsd-accent) !important;
  border-radius: 14px !important;
  background: #FFFFFF !important;
  background-image: none !important;
  color: var(--cmsd-accent-dark) !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  white-space: normal !important;
  overflow: hidden !important;
}

.cmsd-shell .cmsd-chip-label {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  width: 100% !important;
  max-height: 30px !important;
  overflow: hidden !important;
  color: inherit !important;
  font: inherit !important;
  text-align: center !important;
}

.cmsd-shell .cmsd-chip:hover,
.cmsd-shell .cmsd-chip:focus-visible,
.cmsd-shell .cmsd-chip.is-selected {
  border-color: transparent !important;
  background: linear-gradient(180deg, var(--cmsd-accent), var(--cmsd-accent-dark)) !important;
  color: #FFFFFF !important;
}

.cmsd-shell .cmsd-step-button,
.cmsd-shell .cmsd-submit {
  min-height: 42px !important;
  border: 1px solid var(--cmsd-accent-dark) !important;
  border-bottom: 1px solid var(--cmsd-accent-dark) !important;
  border-radius: 12px !important;
  background: var(--cmsd-accent-dark) !important;
  background-image: none !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
}

.cmsd-shell .cmsd-mini-button {
  min-height: 42px !important;
  border: 1.5px solid var(--cmsd-accent) !important;
  border-bottom: 1.5px solid var(--cmsd-accent) !important;
  border-radius: 12px !important;
  background: #FFFFFF !important;
  background-image: none !important;
  color: var(--cmsd-accent-dark) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
}

.cmsd-shell .cmsd-bubble {
  color: var(--cmsd-text) !important;
  background: var(--cmsd-bg-bubble) !important;
  border: 0 !important;
}

.cmsd-shell .cmsd-notes-textarea,
.cmsd-shell .cmsd-phone-input,
.cmsd-shell .cmsd-contact-name,
.cmsd-shell .cmsd-contact-email,
.cmsd-shell .cmsd-contact-website {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: #FFFFFF !important;
  color: var(--cmsd-text) !important;
  border: 1px solid var(--cmsd-border) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  outline: none !important;
}

.cmsd-shell .cmsd-branding {
  height: 46px !important;
  flex: 0 0 46px !important;
  color: var(--cmsd-accent-dark) !important;
  text-decoration: none !important;
}



/* =========================================================
   v0.1.5 Elementor-safe widget finish pass
   - close button reset
   - bottom confirm rail
   - notes only for Something else / Other
   - tighter live-widget pacing
========================================================= */

.cmsd-shell .cmsd-widget-header {
  padding: 0 18px !important;
  align-items: center !important;
}

.cmsd-shell .cmsd-widget-close,
.cmsd-shell button.cmsd-widget-close {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-image: none !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-decoration: none !important;
  outline: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.cmsd-shell .cmsd-widget-close::before,
.cmsd-shell .cmsd-widget-close::after,
.cmsd-shell button.cmsd-widget-close::before,
.cmsd-shell button.cmsd-widget-close::after {
  content: none !important;
  display: none !important;
}

.cmsd-shell .cmsd-widget-close:hover,
.cmsd-shell .cmsd-widget-close:focus,
.cmsd-shell .cmsd-widget-close:focus-visible {
  background: rgba(255,255,255,.12) !important;
  color: #FFFFFF !important;
  box-shadow: none !important;
  outline: none !important;
}

.cmsd-shell .cmsd-task-intent.is-active {
  padding-bottom: 58px !important;
}

.cmsd-shell .cmsd-intent-actions:not([hidden]) {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 12px !important;
  z-index: 8 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  background: linear-gradient(to top, rgba(255,255,255,.98), rgba(255,255,255,.86)) !important;
  box-shadow: 0 -12px 24px rgba(255,255,255,.92) !important;
}

.cmsd-shell .cmsd-intent-actions .cmsd-add-notes {
  display: none !important;
}

.cmsd-shell .cmsd-confirm-intent {
  width: 100% !important;
  min-height: 44px !important;
}

.cmsd-shell .cmsd-task-notes.is-active {
  padding-bottom: 0 !important;
}

.cmsd-shell .cmsd-task-notes .cmsd-step-button {
  width: 100% !important;
  min-height: 44px !important;
  margin-top: 8px !important;
}

/* =========================================================
   v0.1.6 — Live widget parity pass
   - Strong Elementor/theme override
   - Main widget pacing/layout match
   - Two selected chips max
   - Optional notes only when clicked
   - Non-scroll demo shell
========================================================= */

.cmsd-shell,
.cmsd-shell * {
  box-sizing: border-box !important;
}

.cmsd-widget,
.cmsd-widget * {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  box-sizing: border-box !important;
}

.cmsd-widget button,
.cmsd-widget textarea,
.cmsd-widget input,
.cmsd-widget select {
  font: inherit !important;
}

.cmsd-widget button,
.cmsd-widget a,
.cmsd-widget textarea,
.cmsd-widget input {
  text-decoration: none !important;
  box-shadow: none;
}

.cmsd-widget {
  width: 320px !important;
  height: 520px !important;
  max-width: 320px !important;
  min-height: 520px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow:
    0 30px 72px rgba(15, 23, 42, 0.28),
    0 10px 24px rgba(15, 23, 42, 0.14) !important;
}

.cmsd-widget-header {
  flex: 0 0 60px !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #15803d 0%, #057a29 100%) !important;
  color: #ffffff !important;
}

.cmsd-widget-title {
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.cmsd-widget-close {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #ffffff !important;
  font-size: 22px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  outline: none !important;
  appearance: none !important;
}

.cmsd-widget-close:hover,
.cmsd-widget-close:focus-visible {
  background: rgba(255,255,255,0.14) !important;
  color: #ffffff !important;
}

.cmsd-bubbles {
  position: relative !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 14px !important;
  padding-bottom: 68px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.07), transparent 30%),
    #ffffff !important;
}

.cmsd-stream {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.cmsd-intro {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.cmsd-bubble {
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
  font-weight: 760 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.085) !important;
}

.cmsd-bubble-muted {
  background: #ecfdf3 !important;
  border-color: rgba(37, 211, 102, 0.18) !important;
  color: #14532d !important;
}

.cmsd-task {
  opacity: 0;
  transition: opacity .35s ease;
}

.cmsd-task.is-active {
  opacity: 1;
}

.cmsd-task-intent.is-active {
  padding-bottom: 64px !important;
}

.cmsd-intent-question {
  margin-bottom: 0 !important;
}

.cmsd-chip-group {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-top: 11px !important;
}

.cmsd-chip {
  width: 100% !important;
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
  margin: 0 !important;
  padding: 6px 7px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.28) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #057a29 !important;
  font-size: 11.2px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  cursor: pointer !important;
  appearance: none !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055) !important;
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease !important;
}

.cmsd-chip:hover,
.cmsd-chip:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.095) !important;
  outline: none !important;
}

.cmsd-chip.is-selected {
  background: linear-gradient(180deg, #15803d 0%, #057a29 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.cmsd-chip.is-locked {
  cursor: default !important;
}

.cmsd-chip-label {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  width: 100% !important;
  max-height: 30px !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  font-size: 11.2px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.cmsd-task-notes {
  margin-top: 7px !important;
  gap: 8px !important;
}

.cmsd-task-notes .cmsd-bubble {
  padding: 10px 12px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
  color: #14532d !important;
  background: #ecfdf3 !important;
  border-color: rgba(37, 211, 102, 0.18) !important;
}

.cmsd-notes-textarea {
  width: 100% !important;
  min-height: 82px !important;
  height: 82px !important;
  max-height: 82px !important;
  resize: none !important;
  padding: 11px 14px 26px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.30) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.88), 0 8px 18px rgba(15,23,42,.06) !important;
}

.cmsd-notes-textarea:focus {
  border-color: #057a29 !important;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.18) !important;
}

.cmsd-char-counter {
  position: absolute !important;
  right: 20px !important;
  bottom: 72px !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  pointer-events: none !important;
}

.cmsd-intent-actions {
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  bottom: 9px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  padding: 8px 0 0 !important;
  background: linear-gradient(to top, rgba(255,255,255,.99), rgba(255,255,255,.92)) !important;
  box-shadow: 0 -12px 24px rgba(255,255,255,.94) !important;
  z-index: 12 !important;
}

.cmsd-intent-actions[hidden] {
  display: none !important;
}

.cmsd-mini-button,
.cmsd-step-button,
.cmsd-submit,
.cmsd-success-button {
  min-height: 46px !important;
  height: 46px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.30) !important;
  padding: 8px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  color: #057a29 !important;
  background: #ffffff !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 850 !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07) !important;
  appearance: none !important;
}

.cmsd-step-button,
.cmsd-submit,
.cmsd-success-button:first-child {
  background: linear-gradient(180deg, #15803d 0%, #057a29 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.cmsd-task-phone,
.cmsd-task-contact,
.cmsd-task-final,
.cmsd-task-success {
  padding-bottom: 0 !important;
}

.cmsd-task-phone input,
.cmsd-task-contact input {
  width: 100% !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5,122,41,.26) !important;
  padding: 0 14px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05) !important;
}

.cmsd-soft-hint,
.cmsd-status {
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 750 !important;
}

.cmsd-branding {
  flex: 0 0 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #057a29 !important;
  background: #ffffff !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

@media (max-width: 720px) {
  .cmsd-widget {
    width: 320px !important;
    max-width: calc(100vw - 32px) !important;
  }
}

/* =========================================================
   v0.1.7 — Widget parity smoothing pass
   - no confirm button
   - delayed auto-lock after up to 2 chip selections
   - optional notes only opens when clicked
   - calmer current-widget green
   - no widget scrolling
   - smoother task transitions
========================================================= */

.cmsd-shell {
  --cmsd-accent: #16A34A !important;
  --cmsd-accent-dark: #15803D !important;
  --cmsd-bg-bubble: #F1F5F9 !important;
}

.cmsd-shell .cmsd-widget {
  width: 320px !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  border-radius: 22px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 28px 64px rgba(15,23,42,.18) !important;
}

.cmsd-shell .cmsd-widget-header {
  height: 64px !important;
  min-height: 64px !important;
  flex: 0 0 64px !important;
  padding: 0 18px !important;
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%) !important;
}

.cmsd-shell .cmsd-widget-close,
.cmsd-shell button.cmsd-widget-close {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 26px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.cmsd-shell .cmsd-bubbles {
  height: auto !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
  padding: 16px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.cmsd-shell .cmsd-stream {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden !important;
}

.cmsd-shell .cmsd-task {
  opacity: 0 !important;
  transform: translateY(8px) !important;
  transition: opacity .34s ease, transform .34s ease !important;
}

.cmsd-shell .cmsd-task.is-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.cmsd-shell .cmsd-task[hidden] {
  display: none !important;
}

.cmsd-shell .cmsd-bubble {
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 14px 16px !important;
  border-radius: 16px !important;
  background: #F1F5F9 !important;
  color: #0F172A !important;
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 22px rgba(15,23,42,.08) !important;
}

.cmsd-shell .cmsd-task-intent.is-active {
  padding-bottom: 54px !important;
}

.cmsd-shell .cmsd-chip-group {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

.cmsd-shell .cmsd-chip,
.cmsd-shell button.cmsd-chip {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 6px 7px !important;
  border-radius: 14px !important;
  border: 1.6px solid #16A34A !important;
  background: #fff !important;
  color: #15803D !important;
  font-size: 11.2px !important;
  line-height: 1.12 !important;
  font-weight: 850 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

.cmsd-shell .cmsd-chip:hover,
.cmsd-shell .cmsd-chip:focus-visible {
  background: #F0FDF4 !important;
  color: #15803D !important;
}

.cmsd-shell .cmsd-chip.is-selected {
  background: #15803D !important;
  color: #fff !important;
  border-color: #15803D !important;
}

.cmsd-shell .cmsd-chip.is-locked {
  opacity: .92 !important;
  pointer-events: none !important;
}

.cmsd-shell .cmsd-intent-actions {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 8px !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  padding: 10px 0 0 !important;
  background: linear-gradient(to top, rgba(255,255,255,.98) 0%, rgba(255,255,255,.92) 70%, rgba(255,255,255,0) 100%) !important;
  box-shadow: 0 -12px 22px rgba(255,255,255,.94) !important;
  z-index: 20 !important;
}

.cmsd-shell .cmsd-intent-actions[hidden] {
  display: none !important;
}

.cmsd-shell .cmsd-intent-actions .cmsd-add-notes,
.cmsd-shell button.cmsd-add-notes {
  display: inline-flex !important;
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(21,128,61,.32) !important;
  background: #fff !important;
  color: #15803D !important;
  font-size: 12.5px !important;
  line-height: 1.1 !important;
  font-weight: 900 !important;
  box-shadow: 0 7px 16px rgba(15,23,42,.06) !important;
}

.cmsd-shell .cmsd-auto-lock-note {
  display: block !important;
  color: #64748B !important;
  font-size: 10.5px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: center !important;
}

.cmsd-shell .cmsd-task-notes {
  margin-top: 0 !important;
}

.cmsd-shell .cmsd-task-notes .cmsd-bubble {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.cmsd-shell .cmsd-notes-textarea {
  min-height: 62px !important;
  max-height: 62px !important;
  resize: none !important;
  margin-top: 0 !important;
  padding: 11px 12px !important;
}

.cmsd-shell .cmsd-char-counter {
  position: static !important;
  margin: 5px 0 7px !important;
  text-align: right !important;
  color: #64748B !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.cmsd-shell .cmsd-step-button,
.cmsd-shell .cmsd-submit,
.cmsd-shell .cmsd-success-button {
  min-height: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: #15803D !important;
  color: #fff !important;
  border: 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(21,128,61,.20) !important;
}

.cmsd-shell .cmsd-checkline {
  margin: 10px 0 12px !important;
}

.cmsd-shell .cmsd-success-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

@media (prefers-reduced-motion: reduce) {
  .cmsd-shell .cmsd-task,
  .cmsd-shell .cmsd-intro-bubble {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================================
   v0.1.8 polish pass
   - restart control instead of close cross
   - slower chip click lock timing support
   - notes open only from Add optional notes
   - textarea-only cursor inside notes
   - smoother task transitions
   - no confirm language / no hard-sell final step
========================================================= */
.cmsd-shell .cmsd-widget-restart,
.cmsd-shell button.cmsd-widget-restart {
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1px solid rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.14) !important;
  color: #fff !important;
  border-radius: 999px !important;
  min-width: 74px !important;
  height: 32px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
}

.cmsd-shell .cmsd-widget-restart:hover,
.cmsd-shell .cmsd-widget-restart:focus-visible {
  background: rgba(255,255,255,.24) !important;
  outline: none !important;
}

.cmsd-shell .cmsd-task {
  opacity: 0 !important;
  transform: translateY(8px) !important;
  transition: opacity .42s ease, transform .42s ease !important;
}

.cmsd-shell .cmsd-task.is-active {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.cmsd-shell .cmsd-intro-bubble {
  transition: opacity .42s ease, transform .42s ease !important;
}

.cmsd-shell .cmsd-auto-lock-note::after {
  content: " You can choose up to 2.";
}

.cmsd-shell .cmsd-task-notes {
  cursor: default !important;
  pointer-events: none !important;
}

.cmsd-shell .cmsd-task-notes.is-active {
  pointer-events: auto !important;
}

.cmsd-shell .cmsd-task-notes .cmsd-bubble,
.cmsd-shell .cmsd-task-notes .cmsd-char-counter {
  pointer-events: none !important;
  cursor: default !important;
}

.cmsd-shell .cmsd-notes-textarea {
  pointer-events: auto !important;
  cursor: text !important;
}

.cmsd-shell .cmsd-notes-continue {
  display: none !important;
}

.cmsd-shell .cmsd-task-final,
.cmsd-shell .cmsd-submit,
.cmsd-shell .cmsd-checkline {
  display: none !important;
}

.cmsd-shell .cmsd-contact-continue,
.cmsd-shell button.cmsd-contact-continue {
  width: 100% !important;
  background: #15803D !important;
  color: #fff !important;
  border: 0 !important;
  min-height: 46px !important;
  height: 46px !important;
  box-shadow: 0 14px 26px rgba(21,128,61,.18) !important;
}

.cmsd-shell .cmsd-phone-continue,
.cmsd-shell button.cmsd-phone-continue {
  background: #15803D !important;
  color: #fff !important;
  border: 0 !important;
}

.cmsd-shell .cmsd-status {
  margin-top: 8px !important;
  color: #334155 !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}

.cmsd-shell .cmsd-status.is-error {
  color: #B91C1C !important;
}

/* =========================================================
   v0.2.0 — Widget parity correction
   - remove visible notes/selection helper text
   - phone locks by idle timing, no continue button
   - smoother transitions
   - lighter type weight
   - success step keeps full WhatsApp handoff flow without hard-sell copy
========================================================= */
.cmsd-shell {
  --cmsd-accent: #16A34A !important;
  --cmsd-accent-dark: #15803D !important;
  --cmsd-text: #0F172A !important;
  --cmsd-muted: #334155 !important;
}

.cmsd-shell .cmsd-auto-lock-note,
.cmsd-shell .cmsd-phone-continue,
.cmsd-shell button.cmsd-phone-continue {
  display: none !important;
}

.cmsd-shell .cmsd-widget-title {
  font-weight: 760 !important;
}

.cmsd-shell .cmsd-bubble {
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
}

.cmsd-shell .cmsd-bubble-muted {
  font-weight: 620 !important;
}

.cmsd-shell .cmsd-chip {
  font-weight: 760 !important;
}

.cmsd-shell .cmsd-step-button,
.cmsd-shell .cmsd-success-button,
.cmsd-shell .cmsd-mini-button {
  font-weight: 800 !important;
}

.cmsd-shell .cmsd-task {
  opacity: 0 !important;
  transform: translateY(10px) scale(.992) !important;
  transition: opacity .52s cubic-bezier(.22,.61,.36,1), transform .52s cubic-bezier(.22,.61,.36,1) !important;
  will-change: opacity, transform !important;
}

.cmsd-shell .cmsd-task.is-active {
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
}

.cmsd-shell .cmsd-intro-bubble {
  transition: opacity .52s cubic-bezier(.22,.61,.36,1), transform .52s cubic-bezier(.22,.61,.36,1) !important;
}

.cmsd-shell .cmsd-intent-actions:not([hidden]) {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 0 !important;
  margin-top: 12px !important;
}

.cmsd-shell .cmsd-add-notes {
  justify-self: stretch !important;
}

.cmsd-shell .cmsd-task-notes .cmsd-bubble {
  margin-bottom: 8px !important;
}

.cmsd-shell .cmsd-phone-input.is-locked,
.cmsd-shell .cmsd-contact-name.is-locked,
.cmsd-shell .cmsd-contact-email.is-locked,
.cmsd-shell .cmsd-contact-website.is-locked,
.cmsd-shell .cmsd-notes-textarea.is-locked {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: rgba(21,128,61,.30) !important;
}

.cmsd-shell .cmsd-task-success .cmsd-bubble {
  margin-bottom: 12px !important;
}

.cmsd-shell .cmsd-success-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.cmsd-shell button.cmsd-success-restart {
  background: #FFFFFF !important;
  color: #15803D !important;
  border: 1.5px solid rgba(21,128,61,.32) !important;
}

/* v0.2.2 recovery polish: keep phone/contact fields aligned and final helper tidy. */
.cmsd-shell .cmsd-task-phone,
.cmsd-shell .cmsd-task-contact,
.cmsd-shell .cmsd-task-success {
  width: 100%;
}

.cmsd-shell .cmsd-task-phone .cmsd-bubble,
.cmsd-shell .cmsd-task-contact .cmsd-bubble,
.cmsd-shell .cmsd-task-success .cmsd-bubble {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.cmsd-shell .cmsd-phone-input,
.cmsd-shell .cmsd-contact-name,
.cmsd-shell .cmsd-contact-email,
.cmsd-shell .cmsd-contact-website {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.cmsd-shell .cmsd-final-helper {
  margin: 10px 0 0;
  color: #64748B !important;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
  text-align: center;
}

/* v0.2.3 — WhatsApp handoff step before final CTA. */
.cmsd-shell .cmsd-task-whatsapp {
  width: 100%;
}

.cmsd-shell .cmsd-task-whatsapp .cmsd-bubble {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.cmsd-shell .cmsd-whatsapp-card {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px 13px;
  border-radius: 16px;
  background: #ECFDF5;
  border: 1px solid rgba(22, 163, 74, .22);
  box-shadow: 0 14px 30px rgba(22, 163, 74, .10);
}

.cmsd-shell .cmsd-whatsapp-label {
  display: block;
  margin-bottom: 4px;
  color: #15803D;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .01em;
}

.cmsd-shell .cmsd-whatsapp-preview {
  margin: 0;
  color: #0F172A;
  font-size: 12px;
  line-height: 1.42;
  font-weight: 650;
}

.cmsd-shell .cmsd-task-contact .cmsd-bubble {
  margin-bottom: 12px;
}

/* v0.2.4 — Campaign category + business type selector. */
.cmsd-shell .cmsd-selector-card {
  min-width: min(100%, 360px);
}

.cmsd-shell .cmsd-selector-card label span {
  line-height: 1.2;
}

.cmsd-shell .cmsd-selector-card select.cmsd-category-select,
.cmsd-shell .cmsd-selector-card select.cmsd-business-select {
  appearance: auto;
  box-sizing: border-box;
}

.cmsd-shell .cmsd-selector-helper {
  margin: 0;
  color: #64748B !important;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 650;
}

.cmsd-shell .cmsd-preview-business {
  color: #0F172A !important;
  font-weight: 850;
}

@media (max-width: 720px) {
  .cmsd-shell .cmsd-selector-card {
    width: 100%;
  }
}


/* v0.2.6 — contact CTA pinned lower and helper alignment polish. */
.cmsd-shell .cmsd-demo-header {
  align-items: start;
}

.cmsd-shell .cmsd-selector-card {
  align-content: start;
}

.cmsd-shell .cmsd-selector-card label {
  gap: 8px;
}

.cmsd-shell .cmsd-selector-helper {
  margin-top: 2px;
  text-align: left;
}

.cmsd-shell .cmsd-task-contact {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.cmsd-shell .cmsd-contact-fields {
  display: grid;
  gap: 0;
}

.cmsd-shell .cmsd-contact-footer {
  margin-top: auto;
  display: grid;
  gap: 8px;
  align-content: end;
  padding-top: 10px;
}

.cmsd-shell .cmsd-task-contact .cmsd-soft-hint {
  margin: 0;
  text-align: left;
}

.cmsd-shell .cmsd-task-contact .cmsd-status {
  margin: 0;
  text-align: left;
}

.cmsd-shell .cmsd-task-contact .cmsd-contact-continue,
.cmsd-shell .cmsd-task-contact button.cmsd-contact-continue {
  margin-top: 0;
}

.cmsd-shell .cmsd-demo-layout {
  align-items: stretch;
}

@media (max-width: 980px) {
  .cmsd-shell .cmsd-demo-header {
    grid-template-columns: 1fr;
  }
}


/* v0.2.7 — restore live widget visual contract inside the sales demo. */
.cmsd-shell .cmsd-widget-header {
  height: 64px !important;
  padding: 0 18px !important;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #15803d 0%, #057a29 100%) !important;
}

.cmsd-shell .cmsd-widget-title {
  font-size: 16px !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  font-weight: 700 !important;
}

.cmsd-shell .cmsd-widget-restart {
  width: auto !important;
  min-width: 76px !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(255,255,255,.78) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

.cmsd-shell .cmsd-bubbles {
  padding: 14px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(37, 211, 102, 0.07), transparent 30%),
    #ffffff !important;
}

.cmsd-shell .cmsd-stream {
  gap: 12px !important;
}

.cmsd-shell .cmsd-bubble {
  padding: 12px 14px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.085) !important;
}

.cmsd-shell .cmsd-bubble-muted {
  background: #ecfdf3 !important;
  border-color: rgba(37, 211, 102, 0.18) !important;
  color: #14532d !important;
  font-weight: 620 !important;
}

.cmsd-shell .cmsd-task-intent .cmsd-chip-group {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin-top: 11px !important;
}

.cmsd-shell .cmsd-task-intent .cmsd-chip {
  height: 50px !important;
  min-height: 50px !important;
  padding: 6px 7px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.28) !important;
  color: #057a29 !important;
  background: #ffffff !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.055) !important;
  font-size: 11.2px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

.cmsd-shell .cmsd-task-intent .cmsd-chip:hover,
.cmsd-shell .cmsd-task-intent .cmsd-chip:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.095) !important;
}

.cmsd-shell .cmsd-task-intent .cmsd-chip.is-selected {
  background: linear-gradient(180deg, #15803d 0%, #057a29 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.cmsd-shell .cmsd-task-intent .cmsd-chip .cmsd-chip-label {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  width: 100% !important;
  max-height: 30px !important;
  overflow: hidden !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  font-size: 11.2px !important;
  line-height: 1.25 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.cmsd-shell .cmsd-task-phone {
  gap: 8px !important;
}

.cmsd-shell .cmsd-phone-field {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 84px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  margin-top: 0 !important;
}

.cmsd-shell .cmsd-phone-country-picker {
  position: relative !important;
  min-width: 0 !important;
  z-index: 20 !important;
}

.cmsd-shell .cmsd-phone-code {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  width: 100% !important;
  min-height: 48px !important;
  padding: 0 8px !important;
  border: 1.5px solid rgba(15, 23, 42, 0.14) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: default !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.04) !important;
}

.cmsd-shell .cmsd-phone-input,
.cmsd-shell .cmsd-contact-name,
.cmsd-shell .cmsd-contact-email,
.cmsd-shell .cmsd-contact-website {
  margin-top: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.26) !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05) !important;
}

.cmsd-shell .cmsd-contact-fields {
  display: grid !important;
  gap: 8px !important;
}

.cmsd-shell .cmsd-phone-helper,
.cmsd-shell .cmsd-soft-hint,
.cmsd-shell .cmsd-status {
  color: #64748b !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  margin: 2px 0 0 !important;
  text-align: left !important;
}

.cmsd-shell .cmsd-task-whatsapp {
  gap: 8px !important;
}

.cmsd-shell .cmsd-cta-prompt,
.cmsd-shell .cmsd-cta-confirm {
  padding: 9px 11px !important;
  font-size: 13px !important;
  line-height: 1.32 !important;
  font-weight: 750 !important;
  text-align: center !important;
}

.cmsd-shell .cmsd-cta-chip-group {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
  margin-top: 0 !important;
}

.cmsd-shell .cmsd-cta-chip {
  height: 46px !important;
  min-height: 46px !important;
  padding: 8px 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.30) !important;
  color: #057a29 !important;
  background: #ffffff !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07) !important;
  text-align: center !important;
  font-family: var(--cmsd-font) !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}

.cmsd-shell .cmsd-cta-chip.is-selected {
  background: linear-gradient(180deg, #15803d 0%, #057a29 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

.cmsd-shell .cmsd-cta-whatsapp {
  flex: 0 0 22px !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  background: #f0fdf4 url('../img/whatsapp.svg') center / 13px 13px no-repeat !important;
  border: 1px solid rgba(37, 211, 102, 0.25) !important;
}

.cmsd-shell .cmsd-cta-chip.is-selected .cmsd-cta-whatsapp {
  background-color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.78) !important;
}

.cmsd-shell .cmsd-cta-copy strong {
  display: block !important;
  color: inherit !important;
  font-size: 13.5px !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

@media (max-width: 420px) {
  .cmsd-shell .cmsd-phone-field {
    grid-template-columns: 78px minmax(0, 1fr) !important;
  }

  .cmsd-shell .cmsd-task-intent .cmsd-chip .cmsd-chip-label {
    font-size: 10.8px !important;
  }
}


/* v0.3.0 — Something else opens 140-character request box. */
.cmsd-shell .cmsd-task-notes {
  width: 100%;
  margin-top: 10px;
}

.cmsd-shell .cmsd-task-notes.is-active {
  display: block !important;
}

.cmsd-shell .cmsd-task-notes .cmsd-bubble {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 8px;
  text-align: left;
}

.cmsd-shell .cmsd-notes-textarea {
  display: block !important;
  width: 100% !important;
  min-height: 78px !important;
  max-height: 96px !important;
  box-sizing: border-box !important;
  resize: none !important;
  margin: 0 !important;
  padding: 11px 12px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.26) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05) !important;
}

.cmsd-shell .cmsd-notes-textarea:focus {
  outline: none !important;
  border-color: rgba(21, 128, 61, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14) !important;
}

.cmsd-shell .cmsd-char-counter {
  margin: 6px 0 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  font-weight: 750 !important;
  text-align: right !important;
}

/* v0.3.1 — Restore live-widget contact stage and keep WhatsApp CTA above footer. */
.cmsd-shell .cmsd-visitor-name,
.cmsd-shell .cmsd-visitor-email,
.cmsd-shell .cmsd-contact-name,
.cmsd-shell .cmsd-contact-email,
.cmsd-shell .cmsd-contact-website {
  width: 100% !important;
  box-sizing: border-box !important;
}

.cmsd-shell .cmsd-task-contact,
.cmsd-shell .cmsd-task-demo-contact {
  width: 100% !important;
  min-height: 100% !important;
  flex-direction: column !important;
}

.cmsd-shell .cmsd-task-contact.is-active,
.cmsd-shell .cmsd-task-demo-contact.is-active {
  display: flex !important;
}

.cmsd-shell .cmsd-task-contact.is-active {
  padding-bottom: 126px !important;
}

.cmsd-shell .cmsd-task-whatsapp {
  position: absolute !important;
  left: 16px !important;
  right: 16px !important;
  bottom: 8px !important;
  z-index: 12 !important;
  width: auto !important;
  padding: 8px 0 0 !important;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.99), rgba(255, 255, 255, 0.92)) !important;
  box-shadow: 0 -12px 24px rgba(255, 255, 255, 0.94) !important;
}

.cmsd-shell .cmsd-task-whatsapp[hidden] {
  display: none !important;
}

.cmsd-shell .cmsd-task-whatsapp.is-active {
  display: block !important;
}

.cmsd-shell .cmsd-task-demo-contact .cmsd-contact-footer {
  margin-top: auto !important;
}

.cmsd-shell .cmsd-visitor-name,
.cmsd-shell .cmsd-visitor-email {
  margin-top: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.26) !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05) !important;
}

.cmsd-shell .cmsd-visitor-name.is-locked,
.cmsd-shell .cmsd-visitor-email.is-locked {
  background: #F8FAFC !important;
  color: #0F172A !important;
  border-color: rgba(21,128,61,.30) !important;
}


/* =========================================================
   v0.3.2 — Mobile-first demo section layer.
   Desktop stays unchanged. Mobile gets shorter intro copy,
   compact selector, cleaner stack, and reduced visual weight.
========================================================= */
.cmsd-demo-copy-mobile {
  display: none !important;
}

.cmsd-demo-copy-desktop {
  display: block !important;
}

@media (max-width: 760px) {
  .cmsd-shell {
    width: min(100%, calc(100% - 28px)) !important;
    margin: 34px auto !important;
  }

  .cmsd-demo-copy-desktop {
    display: none !important;
  }

  .cmsd-demo-copy-mobile {
    display: block !important;
  }

  .cmsd-demo-header {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    align-items: start !important;
    margin-bottom: 18px !important;
  }

  .cmsd-eyebrow,
  .cmsd-shell .cmsd-eyebrow {
    margin-bottom: 8px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    letter-spacing: .08em !important;
  }

  .cmsd-demo-header h2,
  .cmsd-shell .cmsd-demo-header h2 {
    max-width: 100% !important;
    margin: 0 0 8px !important;
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.06em !important;
  }

  .cmsd-demo-header p:not(.cmsd-eyebrow),
  .cmsd-shell .cmsd-demo-header p:not(.cmsd-eyebrow) {
    max-width: 100% !important;
    font-size: 15.5px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
  }

  .cmsd-selector-card,
  .cmsd-shell .cmsd-selector-card {
    gap: 10px !important;
    padding: 14px !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(15,23,42,.06) !important;
  }

  .cmsd-selector-card label,
  .cmsd-shell .cmsd-selector-card label {
    gap: 6px !important;
    font-size: 12px !important;
  }

  .cmsd-selector-card select,
  .cmsd-shell .cmsd-selector-card select.cmsd-category-select,
  .cmsd-shell .cmsd-selector-card select.cmsd-business-select {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
    padding: 0 12px !important;
  }

  .cmsd-selector-helper,
  .cmsd-shell .cmsd-selector-helper {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
  }

  .cmsd-demo-layout,
  .cmsd-shell .cmsd-demo-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    padding: 14px !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 44px rgba(15,23,42,.07) !important;
  }

  .cmsd-widget-wrap,
  .cmsd-shell .cmsd-widget-wrap {
    width: 100% !important;
    justify-content: center !important;
  }

  .cmsd-widget,
  .cmsd-shell .cmsd-widget {
    width: min(100%, 320px) !important;
    height: 500px !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 54px rgba(15,23,42,.18) !important;
  }

  .cmsd-widget-header,
  .cmsd-shell .cmsd-widget-header {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 14px !important;
  }

  .cmsd-widget-title,
  .cmsd-shell .cmsd-widget-title {
    font-size: 16px !important;
  }

  .cmsd-widget-restart,
  .cmsd-shell .cmsd-widget-restart,
  .cmsd-shell button.cmsd-widget-restart {
    min-height: 30px !important;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
  }

  .cmsd-bubbles,
  .cmsd-shell .cmsd-bubbles {
    padding: 12px !important;
  }

  .cmsd-stream,
  .cmsd-shell .cmsd-stream {
    gap: 9px !important;
  }

  .cmsd-bubble,
  .cmsd-shell .cmsd-bubble {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    font-size: 13.5px !important;
    line-height: 1.36 !important;
    font-weight: 700 !important;
  }

  .cmsd-shell .cmsd-task-intent.is-active {
    padding-bottom: 54px !important;
  }

  .cmsd-chip-group,
  .cmsd-shell .cmsd-task-intent .cmsd-chip-group {
    gap: 6px !important;
    margin-top: 8px !important;
  }

  .cmsd-chip,
  .cmsd-shell .cmsd-task-intent .cmsd-chip {
    height: 46px !important;
    min-height: 46px !important;
    padding: 5px 5px !important;
    border-radius: 12px !important;
    font-size: 10.7px !important;
    line-height: 1.16 !important;
  }

  .cmsd-chip-label,
  .cmsd-shell .cmsd-task-intent .cmsd-chip .cmsd-chip-label {
    font-size: 10.7px !important;
    line-height: 1.16 !important;
    max-height: 26px !important;
  }

  .cmsd-shell .cmsd-task-phone,
  .cmsd-shell .cmsd-task-contact,
  .cmsd-shell .cmsd-task-demo-contact {
    gap: 7px !important;
  }

  .cmsd-shell .cmsd-phone-field {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    gap: 7px !important;
  }

  .cmsd-shell .cmsd-phone-code,
  .cmsd-shell .cmsd-phone-input,
  .cmsd-shell .cmsd-visitor-name,
  .cmsd-shell .cmsd-visitor-email,
  .cmsd-shell .cmsd-contact-name,
  .cmsd-shell .cmsd-contact-email,
  .cmsd-shell .cmsd-contact-website {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 13px !important;
    font-size: 14px !important;
  }

  .cmsd-shell .cmsd-contact-fields {
    gap: 7px !important;
  }

  .cmsd-shell .cmsd-soft-hint,
  .cmsd-shell .cmsd-phone-helper,
  .cmsd-shell .cmsd-status {
    font-size: 10px !important;
    line-height: 1.25 !important;
  }

  .cmsd-shell .cmsd-task-contact.is-active {
    padding-bottom: 112px !important;
  }

  .cmsd-shell .cmsd-task-whatsapp {
    left: 12px !important;
    right: 12px !important;
    bottom: 8px !important;
    padding-top: 7px !important;
  }

  .cmsd-shell .cmsd-cta-prompt,
  .cmsd-shell .cmsd-cta-confirm {
    padding: 8px 10px !important;
    font-size: 12.5px !important;
    line-height: 1.28 !important;
  }

  .cmsd-shell .cmsd-cta-chip-group {
    gap: 7px !important;
  }

  .cmsd-shell .cmsd-cta-chip {
    height: 42px !important;
    min-height: 42px !important;
    padding: 7px 8px !important;
    border-radius: 13px !important;
    gap: 6px !important;
  }

  .cmsd-shell .cmsd-cta-whatsapp {
    flex-basis: 20px !important;
    width: 20px !important;
    height: 20px !important;
    background-size: 12px 12px !important;
  }

  .cmsd-shell .cmsd-cta-copy strong {
    font-size: 12.5px !important;
  }

  .cmsd-shell .cmsd-task-demo-contact .cmsd-contact-footer {
    gap: 7px !important;
    padding-top: 6px !important;
  }

  .cmsd-shell .cmsd-contact-continue,
  .cmsd-shell button.cmsd-contact-continue,
  .cmsd-step-button,
  .cmsd-submit {
    min-height: 44px !important;
    border-radius: 13px !important;
    font-size: 13px !important;
  }

  .cmsd-branding,
  .cmsd-shell .cmsd-branding {
    height: 40px !important;
    font-size: 11.5px !important;
  }

  .cmsd-lead-preview,
  .cmsd-shell .cmsd-lead-preview {
    padding: 18px !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 34px rgba(15,23,42,.055) !important;
  }

  .cmsd-preview-kicker,
  .cmsd-shell .cmsd-preview-kicker {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  .cmsd-lead-preview h3,
  .cmsd-shell .cmsd-lead-preview h3 {
    font-size: 24px !important;
    line-height: 1.08 !important;
    margin-bottom: 14px !important;
  }

  .cmsd-lead-preview dl,
  .cmsd-shell .cmsd-lead-preview dl {
    grid-template-columns: 92px minmax(0, 1fr) !important;
    gap: 8px 10px !important;
    margin-bottom: 14px !important;
  }

  .cmsd-lead-preview dt,
  .cmsd-lead-preview dd,
  .cmsd-shell .cmsd-lead-preview dt,
  .cmsd-shell .cmsd-lead-preview dd {
    font-size: 12.5px !important;
    line-height: 1.3 !important;
  }

  .cmsd-preview-note,
  .cmsd-shell .cmsd-preview-note {
    padding: 14px !important;
    border-radius: 16px !important;
  }

  .cmsd-preview-note strong,
  .cmsd-shell .cmsd-preview-note strong {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  .cmsd-preview-note span,
  .cmsd-shell .cmsd-preview-note span {
    font-size: 12.5px !important;
    line-height: 1.4 !important;
  }
}

@media (max-width: 380px) {
  .cmsd-shell {
    width: min(100%, calc(100% - 20px)) !important;
  }

  .cmsd-widget,
  .cmsd-shell .cmsd-widget {
    height: 492px !important;
  }

  .cmsd-shell .cmsd-phone-field {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }

  .cmsd-lead-preview dl,
  .cmsd-shell .cmsd-lead-preview dl {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .cmsd-lead-preview dt,
  .cmsd-shell .cmsd-lead-preview dt {
    margin-top: 6px !important;
  }
}

/* =========================================================
   v0.3.3 — Mobile width containment fix.
   Purpose: override landing-page full-width breakout rules that target
   .cmsd-shell and make the demo section too wide on phones.
========================================================= */
.cmsd-shell.cmsd-shell {
  width: min(1120px, calc(100% - 32px)) !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 760px) {
  .cmsd-shell.cmsd-shell {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    margin: 28px auto !important;
    overflow-x: hidden !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-demo-header,
  .cmsd-shell.cmsd-shell .cmsd-selector-card,
  .cmsd-shell.cmsd-shell .cmsd-demo-layout,
  .cmsd-shell.cmsd-shell .cmsd-lead-preview {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-demo-header h2 {
    font-size: clamp(28px, 8.2vw, 34px) !important;
    line-height: 1.06 !important;
    letter-spacing: -0.055em !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-demo-header p:not(.cmsd-eyebrow) {
    font-size: 14.5px !important;
    line-height: 1.42 !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-selector-card {
    padding: 13px !important;
    border-radius: 18px !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-selector-helper {
    font-size: 11.5px !important;
    line-height: 1.35 !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-demo-layout {
    padding: 12px !important;
    border-radius: 22px !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-widget-wrap {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    overflow: hidden !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-widget {
    width: min(300px, 100%) !important;
    max-width: 300px !important;
    height: 492px !important;
    min-height: 492px !important;
    max-height: 492px !important;
  }
}

@media (max-width: 390px) {
  .cmsd-shell.cmsd-shell {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
  }

  .cmsd-shell.cmsd-shell .cmsd-widget {
    width: min(292px, 100%) !important;
    max-width: 292px !important;
  }
}

/* =========================================================
   v0.4.0 — Widget-only shortcode separation
   DEMO WIDGET LAYER ONLY
   Used by [chatmate_sales_widget_only] and [chatmate_combined_hero].
========================================================= */

.cmsd-widget-only-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.cmsd-widget-only-shell .cmsd-widget-only-selector {
  margin: 0 0 14px !important;
  padding: 14px !important;
  border-radius: 20px !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05) !important;
}

.cmsd-widget-only-shell .cmsd-selector-helper {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.42 !important;
  font-weight: 700 !important;
}

.cmsd-widget-only-shell .cmsd-widget-wrap {
  width: 100% !important;
  justify-content: center !important;
  align-items: flex-start !important;
}

.cmsd-widget-only-shell .cmsd-widget {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 900px) {
  .cmsd-widget-only-shell .cmsd-widget-only-selector {
    padding: 13px !important;
    border-radius: 18px !important;
  }

  .cmsd-widget-only-shell .cmsd-selector-card label {
    font-size: 12.5px !important;
  }

  .cmsd-widget-only-shell .cmsd-selector-card select {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 13.8px !important;
  }

  .cmsd-widget-only-shell .cmsd-selector-helper {
    font-size: 12.8px !important;
  }
}

/* =========================================================
   v0.4.1 — 140-character textarea live-widget positioning lock.
   Scope: sales demo CSS only. Keeps split shortcode markup untouched.
   Purpose: restore the compact original widget notes position after
   the v0.3.0 request-box layer made the textarea taller/lower.
========================================================= */

/* The separated demo no longer renders a visible confirm rail here.
   Do not reserve blank space under the chip grid before the notes box. */
.cmsd-shell .cmsd-task-intent.is-active {
  padding-bottom: 0 !important;
}

.cmsd-shell .cmsd-intent-actions:empty,
.cmsd-shell .cmsd-intent-actions:not([hidden]):empty {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.cmsd-shell .cmsd-task-notes {
  position: relative !important;
  width: 100% !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

.cmsd-shell .cmsd-task-notes.is-active {
  display: block !important;
}

.cmsd-shell .cmsd-task-notes .cmsd-bubble {
  width: 100% !important;
  margin: 0 0 8px !important;
  padding: 10px 12px !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

.cmsd-shell .cmsd-notes-textarea {
  display: block !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  box-sizing: border-box !important;
  resize: none !important;
  margin: 0 !important;
  padding: 10px 12px 22px !important;
  border-radius: 14px !important;
  border: 1.5px solid rgba(5, 122, 41, 0.26) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  font-weight: 650 !important;
  outline: none !important;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.05) !important;
}

.cmsd-shell .cmsd-notes-textarea:focus {
  border-color: rgba(21, 128, 61, 0.62) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14) !important;
}

.cmsd-shell .cmsd-char-counter {
  position: absolute !important;
  right: 26px !important;
  bottom: 7px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-align: right !important;
  pointer-events: none !important;
}

@media (max-width: 760px) {
  .cmsd-shell .cmsd-task-intent.is-active {
    padding-bottom: 0 !important;
  }

  .cmsd-shell .cmsd-notes-textarea {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }

  .cmsd-shell .cmsd-char-counter {
    right: 26px !important;
    bottom: 7px !important;
  }
}


/* =========================================================
   v0.4.2 — Widget-only chip breathing-room fix.
   Sales demo plugin only. Keeps the three-column intent chips
   contained and readable when the widget-only shortcode is
   placed inside landing-page sections/hero layouts.
========================================================= */
.cmsd-widget-only-shell .cmsd-widget-wrap {
  overflow: visible !important;
}

.cmsd-widget-only-shell .cmsd-widget,
.cmsd-shell.cmsd-widget-only-shell .cmsd-widget {
  width: 320px !important;
  max-width: 320px !important;
  min-width: 320px !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
}

.cmsd-widget-only-shell .cmsd-bubbles,
.cmsd-shell.cmsd-widget-only-shell .cmsd-bubbles {
  padding-left: 13px !important;
  padding-right: 13px !important;
  overflow: hidden !important;
}

.cmsd-widget-only-shell .cmsd-task-intent,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent {
  width: 100% !important;
  min-width: 0 !important;
}

.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip-group,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip-group {
  width: 100% !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 10px !important;
}

.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip,
.cmsd-widget-only-shell button.cmsd-chip,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip,
.cmsd-shell.cmsd-widget-only-shell button.cmsd-chip {
  width: 100% !important;
  min-width: 0 !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 5px 4px !important;
  border-radius: 13px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip .cmsd-chip-label,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip .cmsd-chip-label {
  width: 100% !important;
  min-width: 0 !important;
  max-height: 28px !important;
  font-size: 10.6px !important;
  line-height: 1.16 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

@media (max-width: 760px) {
  .cmsd-widget-only-shell .cmsd-widget,
  .cmsd-shell.cmsd-widget-only-shell .cmsd-widget {
    width: min(300px, 100%) !important;
    max-width: 300px !important;
    min-width: 0 !important;
    height: 500px !important;
    min-height: 500px !important;
    max-height: 500px !important;
  }

  .cmsd-widget-only-shell .cmsd-bubbles,
  .cmsd-shell.cmsd-widget-only-shell .cmsd-bubbles {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip,
  .cmsd-widget-only-shell button.cmsd-chip,
  .cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip,
  .cmsd-shell.cmsd-widget-only-shell button.cmsd-chip {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 5px 4px !important;
  }
}


/* =========================================================
   v0.4.3 — Widget-only right-edge containment fix.
   Sales demo plugin only. Prevents landing-page/global theme
   box sizing from making the chip grid wider than the widget,
   which could clip the right-hand column.
========================================================= */
.cmsd-widget-only-shell,
.cmsd-widget-only-shell *,
.cmsd-shell.cmsd-widget-only-shell,
.cmsd-shell.cmsd-widget-only-shell * {
  box-sizing: border-box !important;
}

.cmsd-widget-only-shell .cmsd-widget,
.cmsd-shell.cmsd-widget-only-shell .cmsd-widget {
  overflow: hidden !important;
}

.cmsd-widget-only-shell .cmsd-widget-header,
.cmsd-shell.cmsd-widget-only-shell .cmsd-widget-header,
.cmsd-widget-only-shell .cmsd-bubbles,
.cmsd-shell.cmsd-widget-only-shell .cmsd-bubbles,
.cmsd-widget-only-shell .cmsd-stream,
.cmsd-shell.cmsd-widget-only-shell .cmsd-stream,
.cmsd-widget-only-shell .cmsd-task,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task,
.cmsd-widget-only-shell .cmsd-task-intent,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent,
.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip-group,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip-group {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.cmsd-widget-only-shell .cmsd-bubbles,
.cmsd-shell.cmsd-widget-only-shell .cmsd-bubbles {
  padding-left: 12px !important;
  padding-right: 12px !important;
  overflow: hidden !important;
}

.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip-group,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip-group {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: 6px !important;
  row-gap: 6px !important;
  overflow: visible !important;
}

.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip,
.cmsd-widget-only-shell button.cmsd-chip,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip,
.cmsd-shell.cmsd-widget-only-shell button.cmsd-chip {
  max-width: 100% !important;
  flex: 0 1 auto !important;
  padding-left: 3px !important;
  padding-right: 3px !important;
}

.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip .cmsd-chip-label,
.cmsd-shell.cmsd-widget-only-shell .cmsd-task-intent .cmsd-chip .cmsd-chip-label {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}


/* =========================================================
   v0.4.4 — Combined hero external stylesheet lock.
   Sales demo plugin only. Moves the combined-hero layout CSS into
   the plugin stylesheet so page builders/themes do not strip or ignore
   inline shortcode <style> blocks.
========================================================= */
.cm-combined-hero {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background:
    radial-gradient(circle at 72% 42%, rgba(34, 197, 94, 0.16), transparent 30%),
    radial-gradient(circle at 12% 12%, rgba(34, 197, 94, 0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 78px 0 72px;
  overflow: hidden;
}

.cm-combined-hero,
.cm-combined-hero * {
  box-sizing: border-box !important;
}

.cm-combined-hero-container {
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 24px;
}

.cm-combined-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 76px;
  align-items: center;
}

.cm-combined-hero-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534 !important;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.cm-combined-hero h1 {
  margin: 0 0 20px;
  color: #0f172a !important;
  font-size: clamp(46px, 5.6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.067em;
  font-weight: 950;
  max-width: 760px;
}

.cm-combined-hero h1 span {
  color: #16a34a !important;
  display: block;
}

.cm-combined-hero-copy {
  max-width: 620px;
  margin: 0 0 26px;
  color: #334155 !important;
  font-size: 20px;
  line-height: 1.48;
  font-weight: 650;
}

.cm-combined-hero-proof {
  display: grid;
  gap: 12px;
  margin: 0 0 30px;
  max-width: 520px;
}

.cm-combined-hero-proof span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #334155 !important;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 750;
}

.cm-combined-hero-proof span::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 950;
}

.cm-combined-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.cm-combined-hero-button {
  min-height: 56px;
  border-radius: 14px;
  padding: 0 24px;
  font-size: 16px;
  font-weight: 950;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.cm-combined-hero-button-primary {
  background: #16a34a;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.22);
}

.cm-combined-hero-button-primary:hover {
  background: #15803d;
}

.cm-combined-hero-button-secondary {
  background: #ffffff;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
}

.cm-combined-hero-button-secondary:hover {
  border-color: #16a34a;
  color: #16a34a !important;
}

.cm-combined-hero-note {
  margin-top: 12px;
  color: #64748b !important;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.cm-combined-hero-demo-card {
  width: 100%;
  max-width: 430px;
  padding: 16px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.13), transparent 45%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid #e2e8f0;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
}

.cm-combined-hero-demo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
}

.cm-combined-hero-demo-top span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534 !important;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cm-combined-hero-demo-top b {
  display: block;
  color: #0f172a !important;
  font-size: 12.5px;
  line-height: 1.25;
  font-weight: 900;
  text-align: right;
}

.cm-combined-hero-demo-top small {
  display: block;
  color: #64748b !important;
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 700;
  margin-top: 3px;
  text-align: right;
}

.cm-combined-hero .cmsd-widget-only-shell {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.cm-combined-hero .cmsd-widget-wrap {
  justify-content: center !important;
  overflow: visible !important;
}

@media (max-width: 900px) {
  .cm-combined-hero {
    padding: 28px 0 34px;
    background:
      radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.14), transparent 34%),
      linear-gradient(180deg, #f0fdf4 0%, #f8fafc 58%, #ffffff 100%);
  }

  .cm-combined-hero-container {
    padding: 0 16px;
  }

  .cm-combined-hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cm-combined-hero-content {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 22px 18px 18px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
  }

  .cm-combined-hero-kicker {
    min-height: 28px;
    padding: 7px 10px;
    font-size: 10.5px;
    margin-bottom: 13px;
  }

  .cm-combined-hero h1 {
    font-size: clamp(31px, 8.9vw, 39px);
    line-height: 1.02;
    margin-bottom: 12px;
    letter-spacing: -0.062em;
  }

  .cm-combined-hero-copy {
    font-size: 15.5px;
    line-height: 1.42;
    font-weight: 650;
    margin-bottom: 16px;
  }

  .cm-combined-hero-proof {
    gap: 8px;
    margin-bottom: 16px;
  }

  .cm-combined-hero-proof span {
    grid-template-columns: 19px minmax(0, 1fr);
    gap: 8px;
    font-size: 13.8px;
    line-height: 1.32;
    font-weight: 650;
  }

  .cm-combined-hero-proof span::before {
    width: 19px;
    height: 19px;
    font-size: 12px;
  }

  .cm-combined-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cm-combined-hero-button {
    width: 100%;
    min-height: 52px;
    border-radius: 15px;
    font-size: 15.5px;
  }

  .cm-combined-hero-button-secondary {
    display: none !important;
  }

  .cm-combined-hero-note {
    font-size: 12.5px;
    text-align: center;
    margin-top: 10px;
  }

  .cm-combined-hero-demo-card {
    max-width: 340px;
    padding: 12px;
    border-radius: 26px;
    margin-left: auto;
    margin-right: auto;
  }

  .cm-combined-hero-demo-top {
    display: none;
  }
}

@media (max-width: 390px) {
  .cm-combined-hero-container {
    padding: 0 14px;
  }

  .cm-combined-hero-content {
    padding: 20px 16px 16px;
    border-radius: 22px;
  }

  .cm-combined-hero h1 {
    font-size: clamp(29px, 8.6vw, 35px);
  }

  .cm-combined-hero-copy {
    font-size: 15px;
  }

  .cm-combined-hero-demo-card {
    max-width: 320px;
  }
}
