/* LINE 客服按钮（悬浮） */
.lc49-chat-line-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #06c755;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    transition: all .2s ease;
    white-space: nowrap;
}
.lc49-chat-line-btn:hover {
    background: #05a847;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
    color: #fff !important;
    text-decoration: none !important;
}
.lc49-chat-line-btn .lc49-chat-icon {
    font-size: 18px;
    line-height: 1;
}
.lc49-chat-line-btn .lc49-chat-label {
    font-size: 14px;
}

/* 手机端：抬高，避免被底部导航栏挡住 */
@media (max-width: 768px) {
    .lc49-chat-line-btn {
        right: 14px;
        bottom: 90px;
        padding: 8px 14px;
        font-size: 13px;
    }
    .lc49-chat-line-btn .lc49-chat-label {
        font-size: 13px;
    }
}
/* ============================
 * 扫码弹窗
 * ============================ */
.lc49-scan-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lc49-scan-box {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}
.lc49-scan-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #0066cc;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.lc49-scan-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

/* 关键：视频区域固定高度，别用 aspect-ratio */
.lc49-scan-video-wrap {
    position: relative;
    width: 100%;
    height: 320px;
    background: #000;
    overflow: hidden;
}
.lc49-scan-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70%;
    height: 70%;
    transform: translate(-50%, -50%);
    border: 3px solid #06c755;
    border-radius: 12px;
    box-shadow: 0 0 0 9999px rgba(0,0,0,.4);
    pointer-events: none;
    z-index: 2;
}
.lc49-scan-tip {
    text-align: center;
    font-size: 13px;
    color: #666;
    padding: 10px;
    margin: 0;
}

/* html5-qrcode 容器 */
#lc49-scan-reader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
#lc49-scan-reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block !important;
}

/* 输入框旁边的扫码按钮 */
.lc49-scan-btn {
    display: inline-block;
    padding: 6px 10px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
}
.lc49-scan-btn:hover {
    background: #0055aa;
}