#vh-advisor-root {
  --vha-navy: #0e233c;
  --vha-gold: #caa358;
  --vha-ink: #132743;
  --vha-accent: #805c20;
  --vha-mute: #665f55;
  --vha-ivory: #f5f0e7;
  --vha-line: #e4d8c4;
  --vha-font: 'Satoshi', 'Inter', Arial, sans-serif;
  color: var(--vha-ink);
  font: 500 15px/1.45 var(--vha-font);
  text-align: left;
}
#vh-advisor-root *, #vh-advisor-root *::before, #vh-advisor-root *::after { box-sizing: border-box; }
#vh-advisor-root [hidden] { display: none !important; }
#vh-advisor-root :is(p,h2,h3,h4) { margin: 0; letter-spacing: normal; }
#vh-advisor-root :is(button,input,textarea,a,summary) { font: inherit; letter-spacing: normal; text-transform: none; }
#vh-advisor-root button { cursor: pointer; appearance: none; margin: 0; }
#vh-advisor-root :is(input,textarea) { min-width: 0; appearance: none; color: var(--vha-ink); box-shadow: none; }
#vh-advisor-root :is(input,textarea)::placeholder { color: #726c64; opacity: 1; }
#vh-advisor-root a { color: var(--vha-ink); }
#vh-advisor-root :is(button,a,summary,input,textarea):focus-visible { outline: 3px solid #4876a8; outline-offset: 2px; }
#vh-advisor-root .vha-icon { flex: none; line-height: 1; }
#vh-advisor-root .vha-dock {
  position: fixed; z-index: 30;
  right: max(20px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
  pointer-events: none;
}
#vh-advisor-root :is(.vha-launch-chat,.vha-launch-help) {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 43px; border: 0; border-radius: 100px; padding: 9px 19px;
  font: 700 15px/1.2 var(--vha-font); box-shadow: 0 5px 20px #19232c29; pointer-events: auto;
}
#vh-advisor-root .vha-launch-chat { background: var(--vha-gold); color: #31250f; }
#vh-advisor-root .vha-launch-chat .vha-icon { font-size: 19px; }
#vh-advisor-root .vha-launch-help { background: var(--vha-navy); color: white; padding-left: 11px; }
#vh-advisor-root .vha-launch-help .vha-icon {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: white; color: var(--vha-navy); font-weight: 700;
}
#vh-advisor-root .vha-dialog {
  --vha-margin: 18px;
  z-index: 100;
  position: fixed; inset: auto max(var(--vha-margin), env(safe-area-inset-right))
    calc(var(--vha-margin) + env(safe-area-inset-bottom) + var(--vha-keyboard, 0px)) auto;
  width: min(382px, calc(100vw - 2 * var(--vha-margin)));
  height: min(560px, calc(100vh - 2 * var(--vha-margin)));
  height: min(560px, calc(var(--vha-visual-height, 100dvh) - 2 * var(--vha-margin) - env(safe-area-inset-bottom)));
  max-width: none; max-height: none; min-height: 0; margin: 0; padding: 0;
  overflow: hidden; border: 1px solid var(--vha-line); border-radius: 18px;
  background: var(--vha-ivory); color: var(--vha-ink);
  box-shadow: 0 18px 70px #10243e2e; font: 500 15px/1.45 var(--vha-font);
}
#vh-advisor-root .vha-dialog[open] { display: flex; flex-direction: column; }
#vh-advisor-root .vha-head {
  flex: none; display: flex; align-items: center; gap: 12px;
  padding: 17px 18px; background: var(--vha-navy); color: #fff;
}
#vh-advisor-root .vha-avatar, #vh-advisor-root .vha-small-star {
  display: grid; place-items: center; flex: none; border-radius: 50%;
  background: var(--vha-gold); color: white;
}
#vh-advisor-root .vha-avatar { width: 43px; height: 43px; font-size: 23px; }
#vh-advisor-root .vha-identity { flex: 1; min-width: 0; }
#vh-advisor-root .vha-title { font: 700 19px/1.2 var(--vha-font); color: white; }
#vh-advisor-root .vha-status { display: flex; align-items: center; gap: 6px; margin-top: 4px; font: 500 12px/1.3 var(--vha-font); color: #e7e9e4; }
#vh-advisor-root .vha-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #80d65e; flex: none; }
#vh-advisor-root .vha-close {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0 0 2px;
  border: 0; border-radius: 50%; background: #30425a; color: white; font: 400 27px/1 Arial, sans-serif;
}
#vh-advisor-root .vha-tabs { display: grid; grid-template-columns: 1fr 1fr; flex: none; background: white; border-bottom: 1px solid var(--vha-line); }
#vh-advisor-root .vha-tab {
  display: flex; align-items: center; justify-content: center; gap: 5px; padding: 12px 6px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: transparent; color: #70675b; font: 700 14px/1.3 var(--vha-font);
}
#vh-advisor-root .vha-tab[aria-selected='true'] { border-bottom-color: var(--vha-gold); color: var(--vha-accent); }
#vh-advisor-root .vha-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
#vh-advisor-root .vha-thread { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#vh-advisor-root .vha-messages { display: grid; align-content: start; gap: 12px; padding: 19px 15px 15px; }
#vh-advisor-root .vha-row, #vh-advisor-root .vha-row-user { display: flex; align-items: flex-end; min-width: 0; gap: 8px; }
#vh-advisor-root .vha-row-user { justify-content: flex-end; }
#vh-advisor-root .vha-small-star { width: 26px; height: 26px; font-size: 15px; }
#vh-advisor-root .vha-bubble {
  min-width: 0; max-width: 92%; padding: 13px 15px; border: 1px solid var(--vha-line);
  border-radius: 16px 16px 16px 4px; background: white; color: #504d46;
  font: 500 15px/1.5 var(--vha-font); overflow-wrap: anywhere;
}
#vh-advisor-root .vha-bubble strong { color: var(--vha-navy); }
#vh-advisor-root .vha-bubble > p { white-space: pre-line; }
#vh-advisor-root .vha-row-user .vha-bubble { border-radius: 16px 16px 4px 16px; border-color: var(--vha-navy); background: var(--vha-navy); color: white; }
#vh-advisor-root .vha-typing-row .vha-bubble {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px;
  color: var(--vha-mute); font-size: 13px;
}
#vh-advisor-root .vha-typing-dots { display: inline-flex; align-items: center; gap: 3px; }
#vh-advisor-root .vha-typing-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--vha-accent);
}
@media (prefers-reduced-motion: no-preference) {
  #vh-advisor-root .vha-typing-dot { animation: vha-typing-pulse 1.2s ease-in-out infinite; }
  #vh-advisor-root .vha-typing-dot:nth-child(2) { animation-delay: 150ms; }
  #vh-advisor-root .vha-typing-dot:nth-child(3) { animation-delay: 300ms; }
}
@keyframes vha-typing-pulse {
  0%, 60%, 100% { opacity: .5; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}
#vh-advisor-root .vha-chips {
  display: flex; flex-wrap: wrap; gap: 7px 6px; padding: 13px 13px 17px;
  border-top: 1px solid var(--vha-line);
}
#vh-advisor-root .vha-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 35px;
  padding: 6px 11px; border: 1px solid var(--vha-line); border-radius: 99px;
  background: #fff; color: var(--vha-ink); font: 500 13px/1.3 var(--vha-font);
}
#vh-advisor-root .vha-more { margin: 0 15px 14px; padding: 5px 10px; border: 1px solid var(--vha-line); border-radius: 20px; color: var(--vha-accent); background: white; font-size: 13px; }
#vh-advisor-root .vha-composer { flex: none; padding: 12px 14px 9px; border-top: 1px solid var(--vha-line); background: #fff; }
#vh-advisor-root .vha-entry { display: flex; gap: 8px; align-items: center; margin: 0; }
#vh-advisor-root .vha-entry .vha-input {
  flex: 1; width: 100%; height: 45px; border: 1.5px solid #b48a3f; border-radius: 24px;
  margin: 0; padding: 10px 15px; background: var(--vha-ivory); font-size: 16px; line-height: 22px; resize: none;
}
#vh-advisor-root .vha-send { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--vha-gold); color: #38290f; font: 500 22px/1 var(--vha-font); }
#vh-advisor-root .vha-send:disabled { opacity: .55; cursor: wait; }
#vh-advisor-root .vha-privacy-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 6px; color: var(--vha-mute); font-size: 11px; }
#vh-advisor-root .vha-text-btn, #vh-advisor-root .vha-back { padding: 2px 0; border: 0; background: transparent; color: var(--vha-accent); text-decoration: underline; text-underline-offset: 2px; }
#vh-advisor-root .vha-feedback { font-size: 12px; color: var(--vha-mute); }
#vh-advisor-root .vha-feedback:not(:empty) { margin-bottom: 6px; }
#vh-advisor-root .vha-help, #vh-advisor-root .vha-privacy { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#vh-advisor-root .vha-help-top { padding: 20px 19px 19px; background: var(--vha-navy); color: #fff; }
#vh-advisor-root .vha-salute { font-size: 14px; color: #eee9dc; }
#vh-advisor-root .vha-help-title { margin: 2px 0 11px; color: #fff; font: 400 29px/1.22 'Mackinac', Georgia, serif; }
#vh-advisor-root .vha-help-top .vha-input { width: 100%; height: 43px; padding: 0 16px; border: 0; border-radius: 24px; background: #fff; font-size: 16px; }
#vh-advisor-root .vha-help-body { padding: 15px; }
#vh-advisor-root .vha-cards { display: grid; gap: 8px; }
#vh-advisor-root .vha-card {
  display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 6px 11px; align-items: center;
  padding: 13px; border: 1px solid var(--vha-line); border-radius: 13px; background: white; text-decoration: none;
}
#vh-advisor-root .vha-card > .vha-icon { min-width: 20px; font-size: 19px; text-align: center; }
#vh-advisor-root .vha-card-copy { display: grid; gap: 2px; }
#vh-advisor-root .vha-card-copy strong { font-size: 15px; line-height: 1.25; }
#vh-advisor-root .vha-card-copy > span, #vh-advisor-root .vha-mail-hint { color: var(--vha-mute); font-size: 13px; }
#vh-advisor-root .vha-arrow { color: var(--vha-accent); font-size: 21px; }
#vh-advisor-root .vha-track { display: flex; gap: 7px; grid-column: 1/-1; margin: 5px 0 0; }
#vh-advisor-root .vha-track .vha-input { flex: 1; width: 100%; height: 39px; padding: 0 9px; border: 1px solid var(--vha-line); border-radius: 7px; background: #fff; font-size: 16px; }
#vh-advisor-root .vha-track-btn { min-height: 39px; border: 0; border-radius: 6px; padding: 7px 11px; color: #32250d; background: var(--vha-gold); font: 700 13px/1.2 var(--vha-font); }
#vh-advisor-root .vha-mail-hint { grid-column: 1/-1; font-size: 11px; }
#vh-advisor-root .vha-section-label { margin: 22px 0 9px; color: #71634f; font: 700 11px/1.35 var(--vha-font); letter-spacing: .13em; text-transform: uppercase; }
#vh-advisor-root .vha-faq { border: 1px solid var(--vha-line); border-radius: 12px; background: white; }
#vh-advisor-root .vha-question { margin: 0; }
#vh-advisor-root .vha-question + .vha-question { border-top: 1px solid var(--vha-line); }
#vh-advisor-root .vha-question > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 13px; cursor: pointer; list-style: none; color: var(--vha-ink); line-height: 1.35; }
#vh-advisor-root .vha-question > summary::-webkit-details-marker { display: none; }
#vh-advisor-root .vha-question > summary::after { content: '+'; flex: none; color: var(--vha-accent); font-size: 18px; font-weight: 700; }
#vh-advisor-root .vha-question[open] > summary::after { content: '−'; }
#vh-advisor-root .vha-answer { padding: 0 13px 14px; font-size: 14px; color: #514d44; }
#vh-advisor-root .vha-answer a { display: inline-block; margin-top: 5px; }
#vh-advisor-root .vha-contact { margin: 17px 0 3px; font-size: 12px; text-align: center; color: var(--vha-mute); }
#vh-advisor-root :is(.vha-link,.vha-reply-link) { text-decoration: underline; text-underline-offset: 2px; }
#vh-advisor-root .vha-product { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 7px; border: 1px solid var(--vha-line); border-radius: 9px; background: #faf7f0; text-decoration: none; }
#vh-advisor-root .vha-product img { width: 42px; height: 46px; flex: none; margin: 0; object-fit: cover; border-radius: 5px; }
#vh-advisor-root .vha-product-copy { display: grid; gap: 2px; flex: 1; min-width: 0; color: var(--vha-mute); font: 500 12px/1.35 var(--vha-font); }
#vh-advisor-root .vha-reply-link, #vh-advisor-root .vha-source { display: block; margin-top: 6px; font-size: 13px; }
#vh-advisor-root .vha-source { margin: 0 0 4px; color: var(--vha-accent); font-size: 11px; }
#vh-advisor-root .vha-privacy { padding: 20px; }
#vh-advisor-root .vha-privacy p { margin: 12px 0; }
#vh-advisor-root .vha-subhead { margin-top: 18px; font: 700 21px/1.3 var(--vha-font); }
#vh-advisor-root .vha-empty { padding: 10px 2px; }
@media (hover: hover) {
  #vh-advisor-root :is(.vha-launch-chat,.vha-launch-help,.vha-close,.vha-send,.vha-track-btn):hover { filter: brightness(.94); }
  #vh-advisor-root :is(.vha-chip,.vha-product,a.vha-card):hover { border-color: var(--vha-gold); background-color: #fffaf0; }
}
@media (max-width: 760px) {
  #vh-advisor-root .vha-dialog {
    height: min(560px, calc(var(--vha-visual-height, 100dvh) - var(--vha-margin) - clamp(54px, 14dvh, 100px) - env(safe-area-inset-bottom)));
  }
  #vh-advisor-root .vha-dock { right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); gap: 5px; }
  #vh-advisor-root :is(.vha-launch-chat,.vha-launch-help) { min-height: 37px; padding: 7px 13px; font-size: 13px; }
  #vh-advisor-root .vha-launch-help .vha-icon { width: 20px; height: 20px; }
  body:has([data-product-sticky-cart]:not([hidden])) #vh-advisor-root .vha-dock { bottom: calc(82px + env(safe-area-inset-bottom)); }
  body:has(.main-nav.is-open, .mini-cart-panel:not([hidden]), .wishlist-toast:not([hidden]), .vh-room-test-modal:not([hidden])) #vh-advisor-root .vha-dock { visibility: hidden; }
}
@media (max-width: 480px) {
  #vh-advisor-root .vha-dialog { --vha-margin: 8px; width: calc(100vw - 16px); border-radius: 16px; }
  #vh-advisor-root .vha-head { padding: 13px 15px; }
}
@media (max-height: 480px) {
  #vh-advisor-root .vha-dialog { --vha-margin: 4px; }
  #vh-advisor-root .vha-head { padding: 5px 12px; }
  #vh-advisor-root .vha-avatar { height: 32px; width: 32px; }
  #vh-advisor-root .vha-status { margin-top: 0; }
  #vh-advisor-root .vha-tab { padding: 6px; }
  #vh-advisor-root .vha-composer { padding: 6px 11px; }
}

@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  #vh-advisor-root .vha-dialog[data-writing] {
    --vha-top-inset: max(0px, calc(env(safe-area-inset-top) - var(--vha-visual-top, 0px)));
    top: calc(var(--vha-visual-top, 0px) + var(--vha-top-inset));
    bottom: auto;
    height: calc(var(--vha-visual-height, 100dvh) - var(--vha-top-inset));
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
  }
  #vh-advisor-root .vha-dialog[data-writing] .vha-head { padding: 4px 12px; gap: 8px; }
  #vh-advisor-root .vha-dialog[data-writing] .vha-avatar { width: 28px; height: 28px; font-size: 16px; }
  #vh-advisor-root .vha-dialog[data-writing] .vha-title { font-size: 16px; }
  #vh-advisor-root .vha-dialog[data-writing] .vha-tab { padding: 6px; }
  #vh-advisor-root .vha-dialog[data-writing] .vha-chat :is(.vha-chips,.vha-more) { display: none; }
  #vh-advisor-root .vha-dialog[data-writing] .vha-composer {
    display: flex; flex-direction: column; padding: 2px 10px 4px;
  }
  #vh-advisor-root .vha-dialog[data-writing] .vha-composer .vha-privacy-foot { order: -1; margin: 0 2px 2px; }
}
