/* Misma familia visual que cm-conexion.css; independiente de sus selectores. */
dialog.cm-alert {
    position:fixed;
    inset:auto 16px 62px auto;
    margin:0;
    width:min(620px,calc(100vw - 32px));
    max-width:calc(100vw - 32px);
    max-height:calc(100dvh - 100px);
    box-sizing:border-box;
    padding:16px 18px;
    border:1px solid #dfba8b;
    border-left:5px solid #bd7130;
    border-radius:12px;
    background:#fff8ec;
    color:#5b3a1c;
    box-shadow:0 10px 35px #16382a33;
    font:14px/1.55 system-ui,sans-serif;
    overflow:auto;
    overflow-wrap:anywhere;
}
dialog.cm-alert:not([open]) {display:none!important}
dialog.cm-alert::backdrop {background:#102e252b;backdrop-filter:blur(1px)}
dialog.cm-alert h2 {margin:0;font:700 15px/1.5 system-ui,sans-serif;color:inherit}
dialog.cm-alert p {margin:7px 0 12px;white-space:pre-wrap;color:inherit}
.cm-alert-actions {display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cm-alert-actions button {font:600 12px/1.4 system-ui,sans-serif;border:1px solid currentColor;color:inherit;background:transparent;border-radius:7px;padding:9px 14px;cursor:pointer;min-height:38px}
.cm-alert-actions button:hover {background:#ffffff40}
.cm-alert-actions button:focus-visible {outline:3px solid #148975;outline-offset:3px}
dialog.cm-alert[data-type=exito] {background:#f0faf5;border-color:#b6d7c5;border-left-color:#27815a;color:#1f503a}
dialog.cm-alert[data-type=info] {background:#edf8fa;border-color:#b2d5dc;border-left-color:#277c8b;color:#215461}
dialog.cm-alert[data-type=error] {background:#fff1f0;border-color:#e0b5af;border-left-color:#b74239;color:#78332d}
[data-cm-theme=dark] dialog.cm-alert {background:#33291c;color:#ffe0b5;border-color:#8c704a;border-left-color:#ce914e}
[data-cm-theme=dark] dialog.cm-alert[data-type=exito] {background:#18392a;color:#cfebdc;border-color:#416f58;border-left-color:#6fc898}
[data-cm-theme=dark] dialog.cm-alert[data-type=info] {background:#18343a;color:#d0edf2;border-color:#436c76;border-left-color:#79c3d4}
[data-cm-theme=dark] dialog.cm-alert[data-type=error] {background:#3a211e;color:#ffd9d4;border-color:#8a534b;border-left-color:#f18f82}
@media(max-width:600px) {
    dialog.cm-alert {inset:auto 12px 56px auto;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 80px);padding:12px 14px;font-size:13px}
    .cm-alert-actions button {min-height:44px}
}
@media print {dialog.cm-alert,dialog.cm-alert::backdrop {display:none!important}}

.cm-alert-actions button[hidden] {display:none!important}
dialog.cm-alert[data-mode=confirm] .cm-alert-accept {font-weight:750;background:#ffffff38}
