/* VZ Store Chat. Uses the theme's tokens when present (red, line, well, font), with fallbacks. */
.vzc-launch, .vzc-panel, .vzc-panel * { box-sizing: border-box; }
.vzc-panel[hidden], .vzc-panel [hidden] { display: none !important; }

.vzc-launch {
	position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 55;
	display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 22px 0 18px;
	border: 0; border-radius: 999px; background: var(--red, #ee0000); color: #fff;
	font: 700 19px/1 var(--font, "Helvetica Neue", Helvetica, Arial, sans-serif);
	cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .22); touch-action: manipulation;
	transition: background-color .2s ease, transform .2s ease;
}
.vzc-launch:hover { background: var(--red-hover, #c00); }
.vzc-launch:active { transform: scale(.97); }
.vzc-launch svg, .vzc-close svg, .vzc-send svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vzc-launch[aria-expanded="true"] { display: none; }

.vzc-panel {
	position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 56;
	display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 40px);
	height: min(620px, calc(100vh - 40px)); height: min(620px, calc(100dvh - 40px));
	background: #fff; color: #000; border: 1px solid var(--line, #d8dada); border-radius: var(--radius, 20px);
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25); overflow: hidden;
	font: 400 16px/1.5 var(--font, "Helvetica Neue", Helvetica, Arial, sans-serif);
	animation: vzc-in .22s ease-out;
}
@keyframes vzc-in { from { opacity: 0; transform: translateY(12px); } }

.vzc-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 8px 8px 8px 20px; background: var(--red, #ee0000); color: #fff; }
.vzc-panel .vzc-title { margin: 0; font: 700 20px/1.2 var(--display, var(--font, Arial, sans-serif)); color: #fff; }
.vzc-panel .vzc-close { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.vzc-panel .vzc-close:hover { background: rgba(0, 0, 0, .15); }

.vzc-log { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.vzc-panel .vzc-msg { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.vzc-panel .vzc-bot { align-self: flex-start; background: var(--well, #f6f6f6); color: #000; border-bottom-left-radius: 4px; }
.vzc-panel .vzc-me { align-self: flex-end; background: #fff; color: #000; border: 1.5px solid var(--red, #ee0000); border-bottom-right-radius: 4px; }
.vzc-panel .vzc-linkmsg a { color: #000; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.vzc-panel .vzc-linkmsg a:hover { text-decoration-thickness: 2px; }
.vzc-typing { display: inline-flex; gap: 5px; align-items: center; min-height: 42px; }
.vzc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted, #6f7171); animation: vzc-dot 1s infinite ease-in-out; }
.vzc-typing span:nth-child(2) { animation-delay: .15s; }
.vzc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vzc-dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.vzc-chips { flex: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
.vzc-panel .vzc-chip {
	min-height: 44px; padding: 8px 16px; border: 1px solid #000; border-radius: 999px; background: #fff; color: #000;
	font: 400 15px/1.2 var(--font, Arial, sans-serif); text-align: left; cursor: pointer; touch-action: manipulation; transition: background-color .15s ease;
}
.vzc-panel .vzc-chip:hover { background: var(--well, #f6f6f6); }

.vzc-composer { flex: none; margin: 0; padding: 8px 16px 16px; border-top: 1px solid var(--line, #d8dada); }
.vzc-panel .vzc-label, .vzc-panel .vzc-field label { display: block; margin: 0 0 4px; font: 700 13px/1.3 var(--font, Arial, sans-serif); color: #000; }
.vzc-row { display: flex; gap: 8px; }
.vzc-panel .vzc-input, .vzc-panel .vzc-field input, .vzc-panel .vzc-field textarea {
	width: 100%; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid #000; border-radius: var(--radius-sm, 12px);
	background: #fff; color: #000; font: 400 16px/1.4 var(--font, Arial, sans-serif); box-shadow: none;
}
.vzc-panel .vzc-field textarea { resize: vertical; min-height: 96px; }
.vzc-panel .vzc-send { flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--red, #ee0000); color: #fff; cursor: pointer; transition: background-color .2s ease; }
.vzc-panel .vzc-send:hover { background: var(--red-hover, #c00); }

.vzc-formwrap { flex: none; max-height: 70%; overflow-y: auto; padding: 12px 16px 16px; border-top: 1px solid var(--line, #d8dada); }
.vzc-form { margin: 0; display: grid; gap: 12px; }
.vzc-panel .vzc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.vzc-panel .vzc-error { margin: 0; color: #b30000; font-size: 14px; font-weight: 700; }
.vzc-panel .vzc-error:empty { display: none; }
.vzc-actions { display: flex; gap: 12px; align-items: center; }
.vzc-panel .vzc-submit { min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--red, #ee0000); color: #fff; font: 700 19px/1 var(--font, Arial, sans-serif); cursor: pointer; transition: background-color .2s ease; }
.vzc-panel .vzc-submit:hover { background: var(--red-hover, #c00); }
.vzc-panel .vzc-submit:disabled { opacity: .5; cursor: default; }
.vzc-panel .vzc-cancel { min-height: 44px; padding: 0 8px; border: 0; background: none; color: #000; font: 400 16px/1 var(--font, Arial, sans-serif); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.vzc-launch:focus-visible, .vzc-panel button:focus-visible, .vzc-panel a:focus-visible { outline: 3px solid #000; outline-offset: 2px; }
.vzc-panel .vzc-close:focus-visible { outline-color: #fff; outline-offset: -3px; }
.vzc-panel input:focus-visible, .vzc-panel textarea:focus-visible { outline: 3px solid #000; outline-offset: 1px; }

/* Phones: the chat fills the screen, and the page behind it doesn't scroll. */
@media (max-width: 520px) {
	.vzc-launch { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
	.vzc-panel { inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
	html.vzc-open, html.vzc-open body { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
	.vzc-panel, .vzc-typing span { animation: none; }
	.vzc-launch { transition: none; }
}
@media print { .vzc-launch, .vzc-panel { display: none !important; } }
