.cw-widget{position: fixed;right: 1.5rem;bottom: 1.5rem;z-index: 99999;font-family: var(--font-family,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif);-webkit-font-smoothing: antialiased}.cw-widget.has-wa-sibling{right: 5.8rem}.cw-launcher{width: 64px;height: 64px;padding: 0;box-sizing: border-box;border-radius: 50%;background: radial-gradient(circle at 50% 35%,#1e3a8a 0%,#0f172a 78%);color: #ffffff;border: 3px solid #f97316;cursor: pointer;display: flex;align-items: center;justify-content: center;box-shadow: 0 8px 22px rgba(15,23,42,0.35),0 2px 6px rgba(15,23,42,0.2);transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1),box-shadow 0.25s ease;position: relative;outline: none}.cw-launcher:hover{transform: translateY(-2px);box-shadow: 0 12px 26px rgba(15,23,42,0.4),0 4px 10px rgba(249,115,22,0.25)}.cw-launcher:active{transform: scale(0.96)}.cw-launcher:focus-visible{box-shadow: 0 0 0 4px rgba(249,115,22,0.35),0 8px 22px rgba(15,23,42,0.35)}.cw-launcher .cw-icon-open{position: relative;display: block;width: 100%;height: 100%}.cw-launcher-pop{position: absolute;inset: 0;display: block;clip-path: path('M -24 -60 L 82 -60 L 82 29 L 58 29 A 29 29 0 0 1 0 29 L -24 29 Z')}.cw-launcher-mascot{position: absolute;left: -4px;top: -9px;width: 66px;height: 66px;max-width: none;object-fit: contain;pointer-events: none;user-select: none;transform-origin: 50% 85%;transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1)}.cw-launcher:hover .cw-launcher-mascot{transform: translateY(-4px) rotate(-5deg) scale(1.06)}.cw-launcher-chat{position: absolute;right: -6px;bottom: -6px;width: 26px;height: 26px;border-radius: 50%;background: #f97316;color: #ffffff;border: 2px solid #ffffff;display: flex;align-items: center;justify-content: center;box-shadow: 0 2px 6px rgba(0,0,0,0.25)}.cw-launcher-tip{position: absolute;right: calc(100% + 14px);top: 50%;transform: translate(6px,-50%);background: #ffffff;color: #0f172a;font-size: 0.9rem;font-weight: 700;padding: 0.6rem 1rem;border-radius: 10px;box-shadow: 0 6px 18px rgba(15,23,42,0.18);white-space: nowrap;opacity: 0;pointer-events: none;transition: opacity 0.18s ease,transform 0.18s ease}.cw-launcher:hover .cw-launcher-tip,.cw-launcher:focus-visible .cw-launcher-tip{opacity: 1;transform: translate(0,-50%)}.cw-launcher.cw-is-open .cw-launcher-tip{display: none}@media (hover: none){.cw-launcher-tip{display: none}}@media (prefers-reduced-motion: reduce){.cw-launcher,.cw-launcher-mascot,.cw-launcher-tip{transition: none}.cw-launcher:hover .cw-launcher-mascot{transform: none}}.cw-launcher-badge{position: absolute;top: -4px;right: -4px;background: #ef4444;color: #ffffff;font-size: 0.72rem;font-weight: 700;min-width: 20px;height: 20px;border-radius: 10px;display: flex;align-items: center;justify-content: center;padding: 0 5px;border: 2px solid #ffffff;box-shadow: 0 2px 6px rgba(0,0,0,0.25)}.cw-window{position: absolute;right: 0;bottom: 80px;width: 380px;max-width: calc(100vw - 2rem);height: 590px;max-height: calc(100vh - 116px);background: #ffffff;border-radius: 18px;box-shadow: 0 16px 40px rgba(15,23,42,0.2),0 4px 12px rgba(15,23,42,0.08);display: flex;flex-direction: column;overflow: hidden;animation: cwFadeIn 0.22s cubic-bezier(0.16,1,0.3,1);border: 1px solid rgba(226,232,240,0.9)}@keyframes cwFadeIn{from{opacity: 0;transform: translateY(12px) scale(0.97)}to{opacity: 1;transform: translateY(0) scale(1)}}.cw-header{background: linear-gradient(135deg,#0f172a 0%,#1e293b 70%,#334155 100%);color: #ffffff;padding: 0.85rem 1rem;display: flex;align-items: center;gap: 0.6rem;flex-shrink: 0;border-bottom: 1px solid rgba(255,255,255,0.08)}.cw-btn-back{margin-right: 0.2rem}.cw-header-brand{display: flex;align-items: center;gap: 0.65rem;flex: 1;min-width: 0}.cw-avatar-wrap{position: relative;width: 40px;height: 40px;flex-shrink: 0}.cw-avatar-img,.cw-avatar-fallback{width: 40px;height: 40px;border-radius: 50%;object-fit: contain;background: radial-gradient(circle at 50% 35%,#1e3a8a 0%,#0f172a 78%);box-shadow: 0 2px 6px rgba(0,0,0,0.25);border: 2px solid #f97316;display: flex;align-items: center;justify-content: center;font-size: 1.25rem}.cw-status-dot{position: absolute;bottom: 0;right: 0;width: 11px;height: 11px;background: #10b981;border-radius: 50%;border: 2px solid #0f172a}.cw-header-meta{flex: 1;min-width: 0}.cw-header-title{font-size: 0.95rem;font-weight: 700;line-height: 1.2;color: #ffffff;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}.cw-header-hours{display:flex;align-items:center;gap:0.35rem;font-size:0.68rem;color:#94a3b8;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cw-header-hours .cw-hours-dot{width:7px;height:7px;border-radius:50%;background:#ef4444;flex-shrink:0}.cw-header-hours.is-online .cw-hours-dot{background:#22c55e}.cw-header-hours .cw-hours-state{color:#ef4444;font-weight:700}.cw-header-hours.is-online .cw-hours-state{color:#22c55e}.cw-offhours-card{margin:0.6rem 0;padding:0.85rem;border:1px solid #fed7aa;background:#fff7ed;border-radius:12px}.cw-oh-title{font-weight:800;font-size:0.9rem;color:#c2410c;margin-bottom:0.5rem}.cw-oh-note{font-size:0.78rem;color:#7c2d12;margin:0 0 0.55rem}.cw-offhours-card textarea.cw-gate-input{resize:vertical;min-height:90px}.cw-header-sub{font-size: 0.74rem;color: #94a3b8;margin-top: 2px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}.cw-header-actions{display: flex;align-items: center;gap: 0.25rem}.cw-btn-icon{background: transparent;border: none;color: rgba(255,255,255,0.85);width: 32px;height: 32px;border-radius: 8px;cursor: pointer;display: flex;align-items: center;justify-content: center;font-size: 0.95rem;transition: background 0.15s ease,color 0.15s ease}.cw-btn-icon:hover{background: rgba(255,255,255,0.15);color: #ffffff}.cw-view{flex: 1;display: flex;flex-direction: column;min-height: 0;background: #f8fafc;overflow: hidden}.cw-view-home{overflow-y: auto;padding: 1rem;gap: 1rem}.cw-home-hero{background: linear-gradient(135deg,#ffffff 0%,#fff7ed 100%);border: 1px solid #fed7aa;border-radius: 14px;padding: 1.15rem 1rem;box-shadow: 0 4px 14px rgba(234,88,12,0.08)}.cw-home-greeting{font-size: 1.15rem;font-weight: 800;color: #0f172a;margin-bottom: 0.35rem}.cw-home-sub{font-size: 0.83rem;color: #64748b;line-height: 1.45;margin-bottom: 0.95rem}.cw-btn-primary-action{background: linear-gradient(135deg,#ea580c 0%,#c2410c 100%);color: #ffffff;border: none;border-radius: 10px;padding: 0.75rem 1.1rem;font-size: 0.9rem;font-weight: 700;display: flex;align-items: center;justify-content: center;gap: 0.55rem;width: 100%;cursor: pointer;box-shadow: 0 4px 12px rgba(234,88,12,0.3);transition: transform 0.15s ease,box-shadow 0.15s ease}.cw-btn-primary-action:hover{transform: translateY(-1px);box-shadow: 0 6px 16px rgba(234,88,12,0.4)}.cw-btn-primary-action.cw-btn-sm{padding: 0.55rem 0.9rem;font-size: 0.83rem}.cw-btn-secondary-action{background: #ffffff;color: #0f172a;border: 1px solid #cbd5e1;border-radius: 10px;padding: 0.55rem 0.9rem;font-size: 0.83rem;font-weight: 600;display: flex;align-items: center;justify-content: center;gap: 0.5rem;cursor: pointer;transition: background 0.15s ease}.cw-btn-secondary-action:hover{background: #f1f5f9}.cw-home-section{display: flex;flex-direction: column;gap: 0.55rem}.cw-section-header{display: flex;align-items: center;justify-content: space-between;padding: 0 0.2rem}.cw-section-title{font-size: 0.82rem;font-weight: 700;text-transform: uppercase;letter-spacing: 0.04em;color: #64748b}.cw-section-badge{background: #e2e8f0;color: #334155;font-size: 0.72rem;font-weight: 700;padding: 1px 7px;border-radius: 10px}.cw-conversations-list{display: flex;flex-direction: column;gap: 0.5rem}.cw-conv-card{background: #ffffff;border: 1px solid #e2e8f0;border-radius: 12px;padding: 0.75rem 0.85rem;display: flex;align-items: center;gap: 0.7rem;cursor: pointer;transition: transform 0.15s ease,border-color 0.15s ease,box-shadow 0.15s ease;text-align: left;width: 100%;box-sizing: border-box}.cw-conv-card:hover{border-color: #ea580c;box-shadow: 0 4px 12px rgba(234,88,12,0.08);transform: translateY(-1px)}.cw-conv-avatar{width: 36px;height: 36px;border-radius: 50%;background: #fff7ed;color: #ea580c;display: flex;align-items: center;justify-content: center;font-size: 1rem;flex-shrink: 0}.cw-conv-body{flex: 1;min-width: 0}.cw-conv-top{display: flex;align-items: center;justify-content: space-between;gap: 0.5rem;margin-bottom: 2px}.cw-conv-title{font-size: 0.86rem;font-weight: 700;color: #0f172a;white-space: nowrap;overflow: hidden;text-overflow: ellipsis}.cw-conv-date{font-size: 0.7rem;color: #94a3b8;white-space: nowrap}.cw-conv-snippet{font-size: 0.78rem;color: #64748b;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;line-height: 1.3}.cw-conv-right{display: flex;align-items: center;gap: 0.4rem;flex-shrink: 0}.cw-conv-status-badge{font-size: 0.68rem;font-weight: 700;padding: 2px 6px;border-radius: 6px;text-transform: uppercase}.cw-status-closed{background: #f1f5f9;color: #64748b}.cw-status-agent{background: #dcfce7;color: #166534}.cw-status-waiting{background: #ffedd5;color: #9a3412}.cw-status-bot{background: #e0f2fe;color: #0369a1}.cw-conv-arrow{color: #cbd5e1;font-size: 0.75rem}.cw-conv-empty{background: #ffffff;border: 1px dashed #cbd5e1;border-radius: 12px;padding: 1.25rem 1rem;text-align: center;color: #94a3b8;font-size: 0.82rem}.cw-section-divider{height: 1px;background: #e2e8f0;margin: 0.2rem 0;border: none}.cw-home-shortcuts{display: flex;flex-direction: column;gap: 0.45rem}.cw-shortcut-item{background: #ffffff;border: 1px dashed #cbd5e1;border-radius: 10px;padding: 0.55rem 0.75rem;display: flex;align-items: center;gap: 0.65rem;text-decoration: none;color: inherit;transition: all 0.15s ease}.cw-shortcut-item:hover{border-style: solid;border-color: #94a3b8;background: #f8fafc}.cw-shortcut-icon{width: 28px;height: 28px;border-radius: 8px;background: #f1f5f9;color: #475569;display: flex;align-items: center;justify-content: center;font-size: 0.8rem;flex-shrink: 0;transition: background 0.15s ease,color 0.15s ease}.cw-shortcut-item:hover .cw-shortcut-icon{background: #0f172a;color: #ffffff}.cw-shortcut-text{flex: 1;min-width: 0;display: flex;flex-direction: column}.cw-shortcut-text strong{font-size: 0.82rem;color: #0f172a;line-height: 1.2}.cw-shortcut-text small{font-size: 0.7rem;color: #94a3b8;line-height: 1.2;margin-top: 1px}.cw-shortcut-arrow{color: #cbd5e1;font-size: 0.75rem}.cw-agent-banner{background: rgba(234,88,12,0.08);border-bottom: 1px solid rgba(234,88,12,0.2);padding: 0.45rem 0.85rem;font-size: 0.78rem;color: #c2410c;font-weight: 600;display: flex;align-items: center;gap: 0.45rem;flex-shrink: 0}.cw-body{flex: 1;overflow-y: auto;padding: 1rem 0.9rem;display: flex;flex-direction: column;min-height: 0;background: #f8fafc}.cw-messages{display: flex;flex-direction: column;gap: 0.75rem}.cw-msg-row{display: flex;width: 100%}.cw-from-user{justify-content: flex-end}.cw-from-bot,.cw-from-agent{justify-content: flex-start}.cw-from-system{justify-content: center}.cw-bubble{max-width: 82%;border-radius: 14px;padding: 0.65rem 0.85rem;font-size: 0.87rem;line-height: 1.45;word-break: break-word;position: relative;box-shadow: 0 1px 3px rgba(15,23,42,0.06)}.cw-from-user .cw-bubble{background: #ea580c;color: #ffffff;border-bottom-right-radius: 3px}.cw-from-bot .cw-bubble,.cw-from-agent .cw-bubble{background: #ffffff;color: #0f172a;border: 1px solid #e2e8f0;border-bottom-left-radius: 3px}.cw-from-system .cw-bubble{background: #f1f5f9;color: #475569;border: 1px dashed #cbd5e1;font-size: 0.78rem;text-align: center;max-width: 90%;border-radius: 10px;padding: 0.5rem 0.75rem}.cw-sender-badge{font-size: 0.72rem;font-weight: 700;margin-bottom: 0.25rem;display: flex;align-items: center;gap: 0.3rem}.cw-from-bot .cw-sender-badge{color: #ea580c}.cw-from-agent .cw-sender-badge{color: #0284c7}.cw-msg-meta{font-size: 0.68rem;margin-top: 0.3rem;opacity: 0.7;text-align: right}.cw-from-user .cw-msg-meta{color: rgba(255,255,255,0.85)}.cw-from-bot .cw-msg-meta,.cw-from-agent .cw-msg-meta{color: #94a3b8}.cw-actions-wrap{display: flex;flex-direction: column;gap: 0.4rem;margin-top: 0.6rem}.cw-action-chip{background: #f8fafc;border: 1px solid #cbd5e1;border-radius: 8px;padding: 0.45rem 0.65rem;font-size: 0.8rem;color: #0f172a;cursor: pointer;text-align: left;transition: background 0.15s ease,border-color 0.15s ease,transform 0.1s ease;display: flex;align-items: center;text-decoration: none;font-weight: 600;line-height: 1.3}.cw-action-chip:hover{background: #ffedd5;border-color: #ea580c;color: #c2410c;transform: translateY(-1px)}.cw-action-chip.cw-primary{background: #ea580c;color: #ffffff;border-color: #ea580c}.cw-action-chip.cw-primary:hover{background: #c2410c}.cw-typing{display: flex;align-items: center;gap: 0.5rem;margin-top: 0.3rem}.cw-typing-avatar{width: 26px;height: 26px;border-radius: 50%;background: #e2e8f0;display: flex;align-items: center;justify-content: center;font-size: 0.85rem}.cw-typing-bubble{background: #ffffff;border: 1px solid #e2e8f0;border-radius: 14px;padding: 0.5rem 0.75rem;display: flex;align-items: center;gap: 4px}.cw-dot{width: 6px;height: 6px;background: #94a3b8;border-radius: 50%;animation: cwBlink 1.4s infinite ease-in-out both}.cw-dot:nth-child(1){animation-delay: -0.32s}.cw-dot:nth-child(2){animation-delay: -0.16s}.cw-typing-label{font-size: 0.72rem;color: #94a3b8;font-style: italic}.cw-btn-primary-action:disabled{opacity: 0.7;cursor: not-allowed;transform: none;box-shadow: none}.cw-start-note{margin-top: 0.55rem;font-size: 0.74rem;color: #9a3412;background: #ffedd5;border-radius: 8px;padding: 0.4rem 0.6rem;line-height: 1.4}.cw-end-link{background: none;border: none;padding: 0;font-family: inherit;font-size: 0.7rem;font-weight: 600;color: #94a3b8;cursor: pointer}.cw-end-link:hover{color: #dc2626;text-decoration: underline}.cw-end-confirm{background: #fff7ed;border: 1px solid #fed7aa;border-radius: 12px;padding: 0.65rem 0.75rem;margin-bottom: 0.55rem;flex-direction: column;gap: 0.5rem}.cw-end-confirm-text{display: flex;flex-direction: column;gap: 2px}.cw-end-confirm-text strong{font-size: 0.82rem;color: #0f172a}.cw-end-confirm-text span{font-size: 0.72rem;color: #64748b}.cw-end-confirm-actions{display: flex;gap: 0.5rem}.cw-end-yes,.cw-end-no{flex: 1;border-radius: 8px;padding: 0.5rem 0.6rem;font-size: 0.8rem;font-weight: 700;font-family: inherit;cursor: pointer}.cw-end-yes{background: #dc2626;color: #fff;border: 1px solid #dc2626}.cw-end-yes:hover{background: #b91c1c}.cw-end-yes:disabled{opacity: 0.6;cursor: not-allowed}.cw-end-no{background: #fff;color: #0f172a;border: 1px solid #cbd5e1}.cw-end-no:hover{background: #f1f5f9}.cw-guest-gate{flex: 1;overflow-y: auto;padding: 1.1rem;background: #f8fafc;display: flex;align-items: center;justify-content: center}.cw-gate-card{width: 100%;background: #ffffff;border: 1px solid #e2e8f0;border-radius: 14px;padding: 1.15rem 1rem;text-align: center;box-shadow: 0 4px 14px rgba(15,23,42,0.06)}.cw-gate-emoji{font-size: 1.8rem;margin-bottom: 0.25rem}.cw-gate-title{font-size: 1rem;font-weight: 800;color: #0f172a;margin-bottom: 0.3rem}.cw-gate-sub{font-size: 0.8rem;color: #64748b;line-height: 1.45;margin-bottom: 0.85rem}.cw-gate-input{width: 100%;box-sizing: border-box;border: 1px solid #e2e8f0;background: #f8fafc;border-radius: 10px;padding: 0.65rem 0.75rem;font-size: 0.88rem;font-family: inherit;color: #0f172a;margin-bottom: 0.55rem;outline: none;transition: border-color 0.15s ease,box-shadow 0.15s ease}.cw-gate-input:focus{border-color: #ea580c;background: #ffffff;box-shadow: 0 0 0 3px rgba(234,88,12,0.12)}.cw-gate-error{color: #dc2626;font-size: 0.78rem;margin: 0.1rem 0 0.6rem}.cw-gate-note{font-size: 0.7rem;color: #94a3b8;margin-top: 0.6rem}@keyframes cwBlink{0%,80%,100%{transform: scale(0.6);opacity: 0.4}40%{transform: scale(1);opacity: 1}}.cw-closed-banner{background: #ffffff;border-top: 1px solid #e2e8f0;padding: 0.75rem 1rem;display: flex;justify-content: center;align-items: center;box-shadow: 0 -2px 8px rgba(0,0,0,0.02)}.cw-closed-bar{display: inline-flex;align-items: center;gap: 0.5rem;background: #f1f5f9;color: #64748b;border: 1px solid #e2e8f0;border-radius: 20px;padding: 0.4rem 1rem;font-size: 0.8rem;font-weight: 600}.cw-closed-bar i{font-size: 0.78rem;color: #94a3b8}.cw-footer{background: #ffffff;border-top: 1px solid #f1f5f9;padding: 0.65rem 0.85rem 0.5rem}.cw-input-row{display: flex;align-items: flex-end;gap: 0.5rem;background: #f8fafc;border: 1px solid #e2e8f0;border-radius: 14px;padding: 0.4rem 0.6rem;transition: border-color 0.15s ease,box-shadow 0.15s ease}.cw-input-row:focus-within{border-color: #ea580c;box-shadow: 0 0 0 3px rgba(234,88,12,0.12);background: #ffffff}.cw-textarea{flex: 1;border: none;outline: none;background: transparent;font-size: 0.9rem;resize: none;max-height: 100px;min-height: 24px;line-height: 1.4;color: #0f172a;font-family: inherit}.cw-btn-send{background: #ea580c;color: #ffffff;border: none;border-radius: 10px;width: 34px;height: 34px;display: flex;align-items: center;justify-content: center;cursor: pointer;transition: opacity 0.15s ease,transform 0.15s ease;flex-shrink: 0}.cw-btn-send:disabled{opacity: 0.4;cursor: not-allowed;background: #cbd5e1}.cw-btn-send:not(:disabled):hover{background: #c2410c;transform: scale(1.05)}.cw-watermark{display: flex;justify-content: space-between;align-items: center;font-size: 0.7rem;color: #94a3b8;margin-top: 0.45rem;padding: 0 0.25rem}.cw-ticket-shortcut{color: #64748b;text-decoration: none;font-weight: 600}.cw-ticket-shortcut:hover{color: #ea580c;text-decoration: underline}@media (max-width: 480px){.cw-widget{right: 1rem;bottom: 1rem}.cw-window{position: fixed;top: 0;left: 0;right: 0;bottom: 0;width: 100vw;height: 100vh;max-width: 100vw;max-height: 100vh;border-radius: 0;z-index: 100000}}