.phone {
    position: fixed;
    z-index: 2100;
    bottom: 80px;
    right: 30px;
    background-color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    font-size: 14px;
    border: 10px solid #eb1c24;
    overflow: hidden;
    user-select: none;
    animation: phone 0.8s ease-in 1s infinite alternate-reverse;
}

.phone-run {
    width: 100%;
    height: 100%;
    display: flex;
    animation: slide 4s linear 1s infinite alternate;
}

.phone-run__item {
    flex-shrink: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: #eb1c24;
    padding: 5px;
}

.phone-lable {
    display: block;
    position: fixed;
    z-index: 110;
    width: 70px;
    height: 70px;
    bottom: 80px;
    right: 30px;
    background-color: transparent;
    border-radius: 50%;
    cursor: pointer;
}

.phone-popup {
    width: 235px;
    max-height: 60vh;
    position: fixed;
    z-index: 130px;
    right: 30px;
    bottom: 170px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    padding: 0 10px;
    user-select: none;
    transform: scale(0, 0);
    opacity: 0.3;
    transform-origin: 90% 100%;
    animation: show 0.2s ease-in 0.02s forwards;
}

.phone-popup__arrow {
    position: absolute;
    z-index: -1;
    bottom: 0;
    right: 10%;
    width: 20px;
    height: 20px;
    background-color: #fff;
    transform: rotate(45deg) translateY(40%);
    border-radius: 2px;
    box-shadow: 0 0 5px 0 rgb(0, 0, 0, 0.3);
}

@keyframes show {
    from {
        transform: scale(0, 0);
        opacity: 0.3;
    }

    to {
        transform: scale(1, 1);
        opacity: 1;
    }
}

#phone-popup__input:checked~.phone-popup {
    display: flex;
}

#phone-popup__input:checked~#close-popup {
    display: block;
}

.phone-popup__item {
    width: 100%;
    padding: 10px;
    display: flex;
    cursor: pointer;
    align-items: center;
    column-gap: 5px;
    text-decoration: none;
    background-color: #fff;
}

.phone-popup__item:not(:first-of-type) {
    border-top: 1px solid #d1d3d4;
}

.phone-popup__item .icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #000;
    border-radius: 6px;
    color: #c30204;
}

.phone-popup__item .icon.image {
    border: none;
}

.phone-popup__item .text {
    color: #000;
    font-size: 14px;
    transition: all linear 0.1s;
}

.phone-popup__item:hover {
    background-color: aliceblue;
}

.phone-popup__item:hover .text {
    color: #eb1c24;
}

#close-popup {
    display: none;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #eb1c24;
    box-shadow: 0 0 10px 50px #eb1c24;
    padding: 10px;
    color: #fff;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    14.29% {
        transform: translateX(0);
    }

    28.57% {
        transform: translateX(-50px);
    }

    42.85% {
        transform: translateX(-50px);
    }

    57.13% {
        transform: translateX(-100px);
    }

    71.41% {
        transform: translateX(-100px);
    }

    85.69% {
        transform: translateX(-150px);
    }

    100% {
        transform: translateX(-150px);
    }
}

@keyframes phone {
    0% {
        box-shadow: 0 0 0 0 rgba(235, 28, 36, 0.3);
    }

    100% {
        box-shadow: 0 0 0 10px rgba(235, 28, 36, 0.3);
    }
}