/* Website chat bubble (assets/chat.js) */
.oa-chat { position: fixed; right: 24px; bottom: 0; z-index: 9990; font-family: inherit; color: #313638; }
.oa-chat-fab { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 8px 8px 0 0; padding: 9px 20px 9px 14px; background: #FDD531; color: #000; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 -2px 14px rgba(49, 54, 56, .22); position: relative; }
.oa-chat-fab:hover { background: #ffe066; }
.oa-chat-fab:focus-visible { outline: 3px solid #313638; outline-offset: 2px; }
.oa-chat button:focus-visible, .oa-chat input:focus-visible, .oa-chat select:focus-visible, .oa-chat textarea:focus-visible { outline: 3px solid #FDD531; outline-offset: 2px; }
.oa-chat-fab .oa-chat-tooth { width: 32px; height: 32px; flex: none; display: block; }
.oa-chat.is-open .oa-chat-fab span { display: none; }
.oa-chat-dot { position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: #dc2626; border: 2px solid #fff; }
.oa-chat-panel { position: absolute; right: 0; bottom: 58px; width: 360px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 110px)); background: #FFFEFD; border-radius: 16px; box-shadow: 0 18px 50px rgba(49, 54, 56, .3); display: flex; flex-direction: column; overflow: hidden; }
.oa-chat-panel[hidden] { display: none; }
.oa-chat-panel header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #FDD531; color: #000; box-shadow: 0 2px 8px rgba(49, 54, 56, .08); position: relative; z-index: 1; }
.oa-chat-panel header > div { flex: 1; }
.oa-chat-panel header strong { display: block; font-size: 18px; font-weight: 700; }
.oa-chat-panel header div span { font-size: 13px; }
.oa-chat-av { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.oa-chat-av img { width: 38px; height: 38px; }
.oa-chat-av i { position: absolute; right: 1px; bottom: 2px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #FDD531; }
.oa-chat-x { border: 0; background: none; color: #000; font-size: 28px; line-height: 1; cursor: pointer; padding: 0 4px; }
.oa-chat-body { flex: 1; display: flex; flex-direction: column; min-height: 0; background: #FFFBEA; }
.oa-chat-start { background: #FFFBEA; padding: 14px 16px; overflow-y: auto; display: grid; gap: 9px; }
.oa-chat-start label { display: grid; gap: 3px; font-size: 13px; font-weight: 700; }
.oa-chat-start label b { font-weight: 700; }
.oa-chat-start label b span { font-weight: 400; color: #6b7275; }
.oa-chat input, .oa-chat select, .oa-chat textarea { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid #c9cdcf; border-radius: 8px; background: #fff; color: #313638; width: 100%; box-sizing: border-box; }
.oa-chat textarea { resize: none; }
.oa-chat-intro { margin: 0; font-size: 14px; line-height: 1.45; }
.oa-chat-intro a { color: #2d7aa3; font-weight: 700; }
.oa-chat-fine { margin: 0; font-size: 12px; color: #6b7275; }
.oa-chat-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; }
.oa-chat-go { border: 0; border-radius: 999px; padding: 11px; background: #313638; color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.oa-chat-go:disabled { opacity: .6; }
.oa-chat-err { margin: 0; padding: 8px 10px; border-radius: 8px; background: #fff1e6; color: #9a3412; font-size: 13px; }
.oa-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #FFFBEA; }
.oa-chat-m { display: flex; }
.oa-chat-m > div { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.oa-chat-me { justify-content: flex-end; } .oa-chat-me > div { background: #4D9BC4; color: #fff; border-bottom-right-radius: 4px; }
.oa-chat-them > div { background: #fff; border: 1px solid #e3e5e6; border-bottom-left-radius: 4px; }
.oa-chat-sys { justify-content: center; } .oa-chat-sys > div { max-width: 92%; background: transparent; color: #6b7275; font-size: 12.5px; text-align: center; }
.oa-chat-m a { color: inherit; text-decoration: underline; }
.oa-chat-send { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e3e5e6; align-items: flex-end; }
.oa-chat-send button { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: #4D9BC4; color: #fff; cursor: pointer; display: grid; place-items: center; }
.oa-chat-send button svg { width: 20px; height: 20px; }
.oa-chat-end { border: 0; background: none; color: #6b7275; font: inherit; font-size: 12.5px; padding: 0 0 8px; cursor: pointer; text-decoration: underline; }
@media (max-width: 480px) {
	.oa-chat { right: 12px; bottom: 0; }
	.oa-chat.is-open { left: 0; right: 0; top: 0; bottom: 0; }
	.oa-chat.is-open .oa-chat-fab { display: none; }
	.oa-chat-panel { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; border-radius: 0; }
}
@media print { .oa-chat { display: none; } }
/* open: the tab gives way to the window, which sits where the tab was (on the bottom edge) */
.oa-chat.is-open .oa-chat-fab { display: none; }
.oa-chat-panel { bottom: 0; border-radius: 16px 16px 0 0; height: min(560px, calc(100vh - 40px)); }
.oa-chat-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 8px; }
.oa-chat-row label { min-width: 0; }
/* the header Let's Chat! button (assets/chat.js adds it beside Book an Appointment); the bottom tab is off for now */
.oa-chat-fab { display: none !important; }
@media all {
	.oa-chat-hdr { display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; flex: none; border: 1px solid #313638; border-radius: 999px; padding: 0.55rem 1rem 0.55rem 0.75rem; background: #FDD531; color: #000; font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
	.oa-chat-hdr img { width: 26px; height: 26px; display: block; }
	.oa-chat-hdr:focus-visible { outline: 3px solid #313638; outline-offset: 2px; }
	.oa-chat-hdr .oa-chat-dot { top: -3px; right: -3px; }
}
@media (max-width: 480px) { .oa-chat-hdr { font-size: 0.95rem; padding: 0.5rem 0.8rem 0.5rem 0.55rem; gap: 5px; } .oa-chat-hdr img { width: 24px; height: 24px; } }

/* desktop, opened from the header button: the window drops down below the header at the right */
@media (min-width: 961px) {
	.oa-chat.from-top { top: var(--oa-chat-top, 90px); bottom: auto; }
	.oa-chat.from-top .oa-chat-panel { top: 0; bottom: auto; border-radius: 16px; height: min(560px, calc(100vh - var(--oa-chat-top, 90px) - 16px)); }
}
.oa-chat-fine a { color: #2d7aa3; font-weight: 700; white-space: nowrap; }

/* desktop: the open chat window sits in the middle of the window, vertically, at the right */
@media (min-width: 961px) {
	.oa-chat.from-top .oa-chat-panel, .oa-chat.is-open .oa-chat-panel { position: fixed; top: 50%; bottom: auto; right: 24px; transform: translateY(-50%); border-radius: 16px; height: min(560px, calc(100vh - 32px)); }
}
/* chat follow-up on phones: the "text me back" offer when leaving an unanswered chat */
.oa-chat-follow { background: #fff; border: 1px solid #e3e5e6; border-radius: 12px; padding: 12px; margin: 8px 0; display: grid; gap: 8px; }
.oa-chat-follow p { margin: 0; font-size: 14px; }
.oa-chat-follow input { font: inherit; padding: 9px 10px; border: 1px solid #c9ced1; border-radius: 8px; }
.oa-chat-follow-btns { display: flex; gap: 8px; }
.oa-chat-follow-btns button { flex: 1; font: inherit; font-weight: 700; border: 1px solid #313638; border-radius: 999px; padding: 8px 10px; cursor: pointer; background: #fff; }
.oa-chat-follow-btns button[type=submit] { background: #FDD531; }
.oa-chat-done { text-align: center; font-weight: 700; margin: 8px 0; }
