#rv-chat-panel{width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 100px);overflow:auto}
#rv-chat-panel h2{font-size:22px;margin:0;flex:1}#rv-chat-panel h3{font-size:19px;margin:16px 0}
#rv-chat-panel header>button{min-width:44px;min-height:44px}
#rv-chat .rv-bot-menu{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#rv-chat-panel button,#rv-chat-panel a{min-height:44px;border:1px solid #555;background:#292929;color:#fff;border-radius:5px;padding:10px 12px;font-size:14px;line-height:1.4;white-space:normal;cursor:pointer;text-decoration:none}
#rv-chat-panel a{display:block;margin:8px 0;overflow-wrap:anywhere}
#rv-chat-panel button:hover,#rv-chat-panel a:hover{border-color:#ffbd16;color:#ffbd16}
#rv-chat-panel label{display:block;margin:12px 0 5px;color:#fff;font-size:14px}
#rv-chat-panel input,#rv-chat-panel select{width:100%;min-height:44px;background:#252525;color:#fff;border:1px solid #666;border-radius:4px;padding:8px;font-size:16px;box-sizing:border-box}
#rv-chat-panel form>button{margin-top:10px;background:#ffbd16;color:#111;font-weight:700;width:100%}
#rv-chat-panel [role=status]:empty{display:none}#rv-chat-panel [role=status]{color:#ffcf58}
#rv-chat-panel p{font-size:14px;line-height:1.6}#rv-chat-panel :focus-visible{outline:3px solid #ffbd16;outline-offset:2px}

/* All viewport sizes: chat above the bottom-right rating badge. */
#rv-chat {
  right: max(16px, env(safe-area-inset-right));
  left: auto;
  bottom: calc(var(--rv-chat-bottom, 96px) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: calc(100vw - 32px);
}
#rv-chat-panel {
  max-height: max(100px, calc(100dvh - var(--rv-chat-bottom, 96px) - env(safe-area-inset-bottom) - 90px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Compact messaging launcher, matching the approved gold/charcoal design. */
#rv-chat #rv-chat-launcher {
 display: inline-flex; align-items: center; justify-content: center;
 width: 60px; height: 60px; min-width: 60px; min-height: 60px;
 padding: 0; border: 1px solid #e5a800; border-radius: 18px;
 background: linear-gradient(145deg, #ffda4a 0%, #ffbd16 58%, #efa900 100%);
 color: #202020; cursor: pointer;
 box-shadow: inset 0 1px 1px #fff5aa, 0 5px 18px #0008;
 transition: transform .16s ease, box-shadow .16s ease;
}
#rv-chat #rv-chat-launcher svg {display:block;width:42px;height:42px;pointer-events:none;}
@media (hover:hover) {
 #rv-chat #rv-chat-launcher:hover {transform:translateY(-2px);box-shadow:inset 0 1px 1px #fff5aa,0 7px 22px #0009;}
}
#rv-chat #rv-chat-launcher:focus-visible {outline:3px solid #fff;outline-offset:4px;}
#rv-chat #rv-chat-launcher:active {transform:translateY(0);}
@media (max-width:600px) {
 #rv-chat #rv-chat-launcher {width:56px;height:56px;min-width:56px;min-height:56px;border-radius:17px;}
 #rv-chat #rv-chat-launcher svg {width:39px;height:39px;}
}
@media (prefers-reduced-motion:reduce) {
 #rv-chat #rv-chat-launcher {transition:none;}
 #rv-chat #rv-chat-launcher:hover {transform:none;}
}
