/* Ask Bobs (antonsmit.co.za): chat widget styles. All selectors are scoped under .asma-root. */

.asma-root {
  /* Anton Smit brand: charcoal header, maroon primary, gold accent, warm off-white surfaces. */
  --asma-navy: #262422;
  --asma-header: #353535;
  --asma-purple-mid: #6B0000;
  --asma-primary: #800000;
  --asma-teal: #B08400;
  --asma-lavender: #E6D7B5;
  --asma-tint: #F7F4EF;
  --asma-text: #45423E;
  --asma-ink: #262422;
  --asma-muted: #736E66;
  --asma-line: #E9E3D8;
  --asma-grad: linear-gradient(135deg, #8E0B0B 0%, #800000 55%, #660000 100%);
  --asma-font: "DINOT regular", "din-ot-regular", "DINOT", Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --asma-ease: cubic-bezier(.2, .8, .2, 1);
  --asma-ring: 0 0 0 3px rgba(176, 132, 0, .6);
}

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

.asma-root .asma-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;
}

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

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

/* ---------- Launcher ---------- */
.asma-root .asma-launcher {
  position: fixed;
  right: 24px;
  top: var(--asma-top, 16px); /* top right, just under the site header (set by the script as the page scrolls) */
  bottom: auto;
  z-index: 99990;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 22px 0 18px;
  border-radius: 999px;
  background: var(--asma-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(30, 28, 26, .55), 0 2px 6px rgba(30, 28, 26, .18), inset 0 1px 0 rgba(255, 255, 255, .22);
  opacity: 0;
  transform: translateY(-12px) scale(.96);
  transition: background-position .5s var(--asma-ease), box-shadow .25s ease, transform .25s var(--asma-ease), padding .25s var(--asma-ease), background-color .2s ease;
}
.asma-root.asma-ready .asma-launcher {
  opacity: 1;
  transform: none;
  animation: asma-rise .6s var(--asma-ease) .5s backwards;
}
.asma-root .asma-launcher:hover {
  background: var(--asma-grad);
  background-size: 100% 100%;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(30, 28, 26, .6), 0 3px 8px rgba(30, 28, 26, .2), inset 0 1px 0 rgba(255, 255, 255, .22);
}
.asma-root .asma-launcher:focus { background: var(--asma-grad); background-size: 100% 100%; color: #fff; }
.asma-root .asma-launcher:focus-visible { outline: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--asma-teal), 0 10px 28px -8px rgba(30, 28, 26, .55); }
.asma-root .asma-launcher:active { transform: scale(.97); }
.asma-root .asma-launcher-spark svg { width: 20px; height: 20px; }
.asma-root .asma-launcher-spark { animation: asma-twinkle 4.5s ease-in-out 1.4s infinite; }
.asma-root .asma-launcher-close { display: none; }
.asma-root .asma-launcher-label { font-size: 15px; font-weight: 600; color: #fff; line-height: 1; }
.asma-root .asma-launcher-label--close { display: none; }

/* Launcher when the chat is open: the same button, in the same place, now reads "Close" */
.asma-root.asma-is-open .asma-launcher {
  padding: 0 20px 0 16px;
  background: var(--asma-navy);
}
.asma-root.asma-is-open .asma-launcher:hover,
.asma-root.asma-is-open .asma-launcher:focus { background: var(--asma-header); }
.asma-root.asma-is-open .asma-launcher-label,
.asma-root.asma-is-open .asma-launcher-spark { display: none; }
.asma-root.asma-is-open .asma-launcher-close,
.asma-root.asma-is-open .asma-launcher-label--close { display: inline-flex; }

/* Hidden while the site's own mobile menu is open */
html:has(.elementskit-menu-offcanvas-elements.active) .asma-root .asma-launcher,
html:has(.elementskit-menu-offcanvas-elements.active) .asma-root .asma-nudge { visibility: hidden; }

/* "Your chat is saved" note, under the button after a chat link opens a page */
.asma-root .asma-nudge {
  position: fixed;
  right: 24px;
  top: calc(var(--asma-top, 16px) + 64px);
  z-index: 99990;
  max-width: 270px;
  margin: 0;
  padding: 12px 16px;
  background: #fff;
  color: var(--asma-ink);
  font-family: var(--asma-font);
  font-size: 14px;
  line-height: 1.45;
  border-radius: 12px;
  box-shadow: 0 16px 36px -14px rgba(30, 28, 26, .5), 0 0 0 1px rgba(30, 28, 26, .06);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .25s ease, transform .25s var(--asma-ease);
}
.asma-root .asma-nudge::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 34px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -1px -1px 0 rgba(30, 28, 26, .06);
}
.asma-root .asma-nudge strong { font-weight: 700; color: var(--asma-primary); }
.asma-root .asma-nudge--show { opacity: 1; transform: none; }

/* Page dimmer behind the chat: phones only */
.asma-root .asma-backdrop { display: none; }
.asma-root .asma-handle { display: none; }

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

/* ---------- Panel ---------- */
.asma-root .asma-panel {
  position: fixed;
  right: 24px;
  top: calc(var(--asma-top, 16px) + 64px); /* drops down from the button */
  bottom: auto;
  z-index: 99991;
  display: flex;
  flex-direction: column;
  width: var(--asma-w, 560px);
  max-width: calc(100vw - 32px);
  height: 680px;
  max-height: calc(100vh - var(--asma-top, 16px) - 84px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  color: var(--asma-text);
  font-family: var(--asma-font);
  font-size: 14.5px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 30px 70px -20px rgba(30, 28, 26, .45), 0 10px 24px -12px rgba(30, 28, 26, .25), 0 0 0 1px rgba(30, 28, 26, .06);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px) scale(.985);
  transform-origin: top right;
  transition: opacity .22s ease, transform .28s var(--asma-ease), visibility 0s linear .28s;
}
.asma-root.asma-is-open .asma-panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .22s ease, transform .28s var(--asma-ease), visibility 0s;
}

/* Header */
.asma-root .asma-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(191, 144, 0, .14) 0%, rgba(191, 144, 0, 0) 46%),
    radial-gradient(90% 140% at 0% 100%, rgba(128, 0, 0, .45) 0%, rgba(128, 0, 0, 0) 62%),
    var(--asma-header);
  color: #fff;
}
.asma-root .asma-header--nologo { padding-top: 16px; padding-bottom: 16px; }
.asma-root .asma-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--asma-grad);
  opacity: .9;
}
.asma-root .asma-htop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
}
.asma-root .asma-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.asma-root .asma-logo {
  display: block;
  height: 34px; /* the signature logo needs more height than a wordmark to read */
  width: auto;
  max-width: 200px;
  flex: none;
}
.asma-root .asma-titles { min-width: 0; padding-right: 8px; }
.asma-root .asma-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: #fff;
}
.asma-root .asma-title-spark { color: var(--asma-teal); }
.asma-root .asma-title-spark svg { width: 17px; height: 17px; }
.asma-root .asma-subtitle {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--asma-lavender);
}
.asma-root .asma-hactions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: none;
}
.asma-root .asma-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(--asma-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;
}
.asma-root .asma-hbtn:hover,
.asma-root .asma-hbtn:focus-visible {
  background-color: rgba(255, 255, 255, .1);
  color: #fff;
}
.asma-root .asma-newchat {
  height: 30px;
  padding: 0 11px 0 9px;
  margin-right: 4px;
  border: 1px solid rgba(230, 215, 181, .3);
  border-radius: 999px;
}
.asma-root .asma-newchat:hover { border-color: rgba(255, 255, 255, .5); }

/* Scroll area */
.asma-root .asma-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(247, 244, 239, .9) 0%, rgba(255, 255, 255, 0) 70%),
    #fff;
  scrollbar-width: thin;
  scrollbar-color: #DDD3C2 transparent;
}
.asma-root .asma-scroll::-webkit-scrollbar { width: 8px; }
.asma-root .asma-scroll::-webkit-scrollbar-thumb { background: #DDD3C2; border-radius: 8px; border: 2px solid #fff; }
.asma-root .asma-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 18px 18px;
  outline: none;
}

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

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

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

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

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

/* CTA row and buttons */
.asma-root .asma-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.asma-root .asma-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(--asma-ease), box-shadow .2s ease, border-color .15s ease, color .15s ease, transform .15s var(--asma-ease);
}
.asma-root .asma-btn--primary,
.asma-root .asma-btn--primary:focus,
.asma-root button.asma-btn--primary:hover {
  background: var(--asma-grad);
  background-size: 100% 100%;
  background-position: 0% 50%;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(128, 0, 0, .8);
}
.asma-root .asma-btn--primary:hover,
.asma-root button.asma-btn--primary:hover {
  color: #fff;
  filter: saturate(1.12) brightness(1.03);
  box-shadow: 0 10px 22px -10px rgba(128, 0, 0, .9);
}
.asma-root .asma-btn--primary[disabled] { opacity: .7; cursor: progress; }
.asma-root .asma-btn--ghost {
  border: 1px solid #DDD3C2;
  background: #fff;
  color: var(--asma-primary);
}
.asma-root .asma-btn--ghost:hover,
.asma-root .asma-btn--ghost:focus-visible {
  border-color: var(--asma-primary);
  background: #fff;
  color: var(--asma-primary);
}
.asma-root .asma-btn--text {
  height: 40px;
  padding: 0 12px;
  color: var(--asma-muted);
  font-weight: 500;
}
.asma-root .asma-btn--text:hover { color: var(--asma-navy); }

/* Suggestions */
.asma-root .asma-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
  animation: asma-in .3s var(--asma-ease) .08s both;
}
.asma-root .asma-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid #E0D7C8;
  border-radius: 999px;
  background: #fff;
  color: var(--asma-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;
}
.asma-root .asma-chip:hover,
.asma-root .asma-chip:focus-visible {
  border-color: var(--asma-teal);
  background-color: #FBF6EA;
  color: var(--asma-navy);
}

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

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

/* ---------- Footer / composer ---------- */
.asma-root .asma-footer {
  flex: none;
  padding: 12px 14px 10px;
  border-top: 1px solid var(--asma-line);
  background: #fff;
}
.asma-root .asma-composer { position: relative; }
.asma-root .asma-inputwrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border: 1px solid #DDD5C7;
  border-radius: 16px;
  background: #FDFCFA;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.asma-root .asma-inputwrap:focus-within {
  border-color: var(--asma-teal);
  background: #fff;
  box-shadow: var(--asma-ring);
}
.asma-root .asma-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(--asma-ink);
  font-size: 14.5px;
  line-height: 22px;
  resize: none;
  overflow-y: hidden;
  box-sizing: content-box;
}
.asma-root .asma-input:focus,
.asma-root .asma-input:focus-visible { outline: 0; border: 0; box-shadow: none; background: transparent; }
.asma-root .asma-input::placeholder { color: #8E8981; opacity: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asma-root .asma-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--asma-grad);
  color: #fff;
  box-shadow: 0 6px 14px -8px rgba(128, 0, 0, .9);
  transition: opacity .15s ease, transform .15s var(--asma-ease), filter .15s ease;
}
.asma-root .asma-send:hover,
.asma-root .asma-send:focus { background: var(--asma-grad); color: #fff; }
.asma-root .asma-send:hover:not([disabled]) { transform: translateY(-1px); filter: saturate(1.15); }
.asma-root .asma-send[disabled] {
  background: #EAE5DC;
  color: #A8A196;
  box-shadow: none;
  cursor: default;
}
.asma-root .asma-busy .asma-send[disabled] { cursor: progress; }
.asma-root .asma-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(--asma-muted);
  font-variant-numeric: tabular-nums;
}
.asma-root .asma-counter--show { display: block; }
.asma-root .asma-counter--max { color: #B4324A; }
.asma-root .asma-note {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--asma-muted);
  text-align: center;
}
.asma-root .asma-note .asma-link { font-weight: 500; color: var(--asma-primary); }
.asma-root .asma-notebtn { all: unset; cursor: pointer; font: inherit; font-weight: 600; color: var(--asma-primary); text-decoration: underline; text-underline-offset: 2px; }
.asma-root .asma-notebtn:hover { color: var(--asma-navy, #262422); }
.asma-root .asma-notebtn:focus-visible { outline: 2px solid #B08400; outline-offset: 2px; border-radius: 3px; }

/* ---------- Bigger chat (desktop): Expand in the header ---------- */
.asma-root .asma-expand { display: inline-flex; }
.asma-root .asma-expand-off { display: none; }
.asma-root.asma-expanded .asma-expand-on { display: none; }
.asma-root.asma-expanded .asma-expand-off { display: inline-flex; }
@media (min-width: 600px) {
  .asma-root.asma-expanded .asma-panel {
    width: min(980px, calc(100vw - 32px));
    height: calc(100vh - var(--asma-top, 16px) - 80px);
    max-height: none;
  }
}

/* ---------- Page cards with their photograph ---------- */
.asma-root .asma-card--photo { align-items: stretch; padding: 8px 12px 8px 8px; gap: 14px; }
.asma-root .asma-card-photo {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 96px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--asma-tint);
}
.asma-root .asma-card-photo img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: transform .35s var(--asma-ease); }
.asma-root .asma-card:hover .asma-card-photo img { transform: scale(1.05); }
.asma-root .asma-card-count {
  position: absolute; left: 6px; bottom: 6px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(30, 28, 26, .72); color: #fff;
  font-size: 11.5px; font-weight: 600; line-height: 1;
}
.asma-root .asma-card-count .asma-icon svg { width: 12px; height: 12px; }
.asma-root .asma-card--photo .asma-card-text { justify-content: center; gap: 3px; }
.asma-root .asma-card-open {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--asma-primary);
}
.asma-root .asma-card-open .asma-icon svg { width: 14px; height: 14px; transition: transform .15s var(--asma-ease); }
.asma-root .asma-card:hover .asma-card-open .asma-icon svg { transform: translateX(2px); }
.asma-root.asma-expanded .asma-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); width: 100%; }

/* ---------- Views over the conversation: photographs and details, the enquiry form ---------- */
.asma-root .asma-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  background: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .25s var(--asma-ease);
}
.asma-root .asma-layer--in { opacity: 1; transform: none; }
.asma-root .asma-layer[hidden] { display: none; }
.asma-root .asma-lbar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--asma-line);
  background: #fff;
}
.asma-root .asma-lbtn {
  flex: none;
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 10px;
  border: 1px solid var(--asma-line); border-radius: 999px;
  background: #fff; color: var(--asma-ink);
  font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer;
}
.asma-root .asma-lbtn:hover, .asma-root .asma-lbtn:focus { background: var(--asma-tint); color: var(--asma-ink); border-color: #D9CFBE; }
.asma-root .asma-lbtn:focus-visible { outline: 2px solid var(--asma-teal); outline-offset: 2px; }
.asma-root .asma-lbar-title {
  flex: 1 1 auto; min-width: 0; margin: 0;
  font-size: 14.5px; font-weight: 600; color: var(--asma-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.asma-root .asma-gal-count { flex: none; font-size: 13px; color: var(--asma-muted); font-variant-numeric: tabular-nums; }
.asma-root .asma-gal-count:empty { display: none; }

.asma-root .asma-view-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.asma-root .asma-view-stage[hidden] { display: none; }
.asma-root .asma-gal-stage { position: relative; background: #1F1D1B; }
.asma-root .asma-gal-track {
  display: flex;
  margin: 0; padding: 0; list-style: none;
  height: clamp(220px, 36vh, 340px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.asma-root.asma-expanded .asma-gal-track { height: clamp(320px, 58vh, 640px); }
/* Expanded: photographs on the left, the details beside them. */
@media (min-width: 600px) {
  .asma-root.asma-expanded .asma-view-scroll { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); overflow: hidden; }
  .asma-root.asma-expanded .asma-view-stage { height: 100%; min-height: 0; background: #1F1D1B; }
  .asma-root.asma-expanded .asma-view-stage .asma-gal-stage, .asma-root.asma-expanded .asma-view-stage .asma-gal-track { height: 100%; }
  .asma-root.asma-expanded .asma-view-details { overflow-y: auto; padding: 24px 26px; }
  .asma-root.asma-expanded .asma-view-stage[hidden] + .asma-view-details { grid-column: 1 / -1; }
}
.asma-root .asma-gal-track::-webkit-scrollbar { display: none; }
.asma-root .asma-gal-track:focus-visible { outline: 2px solid var(--asma-teal); outline-offset: -2px; }
.asma-root .asma-gal-slide { flex: 0 0 100%; margin: 0; padding: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; }
.asma-root .asma-gal-slide img { width: 100%; height: 100%; max-width: none; object-fit: contain; display: block; }
.asma-root .asma-gal-nav {
  position: absolute; top: 50%; margin-top: -22px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; padding: 0;
  background: rgba(255, 255, 255, .92); color: var(--asma-ink);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6);
  cursor: pointer; transition: opacity .15s ease;
}
.asma-root .asma-gal-nav:hover, .asma-root .asma-gal-nav:focus { background: #fff; color: var(--asma-primary); }
.asma-root .asma-gal-nav[disabled] { opacity: 0; pointer-events: none; }
.asma-root .asma-gal-prev { left: 12px; }
.asma-root .asma-gal-next { right: 12px; }
.asma-root .asma-gal-stage--one .asma-gal-nav { display: none; }

.asma-root .asma-view-details { padding: 18px 20px 20px; }
.asma-root .asma-view-title { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.3; color: var(--asma-navy); }
.asma-root .asma-view-why { margin: 0 0 6px; color: var(--asma-text); }
.asma-root .asma-view-label { margin: 16px 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--asma-muted); }
.asma-root .asma-view-list { margin: 0; padding: 0; list-style: none; }
.asma-root .asma-view-list li { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--asma-line); font-variant-numeric: tabular-nums; }
.asma-root .asma-view-list li:last-child { border-bottom: 0; }
.asma-root .asma-view-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.asma-root .asma-view-chip { padding: 5px 12px; border-radius: 999px; background: var(--asma-tint); color: var(--asma-ink); font-size: 13.5px; font-weight: 500; }
.asma-root .asma-view-summary { margin: 10px 0 0; color: var(--asma-text); }

.asma-root .asma-view-foot {
  flex: none;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--asma-line);
  background: #fff;
}
.asma-root .asma-bookbar { display: flex; gap: 8px; }
.asma-root .asma-bookbar .asma-btn { height: 48px; font-size: 15px; }
.asma-root .asma-bookbar-main { flex: 1 1 auto; }
.asma-root .asma-bookbar-icon { flex: 0 0 48px; width: 48px; padding: 0; }
.asma-root .asma-bookbar .asma-icon svg { width: 20px; height: 20px; }
.asma-root .asma-view-more { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.asma-root .asma-view-ask { height: 40px; font-size: 14px; }
.asma-root .asma-view-ask .asma-icon svg { width: 16px; height: 16px; }
.asma-root .asma-view-leave {
  all: unset; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--asma-muted); text-decoration: underline; text-underline-offset: 3px;
}
.asma-root .asma-view-leave:hover { color: var(--asma-ink); }
.asma-root .asma-view-leave:focus-visible { outline: 2px solid var(--asma-teal); outline-offset: 2px; border-radius: 3px; }
.asma-root .asma-view-leave .asma-icon svg { width: 14px; height: 14px; }

.asma-root .asma-formbody { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.asma-root .asma-formbody .asmf-form { border: 0; border-radius: 0; overflow: visible; }
.asma-root .asma-formbody .asmf-head { padding: 22px 20px 0; }
.asma-root .asma-formbody .asmf-body { padding-left: 20px; padding-right: 20px; }
.asma-root .asma-formbody .asmf-foot { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--asma-line); padding: 14px 20px 16px; }
.asma-root .asma-formbody .asmf-done { border: 0; }
.asma-root .asma-lloading, .asma-root .asma-lfail { margin: 0; padding: 28px 20px; color: var(--asma-muted); }

/* ---------- Mobile ---------- */
/* The button sits in the empty right-hand corner of the site header and keeps its label.
   The chat opens as a sheet that stops below the header, so the page stays visible (dimmed)
   behind it. Close with the same button, a tap on the dimmed page, or a pull down on the sheet. */
@media (max-width: 599.98px) {
  .asma-root .asma-launcher {
    right: 12px;
    top: max(10px, env(safe-area-inset-top, 0px));
    height: 44px;
    padding: 0 16px 0 12px;
    gap: 7px;
  }
  .asma-root .asma-launcher-label { font-size: 14px; }
  .asma-root .asma-launcher-spark svg { width: 18px; height: 18px; }
  .asma-root.asma-is-open .asma-launcher { padding: 0 16px 0 12px; }
  .asma-root .asma-nudge { right: 12px; top: calc(max(10px, env(safe-area-inset-top, 0px)) + 54px); max-width: calc(100vw - 24px); }

  .asma-root .asma-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99989;
    background: rgba(24, 22, 20, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility 0s linear .25s;
  }
  .asma-root.asma-is-open .asma-backdrop { opacity: 1; visibility: visible; transition: opacity .25s ease, visibility 0s; }

  .asma-root .asma-panel {
    top: var(--asma-sheet-top, max(84px, 12vh)); /* leaves the top of the page in view, dimmed, so it is clear the page is still there */
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -20px 50px -16px rgba(0, 0, 0, .45);
    transform: translateY(40px);
    transform-origin: bottom center;
  }
  .asma-root .asma-panel.asma-dragging { transition: none; }
  .asma-root .asma-handle {
    display: block;
    position: absolute;
    top: 7px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .45);
  }
  .asma-root .asma-header {
    gap: 8px;
    padding: 18px 12px 14px 16px;
    touch-action: none;
  }
  .asma-root .asma-close { display: none; } /* the Close button at the top does this job */
  .asma-root .asma-newchat { height: 32px; }
  .asma-root .asma-log { padding: 18px 14px 16px; }
  .asma-root .asma-footer { padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .asma-root .asma-input { font-size: 16px; }
  .asma-root .asma-field-input { font-size: 17px; min-height: 54px; }
  .asma-root .asma-field--half { flex-basis: 100%; }
  .asma-root .asma-cards { width: 100%; }
  .asma-root .asma-bubble { max-width: 94%; }
}
@media (max-width: 599.98px) {
  .asma-root .asma-expand { display: none; }
  /* Views fill the phone screen. */
  .asma-root .asma-layer { position: fixed; inset: 0; z-index: 100000; height: 100vh; height: 100dvh; font-size: 16px; }
  .asma-root.asma-has-layer .asma-launcher, .asma-root.asma-has-layer .asma-nudge { visibility: hidden; }
  .asma-root .asma-lbar { padding-top: max(10px, env(safe-area-inset-top, 0px)); }
  .asma-root .asma-lbtn { height: 44px; font-size: 15px; }
  .asma-root .asma-gal-track { height: min(46vh, 420px); }
  .asma-root .asma-gal-nav { width: 40px; height: 40px; margin-top: -20px; }
  .asma-root .asma-view-details { font-size: 17px; }
  .asma-root .asma-view-title { font-size: 20px; }
  .asma-root .asma-view-chip { font-size: 15px; }
  .asma-root .asma-view-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .asma-root .asma-bookbar .asma-btn { height: 54px; font-size: 16px; }
  .asma-root .asma-bookbar-icon { flex-basis: 54px; width: 54px; }
  .asma-root .asma-view-ask { height: 44px; font-size: 15px; }
  .asma-root .asma-card-photo { flex-basis: 88px; width: 88px; height: 88px; }
  .asma-root .asma-formbody .asmf-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 380px) {
  .asma-root .asma-field--half { flex-basis: 100%; }
  .asma-root .asma-logo { max-width: 150px; }
}
/* The chat carries its own WhatsApp link, so the site's floating WhatsApp button
   (Click to Chat) steps aside while the panel is open instead of sitting on top of it. */
html.asma-open #ht-ctc-chat,
html.asma-open .ht-ctc-chat { visibility: hidden !important; }

/* Page cards with a sculpture thumbnail */
.asma-root .asma-card--img { padding-left: 8px; }
.asma-root .asma-card-img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--asma-tint);
}

html.asma-lock,
html.asma-lock body {
  overflow: hidden !important;
}

/* Short desktop viewports */
@media (min-width: 600px) and (max-height: 520px) {
  .asma-root .asma-panel { max-height: calc(100vh - var(--asma-top, 16px) - 76px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .asma-root *,
  .asma-root *::before,
  .asma-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;
  }
  .asma-root .asma-launcher { opacity: 1; transform: none; }
  .asma-root .asma-launcher-spark { animation: none !important; }
}

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