.rcl-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgba(17, 24, 39, 0.48);
    padding: 16px;
}

.rcl-alert-overlay.is-open {
    display: flex;
}

.rcl-alert-panel {
    width: 100%;
    max-width: 510px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
    color: #1f2937;
}

.rcl-alert-inner {
    padding: 18px 32px 28px;
    text-align: center;
}

.rcl-alert-close-row {
    display: flex;
    justify-content: flex-end;
    min-height: 24px;
}

.rcl-alert-close {
    border: 0;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.rcl-alert-close:hover {
    color: #6b7280;
}

.rcl-alert-icon-wrap {
    display: flex;
    justify-content: center;
    margin-top: 6px;
}

.rcl-alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.rcl-alert-icon.is-info,
.rcl-alert-icon.is-warning {
    background: #315fdd;
}

.rcl-alert-icon.is-error {
    background: #dc2626;
}

.rcl-alert-icon.is-success {
    background: #16a34a;
}

.rcl-alert-title {
    margin: 18px 0 10px;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}

.rcl-alert-message {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
    word-break: break-word;
}

.rcl-alert-actions {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rcl-alert-button {
    min-width: 100px;
    border-radius: 10px;
    border: 1px solid #315fdd;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.rcl-alert-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 95, 221, 0.16);
}

.rcl-alert-button.is-secondary {
    background: #ffffff;
    color: #315fdd;
}

.rcl-alert-button.is-secondary:hover {
    background: #eef3ff;
}

.rcl-alert-button.is-primary {
    background: #315fdd;
    color: #ffffff;
}

.rcl-alert-button.is-primary:hover {
    background: #244fc9;
    border-color: #244fc9;
}

/* Content slot (select rendered by rcl-alert for swal content option) */
.rcl-alert-content-slot {
    margin-top: 12px;
    display: flex;
    justify-content: center;
}

.rcl-alert-content-slot select,
.rcl-alert-content-slot input {
    width: 80%;
    padding: 8px 10px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #111827;
    background-color: #ffffff;
    outline: none;
    transition: border-color 0.15s ease;
}

.rcl-alert-content-slot select:focus,
.rcl-alert-content-slot input:focus {
    border-color: #215cde;
    box-shadow: 0 0 0 3px rgba(49, 95, 221, 0.12);
}

@media (max-width: 576px) {
    .rcl-alert-overlay {
        padding: 16px;
    }

    .rcl-alert-inner {
        padding: 16px 18px 22px;
    }

    .rcl-alert-actions {
        flex-direction: column;
    }

    .rcl-alert-button {
        width: 100%;
        min-width: 0;
    }
}