.c-overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.5);
}

.c-dialog {
    --dialog-gap: 2em;
    --dialog-justify-items: center;
    --dialog-align-items: center;
    --dialog-min-width: 8rem;
    --dialog-min-height: 8rem;
    overflow: inherit;
    flex-direction: column;
    justify-items: var(--dialog-justify-items);
    align-items: var(--dialog-align-items);
    position: relative;
    width: var(--dialog-width, fit-content);
    min-width: var(--dialog-min-width, 6em);
    pointer-events: all;
    background-color: #fff;
    outline: 0;
    background-clip: padding-box;
    border-radius: .3rem;
    -webkit-box-shadow: 0 4px 8px -2px rgba(9, 30, 66, 0.25), 0px 0px 0px 1px rgba(9, 30, 66, 0.08);
    box-shadow: 0 4px 8px -2px rgba(9, 30, 66, 0.25), 0px 0px 0px 1px rgba(9, 30, 66, 0.08);
}

.c-dialog__host {
    display: flex;
    align-items: var(--dialog-host-align, center);
    justify-content: var(--dialog-host-justify, center);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.c-dialog__wrapper {
    perspective: 1300px; /* for animations */
}

.c-dialog__contanier {
    will-change: opacity, transform, transition, transform-origin, transform-style;
}

.c-dialog__wrapper .c-dialog {
    overflow-x: hidden;
}

.c-dialog--top-center {
    margin-top: var(--dialog-gap, 2em);
}

.c-dialog--top-left {
    margin-top: var(--dialog-gap, 2em);
    margin-left: var(--dialog-gap, 2em);
}

.c-dialog--top-right {
    margin-top: var(--dialog-gap, 2em);
    margin-right: var(--dialog-gap, 2em);
}

.c-dialog--center-left {
    margin-left: var(--dialog-gap, 2em);
}

.c-dialog--center-right {
    margin-right: var(--dialog-gap, 2em);
}

.c-dialog--bottom-center {
    margin-bottom: var(--dialog-gap, 2em);
}

.c-dialog--bottom-left {
    margin-left: var(--dialog-gap, 2em);
    margin-bottom: var(--dialog-gap, 2em);
}

.c-dialog--bottom-right {
    margin-bottom: var(--dialog-gap, 2em);
    margin-right: var(--dialog-gap, 2em);
}

.c-dialog--active {
    display: flex;
}

.c-dialog--resize {
    resize: both;
    overflow: hidden;
    min-height: var(--dialog-min-height, 6rem);
    min-width: var(--dialog-min-width, 6rem);
}

.c-dialog--resize-horizontal {
    resize: horizontal;
    overflow-x: hidden;
    min-height: var(--dialog-min-height, 6rem);
    min-width: var(--dialog-min-width, 6rem);
}

.c-dialog--resize-vertical {
    resize: vertical;
    overflow-y: hidden;
    min-height: var(--dialog-min-height, 6rem);
    min-width: var(--dialog-min-width, 6rem);
}

.c-overlay--active {
    display: block;
}
.c-overlay--transparent {
    background-color: transparent;
}

.c-dialog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -1px;
    width: inherit;
    min-width: 100%;
    padding: .5rem .5rem .5rem 1rem;
    border-radius: .3em .3em 0 0;
}

.c-dialog__header--neutral {
    border-bottom: 1px solid #dee2e6;
    background-color: rgba(0,0,0,.03);
}

.c-dialog__title {
    margin-bottom: 0;
    line-height: 1.5;
}

.c-dialog__body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1em;
    font-size: 1rem;
}

.c-dialog__body--scroll {
    overflow-y: auto;
}

.c-dialog__close {
    overflow: hidden;
    position: relative;
    margin-left: 1em;
    padding: 0.25em;
    width: 1.5em;
    height: 1.5em;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--neutral-color1);
    font: inherit;
    text-indent: 100%;
    cursor: pointer;
}

    .c-dialog__close:focus {
        outline: solid 0 transparent;
        box-shadow: 0 0 0 2px var(--neutral-color1);
    }

    .c-dialog__close:hover {
        background: var(--neutral-focus-visual-hover);
    }

    .c-dialog__close:before, .c-dialog__close:after {
        position: absolute;
        top: 15%;
        left: calc(50% - .0625em);
        width: 0.125em;
        height: 70%;
        border-radius: 0.125em;
        transform: rotate(45deg);
        background: currentcolor;
        content: "";
    }

.c-dialog__close:after {
        transform: rotate(-45deg);
    }

.c-dialog__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 1.25em auto 0;
    padding-bottom: 2em;
    gap: 0.5em;
}

.c-dialog__footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    width: 100%;
    padding: .5rem 1rem;
    border-radius: 0 0 .3em .3em;
}

.c-dialog__footer--neutral {
    border-top: 1px solid #dee2e6;
    background-color: rgba(0,0,0,.03);
}

.c-dialog__timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 0.25em;
    width: 100%;
    background-color: rgba(0 0 0 / 0.5);
    border-radius: 0 0 0 3px;
    transition: width 2000ms linear;
}

.c-dialog__timer--top {
    top: -1px;
    bottom: unset;
    border-radius: 3px 0 0 0;
}

/* -------------------------------------- */

.c-dialog__content {
    display: contents;
    flex: 1 1 0;
    margin: 0 2em;
    padding-top: 1em;
}

.c-dialog__content--right {
    display: flex;
    padding: 2em 2em 1em 2em;
    align-items: center;
    flex-direction: row-reverse;
}

.c-dialog__content--right .swal2-icon {
    margin: 0;
}

.c-dialog__content--right .c-dialog__body {
    display: flex;
    justify-content: end;
}

.c-dialog__content--left {
    display: flex;
    padding: 2em 2em 1em 2em;
    align-items: center;
    flex-direction: row;
}

.c-dialog__content--left .swal2-icon {
    margin: 0;
}

.c-dialog__content--left .c-dialog__body {
    display: flex;
    justify-content: start;
}

.c-dialog__content--bottom {
    display: flex;
    flex-direction: column-reverse;
    margin: 1em 2em 0;
}

.c-dialog__content--bottom .swal2-icon {
    margin: 0 auto 2em;
}

/* -------------------------------------- */

.c-dialog--accent {
    border-width: 2px;
    border-color: var(--accent-background, #0078D4);
    padding-top: 0;
}

    .c-dialog--accent .c-dialog__header--accent,
    .c-dialog--accent .c-dialog__footer--accent {
        background-color: var(--accent-background, #0078D4);
        border: 3px solid var(--accent-background);
        color: var(--accent-color, #FFF);
    }

.c-dialog--accent-indigo {
    --accent-background: #6610f2;
    --accent-color: #FFF;
}

.c-dialog--accent-purple {
    --accent-background: #6f42c1;
    --accent-color: #FFF;
}

.c-dialog--accent-red {
    --accent-background: #dc3545;
    --accent-color: #FFF;
}

.c-dialog--accent-orange {
    --accent-background: #fd7e14;
    --accent-color: #FFF;
}

.c-dialog--accent-green {
    --accent-background: #198754;
    --accent-color: #FFF;
}

/* --------------------------------------------------------------------- */
/* ref: https://sweetalert2.github.io/#icons */

.swal2-timer-progress-bar-container {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    grid-column: auto !important;
    height: .25em;
    overflow: hidden;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px
}

.swal2-timer-progress-bar {
    width: 100%;
    height: .25em;
    background: rgba(0, 0, 0, .2)
}

.swal2-icon {
    position: relative;
    box-sizing: content-box;
    justify-content: center;
    width: 5em;
    height: 5em;
    margin: 2.5em auto .6em;
    border: .25em solid transparent;
    border-radius: 50%;
    border-color: #000;
    font-family: inherit;
    line-height: 5em;
    cursor: default;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

    .swal2-icon .swal2-icon-content {
        display: flex;
        align-items: center;
        color: inherit;
        font-size: 3.75em
    }

    .swal2-icon.swal2-error {
        border-color: #f27474;
        color: #f27474
    }

        .swal2-icon.swal2-error .swal2-x-mark {
            position: relative;
            flex-grow: 1
        }

        .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
            display: block;
            position: absolute;
            top: 2.3125em;
            width: 2.9375em;
            height: .3125em;
            border-radius: .125em;
            background-color: #f27474
        }

            .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left] {
                left: 1.0625em;
                transform: rotate(45deg)
            }

            .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right] {
                right: 1em;
                transform: rotate(-45deg)
            }

        .swal2-icon.swal2-error.swal2-icon-show {
            -webkit-animation: swal2-animate-error-icon .5s;
            animation: swal2-animate-error-icon .5s
        }

            .swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark {
                -webkit-animation: swal2-animate-error-x-mark .5s;
                animation: swal2-animate-error-x-mark .5s
            }

    .swal2-icon.swal2-warning {
        border-color: #facea8;
        color: #f8bb86
    }

        .swal2-icon.swal2-warning.swal2-icon-show {
            -webkit-animation: swal2-animate-error-icon .5s;
            animation: swal2-animate-error-icon .5s
        }

            .swal2-icon.swal2-warning.swal2-icon-show .swal2-icon-content {
                -webkit-animation: swal2-animate-i-mark .5s;
                animation: swal2-animate-i-mark .5s
            }

    .swal2-icon.swal2-info {
        border-color: #9de0f6;
        color: #3fc3ee
    }

        .swal2-icon.swal2-info.swal2-icon-show {
            -webkit-animation: swal2-animate-error-icon .5s;
            animation: swal2-animate-error-icon .5s
        }

            .swal2-icon.swal2-info.swal2-icon-show .swal2-icon-content {
                -webkit-animation: swal2-animate-i-mark .8s;
                animation: swal2-animate-i-mark .8s
            }

    .swal2-icon.swal2-question {
        border-color: #c9dae1;
        color: #87adbd
    }

        .swal2-icon.swal2-question.swal2-icon-show {
            -webkit-animation: swal2-animate-error-icon .5s;
            animation: swal2-animate-error-icon .5s
        }

            .swal2-icon.swal2-question.swal2-icon-show .swal2-icon-content {
                -webkit-animation: swal2-animate-question-mark .8s;
                animation: swal2-animate-question-mark .8s
            }

    .swal2-icon.swal2-success {
        border-color: #a5dc86;
        color: #a5dc86
    }

        .swal2-icon.swal2-success [class^=swal2-success-circular-line] {
            position: absolute;
            width: 3.75em;
            height: 7.5em;
            transform: rotate(45deg);
            border-radius: 50%
        }

            .swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left] {
                top: -.4375em;
                left: -2.0635em;
                transform: rotate(-45deg);
                transform-origin: 3.75em 3.75em;
                border-radius: 7.5em 0 0 7.5em
            }

            .swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right] {
                top: -.6875em;
                left: 1.875em;
                transform: rotate(-45deg);
                transform-origin: 0 3.75em;
                border-radius: 0 7.5em 7.5em 0
            }

        .swal2-icon.swal2-success .swal2-success-ring {
            position: absolute;
            z-index: 2;
            top: -.25em;
            left: -.25em;
            box-sizing: content-box;
            width: 100%;
            height: 100%;
            border: .25em solid rgba(165, 220, 134, .3);
            border-radius: 50%
        }

        .swal2-icon.swal2-success .swal2-success-fix {
            position: absolute;
            z-index: 1;
            top: .5em;
            left: 1.625em;
            width: .4375em;
            height: 5.625em;
            transform: rotate(-45deg)
        }

        .swal2-icon.swal2-success [class^=swal2-success-line] {
            display: block;
            position: absolute;
            z-index: 2;
            height: .3125em;
            border-radius: .125em;
            background-color: #a5dc86
        }

            .swal2-icon.swal2-success [class^=swal2-success-line][class$=tip] {
                top: 2.875em;
                left: .8125em;
                width: 1.5625em;
                transform: rotate(45deg)
            }

            .swal2-icon.swal2-success [class^=swal2-success-line][class$=long] {
                top: 2.375em;
                right: .5em;
                width: 2.9375em;
                transform: rotate(-45deg)
            }

        .swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip {
            -webkit-animation: swal2-animate-success-line-tip .75s;
            animation: swal2-animate-success-line-tip .75s
        }

        .swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long {
            -webkit-animation: swal2-animate-success-line-long .75s;
            animation: swal2-animate-success-line-long .75s
        }

        .swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right {
            -webkit-animation: swal2-rotate-success-circular-line 4.25s ease-in;
            animation: swal2-rotate-success-circular-line 4.25s ease-in
        }

[class^=swal2] {
    -webkit-tap-highlight-color: transparent
}

.swal2-show {
    -webkit-animation: swal2-show .3s;
    animation: swal2-show .3s
}

.swal2-hide {
    -webkit-animation: swal2-hide .15s forwards;
    animation: swal2-hide .15s forwards
}

.swal2-noanimation {
    transition: none
}

@-webkit-keyframes swal2-show {
    0% {
        transform: scale(.7)
    }

    45% {
        transform: scale(1.05)
    }

    80% {
        transform: scale(.95)
    }

    100% {
        transform: scale(1)
    }
}

@keyframes swal2-show {
    0% {
        transform: scale(.7)
    }

    45% {
        transform: scale(1.05)
    }

    80% {
        transform: scale(.95)
    }

    100% {
        transform: scale(1)
    }
}

@-webkit-keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1
    }

    100% {
        transform: scale(.5);
        opacity: 0
    }
}

@keyframes swal2-hide {
    0% {
        transform: scale(1);
        opacity: 1
    }

    100% {
        transform: scale(.5);
        opacity: 0
    }
}

@-webkit-keyframes swal2-animate-success-line-tip {
    0% {
        top: 1.1875em;
        left: .0625em;
        width: 0
    }

    54% {
        top: 1.0625em;
        left: .125em;
        width: 0
    }

    70% {
        top: 2.1875em;
        left: -.375em;
        width: 3.125em
    }

    84% {
        top: 3em;
        left: 1.3125em;
        width: 1.0625em
    }

    100% {
        top: 2.8125em;
        left: .8125em;
        width: 1.5625em
    }
}

@keyframes swal2-animate-success-line-tip {
    0% {
        top: 1.1875em;
        left: .0625em;
        width: 0
    }

    54% {
        top: 1.0625em;
        left: .125em;
        width: 0
    }

    70% {
        top: 2.1875em;
        left: -.375em;
        width: 3.125em
    }

    84% {
        top: 3em;
        left: 1.3125em;
        width: 1.0625em
    }

    100% {
        top: 2.8125em;
        left: .8125em;
        width: 1.5625em
    }
}

@-webkit-keyframes swal2-animate-success-line-long {
    0% {
        top: 3.375em;
        right: 2.875em;
        width: 0
    }

    65% {
        top: 3.375em;
        right: 2.875em;
        width: 0
    }

    84% {
        top: 2.1875em;
        right: 0;
        width: 3.4375em
    }

    100% {
        top: 2.375em;
        right: .5em;
        width: 2.9375em
    }
}

@keyframes swal2-animate-success-line-long {
    0% {
        top: 3.375em;
        right: 2.875em;
        width: 0
    }

    65% {
        top: 3.375em;
        right: 2.875em;
        width: 0
    }

    84% {
        top: 2.1875em;
        right: 0;
        width: 3.4375em
    }

    100% {
        top: 2.375em;
        right: .5em;
        width: 2.9375em
    }
}

@-webkit-keyframes swal2-rotate-success-circular-line {
    0% {
        transform: rotate(-45deg)
    }

    5% {
        transform: rotate(-45deg)
    }

    12% {
        transform: rotate(-405deg)
    }

    100% {
        transform: rotate(-405deg)
    }
}

@keyframes swal2-rotate-success-circular-line {
    0% {
        transform: rotate(-45deg)
    }

    5% {
        transform: rotate(-45deg)
    }

    12% {
        transform: rotate(-405deg)
    }

    100% {
        transform: rotate(-405deg)
    }
}

@-webkit-keyframes swal2-animate-error-x-mark {
    0% {
        margin-top: 1.625em;
        transform: scale(.4);
        opacity: 0
    }

    50% {
        margin-top: 1.625em;
        transform: scale(.4);
        opacity: 0
    }

    80% {
        margin-top: -.375em;
        transform: scale(1.15)
    }

    100% {
        margin-top: 0;
        transform: scale(1);
        opacity: 1
    }
}

@keyframes swal2-animate-error-x-mark {
    0% {
        margin-top: 1.625em;
        transform: scale(.4);
        opacity: 0
    }

    50% {
        margin-top: 1.625em;
        transform: scale(.4);
        opacity: 0
    }

    80% {
        margin-top: -.375em;
        transform: scale(1.15)
    }

    100% {
        margin-top: 0;
        transform: scale(1);
        opacity: 1
    }
}

@-webkit-keyframes swal2-animate-error-icon {
    0% {
        transform: rotateX(100deg);
        opacity: 0
    }

    100% {
        transform: rotateX(0);
        opacity: 1
    }
}

@keyframes swal2-animate-error-icon {
    0% {
        transform: rotateX(100deg);
        opacity: 0
    }

    100% {
        transform: rotateX(0);
        opacity: 1
    }
}

@-webkit-keyframes swal2-rotate-loading {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes swal2-rotate-loading {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

@-webkit-keyframes swal2-animate-question-mark {
    0% {
        transform: rotateY(-360deg)
    }

    100% {
        transform: rotateY(0)
    }
}

@keyframes swal2-animate-question-mark {
    0% {
        transform: rotateY(-360deg)
    }

    100% {
        transform: rotateY(0)
    }
}

@-webkit-keyframes swal2-animate-i-mark {
    0% {
        transform: rotateZ(45deg);
        opacity: 0
    }

    25% {
        transform: rotateZ(-25deg);
        opacity: .4
    }

    50% {
        transform: rotateZ(15deg);
        opacity: .8
    }

    75% {
        transform: rotateZ(-5deg);
        opacity: 1
    }

    100% {
        transform: rotateX(0);
        opacity: 1
    }
}

@keyframes swal2-animate-i-mark {
    0% {
        transform: rotateZ(45deg);
        opacity: 0
    }

    25% {
        transform: rotateZ(-25deg);
        opacity: .4
    }

    50% {
        transform: rotateZ(15deg);
        opacity: .8
    }

    75% {
        transform: rotateZ(-5deg);
        opacity: 1
    }

    100% {
        transform: rotateX(0);
        opacity: 1
    }
}

@media (max-width: 640px) {
    .c-dialog {
        top: 0;
        left: 0;
        bottom: 0;
        right: 0;
        transform: none;
        height: 100vh;
        width: 100%;
        overflow: auto;
        border-radius: 0;
    }

    .c-dialog__header,
    .c-dialog__footer {
        border-radius: 0;
    }
}