.dcc-widget {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.dcc-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 0;
    border-radius: 999px;
    background: var(--dcc-highlight, #22c55e);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 9px 14px;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(34, 197, 94, 0.32);
}

.dcc-toggle-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    animation: dccPulse 1.2s infinite;
}

.dcc-panel {
    margin-top: 12px;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid #efefef;
    padding: 14px;
    display: none;
}

.dcc-widget.dcc-open .dcc-panel {
    display: block;
}

.dcc-panel h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.dcc-panel p {
    margin: 0 0 10px;
    color: #444;
    font-size: 12px;
}

.dcc-actions {
    display: grid;
    gap: 8px;
}

.dcc-lead-form {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}

.dcc-lead-form input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.dcc-lead-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
    min-height: 72px;
}

.dcc-submit {
    border: 0;
    border-radius: 9px;
    padding: 10px 12px;
    color: #fff;
    background: var(--dcc-highlight, #22c55e);
    font-weight: 700;
    cursor: pointer;
}

.dcc-lead-form small {
    color: #666;
    min-height: 16px;
}

.dcc-action {
    display: block;
    width: 100%;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #fafafa;
    color: #111;
    text-decoration: none;
    padding: 10px 12px;
    font-weight: 600;
    cursor: pointer;
}

.dcc-action:hover {
    border-color: var(--dcc-highlight, #22c55e);
    background: #f0fdf4;
}

.dcc-wechat-box {
    margin-top: 10px;
    text-align: center;
}

.dcc-wechat-box img {
    max-width: 160px;
    height: auto;
    border-radius: 6px;
    border: 1px solid #eee;
}

.dcc-wechat-box p {
    margin-top: 6px;
    font-size: 12px;
}

@keyframes dccPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.35); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Desktop only: hide on phones/tablets */
@media (max-width: 991px) {
    .dcc-widget {
        display: none !important;
    }
}
