/* Palette ereditata dalla skin; pulsanti compatti su desktop, comodi al tocco su mobile. */
#zoom_slider_chat { display:none !important; pointer-events:none !important; }
#chat_contents { top:0; font-size:var(--gb-chat-font, 100%) !important; line-height:1.5; overflow-wrap:break-word; }
#chat_contents .chat_nome { zoom:1 !important; font-size:1em !important; line-height:inherit; white-space:normal; overflow-wrap:anywhere; }
#chat_contents .chat_nome a, #chat_contents .chat_nome span, #chat_contents .voce { font-size:inherit !important; line-height:inherit; }
#chat_contents { overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
html[data-gb-chat-mobile="1"][data-gb-chat-open="1"], html[data-gb-chat-mobile="1"][data-gb-chat-open="1"] body { overflow:hidden !important; overscroll-behavior:none; }
html[data-gb-chat-mobile="1"] #chat_contents { touch-action:pan-y pinch-zoom; }
#chat #gb_chat_font_mobile { position:absolute; display:flex; align-items:center; justify-content:flex-end; gap:3px; top:0; bottom:auto; left:auto; right:0; width:auto; height:24px; padding:1px 5px; box-sizing:border-box; z-index:2; color:var(--gb-chat-ui-ink, #f5f5f5); background:var(--gb-chat-ui-bg, #262626); border:1px solid currentColor; border-radius:18px; font:12px Tahoma, Geneva, sans-serif; }
#chat #gb_chat_font_mobile button { box-sizing:border-box; min-width:30px; height:20px; margin:0; padding:0 5px; border:0; border-radius:12px; color:inherit; background:transparent; font:inherit; font-weight:bold; line-height:1; cursor:pointer; touch-action:manipulation; }
#chat #gb_chat_font_mobile button:hover { background-color:rgba(127,127,127,.18); }
#chat #gb_chat_font_mobile button:focus-visible { outline:2px solid currentColor; outline-offset:1px; }
#chat #gb_chat_font_mobile button:disabled { opacity:.35; cursor:default; }
#chat #gb_chat_font_valore { min-width:34px; text-align:center; font-size:.9em; opacity:.8; }
html[data-gb-chat-mobile="1"] #chat_contents { top:calc(44px * var(--gb-chat-scale, 1)); }
html[data-gb-chat-mobile="1"] #chat #gb_chat_font_mobile { gap:calc(6px * var(--gb-chat-scale, 1)); top:0; left:0; right:0; height:calc(40px * var(--gb-chat-scale, 1)); padding:0 calc(5px * var(--gb-chat-scale, 1)); border-width:0 0 1px; border-radius:0; font-size:calc(13px * var(--gb-chat-scale, 1)); }
html[data-gb-chat-mobile="1"] #chat #gb_chat_font_mobile button { min-width:calc(44px * var(--gb-chat-scale, 1)); height:calc(34px * var(--gb-chat-scale, 1)); padding:0 calc(5px * var(--gb-chat-scale, 1)); border:1px solid currentColor; border-radius:calc(5px * var(--gb-chat-scale, 1)); }
html[data-gb-chat-mobile="1"] #chat #gb_chat_font_valore { min-width:calc(20px * var(--gb-chat-scale, 1)); }
