body:has(.guest-chat) { padding-bottom: 4.4rem; }
.guest-chat button, .guest-chat input { font: inherit; }
.guest-chat button { cursor: pointer; }
.guest-chat :focus-visible { outline: 2px solid #80501d; outline-offset: 2px; }
.guest-chat-launcher {
  position: fixed; z-index: 8; inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--sand); border-radius: 999px;
  background: var(--green); color: #fff; font-weight: 700 !important; box-shadow: 0 .18rem .7rem #0003;
}
.guest-chat-dialog {
  position: fixed; inset: auto 1rem max(1rem, env(safe-area-inset-bottom)) auto;
  width: min(400px, calc(100vw - 2rem)); max-width: none; margin: 0; padding: 0; overflow: hidden;
  border: 1px solid #ded9cf; border-radius: .75rem; background: white; color: var(--ink);
}
.guest-chat-dialog::backdrop { background: #00180e70; }
.guest-chat-panel { display: flex; flex-direction: column; max-height: min(640px, calc(100dvh - 2rem)); }
.guest-chat-panel [hidden] { display: none; }
.guest-chat-header {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .35rem .75rem .35rem 1rem; background: var(--green); color: #fff;
}
.guest-chat-header h2 { font-size: 1.2rem; margin: 0; }
.guest-chat-header button {
  width: 44px; height: 44px; border: 0; border-radius: .35rem;
  background: transparent; color: #fff; font-size: 1.6rem;
}
.guest-chat-header button:focus-visible { outline-color: var(--sand); }
.guest-chat-body { position: relative; overflow: auto; min-height: 0; overscroll-behavior: contain; padding: .9rem; }
.guest-chat-message { background: var(--cream); border-radius: .5rem; padding: .65rem .75rem; margin: 0 0 .55rem; overflow-wrap: anywhere; }
.guest-chat-message p:last-child, .guest-chat-message ul { margin-bottom: 0; }
.guest-chat-message ul { padding-left: 1.15rem; margin-top: .4rem; }
.guest-chat-message a { color: var(--green); font-weight: 650; }
.guest-chat-question { margin-inline-start: auto; width: fit-content; max-width: 90%; background: #e2eee6; color: var(--green); }
.guest-chat-topics { display: flex; flex-wrap: wrap; gap: .4rem; }
.guest-chat-topics button {
  min-height: 44px; padding: .35rem .6rem; border: 1px solid #aaa89b; border-radius: .4rem;
  background: #fff; color: var(--green); text-align: left; font-size: .85rem;
}
.guest-chat-topics button:hover { background: var(--cream); }
.guest-chat-details, .guest-chat-form { padding: .85rem .9rem; }
.guest-chat-details { display: grid; gap: .55rem; overflow: auto; }
.guest-chat-details p { margin: 0 0 .25rem; }
.guest-chat-details label, .guest-chat-form label { display: grid; gap: .2rem; font-size: .9rem; font-weight: 650; }
.guest-chat-form { border-top: 1px solid #ded9cf; }
.guest-chat-form label { margin-bottom: .3rem; }
.guest-chat-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.guest-chat :is(input, form button) { min-height: 44px; padding: .45rem .6rem; border: 1px solid #838b83; border-radius: .35rem; }
.guest-chat input { min-width: 0; width: 100%; background: #fff; color: var(--ink); font-size: 16px; }
.guest-chat form button { background: var(--green); border-color: var(--green); color: #fff; }
.guest-chat button:disabled { opacity: .6; cursor: wait; }
.guest-chat-status { color: #793521; margin: .4rem 0 0; font-size: .85rem; }
