#vr-support-widget, #vr-support-widget * { box-sizing: border-box; }
#vr-support-widget { position: fixed; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 7000; font: 15px/1.4 system-ui, sans-serif; color: #24221d; }
#vr-support-widget button, #vr-support-widget textarea { font: inherit; }
#vr-support-toggle { display: flex; align-items: center; justify-content: center; width: 64px; min-width: 64px; height: 64px; padding: 0; border: 0; border-radius: 50%; background: #f6c945; color: #24221d; box-shadow: 0 8px 26px #28210d42; cursor: pointer; font-weight: 800 !important; }
#vr-support-toggle span { display: none; }
#vr-support-toggle svg { width: 24px; height: 24px; flex: none; }
#vr-support-toggle:hover { background: #ffdc66; }
#vr-support-toggle:focus-visible, #vr-support-panel :focus-visible { outline: 3px solid #946d00; outline-offset: 2px; }
#vr-support-panel { position: absolute; right: 0; bottom: 76px; width: min(410px, calc(100vw - 24px)); min-height: 240px; max-height: min(610px, calc(100dvh - 108px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #e5dfd0; border-radius: 21px; background: #fffdf8; box-shadow: 0 18px 46px #25201545; }
#vr-support-panel[hidden], #vr-support-widget [hidden] { display: none !important; }
#vr-support-head { display: flex; align-items: center; justify-content: space-between; flex: none; padding: 15px 16px; background: #f6c945; }
#vr-support-head strong { font-size: 18px; }
#vr-support-head button, #vr-support-back { display: grid; place-items: center; padding: 0; border: 0; background: #ffffffb8; color: #24221d; border-radius: 9px; width: 36px; height: 36px; cursor: pointer; font-size: 19px; line-height: 1; }
#vr-support-body { flex: 1; min-height: 0; overflow: auto; padding: 14px; }
#vr-support-body p { margin: 6px 0 12px; }
#vr-support-body h3 { margin: 15px 0 9px; font-size: 13px; color: #716d62; text-transform: uppercase; letter-spacing: .04em; }
.vr-support-row { display: block; width: 100%; margin: 0 0 8px; padding: 12px; text-align: left; border: 1px solid #ebe5d7; border-radius: 12px; background: #fff; cursor: pointer; color: #24221d; }
.vr-support-row:hover { background: #fff8dd; border-color: #e2ba35; }
.vr-support-row b, .vr-support-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vr-support-row small { color: #777166; margin-top: 3px; }
.vr-support-primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; border: 0; border-radius: 11px; background: #f6c945; color: #24221d; font-weight: 800 !important; cursor: pointer; text-align: center; text-decoration: none; padding: 9px 11px; line-height: 1.25; }
.vr-support-primary:hover { background: #ffdc66; }
#vr-support-thread { display: grid; gap: 8px; align-content: start; }
.vr-support-message { max-width: 88%; padding: 10px 12px; border-radius: 12px; background: #f1eee6; white-space: pre-wrap; overflow-wrap: anywhere; }
.vr-support-message.client { margin-left: auto; background: #fff0b2; }
.vr-support-message small { display: block; margin-top: 4px; color: #79746b; }
#vr-support-compose { display: grid; gap: 8px; flex: none; padding: 12px 14px; border-top: 1px solid #ece6d9; background: #fffdf8; }
#vr-support-compose textarea { display: block; width: 100%; min-height: 64px; max-height: 150px; resize: vertical; border: 1px solid #d9d2c4; border-radius: 10px; padding: 10px; color: #24221d; background: #fff; font-size: 16px; }
#vr-support-note { display: block; min-height: 18px; color: #775e22; font-size: 12px; }
@media (max-width: 640px) { #vr-support-widget { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); } #vr-support-toggle { width: 60px; height: 60px; min-width: 60px; padding: 0; } #vr-support-toggle span { display: none; } #vr-support-panel { bottom: 70px; max-height: calc(100dvh - 90px); } }
@media print { #vr-support-widget { display: none !important; } }

/* A taller conversation area and a compact composer keep messages in view. */
#vr-support-panel { width: min(440px, calc(100vw - 24px)); height: min(680px, calc(100dvh - 108px)); min-height: 300px; max-height: none; background: #fff; }
#vr-support-panel.vr-support-gate { height: auto; min-height: 0; }
#vr-support-head { min-height: 62px; padding: 11px 15px; }
#vr-support-head strong { font-size: 17px; line-height: 1.2; }
#vr-support-close { flex: none; }
#vr-support-body { padding: 14px 15px; overscroll-behavior: contain; }
#vr-support-body h3 { margin: 18px 0 8px; }
.vr-support-row { min-height: 58px; padding: 11px 13px; }
.vr-support-new { border-color: #e7c44e; background: #fff6d1; }
.vr-support-back { display: inline-flex; align-items: center; width: auto; min-height: 38px; padding: 8px 11px; border: 1px solid #e8e2d5; background: #fff; font-size: 13px; font-weight: 800; }
#vr-support-thread { gap: 10px; padding: 5px 0 10px; }
.vr-support-message { max-width: 92%; padding: 11px 13px; line-height: 1.45; }
.vr-support-message b { font-size: 12px; }
.vr-support-message small { font-size: 11px; }
#vr-support-compose { grid-template-columns: minmax(0,1fr) 48px; align-items: end; gap: 8px; padding: 10px 12px 12px; }
#vr-support-compose textarea { min-height: 46px; max-height: 128px; resize: none; padding: 11px 12px; line-height: 1.4; }
#vr-support-compose .vr-support-primary { width: 48px; height: 46px; min-height: 46px; padding: 0; border-radius: 12px; }
#vr-support-compose .vr-support-primary svg { display: block; width: 21px; height: 21px; }
#vr-support-note { grid-column: 1 / -1; min-height: 0; }
#vr-support-note:empty { display: none; }
@media (max-width: 640px) {
  body.vr-support-open { overflow: hidden; }
  #vr-support-widget { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
  #vr-support-panel { position: fixed; inset: 0; width: 100%; height: 100dvh; min-height: 0; max-height: none; border: 0; border-radius: 0; padding-bottom: env(safe-area-inset-bottom); box-shadow: none; }
  #vr-support-panel.vr-support-gate { inset: auto 0 0; width: 100%; max-height: calc(100dvh - 14px); border-radius: 18px 18px 0 0; box-shadow: 0 -16px 45px #25201538; }
  #vr-support-head { min-height: 60px; }
  #vr-support-body { padding: 13px; }
  #vr-support-compose { padding: 9px 11px 11px; }
}
