/**
 * SDM - Centro de Conversaciones · Burbuja de chat web
 * Todo queda dentro de .sdm-omnichat para que el tema no lo sobrescriba ni se vea afectado.
 * @author    SEO DIGITAL MEDIA SAS
 * @copyright 2026 SEO DIGITAL MEDIA SAS
 * @license   Licencia propietaria
 */
.sdm-omnichat, .sdm-omnichat * { box-sizing: border-box; }
.sdm-omnichat label, .sdm-omnichat p { text-align: left; }
.sdm-omnichat [hidden] { display: none !important; }
.sdm-omnichat--floating { position: fixed; bottom: var(--sdmoc-y, 20px); font-family: inherit; font-size: 14px; line-height: 1.45; color: #1f2d3d; }
.sdm-omnichat--floating.is-right { right: var(--sdmoc-x, 20px); }
.sdm-omnichat--floating.is-left { left: var(--sdmoc-x, 20px); }
.sdm-omnichat .sdm-omnichat__launchwrap { display: flex; align-items: center; gap: 10px; }
.sdm-omnichat.is-left .sdm-omnichat__launchwrap { flex-direction: row-reverse; }
.sdm-omnichat .sdm-omnichat__launcher { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--sdmoc-p); color: var(--sdmoc-pt); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0,0,0,.25); transition: transform .15s; padding: 0; margin: 0; }
.sdm-omnichat .sdm-omnichat__launcher:hover { transform: scale(1.06); }
.sdm-omnichat .sdm-omnichat__launcher:focus-visible { outline: 3px solid rgba(37,185,215,.6); outline-offset: 2px; }
.sdm-omnichat .sdm-omnichat__badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: #d32f2f; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.sdm-omnichat .sdm-omnichat__label { border: 0; background: #fff; color: #1f2d3d; border-radius: 18px; padding: 8px 14px; font-size: 13px; box-shadow: 0 4px 14px rgba(0,0,0,.15); cursor: pointer; font-family: inherit; margin: 0; }
.sdm-omnichat.is-open .sdm-omnichat__label { display: none; }
.sdm-omnichat .sdm-omnichat__panel { position: absolute; bottom: 76px; width: 370px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px); background: var(--sdmoc-bg); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.28); display: flex; flex-direction: column; overflow: hidden; animation: sdmoc-pop .18s ease-out; }
.sdm-omnichat.is-right .sdm-omnichat__panel { right: 0; }
.sdm-omnichat.is-left .sdm-omnichat__panel { left: 0; }
.sdm-omnichat--nolauncher .sdm-omnichat__panel { bottom: 0; }
@keyframes sdmoc-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.sdm-omnichat .sdm-omnichat__head { background: var(--sdmoc-p); color: var(--sdmoc-pt); padding: 14px 14px 14px 18px; display: flex; align-items: center; gap: 10px; }
.sdm-omnichat .sdm-omnichat__titles { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sdm-omnichat .sdm-omnichat__titles strong { font-size: 16px; color: inherit; }
.sdm-omnichat .sdm-omnichat__titles small { opacity: .88; font-size: 12.5px; display: flex; align-items: center; gap: 6px; color: inherit; }
.sdm-omnichat .sdm-omnichat__dot { width: 8px; height: 8px; border-radius: 50%; background: #b0bec5; display: inline-block; }
.sdm-omnichat .sdm-omnichat__dot.is-on { background: #69f0ae; }
.sdm-omnichat .sdm-omnichat__close { border: 0; background: rgba(255,255,255,.15); color: inherit; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; }
.sdm-omnichat .sdm-omnichat__list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sdm-omnichat .sdm-omnichat__msg { display: flex; }
.sdm-omnichat .sdm-omnichat__msg.is-visitor { justify-content: flex-end; }
.sdm-omnichat .sdm-omnichat__msg.is-pending { opacity: .6; }
.sdm-omnichat .sdm-omnichat__bubble { max-width: 82%; padding: 8px 12px 4px; border-radius: 16px; word-wrap: break-word; overflow-wrap: anywhere; }
.sdm-omnichat .sdm-omnichat__msg.is-agent .sdm-omnichat__bubble { background: var(--sdmoc-ab); color: var(--sdmoc-at); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.07); }
.sdm-omnichat .sdm-omnichat__msg.is-visitor .sdm-omnichat__bubble { background: var(--sdmoc-vb); color: var(--sdmoc-vt); border-bottom-right-radius: 4px; }
.sdm-omnichat .sdm-omnichat__text { white-space: pre-wrap; }
.sdm-omnichat .sdm-omnichat__text a { color: inherit; text-decoration: underline; word-break: break-all; }
.sdm-omnichat .sdm-omnichat__bubble time { display: block; text-align: right; font-size: 10.5px; opacity: .65; margin-top: 2px; }
.sdm-omnichat .sdm-omnichat__msg.is-welcome time { display: none; }
.sdm-omnichat .sdm-omnichat__bubble img { max-width: 100%; max-height: 220px; border-radius: 10px; display: block; margin-bottom: 4px; }
.sdm-omnichat .sdm-omnichat__file { display: flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; padding: 4px 0; }
.sdm-omnichat .sdm-omnichat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 4px; }
.sdm-omnichat .sdm-omnichat__chips button { border: 1px solid var(--sdmoc-p); color: var(--sdmoc-p); background: #fff; border-radius: 16px; padding: 6px 12px; cursor: pointer; font-size: 13px; font-family: inherit; margin: 0; }
.sdm-omnichat .sdm-omnichat__chips button:hover { background: var(--sdmoc-p); color: var(--sdmoc-pt); }
.sdm-omnichat .sdm-omnichat__notice { margin: 0 12px 6px; padding: 7px 10px; background: #fff8e1; color: #6b5200; border-radius: 8px; font-size: 12.5px; }
.sdm-omnichat .sdm-omnichat__composer { display: flex; align-items: flex-end; gap: 6px; padding: 10px; background: #fff; border-top: 1px solid #e6eaee; }
.sdm-omnichat .sdm-omnichat__composer textarea { flex: 1; border: 1px solid #dfe4ea; border-radius: 20px; padding: 10px 14px; resize: none; font-family: inherit; font-size: 14px; max-height: 120px; outline: none; background: #f7f9fa; color: #1f2d3d; margin: 0; line-height: 1.35; min-height: 42px; box-shadow: none; }
.sdm-omnichat .sdm-omnichat__composer textarea:focus { border-color: var(--sdmoc-p); background: #fff; }
.sdm-omnichat .sdm-omnichat__send, .sdm-omnichat .sdm-omnichat__attach { border: 0; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: 0 0 42px; padding: 0; margin: 0; }
.sdm-omnichat .sdm-omnichat__send { background: var(--sdmoc-p); color: var(--sdmoc-pt); }
.sdm-omnichat .sdm-omnichat__send[disabled] { opacity: .5; }
.sdm-omnichat .sdm-omnichat__attach { background: transparent; color: #78869a; }
.sdm-omnichat .sdm-omnichat__prechat { padding: 14px 16px; background: #fff; border-top: 1px solid #e6eaee; }
.sdm-omnichat .sdm-omnichat__prechat p { margin: 0 0 10px; font-weight: 600; }
.sdm-omnichat .sdm-omnichat__prechat label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 8px; color: #3c4650; }
.sdm-omnichat .sdm-omnichat__prechat input[type=text], .sdm-omnichat .sdm-omnichat__prechat input[type=email], .sdm-omnichat .sdm-omnichat__prechat input[type=tel] { display: block; width: 100%; margin-top: 3px; padding: 8px 10px; border: 1px solid #dfe4ea; border-radius: 8px; font-size: 14px; font-family: inherit; }
.sdm-omnichat .sdm-omnichat__consent { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.sdm-omnichat .sdm-omnichat__consent input { margin-top: 3px; }
.sdm-omnichat .sdm-omnichat__consent a { color: var(--sdmoc-p); }
.sdm-omnichat .sdm-omnichat__prechat button[type=submit] { width: 100%; border: 0; border-radius: 8px; padding: 10px; background: var(--sdmoc-p); color: var(--sdmoc-pt); font-weight: 700; cursor: pointer; font-family: inherit; margin: 0; }
.sdm-omnichat .sdm-omnichat__err:not(:empty) { color: #c62828; font-size: 12.5px; margin-bottom: 8px; }
.sdm-omnichat .sdm-omnichat__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.sdm-omnichat .sdm-omnichat__foot:not(:empty) { padding: 6px 12px 8px; background: #fff; text-align: center; font-size: 12px; }
.sdm-omnichat .sdm-omnichat__foot a { color: #229ed9; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }

.sdm-omnichat--inline { display: inline-block; margin: 6px 0; }
.sdm-omnichat .sdm-omnichat__inline-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid currentColor; background: transparent; color: #005A8F; border-radius: 20px; padding: 7px 14px; font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14px; }
.sdm-omnichat .sdm-omnichat__inline-btn:hover { background: #005A8F; color: #fff; }

@media (max-width: 520px) {
  .sdm-omnichat.is-open .sdm-omnichat__panel { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100%; max-height: none; border-radius: 0; bottom: 0; }
  .sdm-omnichat.is-open .sdm-omnichat__launchwrap { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sdm-omnichat .sdm-omnichat__panel { animation: none; } .sdm-omnichat .sdm-omnichat__launcher { transition: none; } }
