﻿checkmark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.cc-checkmark {
    width: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--emphasis-default-contrast);
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px var(--emphasis-default);
    animation: fill-check 0.4s ease-in-out 0.4s forwards, scale-check 0.3s ease-in-out 0.9s both;
}

.cc-checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--emphasis-default);
    fill: none;
    animation: stroke-check 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cc-checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-check 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke-check {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale-check {
    0%, 100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill-check {
    100% {
        box-shadow: inset 0px 0px 0px 30px var(--emphasis-default);
    }
}
