
:root {
    --customModalBG: #ffffff;
    --customModalText: #222222;
    --customModalAccent: #8266ff;
    --customModalRadius: 10px;
}

.customModalBackdrop {
    display: flex;
    align-items: center;
    justify-content: center;

    position: fixed;
    inset: 0;
    z-index: 1000;

    background: rgba(0, 0, 0, 0.4);

    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.customModalBackdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.customModal {
    width: 90%;
    max-width: 320px;
    min-height: 150px;
    padding: 20px;

    background: var(--customModalBG);
    color: var(--customModalText);
    border-radius: var(--customModalRadius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);

    display: flex;
    flex-direction: column;
    justify-content: center;

    transform: scale(0.9);
    transition: transform 0.25s;
}

.customModalBackdrop.show .customModal {
    transform: scale(1);
}

.customModalMessage {
    margin: 0;
    text-align: center;
}

.customModalActions {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 15px;
}

.customModalActions button {
    padding: 8px 16px;
    font-size: 15px;
    border-radius: 7px;
    border: 2px solid var(--customModalAccent);

    background: transparent;
    color: var(--customModalAccent);
}

.customModalConfirm {
    background: var(--customModalAccent);
    color: white;
}

.customModalLoader {
    width: 24px;
    height: 24px;
    margin: 20px auto;

    border: 3px solid var(--customModalAccent);
    border-top-color: transparent;
    border-radius: 50%;

    animation: customModalSpin 0.8s linear infinite;
}

@keyframes customModalSpin {
    to {
        transform: rotate(360deg);
    }
}

.customModalCheck {
    margin: 10px auto;
    font-size: 70px;
    color: var(--customModalAccent);
    text-align: center;
}
