/* OGD Bot – Chat Widget */
#otgd-widget{position:fixed;bottom:24px;right:24px;z-index:999999;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
#otgd-toggle-btn{width:60px;height:60px;border-radius:50%;background:var(--otgd-color,#1a5f8a);border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 4px 20px rgba(26,95,138,.4);transition:transform .2s;position:relative;}
#otgd-toggle-btn:hover{transform:scale(1.08);}
#otgd-badge{position:absolute;top:-2px;right:-2px;background:#ef4444;color:#fff;font-size:11px;font-weight:700;width:18px;height:18px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px solid #fff;}
#otgd-window{position:absolute;bottom:72px;right:0;width:370px;max-width:calc(100vw - 32px);background:#fff;border-radius:16px;box-shadow:0 8px 40px rgba(0,0,0,.16);display:flex;flex-direction:column;overflow:hidden;animation:otgd-up .25s ease;max-height:600px;}
@keyframes otgd-up{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
#otgd-header{background:var(--otgd-color,#1a5f8a);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;}
.otgd-header-info{display:flex;align-items:center;gap:10px;}
.otgd-avatar{width:38px;height:38px;background:rgba(255,255,255,.2);border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:18px;}
#otgd-bot-name{font-weight:600;font-size:15px;}
.otgd-online{font-size:12px;opacity:.85;display:flex;align-items:center;gap:5px;margin-top:2px;}
.otgd-dot{width:7px;height:7px;background:#4ade80;border-radius:50%;display:inline-block;}
#otgd-close-btn{background:none;border:none;color:#fff;cursor:pointer;font-size:16px;opacity:.8;padding:4px;}
#otgd-messages{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;min-height:180px;max-height:300px;scroll-behavior:smooth;}
#otgd-messages::-webkit-scrollbar{width:4px;}
#otgd-messages::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:4px;}
.otgd-msg{display:flex;gap:8px;align-items:flex-end;}
.otgd-msg.bot{justify-content:flex-start;}
.otgd-msg.user{justify-content:flex-end;}
.msg-av{width:28px;height:28px;border-radius:50%;background:var(--otgd-color,#1a5f8a);display:flex;align-items:center;justify-content:center;font-size:13px;color:#fff;flex-shrink:0;}
.msg-bbl{max-width:80%;padding:10px 14px;border-radius:16px;font-size:14px;line-height:1.55;word-wrap:break-word;white-space:pre-wrap;}
.bot .msg-bbl{background:#f3f4f6;color:#111827;border-bottom-left-radius:4px;}
.user .msg-bbl{background:var(--otgd-color,#1a5f8a);color:#fff;border-bottom-right-radius:4px;}
#otgd-typing{padding:0 16px 8px;}
.otgd-typing-dots{display:inline-flex;gap:4px;background:#f3f4f6;padding:10px 14px;border-radius:16px;border-bottom-left-radius:4px;}
.otgd-typing-dots span{width:7px;height:7px;background:#9ca3af;border-radius:50%;animation:otgd-bounce .8s ease-in-out infinite;}
.otgd-typing-dots span:nth-child(2){animation-delay:.15s;}
.otgd-typing-dots span:nth-child(3){animation-delay:.3s;}
@keyframes otgd-bounce{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-6px)}}
#otgd-quick-replies{padding:6px 12px 2px;display:flex;flex-wrap:wrap;gap:7px;}
.otgd-qr{background:#fff;border:1.5px solid var(--otgd-color,#1a5f8a);color:var(--otgd-color,#1a5f8a);border-radius:20px;padding:6px 14px;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.otgd-qr:hover{background:var(--otgd-color,#1a5f8a);color:#fff;}
#otgd-booking-panel{border-top:1px solid #f3f4f6;padding:14px;background:#fafafa;max-height:280px;overflow-y:auto;}
.bk-step h4{margin:0 0 12px;font-size:14px;font-weight:600;color:#111827;}
.bk-date-input{width:100%;padding:9px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;box-sizing:border-box;margin-bottom:10px;color:#111827;outline:none;}
.bk-date-input:focus{border-color:var(--otgd-color,#1a5f8a);}
.bk-slots{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:10px;}
.bk-slot{padding:7px 13px;border:1.5px solid #e5e7eb;border-radius:8px;font-size:13px;cursor:pointer;background:#fff;transition:all .15s;color:#374151;}
.bk-slot:hover,.bk-slot.selected{border-color:var(--otgd-color,#1a5f8a);color:var(--otgd-color,#1a5f8a);background:#eff6ff;}
.bk-field{margin-bottom:10px;}
.bk-field label{display:block;font-size:12px;font-weight:500;color:#6b7280;margin-bottom:4px;}
.bk-field input,.bk-field textarea{width:100%;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;box-sizing:border-box;outline:none;color:#111827;}
.bk-field input:focus,.bk-field textarea:focus{border-color:var(--otgd-color,#1a5f8a);}
.bk-summary{background:#eff6ff;border-radius:8px;padding:12px;margin-bottom:12px;font-size:13px;color:#1e40af;line-height:1.8;}
.bk-actions{display:flex;gap:8px;}
.bk-confirm{flex:1;padding:10px;background:var(--otgd-color,#1a5f8a);color:#fff;border:none;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;}
.bk-back{padding:10px 16px;background:#fff;color:#6b7280;border:1px solid #e5e7eb;border-radius:8px;font-size:14px;cursor:pointer;}
.bk-check-btn{padding:9px 16px;background:var(--otgd-color,#1a5f8a);color:#fff;border:none;border-radius:8px;font-size:14px;cursor:pointer;margin-top:4px;}
.bk-no-slots{color:#6b7280;font-size:13px;font-style:italic;}
#otgd-input-area{display:flex;align-items:center;gap:8px;padding:12px 14px;border-top:1px solid #f3f4f6;background:#fff;}
#otgd-input{flex:1;border:1px solid #e5e7eb;border-radius:22px;padding:9px 16px;font-size:14px;color:#111827;outline:none;transition:border-color .15s;}
#otgd-input:focus{border-color:var(--otgd-color,#1a5f8a);}
#otgd-send{width:38px;height:38px;border-radius:50%;background:var(--otgd-color,#1a5f8a);border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:transform .15s;}
#otgd-send:hover{transform:scale(1.08);}
#otgd-send:disabled{opacity:.5;cursor:default;transform:none;}
@media(max-width:480px){#otgd-widget{bottom:16px;right:16px;}#otgd-window{width:calc(100vw - 32px);bottom:70px;}}
