.footer-phone-contact {
    position: fixed;
    bottom: 135px;
    right: 75px;
    z-index: 9;
}

.footer-phone-contact .footer-phone-text {
    display: none;
}

.footer-phone-contact .contact-link {
    background: #0C7C59;
    color: #fff;
    width: 60px;
    height: 60px;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: -9px;
    max-width: initial;
}

.footer-phone-contact .contact-link:hover {
    cursor: pointer;
}

.footer-phone-ico {
    background-image: url(../img/phone-red.svg);
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    background-repeat: no-repeat;
}

#phone-widget-state {
    display: none;
}

.footer-phone-contact .phone-number-tooltip {
    display: none;
    position: absolute;
    left: 0;
    top: 14px;
    width: 190px;
    padding: 6px;
    border-radius: 15px;
    background-color: #0C7C59;
    color: #fff;
}

.footer-phone-contact .phone-number-tooltip,
.footer-phone-contact .phone-number-tooltip span {
    font-size: 18px;
    line-height: 18px;
}

#phone-widget-state:checked ~ .phone-number-tooltip {
    display: initial;
    transform: translateX(-150px);
}

@media (min-width: 767px) {
    .footer-phone-contact.mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .footer-phone-contact.desktop {
        display: none !important;
    }

    .page-product .footer-phone-contact .footer-phone-text {
        display: initial;
    }

    .page-product .footer-phone-ico {
        filter: unset;
    }

    .page-product .footer-phone-contact {
        max-width: 35vw;
        position: fixed;
        left: 20px;
        z-index: 999;
        bottom: 130px;
        display: flex;
        padding: 10px 12px;
        justify-content: center;
        align-items: center;
        gap: 10px;
        border-radius: 50px;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        border: 1px solid #C5374A;
        right: unset;
        background: #fff;
    }

    .page-product:has(.availability.unavailable) .footer-phone-contact {
        bottom: 10px;
    }

    .page-product .footer-phone-contact .contact-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
        font-size: 30px;
        border-radius: 50%;
        background: unset;
        color: unset;
        width: unset;
        height: unset;
        position: unset;
    }

    .footer-phone-text {
        color: #C5374A;
        text-align: right;
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 12px;
        min-height: 24px;
        letter-spacing: 0.84px;
        text-align: right;
        max-width: 65%;
    }

    .page-product .footer-phone-contact.active {
        border: 1px solid #0C7C59;
    }

    .page-product .footer-phone-contact.active .footer-phone-text {
        color: #0C7C59;
    }

    .page-product .footer-phone-contact.active .footer-phone-ico {
        background-image: url(../img/phone.svg);
    }
}
