#wpdh-widget { 
    position: fixed; 
    z-index: var(--wpdh-z-index, 99999); 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
}

.wpdh-right { bottom: var(--wpdh-offset-y, 20px); right: var(--wpdh-offset-x, 20px); }
.wpdh-left { bottom: var(--wpdh-offset-y, 20px); left: var(--wpdh-offset-x, 20px); }

.wpdh-btn { 
    width: 60px; height: 60px; 
    background-color: var(--wpdh-btn-bg); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
    display: flex; align-items: center; justify-content: center; 
    cursor: pointer; position: relative; 
    transition: all 0.3s;
}
.wpdh-icon { width: 32px; height: 32px; fill: var(--wpdh-btn-icon); }
.wpdh-badge { position: absolute; top: -2px; right: -2px; background: #ff0000; color: #fff; font-size: 11px; font-weight: bold; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

.wpdh-shape-circle .wpdh-btn { border-radius: 50%; }
.wpdh-shape-rounded .wpdh-btn { border-radius: 12px; }
.wpdh-shape-pill .wpdh-btn { width: auto; padding: 0 20px 0 15px; border-radius: 30px; }
.wpdh-shape-pill .wpdh-icon { margin-right: 8px; width: 24px; height: 24px; }
.wpdh-btn-label { color: var(--wpdh-btn-icon); font-weight: 600; font-size: 15px; }

@keyframes wpdh-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@keyframes wpdh-bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }
@keyframes wpdh-shake { 0%, 100% {transform: translateX(0);} 10%, 30%, 50%, 70%, 90% {transform: translateX(-4px);} 20%, 40%, 60%, 80% {transform: translateX(4px);} }

.wpdh-anim-pulse .wpdh-btn { animation: wpdh-pulse 2s infinite; }
.wpdh-anim-bounce .wpdh-btn:hover { animation: wpdh-bounce 1s; }
.wpdh-anim-shake .wpdh-btn:hover { animation: wpdh-shake 0.5s; }

.wpdh-cta-bubble {
    position: absolute; bottom: 100%; margin-bottom: 10px;
    background: #fff; color: #333; padding: 8px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transition: all 0.3s;
}
.wpdh-right .wpdh-cta-bubble { right: 0; }
.wpdh-left .wpdh-cta-bubble { left: 0; }
#wpdh-widget:hover .wpdh-cta-bubble, .wpdh-cta-visible .wpdh-cta-bubble { opacity: 1; visibility: visible; }

.wpdh-popup { position: absolute; bottom: 75px; width: 340px; background: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); opacity: 0; visibility: hidden; transform: translateY(20px) scale(0.9); transition: all 0.3s ease; overflow: hidden; }
.wpdh-right .wpdh-popup { right: 0; transform-origin: bottom right; }
.wpdh-left .wpdh-popup { left: 0; transform-origin: bottom left; }
.wpdh-popup.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.wpdh-header { background: var(--wpdh-header-bg); padding: 20px; color: #fff; display: flex; justify-content: space-between; align-items: flex-start; }
.wpdh-brand { display: flex; align-items: center; gap: 12px; }
.wpdh-brand img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #fff; padding: 2px; }
.wpdh-brand-text { display: flex; flex-direction: column; }
.wpdh-greeting { font-size: 12px; opacity: 0.9; }
.wpdh-title { font-weight: bold; font-size: 16px; }
.wpdh-close { cursor: pointer; font-size: 18px; opacity: 0.8; }
.wpdh-body { padding: 15px; background: #f5f7f9; max-height: 450px; overflow-y: auto; }
.wpdh-welcome { font-size: 13px; color: #666; margin: 0 0 15px 0; background: #fff; padding: 10px; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }

.wpdh-agents { display: flex; flex-direction: column; gap: 10px; }
.wpdh-agent-item { display: flex; justify-content: space-between; align-items: center; background: #fff; padding: 12px 15px; border-radius: 8px; cursor: pointer; border: 1px solid #eee; transition: all 0.2s; }
.wpdh-agent-item:hover { border-color: var(--wpdh-btn-bg); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.wpdh-agent-info { display: flex; flex-direction: column; flex: 1; margin-left: 12px; }
.wpdh-agent-name { font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.wpdh-agent-title { font-size: 11px; color: #888; }
.wpdh-agent-avatar-area { width: 40px; height: 40px; flex-shrink: 0; }
.wpdh-agent-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.wpdh-badge-active { background: #25d366; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; }
.wpdh-badge-soon { background: #2196f3; color: #fff; font-size: 9px; padding: 2px 6px; border-radius: 4px; }

.wpdh-form-header { display: flex; align-items: center; margin-bottom: 15px; color: #333; font-weight: bold; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.wpdh-back-btn { cursor: pointer; color: #666; font-size: 12px; margin-right: 10px; }
.wpdh-back-btn:hover { color: #000; text-decoration: underline; }
.wpdh-form-group { margin-bottom: 12px; }
.wpdh-form-group label { display: block; font-size: 12px; color: #555; margin-bottom: 4px; }
.wpdh-form-group input, .wpdh-form-group textarea { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 5px; font-size: 13px; box-sizing: border-box; }
.wpdh-form-group input:focus, .wpdh-form-group textarea:focus { border-color: var(--wpdh-btn-bg); outline: none; }
.wpdh-error-msg { display: none; color: #d32f2f; font-size: 10px; margin-top: 2px; }
.wpdh-form-group.error input, .wpdh-form-group.error textarea { border-color: #d32f2f; }
.wpdh-form-group.error .wpdh-error-msg { display: block; }
.wpdh-submit-btn { width: 100%; background: var(--wpdh-btn-bg); color: #fff; border: none; padding: 10px; border-radius: 6px; font-weight: bold; cursor: pointer; transition: opacity 0.3s; }
.wpdh-submit-btn:disabled { background: #ccc; cursor: not-allowed; opacity: 0.7; }