/* Supreme Diamond chat bubble on every page (Dom, Nov 29). Same look as the home page chat.
   The bubble colors (navy with a gold outline) come from sdd-concierge.css, as on the home page. */
#sdChat{position:fixed;bottom:calc(4.5rem + env(safe-area-inset-bottom,0px));right:1.5rem;z-index:500}
#sdChatBtn{width:52px;height:52px;border-radius:50%;background:#040a14;border:1px solid #c8a84b;color:#c8a84b;cursor:pointer;display:flex;align-items:center;justify-content:center;position:relative;box-shadow:0 8px 22px rgba(0,0,0,.45);transition:transform .3s cubic-bezier(.22,1,.36,1)}
#sdChatBtn .u-ic{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#sdChatBtn:hover{transform:scale(1.08)}
#sdChatBadge{position:absolute;top:-3px;right:-3px;width:18px;height:18px;border-radius:50%;background:#c81e1e;color:#fff;font-size:.75rem;font-weight:700;display:flex;align-items:center;justify-content:center}
#sdChatBadge[hidden]{display:none!important}
#sdChatPanel{position:absolute;bottom:66px;right:0;width:330px;max-width:calc(100vw - 2rem);background:rgba(4,10,20,.96);-webkit-backdrop-filter:blur(60px) saturate(2.2);backdrop-filter:blur(60px) saturate(2.2);border:1px solid rgba(255,255,255,.1);border-radius:16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 24px 70px rgba(0,0,0,.8);display:none;flex-direction:column;overflow:hidden;text-align:left}
#sdChatPanel.open{display:flex;animation:sdc-up .3s cubic-bezier(.22,1,.36,1) both}
#sdChatHead{padding:.9rem 1.1rem;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.07);display:flex;align-items:center;gap:.7rem}
#sdChatHead img{width:36px;height:36px;border-radius:50%;object-fit:cover;object-position:center top;border:2px solid rgba(200,168,75,.35)}
.sdchat-name{font-family:'Playfair Display',Georgia,serif;font-size:.875rem;color:#fff;letter-spacing:.06em}
.sdchat-status{font-size:.875rem;color:#e8c96a;display:flex;align-items:center;gap:.3rem;margin-top:.1rem}
.sdchat-dot{width:6px;height:6px;border-radius:50%;background:#e8c96a;display:inline-block}
#sdChatClose{margin-left:auto;background:none;border:none;color:#7a9ab8;font-size:1rem;cursor:pointer;padding:.2rem;min-width:36px;min-height:36px}
#sdChatClose:hover{color:#c8a84b}
#sdChatMsgs{flex:1;overflow-y:auto;padding:.85rem .95rem;display:flex;flex-direction:column;gap:.55rem;max-height:300px;scrollbar-width:thin;scrollbar-color:rgba(200,168,75,.2) transparent}
.sdmsg{display:flex}
.sdmsg.bot{justify-content:flex-start}
.sdmsg.usr{justify-content:flex-end}
.sdmsg-bbl{max-width:84%;padding:.52rem .78rem;border-radius:12px;font-size:14px;line-height:1.6;font-family:'DM Sans',system-ui,sans-serif}
.sdmsg.bot .sdmsg-bbl{background:rgba(255,255,255,.06);color:#c8dce8;border-radius:3px 12px 12px 12px}
.sdmsg.usr .sdmsg-bbl{background:rgba(200,168,75,.16);color:#e8c96a;border:1px solid rgba(200,168,75,.22);border-radius:12px 12px 3px 12px}
.sdtyping{display:flex;gap:4px;align-items:center;padding:.48rem .78rem;background:rgba(255,255,255,.06);border-radius:12px;width:fit-content}
.sdtyping span{width:5px;height:5px;border-radius:50%;background:#7a9ab8;animation:sdc-dot 1.2s ease-in-out infinite}
.sdtyping span:nth-child(2){animation-delay:.2s}
.sdtyping span:nth-child(3){animation-delay:.4s}
#sdQuicks{display:flex;flex-wrap:wrap;gap:.35rem;padding:.55rem .85rem;border-top:1px solid rgba(255,255,255,.06)}
.sdq{font-size:.875rem;min-height:38px;padding:.4rem .85rem;display:inline-flex;align-items:center;gap:.3rem;text-decoration:none;border-radius:50px;cursor:pointer;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);color:#7a9ab8;font-family:'DM Sans',system-ui,sans-serif}
.sdq .u-ic{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sdq:hover{border-color:rgba(200,168,75,.3);color:#c8a84b;background:rgba(200,168,75,.08)}
.sdq-go{background:linear-gradient(135deg,#e8c96a,#c8a84b);color:#0a0f18;font-weight:700;border-color:transparent}
.sdq-go:hover{color:#0a0f18;background:linear-gradient(135deg,#f0d98a,#c8a84b)}
.sdacts{display:flex;flex-wrap:wrap;gap:.4rem;margin:.15rem 0 .35rem}
.sdact{display:inline-flex;align-items:center;min-height:40px;padding:.45rem .95rem;border-radius:999px;background:linear-gradient(135deg,#e8c96a,#c8a84b);color:#0a0f18;font-weight:700;font-size:.875rem;text-decoration:none;letter-spacing:.02em}
.sdact.alt{background:rgba(255,255,255,.06);color:#c8a84b;border:1px solid rgba(200,168,75,.32)}
#sdInputRow{display:flex;gap:.45rem;padding:.65rem .85rem;border-top:1px solid rgba(255,255,255,.06)}
#sdInput{flex:1;min-width:0;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:8px;color:#fff;padding:.5rem .75rem;font-family:'DM Sans',system-ui,sans-serif;font-size:16px;outline:none}
#sdInput:focus{border-color:rgba(200,168,75,.4)}
#sdInput::placeholder{color:rgba(104,136,160,.75)}
#sdSend{background:#c8a84b;border:none;color:#040a04;border-radius:8px;padding:.48rem .85rem;font-size:.875rem;font-weight:700;cursor:pointer;font-family:'DM Sans',system-ui,sans-serif;letter-spacing:.1em;min-height:40px}
#sdSend:hover{background:#e8c96a}
@keyframes sdc-up{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
@keyframes sdc-dot{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}
/* Phones: the bubble rests just above the bottom Book bar and the chat fills the screen above it. */
@media(max-width:768px){
#sdChat{bottom:calc(88px + env(safe-area-inset-bottom,0px));right:max(12px,env(safe-area-inset-right,0px))}
body:has(.sdd-mbar) #sdChat,body:has(.sd-sticky-cta) #sdChat{bottom:calc(env(safe-area-inset-bottom,0px) + 80px)}
#sdChatBtn{width:56px;height:56px}
#sdChatPanel{bottom:68px;max-height:calc(100vh - 170px);max-height:calc(100dvh - 170px)}
#sdChatMsgs{max-height:none;flex:1 1 auto;min-height:0}
html.sd-menu-open #sdChat,body:has(#sideDrawer.open) #sdChat{display:none}
/* Room under the footer so the bubble never covers its last line (phone number, links). */
html body:has(#sdChat){padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))!important}
}
@media(prefers-reduced-motion:reduce){#sdChatPanel.open,.sdtyping span{animation:none}#sdChatBtn{transition:none}}
/* Nov 29 (Dom's phone screenshot): the quick chips are a starter menu, so they hide once a question is asked and each answer brings its own buttons. On phones the header stays on one line and the panel stops below the site header. */
#sdChat:has(#sdChatMsgs .sdmsg.usr) #sdQuicks{display:none}
@media(max-width:768px){#sdChatPanel{max-height:calc(100vh - 260px)!important;max-height:calc(100dvh - 260px)!important}#sdChatHead>div{min-width:0;flex:1 1 auto}.sdchat-name,.sdchat-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
