#vg-chat-preview { --wine: #851534; --dark-wine: #461225; color: #242023; font: 400 14px/1.44 system-ui, sans-serif; }
  #vg-chat-preview * { box-sizing: border-box; }
  #vg-chat-preview [hidden] { display: none !important; }
  #vg-chat-preview button, #vg-chat-preview input { font: inherit; }
  #vg-chat-preview button { cursor: pointer; }
  #vg-chat-preview button:focus-visible, #vg-chat-preview input:focus-visible, #vg-chat-preview a:focus-visible { outline: 2px solid #d65679; outline-offset: 3px; }
  #vg-chat-preview .preview-modes { display: flex; gap: 8px; margin-bottom: 12px; }
  #vg-chat-preview .preview-modes button { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid light-dark(#ded5da,#52454c); color: light-dark(#332931,#f6edf2); background: light-dark(#fff,#2d2429); border-radius: 8px; }
  #vg-chat-preview .preview-modes button[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: #fff; }
  #vg-chat-preview .site-preview { display: grid; isolation: isolate; min-height: 525px; background: #f6f5f5; border-radius: 12px; overflow: clip; border: 1px solid #ddd4d9; }
  #vg-chat-preview .website, #vg-chat-preview .chat-dock { grid-area: 1 / 1; min-width: 0; }
  #vg-chat-preview .site-header { display: grid; grid-template-columns: minmax(125px, 208px) minmax(80px, 1fr) auto; gap: 20px; align-items: center; padding: 14px 21px; background: linear-gradient(110deg, #711430, var(--dark-wine)); color: #fff; }
  #vg-chat-preview .brand { width: 100%; display: block; filter: brightness(0) invert(1); }
  #vg-chat-preview .search-look { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 6px; color: #695e64; background: #fff; }
  #vg-chat-preview .header-icons { display: flex; gap: 15px; }
  #vg-chat-preview .site-navigation { display: flex; align-items: center; gap: 21px; padding: 0 21px; background: #fff; border-bottom: 1px solid #ebe4e7; }
  #vg-chat-preview .site-navigation strong { background: var(--wine); color: #fff; padding: 10px 14px; font-weight: 650; width: 206px; display: flex; align-items: center; gap: 9px; }
  #vg-chat-preview .site-content { display: grid; grid-template-columns: 206px minmax(0, 1fr); gap: 13px; padding: 0 21px 21px; }
  #vg-chat-preview .categories { margin: 0; padding: 8px 13px; list-style: none; background: #fff; font-size: 13px; }
  #vg-chat-preview .categories li { padding: 10px 0; border-bottom: 1px solid #f0ecee; }
  #vg-chat-preview .hero { position: relative; background: #eee1d8; min-height: 330px; overflow: hidden; border-radius: 0 0 9px 9px; }
  #vg-chat-preview .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  #vg-chat-preview .hero-copy { position: relative; padding: 38px 18px; min-height: 185px; background: linear-gradient(102deg, #fff 0%, #fffc 24%, transparent 54%); color: #59112a; }
  #vg-chat-preview .hero-copy div { font-size: clamp(24px,4vw,42px); line-height: 1.03; font-weight: 760; letter-spacing: -.03em; margin: 0 0 9px; }
  #vg-chat-preview .hero-copy span { color: #46363d; }
  #vg-chat-preview .chat-dock { z-index: 1; align-self: end; justify-self: end; display: grid; justify-items: end; gap: 10px; width: min(354px,calc(100% - 22px)); margin: 11px; }
  #vg-chat-preview .chat { display: grid; width: 100%; overflow: hidden; border: 1px solid #e6dce1; border-radius: 16px; background: #fff; box-shadow: 0 12px 34px #3814213b; }
  #vg-chat-preview .chat-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px; background: linear-gradient(125deg, #8c1538, #59132d); color: #fff; }
  #vg-chat-preview .avatar { display: block; width: 39px; height: 39px; object-fit: cover; border-radius: 50%; background: #f6e4e9; }
  #vg-chat-preview .chat-header p { margin: 2px 0 0; font-size: 12px; color: #f4e7ec; }
  #vg-chat-preview .close-chat { display: grid; place-items: center; min-width: 36px; min-height: 36px; padding: 0; border: 1px solid #ffffff45; border-radius: 8px; background: #ffffff12; color: #fff; }
  #vg-chat-preview .chat-content { display: grid; gap: 9px; padding: 12px; }
  #vg-chat-preview .bubble { max-width: 94%; padding: 8px 11px; border-radius: 12px; font-size: 13px; overflow-wrap: anywhere; }
  #vg-chat-preview .agent { justify-self: start; background: #f5f0f2; border-bottom-left-radius: 4px; }
  #vg-chat-preview .visitor { justify-self: end; color: #fff; background: var(--wine); border-bottom-right-radius: 4px; }
  #vg-chat-preview .quick-questions { display: flex; flex-wrap: wrap; gap: 5px; }
  #vg-chat-preview .quick-questions button { border: 1px solid #e4d0d8; border-radius: 20px; padding: 6px 9px; background: #fff; color: #76162f; font-size: 12px; }
  #vg-chat-preview .quick-questions button:hover { background: #f7edf1; }
  #vg-chat-preview .chat-composer { display: flex; gap: 8px; padding: 9px 11px; border-top: 1px solid #ebdfe3; }
  #vg-chat-preview .chat-composer input { min-width: 0; flex: 1; padding: 8px 10px; border: 1px solid #ded4d9; border-radius: 7px; color: #2d2529; background: #fff; }
  #vg-chat-preview .chat-composer button { width: 39px; display: grid; place-items: center; color: #fff; border: 0; border-radius: 7px; background: var(--wine); }
  #vg-chat-preview .chat-launcher {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 56px;
    padding: 5px 15px 5px 5px;
    border: 1px solid #e3c9d4;
    border-radius: 999px;
    background: #fff;
    color: #741736;
    box-shadow: 0 5px 18px #4d143137;
    font-weight: 700;
  }
  #vg-chat-preview .chat-launcher:hover { background: #fff7fa; border-color: #b86f84; }
  #vg-chat-preview .chat-launcher .avatar { width: 44px; height: 44px; border: 1px solid #e6ccd6; }
  #vg-chat-preview .preview-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #vg-chat-preview.mobile .site-preview { max-width: 390px; margin-inline: auto; }
  #vg-chat-preview.mobile .site-header { grid-template-columns: 1fr auto; gap: 8px 15px; padding: 11px; }
  #vg-chat-preview.mobile .brand { max-width: 186px; }
  #vg-chat-preview.mobile .search-look { grid-row: 2; grid-column: 1 / -1; }
  #vg-chat-preview.mobile .site-navigation { padding: 0 10px; gap: 8px; font-size: 12px; }
  #vg-chat-preview.mobile .site-navigation strong { width: auto; padding: 8px; }
  #vg-chat-preview.mobile .site-content { display: block; padding: 0 10px 10px; }
  #vg-chat-preview.mobile .categories { display: none; }
  #vg-chat-preview.mobile .hero { min-height: 264px; }
  #vg-chat-preview.mobile .hero-copy { padding: 14px 11px; }
  #vg-chat-preview.mobile .hero-copy div { font-size: 27px; }
  @media (max-width: 620px) {
    #vg-chat-preview .site-header { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 11px; }
    #vg-chat-preview .brand { max-width: 186px; }
    #vg-chat-preview .search-look { grid-row: 2; grid-column: 1 / -1; }
    #vg-chat-preview .site-navigation { padding: 0 8px; gap: 8px; font-size: 11px; }
    #vg-chat-preview .site-navigation strong { width: auto; padding: 7px; }
    #vg-chat-preview .site-content { display: block; padding: 0 8px 8px; }
    #vg-chat-preview .categories { display: none; }
    #vg-chat-preview .hero { min-height: 250px; }
    #vg-chat-preview .hero-copy { padding: 14px 10px; }
    #vg-chat-preview .chat-dock { width: min(354px,calc(100% - 16px)); margin: 8px; }
  }
  @media (pointer: coarse) {
    #vg-chat-preview .quick-questions button, #vg-chat-preview .chat-composer button, #vg-chat-preview .close-chat { min-height: 44px; }
    #vg-chat-preview .chat-composer input { font-size: 16px; }
  }
:root {
  color-scheme: light dark;
  background: light-dark(#faf8f9, #221b20);
}

body { margin: min(3vw, 24px); }
#vg-chat-preview { max-width: 1080px; margin-inline: auto; }
#vg-chat-preview .preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
#vg-chat-preview .preview-toolbar .preview-modes { margin: 0; }
#vg-chat-preview .test-mode { color: light-dark(#65535d, #e3cfd9); font-size: 13px; }
#vg-chat-preview .site-preview { min-height: 580px; }
#vg-chat-preview .header-icons { font-size: 23px; line-height: 1; }
#vg-chat-preview .chat-header h1 { margin: 0; font-size: 17px; line-height: 1.15; color: #fff; }
#vg-chat-preview .chat-header .close-chat { font-size: 25px; line-height: 1; }
#vg-chat-preview .chat-composer button { font-size: 21px; }
#vg-chat-preview .chat-content {
  align-content: start;
  max-height: min(45vh, 325px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#vg-chat-preview .messages { display: grid; gap: 8px; }
#vg-chat-preview .messages:empty { display: none; }
#vg-chat-preview .bubble { white-space: pre-wrap; }
#vg-chat-preview .pending { color: #765b67; }
#vg-chat-preview .chat-error { background: #fff1ee; color: #8a2422; }
#vg-chat-preview .quick-questions { padding: 3px 12px 10px; }
#vg-chat-preview button:disabled { opacity: .6; cursor: default; }
#vg-chat-preview .chat-footer { padding: 0 12px 8px; text-align: right; }
#vg-chat-preview .reset-chat {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: #69535e;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#vg-chat-preview .product-cards {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#vg-chat-preview .product-cards a {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #e6d6df;
  border-radius: 8px;
  background: #fffafd;
  color: #681630;
  text-decoration: none;
  overflow-wrap: anywhere;
}
#vg-chat-preview .product-cards a:hover { background: #f7edf1; text-decoration: underline; }
#vg-chat-preview .product-cards span { font-size: 12px; color: #65525d; }
#vg-chat-preview.mobile .chat-content { max-height: 255px; }
@media (max-width: 420px) {
  #vg-chat-preview .site-navigation { flex-wrap: wrap; }
  #vg-chat-preview .chat-content { max-height: min(38vh, 255px); }
}

body.csapi-embed { margin: 0; background: #fff; }
.csapi-embed #vg-chat-preview { height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.csapi-embed #vg-chat-preview .chat {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.csapi-embed #vg-chat-preview .chat-content { max-height: none; }
.csapi-embed #vg-chat-preview .test-mode { padding: 5px 12px; color: #69535e; font-size: 11px; }
