/*
 * Overrides on top of sweetalert2's own CSS so the dialogs follow our light
 * and dark themes. Each selector repeats the library's one, so this file must
 * be loaded after sweetalert2.css.
 *
 * TODO Sweetalert2 v11 exposes CSS variables for most of these.
 */

.swal2-popup {
    background: var(--on-surface);
}

.swal2-popup.swal2-toast {
    background: var(--swal2-black);
}

.swal2-title {
    color: var(--font-color);
}

.swal2-content {
    color: var(--font-color);
    font-size: 1.0625rem;
}

.swal2-footer {
    border-top: 1px solid #555;
    color: var(--font-color);
}

.swal2-styled:focus,
.swal2-popup.swal2-toast .swal2-styled:focus {
    box-shadow: 0 0 0 1px var(--on-surface), 0 0 0 3px rgba(138, 176, 213, 0.5);
}

.swal2-input,
.swal2-file,
.swal2-textarea,
.swal2-select,
.swal2-range output {
    color: var(--font-color);
}

.swal2-range,
.swal2-radio,
.swal2-checkbox {
    background: var(--on-surface);
}

.swal2-radio,
.swal2-checkbox {
    color: var(--font-color);
}

.swal2-validation-message {
    background: var(--on-surface-secondary-contrast);
    color: var(--font-color);
}

/* A hack on challenge page to get rid of duplicated Swal icon! */
.swal2-icon.swal2-info::before {
    content: none !important;
}
