/* Ask Ash: chat widget styles. All selectors are scoped under .asha-root. */

.asha-root {
  --asha-dark: #333333;
  --asha-header: #3A3A3A;
  --asha-pink: #FF0066;
  --asha-primary: #FF0066;
  --asha-teal: #00CCFF;
  --asha-lavender: #F0C9DC;
  --asha-tint: #FFF2F8;
  --asha-text: #4C4D52;
  --asha-ink: #333333;
  --asha-muted: #7A7B85;
  --asha-line: #EEE1E8;
  --asha-grad: linear-gradient(90deg, #FF0066 0%, #CC66FF 55%, #00CCFF 100%);
  --asha-font: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --asha-ease: cubic-bezier(.2, .8, .2, 1);
  --asha-ring: 0 0 0 3px rgba(0, 204, 255, .45);
}

/* ---------- Reset (defend against theme and Elementor globals) ---------- */
.asha-root,
.asha-root *,
.asha-root *::before,
.asha-root *::after {
  box-sizing: border-box;
}
.asha-root * {
  font-family: var(--asha-font);
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  word-spacing: normal;
}
.asha-root p,
.asha-root h2,
.asha-root h3,
.asha-root ul,
.asha-root ol,
.asha-root li,
.asha-root form,
.asha-root label {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-weight: inherit;
}
.asha-root button,
.asha-root input,
.asha-root textarea {
  margin: 0;
  padding: 0;
  border-radius: 0;
  max-width: none;
  font: inherit;
  font-family: var(--asha-font);
  color: inherit;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  min-height: 0;
  min-width: 0;
  width: auto;
  height: auto;
  line-height: inherit;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.asha-root button {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: normal;
}
.asha-root button:hover,
.asha-root button:focus {
  background-color: transparent;
  color: inherit;
}
.asha-root a {
  text-decoration: none;
  box-shadow: none;
  border: 0;
}
.asha-root img {
  max-width: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.asha-root [hidden] { display: none !important; }

.asha-root .asha-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.asha-root .asha-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  line-height: 0;
}
.asha-root .asha-icon svg { display: block; }

/* Cyan focus ring on every control */
.asha-root a:focus-visible,
.asha-root button:focus-visible,
.asha-root input:focus-visible,
.asha-root textarea:focus-visible,
.asha-root .asha-log:focus-visible {
  outline: 2px solid var(--asha-teal);
  outline-offset: 2px;
}

/* ---------- Launcher ---------- */
.asha-root .asha-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--asha-grad);
  background-size: 100% 100%;
  background-position: 0% 50%;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 28px -8px rgba(51, 51, 51, .55), 0 2px 6px rgba(51, 51, 51, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: background-position .5s var(--asha-ease), box-shadow .25s ease, transform .25s var(--asha-ease), padding .25s var(--asha-ease), width .25s var(--asha-ease);
}
.asha-root.asha-ready .asha-launcher {
  opacity: 1;
  transform: none;
  animation: asha-rise .6s var(--asha-ease) .5s backwards;
}
.asha-root .asha-launcher:hover {
  background: var(--asha-grad);
  background-size: 100% 100%;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(51, 51, 51, .6), 0 3px 8px rgba(51, 51, 51, .2), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.asha-root .asha-launcher:focus { background: var(--asha-grad); background-size: 100% 100%; color: #fff; }
.asha-root .asha-launcher:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--asha-teal), 0 10px 28px -8px rgba(51, 51, 51, .55); }
.asha-root .asha-launcher:active { transform: scale(.97); }
.asha-root .asha-launcher-spark svg { width: 20px; height: 20px; }
.asha-root .asha-launcher-spark { animation: asha-twinkle 4.5s ease-in-out 1.4s infinite; }
.asha-root .asha-launcher-close { display: none; }
.asha-root .asha-launcher-label { font-size: 15px; font-weight: 600; color: #fff; line-height: 1; }

/* Launcher when the panel is open: compact round close control */
.asha-root.asha-is-open .asha-launcher {
  width: 52px;
  padding: 0;
  justify-content: center;
  background: var(--asha-dark);
}
.asha-root.asha-is-open .asha-launcher:hover,
.asha-root.asha-is-open .asha-launcher:focus { background: var(--asha-header); }
.asha-root.asha-is-open .asha-launcher-label,
.asha-root.asha-is-open .asha-launcher-spark { display: none; }
.asha-root.asha-is-open .asha-launcher-close { display: inline-flex; }

@keyframes asha-rise {
  from { opacity: 0; transform: translateY(16px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes asha-twinkle {
  0%, 86%, 100% { transform: rotate(0) scale(1); }
  92% { transform: rotate(18deg) scale(1.15); }
}

/* ---------- Panel ---------- */
.asha-root .asha-panel {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 99991;
  display: flex;
  flex-direction: column;
  width: var(--asha-panel-w, 400px);
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  color: var(--asha-text);
  font-family: var(--asha-font);
  font-size: 14.5px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 30px 70px -20px rgba(51, 51, 51, .45), 0 10px 24px -12px rgba(51, 51, 51, .25), 0 0 0 1px rgba(51, 51, 51, .06);
  visibility: hidden;
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transform-origin: bottom right;
  transition: opacity .22s ease, transform .28s var(--asha-ease), visibility 0s linear .28s;
}
.asha-root.asha-is-open .asha-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .22s ease, transform .28s var(--asha-ease), visibility 0s;
}

/* Header */
.asha-root .asha-header {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 12px 16px 20px;
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(0, 204, 255, .22) 0%, rgba(0, 204, 255, 0) 46%),
    radial-gradient(90% 140% at 0% 100%, rgba(255, 0, 102, .55) 0%, rgba(255, 0, 102, 0) 62%),
    var(--asha-header);
  color: #fff;
}
.asha-root .asha-header--nologo { padding-top: 16px; padding-bottom: 16px; }
.asha-root .asha-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--asha-grad);
  opacity: .9;
}
.asha-root .asha-htop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}
.asha-root .asha-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.asha-root .asha-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 200px;
  flex: none;
}
.asha-root .asha-titles { min-width: 0; padding-right: 8px; }
.asha-root .asha-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}
.asha-root .asha-title-spark { color: var(--asha-teal); }
.asha-root .asha-title-spark svg { width: 17px; height: 17px; }
.asha-root .asha-subtitle {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--asha-lavender);
}
.asha-root .asha-hactions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.asha-root .asha-hbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  min-width: 34px;
  padding: 0 8px;
  border-radius: 10px;
  color: var(--asha-lavender);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.asha-root .asha-hbtn:hover,
.asha-root .asha-hbtn:focus-visible {
  background-color: rgba(255, 255, 255, .1);
  color: #fff;
}
.asha-root .asha-newchat {
  height: 30px;
  padding: 0 11px 0 9px;
  margin-right: 4px;
  border: 1px solid rgba(240, 201, 220, .3);
  border-radius: 999px;
}
.asha-root .asha-newchat:hover { border-color: rgba(255, 255, 255, .5); }

/* Scroll area */
.asha-root .asha-scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background:
    radial-gradient(140% 60% at 50% 0%, rgba(255, 242, 248, .9) 0%, rgba(255, 255, 255, 0) 70%),
    #fff;
  scrollbar-width: thin;
  scrollbar-color: #E6D2DF transparent;
}
.asha-root .asha-scroll::-webkit-scrollbar { width: 8px; }
.asha-root .asha-scroll::-webkit-scrollbar-thumb { background: #E6D2DF; border-radius: 8px; border: 2px solid #fff; }
.asha-root .asha-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px 18px;
  outline: none;
}

/* Empty state */
.asha-root .asha-empty {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.asha-root .asha-starters-label {
  margin: 6px 0 -4px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--asha-muted);
}
.asha-root .asha-starters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
.asha-root .asha-starter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--asha-line);
  border-radius: 12px;
  background: #fff;
  color: var(--asha-dark);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, transform .15s var(--asha-ease), box-shadow .15s ease;
}
.asha-root .asha-starter:hover,
.asha-root .asha-starter:focus-visible {
  border-color: var(--asha-teal);
  background-color: #fff;
  color: var(--asha-dark);
  box-shadow: 0 6px 16px -10px rgba(51, 51, 51, .45);
  transform: translateY(-1px);
}
.asha-root .asha-starter-arrow { color: var(--asha-primary); opacity: .55; transition: opacity .15s ease, transform .15s var(--asha-ease); }
.asha-root .asha-starter:hover .asha-starter-arrow { opacity: 1; transform: translateX(2px); }

/* Messages */
.asha-root .asha-msg {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  animation: asha-in .28s var(--asha-ease) both;
}
.asha-root .asha-msg--user { align-items: flex-end; }
.asha-root .asha-bubble {
  position: relative;
  max-width: 90%;
  padding: 11px 15px;
  border-radius: 16px;
  overflow-wrap: anywhere;
  word-break: normal;
}
.asha-root .asha-msg--user .asha-bubble {
  max-width: 84%;
  background: var(--asha-dark);
  color: #fff;
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
  box-shadow: 0 6px 16px -10px rgba(51, 51, 51, .7);
}
.asha-root .asha-msg--assistant .asha-bubble {
  background: var(--asha-tint);
  color: var(--asha-ink);
  border-bottom-left-radius: 6px;
}
.asha-root .asha-msg--error .asha-bubble {
  background: #FFF6EC;
  color: #5B3A16;
  box-shadow: inset 3px 0 0 #E9A55A;
}
.asha-root .asha-msg--confirm .asha-bubble {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(0, 204, 255, .14), rgba(255, 0, 102, .08));
  box-shadow: inset 0 0 0 1px rgba(0, 204, 255, .4);
}
.asha-root .asha-confirm-icon {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--asha-teal);
  color: #fff;
  margin-top: 1px;
}
.asha-root .asha-confirm-icon svg { width: 15px; height: 15px; }

@keyframes asha-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Markdown inside assistant bubbles */
.asha-root .asha-bubble p + p,
.asha-root .asha-bubble p + .asha-md-list,
.asha-root .asha-bubble .asha-md-list + p,
.asha-root .asha-bubble .asha-md-list + .asha-md-list { margin-top: 9px; }
.asha-root .asha-bubble strong { font-weight: 650; color: var(--asha-dark); }
.asha-root .asha-msg--user .asha-bubble strong { color: #fff; }
.asha-root .asha-md-h { font-weight: 650; color: var(--asha-dark); }
.asha-root .asha-md-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.asha-root .asha-md-list li {
  position: relative;
  padding-left: 18px;
  margin: 0;
  list-style: none;
}
.asha-root .asha-md-list li + li { margin-top: 5px; }
.asha-root .asha-md-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--asha-teal);
}
.asha-root .asha-md-ol { counter-reset: asha-ol; }
.asha-root .asha-md-ol li { counter-increment: asha-ol; padding-left: 22px; }
.asha-root .asha-md-ol li::before {
  content: counter(asha-ol) ".";
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-weight: 650;
  color: var(--asha-primary);
}
.asha-root .asha-link {
  color: var(--asha-primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 0, 102, .35);
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-color .15s ease, color .15s ease;
}
.asha-root .asha-link:hover { color: var(--asha-dark); text-decoration-color: var(--asha-teal); }
.asha-root .asha-msg--error .asha-link { color: #7A4310; }

/* Page cards */
.asha-root .asha-cards-label {
  margin: 12px 0 6px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--asha-muted);
}
.asha-root .asha-cards {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 90%;
}
.asha-root .asha-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px 11px 14px;
  border: 1px solid var(--asha-line);
  border-radius: 12px;
  background: #fff;
  color: var(--asha-ink);
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(51, 51, 51, .04);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s var(--asha-ease);
}
.asha-root .asha-card:hover,
.asha-root .asha-card:focus-visible {
  border-color: var(--asha-teal);
  box-shadow: 0 8px 20px -12px rgba(51, 51, 51, .45);
  transform: translateY(-1px);
  color: var(--asha-ink);
}
.asha-root .asha-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}
.asha-root .asha-card-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--asha-dark);
}
.asha-root .asha-card-why {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--asha-muted);
}
.asha-root .asha-card-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--asha-tint);
  color: var(--asha-primary);
  transition: background .15s ease, color .15s ease, transform .15s var(--asha-ease);
}
.asha-root .asha-card:hover .asha-card-arrow,
.asha-root .asha-card:focus-visible .asha-card-arrow {
  background: var(--asha-grad);
  color: #fff;
  transform: translateX(2px);
}

/* CTA row and buttons */
.asha-root .asha-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.asha-root .asha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-position .4s var(--asha-ease), box-shadow .2s ease, border-color .15s ease, color .15s ease, transform .15s var(--asha-ease);
}
.asha-root .asha-btn--primary,
.asha-root .asha-btn--primary:focus,
.asha-root button.asha-btn--primary:hover {
  background: var(--asha-grad);
  background-size: 100% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(255, 0, 102, .8);
}
.asha-root .asha-btn--primary:hover,
.asha-root button.asha-btn--primary:hover {
  color: #fff;
  filter: saturate(1.12) brightness(1.03);
  box-shadow: 0 10px 22px -10px rgba(255, 0, 102, .9);
}
.asha-root .asha-btn--primary[disabled] { opacity: .7; cursor: progress; }
.asha-root .asha-btn--ghost {
  border: 1px solid #E6D2DF;
  background: #fff;
  color: var(--asha-primary);
}
.asha-root .asha-btn--ghost:hover,
.asha-root .asha-btn--ghost:focus-visible {
  border-color: var(--asha-primary);
  background: #fff;
  color: var(--asha-primary);
}
.asha-root .asha-btn--text {
  height: 40px;
  padding: 0 12px;
  color: var(--asha-muted);
  font-weight: 500;
}
.asha-root .asha-btn--text:hover { color: var(--asha-dark); }

/* Suggestions */
.asha-root .asha-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
  animation: asha-in .3s var(--asha-ease) .08s both;
}
.asha-root .asha-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #ECDAE4;
  border-radius: 999px;
  background: #fff;
  color: var(--asha-primary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.asha-root .asha-chip:hover,
.asha-root .asha-chip:focus-visible {
  border-color: var(--asha-teal);
  background-color: #F0FBFF;
  color: var(--asha-dark);
}

/* Typing indicator */
.asha-root .asha-typing .asha-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}
.asha-root .asha-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--asha-primary);
  opacity: .35;
  animation: asha-bounce 1.2s ease-in-out infinite;
}
.asha-root .asha-dot:nth-child(3) { animation-delay: .15s; }
.asha-root .asha-dot:nth-child(4) { animation-delay: .3s; }
@keyframes asha-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .35; }
  30% { transform: translateY(-4px); opacity: .9; }
}

/* ---------- Lead form ---------- */
.asha-root .asha-lead {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 16px;
  border: 1px solid var(--asha-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px -20px rgba(51, 51, 51, .5);
  animation: asha-in .3s var(--asha-ease) both;
  position: relative;
  overflow: hidden;
}
.asha-root .asha-lead::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--asha-grad);
}
.asha-root .asha-lead-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--asha-dark);
}
.asha-root .asha-lead-intro {
  margin-top: 2px;
  font-size: 12.5px;
  color: var(--asha-muted);
}
.asha-root .asha-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.asha-root .asha-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 100%;
  min-width: 0;
}
.asha-root .asha-field--half { flex: 1 1 calc(50% - 5px); }
.asha-root .asha-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--asha-dark);
}
.asha-root .asha-req { color: var(--asha-primary); }
.asha-root .asha-field-input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 8px 11px;
  border: 1px solid #E2D5DD;
  border-radius: 10px;
  background: #FEFAFC;
  color: var(--asha-ink);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.asha-root textarea.asha-field-input {
  height: auto;
  min-height: 70px;
  resize: vertical;
}
.asha-root .asha-field-input:hover { border-color: #D5BFCA; }
.asha-root .asha-field-input:focus,
.asha-root .asha-field-input:focus-visible {
  outline: 0;
  border-color: var(--asha-teal);
  background: #fff;
  box-shadow: var(--asha-ring);
}
.asha-root .asha-field-input[aria-invalid="true"] { border-color: #D2556B; }
.asha-root .asha-field-error {
  font-size: 12px;
  line-height: 1.3;
  color: #B4324A;
}
.asha-root .asha-field-error:empty { display: none; }
.asha-root .asha-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 4px 10px;
  align-items: start;
}
.asha-root .asha-check {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #CBAEBB;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: background-color .15s ease, border-color .15s ease;
}
.asha-root .asha-check::after {
  content: "";
  width: 9px;
  height: 5px;
  border: 2px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.asha-root .asha-check:checked { background: var(--asha-primary); border-color: var(--asha-primary); }
.asha-root .asha-check:checked::after { opacity: 1; }
.asha-root .asha-check[aria-invalid="true"] { border-color: #D2556B; }
.asha-root .asha-check:focus-visible { outline: 2px solid var(--asha-teal); outline-offset: 2px; }
.asha-root .asha-consent-label {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--asha-text);
  cursor: pointer;
}
.asha-root .asha-consent .asha-field-error { grid-column: 2; }
.asha-root .asha-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.asha-root .asha-lead-status:empty { display: none; }
.asha-root .asha-lead-status--error {
  padding: 10px 12px;
  border-radius: 10px;
  background: #FDF0F2;
  color: #8A2236;
  font-size: 13px;
  line-height: 1.45;
}
.asha-root .asha-lead-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Footer / composer ---------- */
.asha-root .asha-footer {
  flex: none;
  padding: 12px 14px 10px;
  border-top: 1px solid var(--asha-line);
  background: #fff;
}
.asha-root .asha-composer { position: relative; }
.asha-root .asha-inputwrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid #E2D5DD;
  border-radius: 16px;
  background: #FEFAFC;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.asha-root .asha-inputwrap:focus-within {
  border-color: var(--asha-teal);
  background: #fff;
  box-shadow: var(--asha-ring);
}
.asha-root .asha-input {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  height: 22px;
  max-height: 120px;
  padding: 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--asha-ink);
  font-size: 14.5px;
  line-height: 22px;
  resize: none;
  overflow-y: hidden;
  box-sizing: content-box;
}
.asha-root .asha-input:focus,
.asha-root .asha-input:focus-visible { outline: 0; border: 0; box-shadow: none; background: transparent; }
.asha-root .asha-input::placeholder { color: #9A98A8; opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asha-root .asha-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--asha-grad);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(255, 0, 102, .9);
  transition: opacity .15s ease, transform .15s var(--asha-ease), filter .15s ease;
}
.asha-root .asha-send:hover,
.asha-root .asha-send:focus { background: var(--asha-grad); color: #fff; }
.asha-root .asha-send:hover:not([disabled]) { transform: translateY(-1px); filter: saturate(1.15); }
.asha-root .asha-send[disabled] {
  background: #EFE3EA;
  color: #A39EB5;
  box-shadow: none;
  cursor: default;
}
.asha-root .asha-busy .asha-send[disabled] { cursor: progress; }
.asha-root .asha-counter {
  display: none;
  position: absolute;
  right: 54px;
  top: -20px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
  color: var(--asha-muted);
  font-variant-numeric: tabular-nums;
}
.asha-root .asha-counter--show { display: block; }
.asha-root .asha-counter--max { color: #B4324A; }
.asha-root .asha-note {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--asha-muted);
  text-align: center;
}
.asha-root .asha-note .asha-link { font-weight: 500; color: var(--asha-primary); }
.asha-root .asha-notebtn { all: unset; cursor: pointer; font: inherit; font-weight: 600; color: var(--asha-primary); text-decoration: underline; text-underline-offset: 2px; }
.asha-root .asha-notebtn:hover { color: var(--asha-dark, #333333); }
.asha-root .asha-notebtn:focus-visible { outline: 2px solid #00CCFF; outline-offset: 2px; border-radius: 3px; }

/* ---------- Mobile ---------- */
@media (max-width: 599.98px) {
  .asha-root .asha-launcher {
    right: 16px;
    bottom: 16px;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
  .asha-root .asha-launcher-label { display: none; }
  .asha-root .asha-launcher-spark svg { width: 24px; height: 24px; }
  .asha-root.asha-is-open .asha-launcher { display: none; }

  .asha-root .asha-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    transform: translateY(24px);
    transform-origin: bottom center;
  }
  .asha-root .asha-header {
    gap: 10px;
    padding: 10px 8px 14px 16px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }
  .asha-root .asha-close { width: 44px; height: 44px; }
  .asha-root .asha-newchat { height: 32px; }
  .asha-root .asha-log { padding: 18px 14px 16px; }
  .asha-root .asha-footer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .asha-root .asha-input { font-size: 16px; }
  .asha-root .asha-field-input { font-size: 16px; }
  .asha-root .asha-cards { width: 100%; }
  .asha-root .asha-bubble { max-width: 94%; }
}
@media (max-width: 380px) {
  .asha-root .asha-field--half { flex-basis: 100%; }
  .asha-root .asha-logo { max-width: 150px; }
}
html.asha-lock,
html.asha-lock body {
  overflow: hidden !important;
}

/* Short desktop viewports */
@media (min-width: 600px) and (max-height: 520px) {
  .asha-root .asha-panel { bottom: 84px; max-height: calc(100vh - 100px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .asha-root *,
  .asha-root *::before,
  .asha-root *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .asha-root .asha-launcher { opacity: 1; transform: none; }
  .asha-root .asha-launcher-spark { animation: none !important; }
}

/* ---------- Print ---------- */
@media print {
  .asha-root { display: none !important; }
}
