/**
 * Modales jquery-confirm — estilo Delibreakfast (rojo marca, tipografía amplia).
 * Cargar después de jquery-confirm.min.css.
 */

.jconfirm .jconfirm-box-container.delibreakfast-confirm {
    width: auto !important;
    max-width: min(480px, 92vw) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.jconfirm .jconfirm-box.delibreakfast-confirm,
.jconfirm .delibreakfast-confirm .jconfirm-box {
    width: min(480px, 92vw) !important;
    max-width: 92vw !important;
    padding: clamp(20px, 4vw, 28px) clamp(18px, 4vw, 28px) clamp(18px, 3vw, 24px) !important;
    box-sizing: border-box;
    border-radius: var(--delibreakfast-btn-radius, 10px) !important;
}

.jconfirm .jconfirm-box.delibreakfast-confirm .jconfirm-title-c,
.jconfirm .delibreakfast-confirm .jconfirm-title-c {
    padding-bottom: clamp(12px, 2.5vw, 18px) !important;
}

.jconfirm .jconfirm-box.delibreakfast-confirm .jconfirm-title-c .jconfirm-title,
.jconfirm .delibreakfast-confirm .jconfirm-title-c .jconfirm-title {
    color: var(--delibreakfast-red, var(--color-brand, #DC3545)) !important;
    font-weight: 700 !important;
    font-size: clamp(1.35rem, 4.2vw, 1.65rem) !important;
    line-height: 1.25 !important;
}

.jconfirm .jconfirm-box.delibreakfast-confirm .jconfirm-content,
.jconfirm .delibreakfast-confirm .jconfirm-content {
    font-size: clamp(1.05rem, 2.9vw, 1.15rem) !important;
    line-height: 1.55 !important;
    max-height: 50vh;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #222;
}

.jconfirm .delibreakfast-confirm .delibreakfast-confirm__body {
    font-size: inherit;
    line-height: inherit;
}

.jconfirm .delibreakfast-confirm .delibreakfast-confirm__ack {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
    cursor: pointer;
    font-size: clamp(1rem, 2.8vw, 1.1rem) !important;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
}

.jconfirm .delibreakfast-confirm .delibreakfast-confirm__ack input {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.2em;
    flex-shrink: 0;
}

.jconfirm .jconfirm-box.delibreakfast-confirm .jconfirm-buttons,
.jconfirm .delibreakfast-confirm .jconfirm-buttons {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 100%;
    padding-top: clamp(10px, 2vw, 16px) !important;
    float: none !important;
}

.jconfirm .jconfirm-box.delibreakfast-confirm .jconfirm-buttons button,
.jconfirm .delibreakfast-confirm .jconfirm-buttons button {
    float: none !important;
    margin: 0 !important;
    min-width: clamp(120px, 28vw, 140px);
    padding: clamp(10px, 2.5vw, 12px) clamp(18px, 4vw, 26px) !important;
    font-weight: 700 !important;
    font-size: clamp(0.95rem, 2.6vw, 1.05rem) !important;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: var(--delibreakfast-btn-radius, 10px) !important;
}

.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-secondary {
    background-color: transparent !important;
    color: var(--delibreakfast-red, var(--color-brand, #DC3545)) !important;
    border: 2px solid var(--delibreakfast-red, var(--color-brand, #DC3545)) !important;
}

.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-secondary:hover,
.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-secondary:focus {
    background-color: rgba(220, 53, 69, 0.08) !important;
    color: var(--delibreakfast-red-hover, #c82333) !important;
    border-color: var(--delibreakfast-red-hover, #c82333) !important;
}

.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-primary {
    background-color: var(--delibreakfast-red, var(--color-brand, #DC3545)) !important;
    color: #fff !important;
    border: 2px solid var(--delibreakfast-red, var(--color-brand, #DC3545)) !important;
    margin-left: 0 !important;
}

.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-primary:hover,
.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-primary:focus {
    background-color: var(--delibreakfast-red-hover, #c82333) !important;
    border-color: var(--delibreakfast-red-hover, #c82333) !important;
    color: #fff !important;
}

.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-primary.disabled,
.jconfirm .delibreakfast-confirm button.btn-delibreakfast-confirm-primary:disabled {
    opacity: 0.45 !important;
    cursor: not-allowed !important;
}

.jconfirm .delibreakfast-confirm .jconfirm-buttons button:only-child {
    margin-left: auto !important;
    margin-right: auto !important;
}

div.jconfirm-buttons button:not(.btn-delibreakfast-confirm-primary):not(.btn-delibreakfast-confirm-secondary) {
    background-color: #000 !important;
    color: #fff !important;
}
