/* Website chat bubble. Uses the theme palette with fallbacks. */
.ucc-chat { --c-accent: var(--wp--preset--color--accent, #0e7c7b); --c-deep: var(--wp--preset--color--accent-dark, #0a4265); --c-ink: var(--wp--preset--color--ink, #16303f); --c-muted: var(--wp--preset--color--muted, #4c6170); --c-line: var(--wp--preset--color--line, #e4dccb); --c-tint: var(--wp--preset--color--tint, #e4f1ef); --c-base: var(--wp--preset--color--base, #fbf8f2);
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 95; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; font-family: var(--wp--preset--font-family--body, system-ui, sans-serif); color: var(--c-ink); }
.ucc-chat__launch { display: inline-flex; align-items: center; gap: .55rem; border: 0; cursor: pointer; background: var(--c-deep); color: #fff; font: inherit; font-weight: 600; font-size: .98rem; padding: .85rem 1.15rem; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(10,30,45,.55); }
.ucc-chat__launch:hover { background: var(--c-accent); }
.ucc-chat__launch:focus-visible, .ucc-chat button:focus-visible, .ucc-chat input:focus-visible, .ucc-chat textarea:focus-visible { outline: 3px solid var(--wp--preset--color--highlight, #3ec0be); outline-offset: 2px; }
.ucc-chat.is-open .ucc-chat__launch span { display: none; }
.ucc-chat__teaser { max-width: 260px; background: #fff; border: 1px solid var(--c-line); border-radius: 14px 14px 4px 14px; padding: .75rem .9rem; font-size: .95rem; line-height: 1.4; box-shadow: 0 12px 28px -14px rgba(0,0,0,.35); cursor: pointer; }
.ucc-chat__panel { width: min(380px, calc(100vw - 2rem)); height: min(560px, calc(100vh - 7rem)); background: #fff; border: 1px solid var(--c-line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(10,30,45,.5); display: flex; flex-direction: column; overflow: hidden; }
.ucc-chat__panel[hidden], .ucc-chat__teaser[hidden] { display: none; }
.ucc-chat__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; background: var(--c-deep); color: #fff; }
.ucc-chat__title { display: flex; flex-direction: column; gap: .15rem; }
.ucc-chat__title strong { font-family: var(--wp--preset--font-family--heading, Georgia, serif); font-size: 1.15rem; font-weight: 600; }
.ucc-chat__title span { font-size: .85rem; opacity: .85; }
.ucc-chat__close { border: 0; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 .2rem; }
.ucc-chat__log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; background: var(--c-base); }
.ucc-chat__msg { max-width: 85%; padding: .65rem .85rem; border-radius: 14px; font-size: .97rem; line-height: 1.45; white-space: pre-wrap; }
.ucc-chat__msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--c-line); border-bottom-left-radius: 4px; }
.ucc-chat__msg--me { align-self: flex-end; background: var(--c-accent); color: #fff; border-bottom-right-radius: 4px; }
.ucc-chat__input { padding: .85rem 1rem 1rem; border-top: 1px solid var(--c-line); background: #fff; max-height: 55%; overflow-y: auto; }
.ucc-chat__chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ucc-chat__chip { border: 1.5px solid var(--c-accent); background: #fff; color: var(--c-deep); font: inherit; font-size: .93rem; font-weight: 600; padding: .5rem .85rem; border-radius: 999px; cursor: pointer; }
.ucc-chat__chip:hover { background: var(--c-tint); }
.ucc-chat__chip--ghost { border-color: var(--c-line); color: var(--c-muted); font-weight: 500; }
.ucc-chat__form { display: flex; flex-direction: column; gap: .55rem; }
.ucc-chat__form textarea, .ucc-chat__field input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid #b9c3c9; border-radius: 10px; color: var(--c-ink); background: #fff; }
.ucc-chat__field { display: flex; flex-direction: column; gap: .2rem; font-size: .88rem; font-weight: 600; color: var(--c-muted); }
.ucc-chat__hint { margin: 0; font-size: .8rem; color: var(--c-muted); line-height: 1.4; }
.ucc-chat__hint a { color: var(--c-deep); }
.ucc-chat__send { display: block; text-align: center; text-decoration: none; border: 0; cursor: pointer; background: var(--c-accent); color: #fff; font: inherit; font-weight: 700; padding: .75rem 1rem; border-radius: 999px; }
.ucc-chat__send:disabled { opacity: .7; cursor: progress; }
.ucc-chat__call { margin-top: .25rem; background: var(--c-deep); }
.ucc-chat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Phones: sit above the call and tour bar, icon-only launcher. */
@media (max-width: 781px) {
	body.has-ucc-mobile-bar .ucc-chat { bottom: 5.4rem; }
	.ucc-chat { right: .75rem; }
	.ucc-chat__launch { padding: .85rem; }
	.ucc-chat__launch span { display: none; }
	.ucc-chat.is-open { left: .75rem; }
	.ucc-chat__panel { width: 100%; height: min(560px, calc(100vh - 11rem)); }
}
@media (prefers-reduced-motion: no-preference) {
	.ucc-chat__panel:not([hidden]) { animation: ucc-chat-in .18s ease-out; }
	@keyframes ucc-chat-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media print { .ucc-chat { display: none; } }
