/* Alexandra phase-2 visual shell. Scoped to avoid changing approved page CSS. */
.alx-root {
  --alx-ink: var(--zc-ink, #18231d);
  --alx-muted: var(--zc-muted, #617067);
  --alx-green: var(--zc-green-800, #20513a);
  --alx-green-dark: var(--zc-green-900, #163828);
  --alx-cream: var(--zc-cream, #f7f2e8);
  --alx-line: var(--zc-line, #dce3dc);
  --alx-gold: var(--zc-gold, #c49643);
  --alx-heading: var(--zc-heading, Georgia, "Times New Roman", serif);
  --alx-body: var(--zc-body, Inter, ui-sans-serif, system-ui, sans-serif);
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  color: var(--alx-ink);
  font: 400 14px/1.48 var(--alx-body);
  -webkit-font-smoothing: antialiased;
}
.alx-root *,
.alx-root *::before,
.alx-root *::after { box-sizing: border-box; }
.alx-root button,
.alx-root textarea { font: inherit; }
.alx-root button { cursor: pointer; }
.alx-root button:focus-visible,
.alx-root textarea:focus-visible {
  outline: 3px solid rgba(196,150,67,.55);
  outline-offset: 2px;
}
.alx-root img { display: block; max-width: 100%; }
.alx-root p,
.alx-root h3 { margin: 0; }

.alx-launcher {
  pointer-events: auto;
  position: absolute;
  right: 26px;
  bottom: 24px;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 2px solid var(--alx-gold);
  border-radius: 50%;
  background: var(--alx-cream);
  box-shadow: 0 16px 38px rgba(16,42,30,.22), 0 2px 8px rgba(16,42,30,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.alx-launcher:hover { transform: translateY(-3px); box-shadow: 0 22px 44px rgba(16,42,30,.24); }
.alx-launcher img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
}
.alx-launcher__status {
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 15px;
  height: 15px;
  border: 3px solid white;
  border-radius: 50%;
  background: #57a171;
}
.alx-launcher__caption {
  position: absolute;
  right: 107px;
  bottom: 40px;
  padding: 10px 14px;
  border: 1px solid #e9e3d7;
  border-radius: 999px;
  background: #fffdf9;
  box-shadow: 0 7px 24px rgba(16,42,30,.11);
  color: var(--alx-green-dark);
  font-weight: 750;
  font-size: 14px;
}
.alx-launcher__caption::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 15px;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  border-top: 1px solid #e9e3d7;
  border-right: 1px solid #e9e3d7;
  background: #fffdf9;
}
.alx-shade {
  pointer-events: auto;
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default !important;
}
.alx-panel {
  pointer-events: auto;
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  width: min(430px, calc(100vw - 36px));
  height: min(680px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid #e6e1d6;
  border-radius: 22px;
  background: #fcfbf7;
  box-shadow: 0 28px 80px rgba(16,42,30,.22), 0 8px 24px rgba(16,42,30,.09);
  animation: alx-rise .24s ease-out both;
}
@keyframes alx-rise { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.alx-header {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 12px 15px 12px 17px;
  border-bottom: 1px solid #e9e4da;
  background: linear-gradient(112deg, #f8f4ea 0%, #fffdf9 70%);
}
.alx-header__identity { display: flex; align-items: center; min-width: 0; gap: 12px; }
.alx-header__portrait {
  flex: none;
  width: 54px;
  height: 54px;
  padding: 3px;
  border: 1.5px solid var(--alx-gold);
  border-radius: 50%;
  background: white;
}
.alx-header__portrait img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 38%; }
.alx-header__names { display: grid; gap: 1px; min-width: 0; }
.alx-header__names strong { font: 500 24px/1.05 var(--alx-heading); letter-spacing: -.035em; color: var(--alx-green-dark); }
.alx-header__names span { color: var(--alx-muted); font-size: 11.5px; letter-spacing: .01em; white-space: nowrap; }
.alx-header__controls { display: flex; flex: none; gap: 3px; margin-left: 5px; }
.alx-icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #647468;
  font-size: 25px !important;
  font-weight: 300 !important;
  line-height: 1;
}
.alx-icon-button:hover { background: #eaece5; color: var(--alx-green-dark); }

.alx-conversation {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 18px 24px;
  scrollbar-width: thin;
  scrollbar-color: #d3dcd3 transparent;
}
.alx-conversation__date {
  margin: 0 auto 18px;
  color: #8a968e;
  font-size: 11px;
  letter-spacing: .04em;
  text-align: center;
}
.alx-message { display: flex; align-items: flex-end; gap: 7px; margin: 0 0 15px; }
.alx-message--user { justify-content: flex-end; }
.alx-message__avatar {
  flex: none;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 38%;
}
.alx-message__bubble {
  max-width: 87%;
  padding: 11px 14px;
  border: 1px solid #e9e8e0;
  border-radius: 17px 17px 17px 5px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(16,42,30,.025);
  color: #26352b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13.6px;
  line-height: 1.55;
}
.alx-message--user .alx-message__bubble {
  border-color: #dce9df;
  border-radius: 17px 17px 5px 17px;
  background: #eaf2eb;
  color: #1c3e2c;
}
.alx-message--typing { align-items: center; }
.alx-typing { display: flex; align-items: center; gap: 5px; height: 34px; padding: 0 14px; border: 1px solid #e9e8e0; border-radius: 16px 16px 16px 5px; background: white; }
.alx-typing i { width: 5px; height: 5px; border-radius: 50%; background: #8e9e91; animation: alx-pulse 1.15s infinite ease-in-out; }
.alx-typing i:nth-child(2) { animation-delay: .16s; }
.alx-typing i:nth-child(3) { animation-delay: .32s; }
@keyframes alx-pulse { 0%, 70%, 100% { transform: translateY(0); opacity: .5; } 35% { transform: translateY(-4px); opacity: 1; } }
.alx-system {
  width: fit-content;
  max-width: 95%;
  margin: 13px auto;
  padding: 8px 11px;
  border: 1px solid #ead9b8;
  border-radius: 10px;
  background: #fbf5e8;
  color: #5d513c;
  font-size: 11.5px;
  text-align: center;
}

.alx-product {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  margin: 6px 0 17px 31px;
  padding: 13px;
  border: 1px solid #e4dfd2;
  border-left: 3px solid var(--alx-gold);
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: 0 7px 23px rgba(16,42,30,.055);
}
.alx-product__image {
  display: grid;
  place-items: center;
  align-self: start;
  width: 100%;
  min-height: 126px;
  padding: 7px;
  border-radius: 10px;
  background: #f7f3ea;
}
.alx-product__image img { width: 100%; height: 116px; object-fit: contain; }
.alx-product__main { min-width: 0; }
.alx-product__eyebrow { margin: 2px 0 4px !important; color: #8a7446; font-size: 10px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.alx-product__title { margin: 0 0 4px !important; font: 500 19px/1.12 var(--alx-heading); letter-spacing: -.035em; color: var(--alx-green-dark); }
.alx-product__why { color: #59665c; font-size: 11.5px; line-height: 1.4; }
.alx-product__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; margin-top: 9px; }
.alx-product__price strong { font-size: 14px; color: var(--alx-green-dark); }
.alx-product__price span { color: #8b938b; font-size: 10px; }
.alx-product__actions { display: grid; gap: 3px; margin-top: 10px; }
.alx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750 !important;
  font-size: 11.5px !important;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}
.alx-btn--primary { background: var(--alx-green); color: white; }
.alx-btn--primary:hover { background: var(--alx-green-dark); }
.alx-btn--text { min-height: 26px; justify-content: flex-start; padding: 3px 0; background: transparent; color: var(--alx-green); }
.alx-btn--text:hover { text-decoration: underline; }
.alx-action {
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 0 10px;
  margin: 4px 0 17px 31px;
  padding: 14px 15px;
  border: 1px solid #e6decf;
  border-radius: 14px;
  background: #f8f3e9;
}
.alx-action__icon { grid-row: span 2; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #efe3c7; color: var(--alx-green-dark); font-size: 15px; }
.alx-action__copy strong { color: var(--alx-green-dark); font: 500 18px/1.1 var(--alx-heading); }
.alx-action__copy p { margin-top: 5px; color: #626b60; font-size: 11.5px; }
.alx-action .alx-btn { grid-column: 2; justify-self: start; margin-top: 11px; }

.alx-footer {
  flex: none;
  padding: 11px 15px 12px;
  border-top: 1px solid #e8e8df;
  background: white;
}
.alx-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 100px;
  margin: 0 0 10px;
  overflow-y: auto;
}
.alx-reply {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d4dfd4;
  border-radius: 999px;
  background: #f7faf6;
  color: var(--alx-green-dark);
  font-size: 11px !important;
  line-height: 1.2;
}
.alx-reply:hover { border-color: var(--alx-green); background: #edf4ed; }
.alx-composer {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  min-height: 50px;
  padding: 6px 6px 6px 14px;
  border: 1px solid #ccd9ce;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(16,42,30,.035);
}
.alx-composer:focus-within { border-color: var(--alx-green); box-shadow: 0 0 0 3px rgba(47,106,76,.1); }
.alx-composer__input {
  flex: 1;
  min-width: 0;
  min-height: 34px;
  max-height: 90px;
  padding: 8px 0 6px;
  resize: none;
  border: 0;
  outline: none !important;
  background: transparent;
  color: var(--alx-ink);
  font-size: 12px !important;
  line-height: 1.4;
}
.alx-composer__input::placeholder { color: #8b968d; }
.alx-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  margin-bottom: 0;
  border: 0;
  border-radius: 11px;
  background: var(--alx-green);
  color: white;
  font-size: 18px !important;
  transform: rotate(-35deg);
}
.alx-send:hover { background: var(--alx-green-dark); }
.alx-footer__line { margin-top: 7px; color: #929b92; font-size: 9.7px; text-align: center; }
.alx-minimized {
  pointer-events: auto;
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 242px;
  min-height: 62px;
  padding: 7px 12px 7px 7px;
  border: 1px solid #e5dfd1;
  border-radius: 999px;
  background: #fffdf9;
  box-shadow: 0 15px 36px rgba(16,42,30,.16);
  text-align: left;
}
.alx-minimized img { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; object-position: 50% 38%; }
.alx-minimized span { display: grid; gap: 1px; }
.alx-minimized strong { color: var(--alx-green-dark); font: 500 17px/1.1 var(--alx-heading); }
.alx-minimized small { color: var(--alx-muted); font-size: 10.5px; }
.alx-minimized b { margin-left: auto; color: var(--alx-green); font-size: 17px; }

.alx-keyboard { display: none; }
.alx-static-form-note { color: #617067; font-size: 14px; }

@media (max-width: 680px) {
  .alx-launcher { right: 17px; bottom: max(18px, env(safe-area-inset-bottom)); width: 62px; height: 62px; }
  .alx-launcher__caption { right: 91px; bottom: 31px; padding: 8px 12px; font-size: 12px; }
  .alx-minimized { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: 213px; min-height: 56px; }
  .alx-minimized img { width: 42px; height: 42px; }
  .alx-shade { background: rgba(16,42,30,.32); }
  .alx-panel {
    inset: max(8px, env(safe-area-inset-top)) 8px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    border-radius: 20px;
  }
  .alx-header { min-height: 77px; padding: 10px 12px; }
  .alx-header__portrait { width: 48px; height: 48px; }
  .alx-header__names strong { font-size: 22px; }
  .alx-header__names span { font-size: 10.5px; }
  .alx-header__identity { gap: 9px; }
  .alx-icon-button { width: 31px; height: 31px; }
  .alx-conversation { padding: 14px 11px 16px; }
  .alx-message__bubble { max-width: 88%; padding: 10px 12px; font-size: 13px; }
  .alx-product { margin-left: 0; grid-template-columns: 85px 1fr; padding: 10px; gap: 9px; }
  .alx-product__image { min-height: 100px; }
  .alx-product__image img { height: 95px; }
  .alx-product__title { font-size: 17px; }
  .alx-product__why { font-size: 10.5px; }
  .alx-action { margin-left: 0; }
  .alx-footer { padding: 9px 10px max(10px, env(safe-area-inset-bottom)); }
  .alx-replies { max-height: 103px; }
  .alx-reply { font-size: 10.5px !important; }
  .alx-root--keyboard .alx-panel { bottom: 248px; }
  .alx-keyboard {
    pointer-events: auto;
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 245px;
    padding: 9px 5px 13px;
    border-top: 1px solid #b9bfc4;
    background: #d9dde2;
    box-shadow: 0 -6px 20px rgba(0,0,0,.1);
  }
  .alx-keyboard__suggest { height: 27px; color: #57616b; font-size: 10px; text-align: center; }
  .alx-keyboard__row { display: flex; justify-content: center; gap: 4px; margin-bottom: 7px; }
  .alx-keyboard__row span {
    display: grid;
    place-items: center;
    flex: 1;
    max-width: 35px;
    height: 37px;
    border-radius: 5px;
    background: white;
    box-shadow: 0 1px 0 #adb4bb;
    color: #2c343b;
    font-size: 15px;
  }
  .alx-keyboard__row--bottom span { max-width: none; font-size: 11px; }
  .alx-keyboard__row--bottom span:nth-child(2) { flex: 4; }
}
@media (max-width: 340px) {
  .alx-header__names strong { font-size: 20px; }
  .alx-header__names span { font-size: 9.5px; }
  .alx-product { grid-template-columns: 68px 1fr; }
  .alx-product__image img { height: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  .alx-panel,
  .alx-launcher,
  .alx-typing i { animation: none !important; transition: none !important; }
}

/* Product preview: use in-page CTAs; retain the minimized conversation pill. */
.alx-root--closed {display:none}
body:has(.alx-root--open) .f-mobile-buy {display:none!important}
