/* WeddingZone AI: website visitor chat. Palette only: #F7F4ED #EAE0D6 #AC9C8D #5D5040 #292D29 #702F3D #879681 */
@font-face { font-family: 'WZ Mark'; src: url('fonts/wzai-wz.woff') format('woff'); font-weight: 500; font-style: normal; font-display: block; }
.wzai-mono { display: inline-block; width: 1em; height: 1em; perspective: 4em; line-height: 1; }
.wzai-mono-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(180deg); }
.wzai-mono-f, .wzai-mono-b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'WZ Mark', 'Cormorant Garamond', Georgia, 'Times New Roman', serif; font-weight: 500; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.wzai-mono-b { transform: rotateY(180deg); }
.wzai-mono.is-turn .wzai-mono-in { animation: wzai-turn 1.6s cubic-bezier(.45, 0, .25, 1) both; }
@keyframes wzai-turn { 0%, 30% { transform: rotateY(0deg); } 100% { transform: rotateY(180deg); } }

.wzai-v { position: fixed; right: 20px; bottom: 20px; z-index: 99990; font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif; color: #292D29; }
.wzai-v *, .wzai-v *::before, .wzai-v *::after { box-sizing: border-box; }

/* The round button */
.wzai-v-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0; margin: 0; background: #702F3D; color: #F7F4ED; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(41, 45, 41, .25); transition: transform .15s ease; float: right; }
.wzai-v-btn:hover { transform: scale(1.05); background: #702F3D; }
.wzai-v-btn:focus { outline: none; }
.wzai-v-btn:focus-visible { outline: 3px solid #879681; outline-offset: 3px; }
.wzai-v-btn .wzai-mono { font-size: 32px; margin-top: 2px; }
.wzai-v-btn-x { display: none; font-size: 30px; line-height: 1; }
.wzai-v.is-open .wzai-v-btn .wzai-mono { display: none; }
.wzai-v.is-open .wzai-v-btn-x { display: block; }

/* The panel */
.wzai-v-panel { position: absolute; right: 0; bottom: 72px; width: 370px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 110px); background: #fff; border: 1px solid #EAE0D6; border-radius: 18px; box-shadow: 0 14px 44px rgba(41, 45, 41, .22); display: flex; flex-direction: column; overflow: hidden; }
.wzai-v-panel[hidden] { display: none; }

.wzai-v-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: #702F3D; color: #F7F4ED; }
.wzai-v-title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; white-space: nowrap; min-width: 0; }
.wzai-v-title .wzai-mono { font-size: 26px; }
.wzai-v-test { font-size: 11px; font-weight: 600; background: #F7F4ED; color: #702F3D; border-radius: 999px; padding: 2px 8px; }
.wzai-v-head-actions { display: flex; align-items: center; gap: 4px; }
.wzai-v-clear, .wzai-v-close { background: transparent; border: 0; color: #F7F4ED; cursor: pointer; font: inherit; padding: 4px 8px; border-radius: 8px; margin: 0; line-height: 1.2; }
.wzai-v-clear { font-size: 13px; text-decoration: none; opacity: .9; white-space: nowrap; }
.wzai-v-close { font-size: 26px; line-height: 1; }
.wzai-v-clear:hover, .wzai-v-close:hover { background: rgba(247, 244, 237, .15); color: #F7F4ED; }

.wzai-v-body { flex: 1; overflow-y: auto; padding: 14px; background: #F7F4ED; display: flex; flex-direction: column; gap: 10px; }
.wzai-v-msg { display: flex; }
.wzai-v-user { justify-content: flex-end; }
.wzai-v-bubble { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; word-wrap: break-word; overflow-wrap: anywhere; }
.wzai-v-assistant .wzai-v-bubble { background: #fff; border: 1px solid #EAE0D6; border-bottom-left-radius: 4px; }
.wzai-v-user .wzai-v-bubble { background: #702F3D; color: #F7F4ED; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.wzai-v-bubble p { margin: 0 0 8px; }
.wzai-v-bubble p:last-child { margin-bottom: 0; }
.wzai-v-bubble ul, .wzai-v-bubble ol { margin: 4px 0 8px; padding-left: 20px; }
.wzai-v-bubble li { margin: 2px 0; }
.wzai-v-bubble a { color: #702F3D; font-weight: 600; text-decoration: underline; }
.wzai-v-error .wzai-v-bubble { border-color: #AC9C8D; color: #5D5040; }
.wzai-v-ok .wzai-v-bubble { border-left: 4px solid #879681; }

.wzai-v-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wzai-v-chip { background: #fff; border: 1px solid #AC9C8D; color: #5D5040; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; margin: 0; line-height: 1.3; text-align: left; }
.wzai-v-chip:hover { border-color: #702F3D; color: #702F3D; background: #fff; }

.wzai-v-dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.wzai-v-dots i { width: 7px; height: 7px; border-radius: 50%; background: #AC9C8D; animation: wzai-v-dot 1.2s infinite ease-in-out; }
.wzai-v-dots i:nth-child(2) { animation-delay: .15s; }
.wzai-v-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes wzai-v-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.wzai-v-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #EAE0D6; background: #fff; margin: 0; width: 100%; }
.wzai-v .wzai-v-input { flex: 1 1 auto; width: auto !important; min-width: 0 !important; max-width: none; resize: none; border: 1px solid #EAE0D6; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14.5px; line-height: 1.4; color: #292D29; background: #fff; max-height: 120px; margin: 0; min-height: 40px; box-shadow: none; }
.wzai-v .wzai-v-input:focus { outline: none; border-color: #879681; box-shadow: 0 0 0 2px rgba(135, 150, 129, .25); }
.wzai-v .wzai-v-send { width: 40px !important; min-width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; border: 0; background: #702F3D; color: #F7F4ED; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; }
.wzai-v-send:disabled { opacity: .5; cursor: default; }

.wzai-v-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 12px 10px; background: #fff; }
.wzai-v-notice { font-size: 11px; line-height: 1.35; color: #AC9C8D; }
.wzai-v-team-link { flex: 0 0 auto; background: transparent; border: 1px solid #879681; color: #5D5040; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: 12px; cursor: pointer; margin: 0; line-height: 1.2; }
.wzai-v-team-link:hover { background: #879681; color: #fff; }

/* Message the team */
.wzai-v-team { background: #fff; border: 1px solid #EAE0D6; border-radius: 14px; padding: 12px; margin: 0; }
.wzai-v-team-h { margin: 0 0 8px; font-weight: 600; color: #702F3D; }
.wzai-v-team label { display: block; font-size: 13px; color: #5D5040; margin: 0 0 8px; font-weight: 500; }
.wzai-v-team input, .wzai-v-team textarea { display: block; width: 100%; margin-top: 3px; border: 1px solid #EAE0D6; border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 14px; color: #292D29; background: #fff; box-shadow: none; }
.wzai-v-team input:focus, .wzai-v-team textarea:focus { outline: none; border-color: #879681; }
.wzai-v-team .wzai-v-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wzai-v-team-note { font-size: 12px; color: #AC9C8D; margin: 0 0 10px; line-height: 1.4; }
.wzai-v-team-err { font-size: 13px; color: #702F3D; margin: 0 0 8px; }
.wzai-v-team-row { display: flex; gap: 8px; }
.wzai-v-team-send { background: #702F3D; color: #F7F4ED; border: 0; border-radius: 999px; padding: 8px 18px; font: inherit; font-size: 14px; cursor: pointer; margin: 0; }
.wzai-v-team-send:disabled { opacity: .6; }
.wzai-v-team-cancel { background: transparent; color: #5D5040; border: 0; padding: 8px 10px; font: inherit; font-size: 14px; cursor: pointer; margin: 0; }

/* [wz_ask_button] */
.wzai-v-open { background: #702F3D; color: #F7F4ED; border: 0; border-radius: 999px; padding: 12px 24px; font: inherit; cursor: pointer; }
.wzai-v-open:hover { opacity: .92; }

/* Phones: the panel fills the screen */
@media (max-width: 520px) {
	.wzai-v { right: 14px; bottom: 14px; }
	.wzai-v.is-open { inset: 0; right: 0; bottom: 0; }
	.wzai-v.is-open .wzai-v-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; border: 0; }
	.wzai-v.is-open .wzai-v-btn { display: none; }
	.wzai-v .wzai-v-input { font-size: 16px; } /* no zoom on iPhone */
}
@media (prefers-reduced-motion: reduce) {
	.wzai-mono.is-turn .wzai-mono-in, .wzai-v-dots i { animation: none; }
}
