/* The shop's chat assistant (#725, kaupix/shop_chat.py, public/js/otb_chat.js) */
.otb-chat-btn { position: fixed; right: 18px; bottom: 18px; z-index: 1040; width: 56px; height: 56px; border: 0; border-radius: 50%; background: #0b6fd1; color: #fff;
	box-shadow: 0 6px 18px rgba(11, 111, 209, .35), 0 2px 6px rgba(0, 0, 0, .18); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s, background .15s, bottom .2s; padding: 0; }
.otb-chat-btn:hover { background: #095cae; transform: translateY(-1px); }
.otb-chat-btn:focus-visible { outline: 3px solid #9cc8f5; outline-offset: 2px; }
.otb-chat-btn.otb-chat-on { background: #37474F; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.otb-chat { position: fixed; right: 18px; bottom: 86px; z-index: 1045; width: 372px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 110px); background: #fff; border-radius: 14px;
	box-shadow: 0 16px 48px rgba(27, 43, 60, .28), 0 2px 8px rgba(0, 0, 0, .12); display: flex; flex-direction: column; overflow: hidden; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px; line-height: 1.45; color: #37474F; }
.otb-chat[hidden], .otb-chat [hidden] { display: none !important; }
.otb-chat-head { background: #2B425C; color: #fff; padding: 12px 14px 12px 16px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.otb-chat-title { font-weight: 700; font-size: 15.5px; }
.otb-chat-sub { font-size: 12.5px; opacity: .85; margin-top: 1px; display: flex; align-items: center; }
.otb-chat-dot { width: 7px; height: 7px; border-radius: 50%; background: #57d38c; display: inline-block; margin-right: 6px; }
.otb-chat-x { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; padding: 0; }
.otb-chat-x:hover { background: rgba(255, 255, 255, .14); }
.otb-chat-main { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.otb-chat-log { flex: 1; overflow-y: auto; padding: 14px 14px 6px; background: #F5F7FA; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.otb-chat-b { max-width: 86%; padding: 9px 12px; border-radius: 14px; word-wrap: break-word; overflow-wrap: anywhere; }
.otb-chat-a { align-self: flex-start; background: #fff; border: 1px solid #E2E8EE; border-bottom-left-radius: 4px; }
.otb-chat-u { align-self: flex-end; background: #0b6fd1; color: #fff; border-bottom-right-radius: 4px; }
.otb-chat-a a { color: #0b6fd1; text-decoration: underline; }
.otb-chat-u a { color: #fff; text-decoration: underline; }
.otb-chat-a a.otb-chat-link { display: inline-block; font-weight: 600; text-decoration: none; margin: 1px 0 3px; }
.otb-chat-a a.otb-chat-link:hover { text-decoration: underline; }
.otb-chat-offer { background: transparent; border: 0; padding: 0; }
.otb-chat-wait span { display: inline-block; width: 6px; height: 6px; margin: 4px 2px; border-radius: 50%; background: #90A4AE; animation: otb-chat-w 1s infinite ease-in-out; }
.otb-chat-wait span:nth-child(2) { animation-delay: .15s; }
.otb-chat-wait span:nth-child(3) { animation-delay: .3s; }
@keyframes otb-chat-w { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.otb-chat-chips { background: #F5F7FA; padding: 0 14px 10px; display: flex; flex-wrap: wrap; gap: 6px; flex: none; }
.otb-chat-chips:empty { display: none; }
.otb-chat-chip { background: #fff; border: 1px solid #b9d6f2; color: #0b6fd1; border-radius: 999px; padding: 6px 12px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.otb-chat-chip:hover { background: #EAF3F9; }
.otb-chat-in { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #E2E8EE; background: #fff; flex: none; margin: 0; }
.otb-chat-in textarea { flex: 1; border: 1px solid #CFD8DC; border-radius: 10px; padding: 9px 11px; font: inherit; color: inherit; resize: none; min-height: 40px; max-height: 96px; outline: none; background: #fff; }
.otb-chat-in textarea:focus, .otb-chat-form input:focus, .otb-chat-form textarea:focus { border-color: #0b6fd1; box-shadow: 0 0 0 3px rgba(11, 111, 209, .15); }
.otb-chat-in button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #0b6fd1; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.otb-chat-in button:hover { background: #095cae; }
.otb-chat-note { font-size: 11.5px; line-height: 1.4; color: #78909C; padding: 0 14px 10px; background: #fff; flex: none; }
.otb-chat-note a { color: #546E7A; text-decoration: underline; }
.otb-chat-form { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: #fff; margin: 0; overflow-y: auto; }
.otb-chat-ftitle { font-weight: 700; color: #2B425C; }
.otb-chat-form input[type=email], .otb-chat-form textarea { border: 1px solid #CFD8DC; border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; outline: none; width: 100%; background: #fff; }
.otb-chat-form textarea { flex: 1; min-height: 120px; resize: none; }
.otb-chat-hp { position: absolute !important; left: -5000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.otb-chat-fsend { border: 0; border-radius: 10px; background: #0b6fd1; color: #fff; font: inherit; font-weight: 700; padding: 11px 14px; cursor: pointer; }
.otb-chat-fsend:hover { background: #095cae; }
.otb-chat-back { align-self: center; color: #546E7A; font-size: 13.5px; text-decoration: underline; }
.otb-chat-fmsg { min-height: 18px; font-size: 13.5px; color: #546E7A; }
.otb-chat-bad { color: #C62828; }
@media (max-width: 600px) {
	.otb-chat-btn { right: 14px; bottom: 14px; width: 52px; height: 52px; }
	.otb-chat { right: 0; left: 0; bottom: 0; width: 100%; max-width: 100%; height: 82vh; max-height: 82vh; border-radius: 16px 16px 0 0; z-index: 1046; }
	.otb-chat-in textarea, .otb-chat-form input[type=email], .otb-chat-form textarea { font-size: 16px; }
	.otb-chat-btn.otb-chat-on { display: none; }
}
@media print { .otb-chat-btn, .otb-chat { display: none !important; } }
