/* ============================================================
   Rediseño del modal de confirmación (objectConfirm) para el
   sitio público. No se toca admin/panel/assets/css/dialog.css
   a propósito, porque ese archivo es compartido con el panel
   de administración.
   ============================================================ */

.dialog-background {
    background-color: rgba(20, 20, 30, .55) !important;
}

.dialog-inner {
    width: 380px !important;
    max-width: calc(100vw - 32px);
    border-radius: 16px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .28) !important;
    overflow: hidden;
}

.dialog-header {
    height: auto !important;
    padding: 24px 24px 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dialog-header::before {
    content: '?';
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e3f2fd;
    color: #1565c0;
    font-size: 18px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-header .toolbar-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #222 !important;
    line-height: 1.3;
    white-space: normal !important;
}

.dialog-content {
    max-height: none !important;
    padding: 0 24px;
    box-sizing: border-box;
}

.dialog-content p {
    font-size: 15px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 10px 0 20px !important;
}

.dialog-actions {
    padding: 0 24px 22px !important;
    display: flex !important;
    flex-direction: row-reverse;
    gap: 10px;
    box-sizing: border-box;
}

.dialog-actions > * {
    float: none !important;
    margin: 0 !important;
    flex: 1 1 0;
}

.dialog-actions > input[type="submit"] {
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: none !important;
    transition: background-color .15s ease, color .15s ease;
}

.dialog-actions > input[name="dialog_cancel"] {
    background: #f0f0f0 !important;
    color: #555 !important;
}

.dialog-actions > input[name="dialog_cancel"]:hover {
    background: #e4e4e4 !important;
}

.dialog-actions > input[name="dialog_accept"] {
    background: #1565c0 !important;
    color: #fff !important;
}

.dialog-actions > input[name="dialog_accept"]:hover {
    background: #0d47a1 !important;
}
