.ys-chat { position:fixed; z-index:2000; right:max(1rem,env(safe-area-inset-right)); bottom:calc(5rem + env(safe-area-inset-bottom)); font-family:system-ui,sans-serif; font-size:1rem; color:#222; }
#yc-bubble { width:46px; height:46px; border:0; border-radius:50%; background:#a92c31; color:white; cursor:pointer; font-size:1.3rem; box-shadow:0 3px 14px #0003; }
#yc-box { position:absolute; right:0; bottom:54px; width:min(340px,calc(100vw - 32px)); max-height:calc(100dvh - 156px); display:flex; flex-direction:column; background:white; border:1px solid #ccc; border-radius:14px; box-shadow:0 10px 32px #0003; overflow:auto; }
#yc-box[hidden] { display:none; }
.yc-heading { position:static; display:flex; justify-content:space-between; align-items:center; background:#842329; color:white; padding:.45rem .8rem; }
#yc-close { border:0; background:transparent; color:white; font-size:1.6rem; padding:.2rem .55rem; cursor:pointer; }
#yc-msgs { min-height:4rem; overflow:auto; padding:.7rem; line-height:1.5; }
#yc-msgs p { margin:.3rem 0; padding:.45rem .6rem; border-radius:8px; overflow-wrap:anywhere; }
#yc-msgs .bot { background:#f6f3f2; }
#yc-msgs .user { color:white; background:#842329; }
#yc-box form { display:flex; align-items:center; gap:.35rem; padding:.6rem; }
#yc-input { width:100%; min-width:0; resize:vertical; border:1px solid #888; border-radius:6px; padding:.4rem; font:inherit; }
#yc-send { border:0; background:#842329; color:white; padding:.55rem; border-radius:6px; cursor:pointer; }
.yc-contact { margin:0 .7rem .7rem; color:#842329; text-decoration:underline; }
