/* Vidori assistant chat widget (floating launcher + panel). Self-contained: works with or without vidori.css.
   Tokens follow the Vidori style: red #E30512, dark #212121, greys #F7F7F7 / #EEEEEE / #D9DBDC, square corners. */
.vc-root, .vc-root * { box-sizing: border-box; }
.vc-root {
  --vc-red: #E30512; --vc-dark: #212121; --vc-text: #333333; --vc-muted: #777777;
  --vc-bg: #ffffff; --vc-soft: #F7F7F7; --vc-line: #EEEEEE; --vc-line2: #D9DBDC;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 300; line-height: 1.45; color: var(--vc-text);
}
.vc-launcher {
  position: fixed; right: 20px; bottom: 20px; z-index: 99990; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px 0 18px; border: 0; border-radius: 0; cursor: pointer;
  background: var(--vc-red); color: #fff; font: 600 13px/1 'Montserrat', Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .28);
}
.vc-launcher:hover { background: #c40410; }
.vc-launcher:focus-visible, .vc-root button:focus-visible, .vc-root textarea:focus-visible, .vc-root input:focus-visible { outline: 3px solid #212121; outline-offset: 2px; }
.vc-launcher svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.vc-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 99995; display: flex; flex-direction: column;
  width: 390px; height: min(680px, calc(100vh - 40px)); height: min(680px, calc(100dvh - 40px));
  background: var(--vc-bg); border: 1px solid var(--vc-line2); box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}
.vc-panel[hidden], .vc-launcher[hidden] { display: none !important; }
.vc-head { display: flex; align-items: center; gap: 6px; padding: 10px 8px 10px 16px; background: var(--vc-red); color: #fff; flex: none; }
.vc-head__txt { flex: 1; min-width: 0; }
.vc-title { display: block; font-weight: 600; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; }
.vc-sub { display: block; font-size: 12px; font-weight: 300; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-iconbtn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #fff; cursor: pointer; border-radius: 0; }
.vc-iconbtn:hover { background: rgba(0, 0, 0, .18); }
.vc-iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.vc-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #fff; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.vc-msg { max-width: 86%; padding: 10px 13px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; font-weight: 400; }
.vc-msg a { color: inherit; text-decoration: underline; }
.vc-msg--bot { align-self: flex-start; background: var(--vc-soft); color: var(--vc-text); border-left: 3px solid var(--vc-red); }
.vc-msg--user { align-self: flex-end; background: var(--vc-dark); color: #fff; }
.vc-msg--error { align-self: stretch; max-width: 100%; background: #fff4f4; color: #8a0010; border: 1px solid var(--vc-red); }
.vc-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vc-thumbs:first-child { margin-top: 0; }
.vc-thumbs img { width: 96px; height: 72px; object-fit: cover; display: block; background: var(--vc-line); }
.vc-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 14px 16px; background: var(--vc-soft); border-left: 3px solid var(--vc-red); }
.vc-typing i { width: 7px; height: 7px; background: var(--vc-muted); display: block; animation: vc-blink 1.1s infinite ease-in-out; }
.vc-typing i:nth-child(2) { animation-delay: .18s; } .vc-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes vc-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .vc-typing i { animation: none; opacity: .6; } }
.vc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 14px 10px; flex: none; }
.vc-chips:empty { display: none; }
.vc-chip { min-height: 44px; padding: 8px 14px; background: #fff; color: var(--vc-text); border: 1px solid var(--vc-line2); border-radius: 0; cursor: pointer; font: 600 13px/1.2 'Montserrat', Arial, sans-serif; }
.vc-chip:hover:not(:disabled) { border-color: var(--vc-red); color: var(--vc-red); }
.vc-chip:disabled { opacity: .5; cursor: default; }
.vc-note { margin: 0; padding: 6px 14px; font-size: 11.5px; color: var(--vc-muted); border-top: 1px solid var(--vc-line); background: #fff; flex: none; }
.vc-consent { padding: 6px 14px 8px; font-size: 12px; color: var(--vc-muted); background: #fff; flex: none; }
.vc-consent label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; min-height: 32px; }
.vc-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--vc-red); }
.vc-consent a { color: var(--vc-red); font-weight: 600; white-space: nowrap; }
.vc-consent .vc-hint { display: block; margin-top: 2px; opacity: .85; }
.vc-pending { display: flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--vc-soft); border-top: 1px solid var(--vc-line); font-size: 12px; font-weight: 600; color: var(--vc-text); flex: none; }
.vc-pending[hidden] { display: none; }
.vc-pending img { width: 36px; height: 36px; object-fit: cover; }
.vc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 12px; border-top: 1px solid var(--vc-line); background: #fff; flex: none; }
.vc-photo { width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--vc-line2); border-radius: 0; cursor: pointer; color: var(--vc-text); }
.vc-photo:hover { border-color: var(--vc-red); color: var(--vc-red); }
.vc-photo svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.vc-input { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; resize: none; padding: 11px 12px; border: 1px solid var(--vc-line2); border-radius: 0; font: 400 16px/1.3 'Montserrat', Arial, sans-serif; color: var(--vc-text); background: #fff; }
.vc-send { min-height: 44px; padding: 0 16px; flex: none; background: var(--vc-dark); color: #fff; border: 0; border-radius: 0; cursor: pointer; font: 600 13px/1 'Montserrat', Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase; }
.vc-send:hover:not(:disabled) { background: var(--vc-red); }
.vc-send:disabled { opacity: .5; cursor: default; }
html.vc-lock, html.vc-lock body { overflow: hidden !important; }
@media (max-width: 600px) {
  .vc-launcher { right: 12px; bottom: 12px; }
  .vc-panel { right: 0; bottom: 0; top: 0; left: 0; width: 100%; height: 100vh; height: 100dvh; border: 0; box-shadow: none; }
  .vc-msg { max-width: 90%; }
}
