:root { --browie-bar: calc(2.75rem + 0.75rem + 1px); }
.browie-bar { position: fixed; inset: auto 0 0; z-index: 20; display: flex; justify-content: flex-end; padding: 0.375rem max(var(--gutter), (100% - var(--wide)) / 2) max(0.375rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--ink); background: var(--paper); }
.browie-open { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.25rem 1.125rem 0.25rem 0.25rem; border-radius: 999px; font-size: 1rem; white-space: nowrap; text-box: normal; }
.browie-open .browie-avatar { width: 2.25rem; height: 2.25rem; }
body:has(.browie-bar:not([hidden])) .site-footer__inner { padding-bottom: calc(var(--s-6) + var(--browie-bar) + env(safe-area-inset-bottom)); }
@media (max-width: 55.99em) {
.browie-bar--booking { display: none; }
body:has(.browie-bar--booking) .site-footer__inner { padding-bottom: var(--s-6); }
}
@media (min-width: 94rem) {
.browie-bar { left: auto; right: max(var(--s-4), env(safe-area-inset-right)); padding: 0 0 max(var(--s-4), env(safe-area-inset-bottom)); border: 0; background: none; }
body:has(.browie-bar:not([hidden])) .site-footer__inner { padding-bottom: var(--s-6); }
}
.browie-avatar { flex: none; display: block; width: 1.75rem; height: 1.75rem; overflow: hidden; border-radius: 50%; background: var(--rose); }
.browie-avatar picture, .browie-avatar img, .browie-avatar__plain { display: block; width: 100%; height: 100%; }
.browie-avatar img { object-fit: cover; }
.browie { position: fixed; inset: auto max(var(--s-4), env(safe-area-inset-right)) max(var(--s-4), env(safe-area-inset-bottom)) auto; box-sizing: border-box; width: min(24rem, 100vw - 2rem); max-width: none; height: min(46rem, 100dvh - 2rem); max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0.5rem solid var(--ink); border-radius: 2.25rem; background: var(--blush); color: var(--ink); font: 400 1rem/1.45 var(--serif); }
.browie[open] { display: flex; flex-direction: column; }
.browie::backdrop { background: rgb(11 61 50 / 0.3); }
@media (max-width: 39.99em) { .browie { inset: auto 0.5rem max(0.5rem, env(safe-area-inset-bottom)); width: auto; height: calc(100dvh - 1rem); border: 0; border-radius: 1.5rem; } }
.browie__head { flex: none; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0.5rem 0.75rem 1rem; background: var(--emerald); color: var(--paper-bright); }
.browie__head .browie-avatar { width: 2.5rem; height: 2.5rem; }
.browie__id { flex: 1; min-width: 0; }
.browie__name { margin: 0; font-size: 1.125rem; line-height: 1.2; }
.browie__role { margin: 0; font: 500 0.6875rem/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; }
.browie__close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; background: none; color: inherit; text-box: normal; }
.browie__close:hover { background: rgb(244 242 232 / 0.16); }
.browie__close:focus-visible { outline: 2px solid var(--paper-bright); outline-offset: 0; }
.browie__log { flex: 1 1 auto; display: flex; flex-direction: column; gap: 0.75rem; min-height: 0; margin: 0; padding: 0.75rem 0.75rem 1rem; overflow-y: auto; overscroll-behavior: contain; list-style: none; }
.browie__note { align-self: center; max-width: 34ch; margin: 0.25rem 0; color: rgb(11 61 50 / 0.78); font-size: 0.8125rem; line-height: 1.45; text-align: center; }
.browie__turn { display: flex; align-items: flex-start; gap: 0.5rem; }
.browie__turn[data-from="you"] { justify-content: flex-end; }
.browie__bubbles { display: flex; flex-direction: column; gap: 0.25rem; max-width: 82%; }
.browie__turn[data-from="you"] .browie__bubbles { align-items: flex-end; }
.browie__bubble { padding: 0.5rem 0.875rem; border-radius: 1.125rem; background: var(--paper-bright); box-shadow: inset 0 0 0 1px rgb(11 61 50 / 0.09); overflow-wrap: anywhere; }
.browie__turn[data-from="browie"] .browie__bubble:first-child { border-top-left-radius: 0.375rem; }
.browie__turn[data-from="you"] .browie__bubble { background: var(--emerald); box-shadow: none; color: var(--paper-bright); border-bottom-right-radius: 0.375rem; }
.browie__bubble p { margin: 0; }
.browie__pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.625rem 0 0.125rem; }
.browie__pill { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.375rem 1rem; border: 1px solid var(--emerald); border-radius: 999px; color: var(--emerald); font-size: 0.9375rem; line-height: 1.2; text-decoration: none; }
.browie__pill:first-child { background: var(--emerald); color: var(--paper-bright); }
.browie__pill:hover { border-color: var(--ink); background: var(--ink); color: var(--paper-bright); }
.browie__bubble--typing { display: flex; align-items: center; gap: 0.3rem; padding: 0.875rem 1rem; }
.browie__dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rose); }
.browie__restart { flex: none; margin: 0; padding: 0 0.75rem 0.625rem; text-align: center; }
.browie__restart button { min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; font-size: 1rem; text-box: normal; }
.browie__form { flex: none; display: flex; align-items: center; gap: 0.5rem; margin: 0; padding: 0.625rem 0.75rem max(0.625rem, env(safe-area-inset-bottom)); border-top: 1px solid rgb(11 61 50 / 0.1); background: var(--paper-bright); }
.browie__form input { flex: 1; min-width: 0; max-width: none; min-height: 2.75rem; padding: 0 1rem; border: 1px solid rgb(11 61 50 / 0.28); border-radius: 999px; background: var(--ground); font-size: 1rem; }
.browie__form input::placeholder { color: var(--ink); opacity: 0.7; }
.browie__form input:focus-visible { outline: 2px solid var(--emerald); outline-offset: 1px; }
.browie__send { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; text-box: normal; }
@media (prefers-reduced-motion: no-preference) {
.browie[open] { animation: browie-settle 0.36s var(--ease) both; }
.browie__dot { animation: browie-dot 1.2s ease-in-out infinite; }
.browie__dot:nth-of-type(2) { animation-delay: 0.15s; }
.browie__dot:nth-of-type(3) { animation-delay: 0.3s; }
}
@keyframes browie-settle { from { opacity: 0; transform: translateY(1rem); } }
@keyframes browie-dot { 0%, 60%, 100% { opacity: 0.4; transform: none; } 30% { opacity: 1; transform: translateY(-0.2rem); } }
