﻿/* All concierge styles are scoped; existing site and social styles stay intact. */
#palace-chat { --pc-forest:#173c32; --pc-forest-deep:#102b24; --pc-ivory:#faf6ee; --pc-champagne:#d9bb8b; --pc-gold-ink:#75572e; --pc-muted:#58665e; --pc-edge:#dacbb4; --pc-surface:#f0eade; position:fixed; right:max(22px,env(safe-area-inset-right)); bottom:calc(max(20px,env(safe-area-inset-bottom)) + var(--pc-cookie-offset,0px) + var(--pc-keyboard-offset,0px) + var(--pc-launch-lift,0px)); z-index:26; color:var(--pc-forest-deep); font:14px/1.6 var(--sans,Arial,sans-serif); text-align:left; color-scheme:light; }
#palace-chat[hidden], #palace-chat [hidden] { display:none!important; }
#palace-chat *, #palace-chat *::before, #palace-chat *::after { box-sizing:border-box; }
#palace-chat button, #palace-chat input { font:inherit; }
#palace-chat :is(button,a,summary) { cursor:pointer; -webkit-tap-highlight-color:transparent; }
#palace-chat button { min-height:44px; }
#palace-chat :is(button,a,input,summary,.pc-log):focus-visible { outline:3px solid var(--pc-gold-ink); outline-offset:3px; }
#palace-chat svg { width:22px; height:22px; flex:0 0 auto; pointer-events:none; }
#palace-chat .pc-launch { position:relative; display:flex; align-items:center; gap:13px; min-height:64px; margin-right:var(--pc-launch-shift,0px); padding:10px 23px 10px 19px; border:1px solid var(--pc-champagne); border-radius:999px; color:var(--pc-ivory); background:var(--pc-forest); box-shadow:0 6px 24px #102b2430; transition:background .2s ease,transform .2s ease; animation:pc-launch-enter .55s ease-out both; }
#palace-chat .pc-launch > svg { width:27px; height:27px; color:var(--pc-champagne); }
#palace-chat .pc-launch-copy { display:grid; text-align:left; line-height:1.5; }
#palace-chat .pc-launch-full { font-size:14px; font-weight:600; }
#palace-chat .pc-launch-copy small { color:var(--pc-champagne); font-size:12px; }
#palace-chat .pc-launch-short, #palace-chat .pc-minimize-icon { display:none; }
#palace-chat .pc-launch[aria-expanded="true"] .pc-chat-icon { display:none; }
#palace-chat .pc-launch[aria-expanded="true"] .pc-minimize-icon { display:block; }
#palace-chat .pc-launch:hover { transform:translateY(-2px); background:var(--pc-forest-deep); }
#palace-chat .pc-launch:focus-visible { outline-color:var(--pc-champagne); box-shadow:0 0 0 7px var(--pc-forest); }
#palace-chat .pc-launch:active { transform:none; }
#palace-chat #pc-panel { position:absolute; inset:auto 0 80px auto; display:flex; flex-direction:column; width:min(420px,calc(100vw - 44px)); height:min(650px,calc(var(--pc-viewport-height,100dvh) - 124px - var(--pc-cookie-offset,0px) - var(--pc-launch-lift,0px) - env(safe-area-inset-bottom))); max-width:none; max-height:none; margin:0; padding:0; overflow:hidden; border:1px solid var(--pc-edge); border-radius:16px; color:var(--pc-forest-deep); background:var(--pc-ivory); box-shadow:0 18px 64px #102b2433,0 3px 12px #102b241a; animation:pc-open .28s ease-out both; }
#palace-chat #pc-panel:not([open]) { display:none; }
#palace-chat .pc-header { display:flex; flex:0 0 auto; align-items:center; gap:12px; padding:18px 20px; color:var(--pc-ivory); background:var(--pc-forest); }
#palace-chat .pc-header-logo { display:block; box-sizing:border-box; flex:0 0 96px; width:96px; height:40px; padding:5px 7px; object-fit:contain; background:var(--pc-ivory); border-radius:2px; }
#palace-chat .pc-branding { flex:1; min-width:0; }
#palace-chat .pc-brand-name { margin:0 0 3px; color:var(--pc-champagne); font-size:12px; }
#palace-chat #pc-title { margin:0; color:var(--pc-ivory); font:25px/1.2 var(--serif,Georgia,serif); letter-spacing:-.02em; }
#palace-chat .pc-controls { display:flex; margin-right:-10px; }
#palace-chat .pc-controls button, #palace-chat .pc-options > summary { display:grid; place-items:center; width:44px; min-width:44px; height:44px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--pc-ivory); list-style:none; }
#palace-chat .pc-options > summary::-webkit-details-marker { display:none; }
#palace-chat .pc-controls button:hover, #palace-chat .pc-options > summary:hover { background:#ffffff14; }
#palace-chat .pc-controls :is(button,summary):focus-visible { outline-color:var(--pc-champagne); outline-offset:-3px; }
#palace-chat .pc-scroll { flex:1 1 auto; min-height:0; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:var(--pc-edge) transparent; padding:24px 20px 18px; }
#palace-chat .pc-welcome { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
#palace-chat .pc-avatar { display:grid; place-items:center; width:34px; height:34px; flex:0 0 34px; border:1px solid var(--pc-edge); border-radius:50%; color:var(--pc-gold-ink); font:16px/1 var(--serif,Georgia,serif); letter-spacing:-.06em; }
#palace-chat .pc-welcome-note { margin:0 0 6px; color:var(--pc-muted); font-size:12px; }
#palace-chat .pc-welcome h3 { margin:0; color:var(--pc-forest); font:27px/1.2 var(--serif,Georgia,serif); letter-spacing:-.025em; }
#palace-chat .pc-log { min-height:0; }
#palace-chat .pc-welcome:not([hidden]) + .pc-log > .pc-message:first-child { max-width:100%; padding:0; border-radius:0; background:transparent; color:var(--pc-muted); }
#palace-chat .pc-message { width:fit-content; max-width:94%; margin:0 0 14px; padding:13px 15px; border-radius:2px 12px 12px; color:var(--pc-forest-deep); background:var(--pc-surface); white-space:pre-wrap; overflow-wrap:anywhere; }
#palace-chat .pc-message.user { margin-left:auto; border-radius:12px 2px 12px 12px; background:var(--pc-forest); color:var(--pc-ivory); }
#palace-chat .pc-message.is-error { border-left:3px solid var(--pc-gold-ink); }
#palace-chat .pc-choices-title { margin:20px 0 10px; color:var(--pc-gold-ink); font-size:12px; font-weight:600; }
#palace-chat .pc-choices { display:flex; flex-wrap:wrap; gap:8px; }
#palace-chat .pc-choices[data-layout="categories"] { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
#palace-chat .pc-choices button, #palace-chat .pc-choices a { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:48px; max-width:100%; padding:11px 13px; border:1px solid var(--pc-edge); border-radius:6px; color:var(--pc-forest); background:transparent; text-align:left; text-decoration:none; font-size:13px; line-height:1.45; overflow-wrap:anywhere; transition:background .18s ease,border-color .18s ease; }
#palace-chat .pc-choices svg { width:16px; height:16px; color:var(--pc-gold-ink); }
#palace-chat .pc-choices .pc-expand { grid-column:1 / -1; justify-content:center; border-color:transparent; color:var(--pc-gold-ink); text-decoration:underline; text-underline-offset:4px; }
#palace-chat .pc-choices button:hover { background:var(--pc-surface); border-color:var(--pc-champagne); }
#palace-chat .pc-choices a { background:var(--pc-forest); color:var(--pc-ivory); border-color:var(--pc-forest); }
#palace-chat .pc-loading { display:flex; align-items:center; gap:9px; margin:14px 0 0; color:var(--pc-muted); font-size:12px; }
#palace-chat .pc-loading::before { content:''; width:7px; height:7px; border-radius:50%; background:var(--pc-gold-ink); animation:pc-wait 1.2s ease-in-out infinite; }
#palace-chat .pc-composer { display:flex; flex:0 0 auto; gap:8px; margin:0 16px; padding:7px; border:1px solid var(--pc-edge); border-radius:8px; background:#fffdf8; }
#palace-chat .pc-composer:focus-within { border-color:var(--pc-gold-ink); box-shadow:0 0 0 2px #d9bb8b45; }
#palace-chat .pc-composer input { flex:1; min-width:0; width:100%; min-height:44px; margin:0; padding:9px 6px; border:0; border-radius:3px; color:var(--pc-forest-deep); background:transparent; font-size:16px; }
#palace-chat .pc-composer input::placeholder { color:var(--pc-muted); opacity:1; }
#palace-chat .pc-composer input:focus-visible { outline-offset:0; }
#palace-chat .pc-composer button { display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:0; border:0; border-radius:5px; background:var(--pc-forest); color:var(--pc-champagne); }
#palace-chat button:disabled { opacity:.55; cursor:wait; }
#palace-chat .pc-privacy { flex:0 0 auto; padding:8px 20px 12px; color:var(--pc-muted); font-size:12px; line-height:1.55; }
#palace-chat .pc-privacy > a { display:flex; align-items:center; justify-content:center; min-height:44px; width:fit-content; margin:-8px auto; color:var(--pc-forest); text-underline-offset:3px; }
#palace-chat .pc-privacy label { display:block; min-height:44px; margin:6px 0 0; color:var(--pc-muted); font-size:12px; font-weight:400; letter-spacing:normal; text-transform:none; }
#palace-chat input[type="checkbox"] { width:18px; height:18px; margin:0 6px 0 0; vertical-align:middle; accent-color:var(--pc-forest); }
#palace-chat .pc-option-body { position:absolute; top:88px; right:16px; z-index:2; width:min(320px,calc(100% - 32px)); max-height:calc(100% - 108px); overflow:auto; padding:12px 16px; border:1px solid var(--pc-edge); border-radius:8px; background:var(--pc-ivory); color:var(--pc-forest); box-shadow:0 8px 28px #102b2426; }
#palace-chat .pc-option-body button, #palace-chat .pc-option-body summary { display:flex; align-items:center; min-height:44px; width:100%; padding:8px 0; border:0; background:transparent; color:var(--pc-forest); text-align:left; font-size:14px; }
#palace-chat .pc-option-body p { margin:8px 0; color:var(--pc-muted); font-size:13px; line-height:1.65; }
#palace-chat .pc-option-body :is(button,summary):focus-visible { outline-color:var(--pc-gold-ink); outline-offset:0; }
#palace-chat #pc-panel.pc-closing { opacity:0; transform:translateY(8px) scale(.985); transition:opacity .18s ease,transform .18s ease; pointer-events:none; }
@keyframes pc-launch-enter { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:none; } }
@keyframes pc-open { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes pc-wait { 50% { opacity:.35; } }
@media (max-width:480px) {
 #palace-chat { right:max(16px,env(safe-area-inset-right)); bottom:calc(max(14px,env(safe-area-inset-bottom)) + var(--pc-cookie-offset,0px) + var(--pc-keyboard-offset,0px) + var(--pc-launch-lift,0px)); }
 #palace-chat .pc-launch { min-height:52px; padding:10px 18px; gap:9px; }
 #palace-chat .pc-launch-full, #palace-chat .pc-launch-copy small { display:none; }
 #palace-chat .pc-launch-short { display:inline; }
 #palace-chat #pc-panel { bottom:68px; width:calc(100vw - 32px - env(safe-area-inset-right)); height:min(650px,calc(var(--pc-viewport-height,100dvh) - 98px - var(--pc-cookie-offset,0px) - var(--pc-launch-lift,0px) - env(safe-area-inset-bottom))); border-radius:12px; }
 #palace-chat .pc-header { padding:16px; gap:8px; }
 #palace-chat .pc-header-logo { display:none; }
 #palace-chat #pc-title { font-size:23px; }
 #palace-chat .pc-welcome h3 { font-size:25px; }
 #palace-chat .pc-scroll { padding:20px 16px 16px; }
 #palace-chat .pc-privacy { padding:8px 16px 10px; }
}
@media (max-width:350px) {
 #palace-chat .pc-launch { width:52px; padding:11px; justify-content:center; }
 #palace-chat .pc-launch-copy { display:none; }
 #palace-chat .pc-header { gap:4px; padding-left:12px; padding-right:12px; }
 #palace-chat #pc-title { font-size:21px; }
}
@media (max-height:600px) {
 #palace-chat .pc-header { padding-top:10px; padding-bottom:10px; }
 #palace-chat .pc-option-body { top:70px; max-height:calc(100% - 82px); }
}
@media (prefers-reduced-motion:reduce) {
 #palace-chat *, #palace-chat *::before, #palace-chat *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
 #palace-chat .pc-launch:hover { transform:none; }
}
#palace-chat .pc-launch-open { display:none; font-size:14px; font-weight:600; }
#palace-chat .pc-launch[aria-expanded="true"] :is(.pc-launch-full,.pc-launch-short) { display:none; }
#palace-chat .pc-launch[aria-expanded="true"] .pc-launch-open { display:inline; }
/* The composer supplies the shared focus ring around its input and send action. */
#palace-chat .pc-composer input:focus-visible { outline:none; }
