/* Chat de Guarco Radio: estilos aislados del portal. */
#cm-radio-chat, #cm-radio-chat * { box-sizing: border-box; }
#cm-radio-chat { --cm-chat-bottom: 132px; position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: var(--cm-chat-bottom); z-index: 990; font: 15px/1.45 system-ui, sans-serif; color: #162b43; }
#cm-radio-chat [hidden] { display: none !important; }
#cm-radio-chat button, #cm-radio-chat input, #cm-radio-chat textarea { font: inherit; }
#cm-radio-chat button { cursor: pointer; }
#cm-radio-chat button:disabled { cursor: wait; opacity: .65; }
#cm-radio-chat button:focus-visible, #cm-radio-chat a:focus-visible, #cm-radio-chat input:focus-visible, #cm-radio-chat textarea:focus-visible { outline: 3px solid #58c7f3; outline-offset: 2px; }
#cm-radio-chat .cm-chat-toggle { margin-left: auto; display: flex; align-items: center; gap: 10px; color: #fff; background: #1268d3; border: 1px solid #3389ef; border-radius: 999px; padding: 12px 17px; font-weight: 800; box-shadow: 0 8px 28px #081a3550; }
#cm-radio-chat .cm-chat-toggle svg { flex: none; width: 22px; height: 22px; }
#cm-radio-chat .cm-chat-badge { background: #b91c1c; color: white; min-width: 23px; height: 23px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; padding: 0 3px; }
#cm-radio-chat .cm-chat-window { position: absolute; right: 0; bottom: calc(100% + 10px); display: flex; flex-direction: column; width: min(390px, calc(100vw - 36px)); max-height: min(620px, calc(100vh - var(--cm-chat-bottom) - 75px)); max-height: min(620px, calc(100dvh - var(--cm-chat-bottom) - 75px)); background: #fff; border: 1px solid #c7d9eb; border-radius: 18px; box-shadow: 0 18px 60px #081a3545; overflow: hidden; }
#cm-radio-chat .cm-chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: #081a35; color: #fff; }
#cm-radio-chat .cm-chat-mark { width: 38px; height: 38px; border-radius: 11px; background: #1268d3; display: grid; place-items: center; font-size: 19px; flex: none; }
#cm-radio-chat .cm-chat-heading { flex: 1; min-width: 0; }
#cm-radio-chat .cm-chat-heading strong, #cm-radio-chat .cm-chat-status { display: block; }
#cm-radio-chat .cm-chat-status { color: #c7d9eb; font-size: 12px; }
#cm-radio-chat .cm-chat-status[data-state="online"] { color: #8ff0c4; }
#cm-radio-chat .cm-chat-close { background: transparent; color: #fff; border: 1px solid #ffffff55; border-radius: 9px; width: 36px; height: 36px; font-size: 24px; line-height: 1; }
#cm-radio-chat .cm-chat-body { overflow-y: auto; overscroll-behavior: contain; padding: 13px; min-height: 0; }
#cm-radio-chat .cm-chat-note { font-size: 12px; color: #52647b; margin: 0 0 10px; }
#cm-radio-chat .cm-chat-announcement { margin: 0 0 10px; padding: 10px; border: 1px solid #91c8ff; border-radius: 10px; background: #eaf4ff; overflow-wrap: anywhere; }
#cm-radio-chat .cm-chat-announcement p { margin: 4px 0 0; }
#cm-radio-chat .cm-chat-list { display: grid; gap: 7px; list-style: none; padding: 0; margin: 0 0 9px; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
#cm-radio-chat .cm-chat-list li { padding: 8px 10px; border-radius: 10px; background: #f1f5f9; border: 1px solid #e0e8f0; }
#cm-radio-chat .cm-chat-list li.cm-chat-cabina { background: #e5f2ff; border-color: #a6cefa; }
#cm-radio-chat .cm-chat-meta { display: flex; gap: 8px; justify-content: space-between; align-items: baseline; }
#cm-radio-chat .cm-chat-meta strong { min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
#cm-radio-chat .cm-chat-meta time { color: #60748b; font-size: 11px; flex: none; }
#cm-radio-chat .cm-chat-list p { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 14px; }
#cm-radio-chat .cm-chat-empty, #cm-radio-chat .cm-chat-closed { font-size: 13px; color: #52647b; margin: 8px 0; }
#cm-radio-chat .cm-chat-form { display: grid; gap: 8px; border-top: 1px solid #dfe7ef; padding-top: 10px; }
#cm-radio-chat .cm-chat-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#cm-radio-chat .cm-chat-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 650; min-width: 0; }
#cm-radio-chat .cm-chat-form input, #cm-radio-chat .cm-chat-form textarea { width: 100%; min-width: 0; border: 1px solid #bdccdc; border-radius: 9px; padding: 8px; background: #fff; color: #162b43; font-size: 16px; }
#cm-radio-chat .cm-chat-form textarea { resize: vertical; min-height: 62px; }
#cm-radio-chat .cm-chat-trap { position: absolute!important; left: -10000px!important; width: 1px!important; height: 1px!important; overflow: hidden!important; }
#cm-radio-chat .cm-chat-sendrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#cm-radio-chat .cm-chat-counter { font-size: 12px; color: #52647b; }
#cm-radio-chat .cm-chat-send { border: 0; padding: 9px 13px; border-radius: 9px; color: #fff; background: #1268d3; font-weight: 750; }
#cm-radio-chat .cm-chat-feedback { font-size: 12px; margin: 0; min-height: 1em; color: #52647b; }
#cm-radio-chat .cm-chat-feedback[data-state="error"] { color: #a51d2d; }
#cm-radio-chat .cm-chat-feedback[data-state="success"] { color: #13713e; }
#cm-radio-chat .cm-chat-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 13px; border-top: 1px solid #dfe7ef; font-size: 12px; flex: none; }
#cm-radio-chat .cm-chat-bottom a { color: #1268d3; font-weight: 750; }
@media (max-width: 520px) { #cm-radio-chat { right: max(12px, env(safe-area-inset-right)); } #cm-radio-chat .cm-chat-window { width: min(390px, calc(100vw - 24px)); } #cm-radio-chat .cm-chat-fields { grid-template-columns: 1fr; } #cm-radio-chat .cm-chat-list { max-height: 150px; } }
@media (max-height: 480px) { #cm-radio-chat .cm-chat-window { position: fixed; top: 8px; bottom: 8px; right: 8px; max-height: none; } }
