.ww-kefu-actions {
    position: fixed;
    right: 12px;
    bottom: 88px;
    z-index: 2147483000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ww-kefu-launch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 22px;
    color: #fff;
    background: #d71920;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
    font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    cursor: pointer;
}

.ww-kefu-launch--wechat {
    background: #159447;
}

.ww-kefu-launch__icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 18px;
}

.ww-kefu-launch__icon--chat::before {
    position: absolute;
    inset: 1px 1px 3px;
    border: 2px solid currentColor;
    border-radius: 8px;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 61% 78%, 45% 100%, 43% 78%, 0 78%);
    content: "";
}

.ww-kefu-launch__icon--wechat::before,
.ww-kefu-launch__icon--wechat::after {
    position: absolute;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
}

.ww-kefu-launch__icon--wechat::before {
    top: 0;
    left: 0;
    width: 14px;
    height: 12px;
}

.ww-kefu-launch__icon--wechat::after {
    right: 0;
    bottom: 0;
    width: 12px;
    height: 10px;
}

.ww-kefu-launch:focus-visible,
.ww-kefu-close:focus-visible,
.ww-kefu-wechat-copy:focus-visible,
.ww-kefu-wechat-chat:focus-visible {
    outline: 3px solid rgba(215, 25, 32, .35);
    outline-offset: 3px;
}

.ww-kefu-layer[hidden],
.ww-kefu-wechat-layer[hidden] {
    display: none !important;
}

.ww-kefu-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    background: rgba(0, 0, 0, .34);
}

.ww-kefu-panel {
    position: relative;
    width: 100%;
    height: 72%;
    height: 72dvh;
    max-height: calc(100% - 96px);
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, .24);
}

.ww-kefu-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.ww-kefu-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #333;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
    font: 28px/36px Arial, sans-serif;
    cursor: pointer;
}

.ww-kefu-wechat-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .34);
}

.ww-kefu-wechat-card {
    position: relative;
    width: min(100%, 360px);
    padding: 30px 24px 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .24);
    color: #333;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.ww-kefu-wechat-card h2 {
    margin: 0 0 10px;
    color: #159447;
    font-size: 21px;
}

.ww-kefu-wechat-card p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.ww-kefu-wechat-account {
    display: block;
    margin: 14px 0;
    color: #d71920;
    font-size: 23px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ww-kefu-wechat-copy,
.ww-kefu-wechat-chat {
    width: 100%;
    min-height: 42px;
    margin-top: 8px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    cursor: pointer;
}

.ww-kefu-wechat-copy {
    background: #159447;
}

.ww-kefu-wechat-copy:disabled {
    opacity: .55;
    cursor: wait;
}

.ww-kefu-wechat-chat {
    color: #d71920;
    background: transparent;
}

.ww-kefu-wechat-status {
    min-height: 23px;
    color: #159447 !important;
}

@media (min-width: 768px) {
    .ww-kefu-actions {
        right: 20px;
        bottom: 120px;
    }

    .ww-kefu-layer {
        align-items: center;
    }

    .ww-kefu-panel {
        width: min(100%, 500px);
        height: 90%;
        max-height: none;
        margin: auto 20px auto 0;
        border-radius: 12px;
        box-shadow: -6px 0 24px rgba(0, 0, 0, .24);
    }
}

@media print {
    .ww-kefu-actions,
    .ww-kefu-layer,
    .ww-kefu-wechat-layer {
        display: none !important;
    }
}
