#wcp-button-contact {
    position: fixed;
    left: 10px;
    bottom: 10%;
    z-index: 99999;
    width: auto;
}

#wcp-all-in-one {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#wcp-button-contact .wcp-button-contact {
    position: relative;
    margin: 0;
    width: 70px;
    height: 70px;
}

#wcp-button-contact .wcp-phone-vr {
    width: 70px;
    height: 70px;
    position: relative;
}

#wcp-button-contact .wcp-circle-fill {
    width: 56px;
    height: 56px;
    top: 7px;
    left: 7px;
    position: absolute;
    border-radius: 50%;
    background: rgba(230, 8, 8, .7);
    box-shadow: 0 0 0 0 #c31d1d;
    animation: wcp-pulse 2.3s infinite ease-in-out;
}

#wcp-button-contact .wcp-img-circle {
    width: 40px;
    height: 40px;
    top: 15px;
    left: 15px;
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e60808;
    animation: wcp-img-pulse 1.3s infinite ease-in-out;
}

#wcp-button-contact .wcp-img-circle a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wcp-button-contact .wcp-img-circle img {
    width: auto;
    height: auto;
    max-width: 27px;
    max-height: 27px;
    object-fit: contain;
}

#wcp-button-contact .wcp-wechat .wcp-circle-fill {
    background: rgba(7, 193, 96, .65);
    box-shadow: 0 0 0 0 #07c160;
}

#wcp-button-contact .wcp-wechat .wcp-img-circle {
    background: #07c160;
}

@keyframes wcp-pulse {
    0%, 100% { transform: scale(.95); }
    50% { transform: scale(1); box-shadow: 0 0 0 12px transparent; }
}

@keyframes wcp-img-pulse {
    0%, 100% { transform: scale(.95); }
    50% { transform: scale(1); }
}

/* WeChat QR popup */
#wcp-wechat-popup {
    position: fixed;
    inset: 0;
    z-index: 1000000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

#wcp-wechat-popup.active {
    display: flex;
}

.wcp-wechat-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    backdrop-filter: blur(3px);
}

.wcp-wechat-box {
    position: relative;
    z-index: 2;
    width: min(400px, 100%);
    box-sizing: border-box;
    background: #fff;
    border-radius: 18px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    animation: wcp-popup-in .25s ease;
}

@keyframes wcp-popup-in {
    from { opacity: 0; transform: scale(.85) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.wcp-wechat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px!important;
    height: 36px!important;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #333;
    font-size: 28px;
    line-height: 36px;
    cursor: pointer;
    transition: .2s ease;
	line-height: unset;
	min-height: unset!important;
}

.wcp-wechat-close:hover {
    background: #07c160;
    color: #fff;
}

.wcp-wechat-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-right: 25px;
}

.wcp-wechat-title img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.wcp-wechat-title div {
    text-align: left;
}

.wcp-wechat-title strong {
    display: block;
    font-size: 19px;
    line-height: 1.3;
    color: #222;
}

.wcp-wechat-title span {
    display: block;
    margin-top: 3px;
    font-size: 13px;
    color: #777;
}

.wcp-wechat-image {
    display: flex;
    justify-content: center;
}

.wcp-wechat-image img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.wcp-wechat-note {
    margin: 15px 0 0;
    color: #666;
    font-size: 14px;
}

body.wcp-wechat-open {
    overflow: hidden;
}

@media (max-width: 549px) {
    #wcp-button-contact {
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: auto;
        box-sizing: border-box;
        background: #fff;
        padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
        box-shadow: 0 -2px 15px rgba(0, 0, 0, .12);
    }

    #wcp-all-in-one {
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        gap: 2px;
    }

    #wcp-button-contact .wcp-button-contact {
        width: 48px;
        height: 48px;
        flex: 1 1 0;
        max-width: 58px;
    }

    #wcp-button-contact .wcp-phone-vr {
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #wcp-button-contact .wcp-circle-fill {
        display: none;
    }

    #wcp-button-contact .wcp-img-circle {
        position: relative;
        width: 42px;
        height: 42px;
        top: auto;
        left: auto;
        margin: 0;
        animation: none;
    }

    #wcp-button-contact .wcp-img-circle img {
        max-width: 27px;
        max-height: 27px;
    }

    #wcp-wechat-popup {
        padding: 15px;
    }

    .wcp-wechat-box {
        width: 100%;
        max-width: 350px;
        padding: 20px 16px;
        border-radius: 16px;
    }

    .wcp-wechat-image img {
        width: min(260px, 80vw);
    }

    .wcp-wechat-title strong {
        font-size: 17px;
    }

    .wcp-wechat-title span {
        font-size: 12px;
    }

    .wcp-wechat-note {
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    #wcp-button-contact {
        padding-left: 3px;
        padding-right: 3px;
    }

    #wcp-button-contact .wcp-button-contact {
        max-width: 46px;
    }

    #wcp-button-contact .wcp-img-circle {
        width: 38px;
        height: 38px;
    }

    #wcp-button-contact .wcp-img-circle img {
        max-width: 24px;
        max-height: 24px;
    }
}
