/* Chat assistant bubble (assets/chat.js) */
.omb-chat { position: fixed; right: 16px; bottom: 16px; z-index: 80; font-family: inherit; }
.omb-chat-panel, .omb-chat-panel * { box-sizing: border-box; }
.omb-chat-panel, .omb-chat-head, .omb-chat-form { margin: 0; }
.omb-chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.omb-chat-fab { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: #15803D; color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(11, 74, 34, .6); transition: transform .15s ease, background .15s ease; }
.omb-chat-fab:hover { background: #166534; transform: translateY(-2px); }
.omb-chat-fab:focus-visible, .omb-chat-x:focus-visible, .omb-chat-form button:focus-visible, .omb-chat-chips button:focus-visible { outline: 3px solid #F5A01A; outline-offset: 2px; }
.omb-chat.is-open .omb-chat-fab span { display: none; }
.omb-chat.is-open .omb-chat-fab { width: 56px; padding: 0; justify-content: center; }

.omb-chat-panel { position: absolute; right: 0; bottom: 68px; width: 380px; max-width: calc(100vw - 32px); height: min(560px, calc(100vh - 110px)); height: min(560px, calc(100dvh - 110px)); padding: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #DCE5DF; border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); overflow: hidden; animation: omb-chat-in .18s ease-out; }
.omb-chat-panel[hidden] { display: none; }
@keyframes omb-chat-in { from { opacity: 0; transform: translateY(10px); } }

.omb-chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 18px; background: #0B4A22; color: #fff; }
.omb-chat-head strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.omb-chat-head span { display: block; font-size: .8rem; opacity: .85; }
.omb-chat-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.omb-chat-x:hover { background: rgba(255, 255, 255, .22); }

.omb-chat-log { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F6F8F6; }
.omb-chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere; }
.omb-chat-msg.is-assistant { align-self: flex-start; background: #fff; border: 1px solid #E3EAE5; color: #1C1917; border-bottom-left-radius: 6px; }
.omb-chat-msg.is-user { align-self: flex-end; background: #15803D; color: #fff; border-bottom-right-radius: 6px; }
.omb-chat-msg.is-error { background: #FEF3F2; border-color: #F8C9C4; color: #7F1D1D; }
.omb-chat-msg a { color: #15803D; font-weight: 700; text-decoration: underline; }

.omb-chat-dots { display: inline-flex; gap: 5px; padding: 4px 0; }
.omb-chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: #94A3B8; animation: omb-chat-dot 1s infinite ease-in-out; }
.omb-chat-dots i:nth-child(2) { animation-delay: .15s; }
.omb-chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes omb-chat-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.omb-chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; background: #F6F8F6; }
.omb-chat-chips:not(:empty) { padding-bottom: 12px; }
.omb-chat-chips button { padding: 7px 12px; border: 1px solid #BFE6CD; border-radius: 999px; background: #fff; color: #14532D; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.omb-chat-chips button:hover { background: #F0FBF4; }

.omb-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #E3EAE5; background: #fff; }
.omb-chat-form textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; padding: 10px 14px; border: 1px solid #D5DDD8; border-radius: 14px; font: inherit; font-size: 1rem; line-height: 1.4; resize: none; background: #FAFAF9; }
.omb-chat-form textarea:focus { outline: 2px solid #16A34A; outline-offset: 1px; background: #fff; }
.omb-chat-form button { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 14px; background: #15803D; color: #fff; cursor: pointer; }
.omb-chat-form button:hover { background: #166534; }
.omb-chat-note { margin: 0; padding: 0 14px 10px; background: #fff; font-size: .72rem; line-height: 1.35; color: #64748B; }
.omb-chat-note a { color: #15803D; }

@media (max-width: 640px) {
  .omb-chat { right: 12px; bottom: 12px; }
  .omb-chat-fab { width: 56px; padding: 0; justify-content: center; }
  .omb-chat-fab span { display: none; }
  .omb-chat-panel { position: fixed; left: 8px; right: 8px; bottom: 76px; width: auto; max-width: none; height: min(560px, calc(100vh - 92px)); height: min(560px, calc(100dvh - 92px)); }
}
@media (prefers-reduced-motion: reduce) { .omb-chat-panel, .omb-chat-dots i { animation: none; } .omb-chat-fab { transition: none; } }
@media print { .omb-chat { display: none; } }

/* WhatsApp panel (2026-11-20): the button opens WhatsApp with a ready message instead of the automatic assistant */
.omb-chat-fab { background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(18, 140, 126, .65); }
.omb-chat-fab:hover { background: #1ebe5b; }
.omb-chat-fab svg { flex: none; }
.omb-wa.omb-chat-panel { height: auto; max-height: min(600px, calc(100dvh - 110px)); }
.omb-wa .omb-chat-head { background: #075E54; justify-content: flex-start; }
.omb-wa .omb-chat-head > div { flex: 1; min-width: 0; }
.omb-wa-logo { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; }
.omb-wa-body { overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: grid; gap: 12px; background: #ECE5DD; }
.omb-wa-bubble { position: relative; justify-self: start; max-width: 92%; padding: 10px 14px; background: #fff; border-radius: 4px 14px 14px 14px; color: #1C1917; font-size: .93rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.omb-wa-topics { display: grid; gap: 6px; }
.omb-wa-topic { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: #fff; border: 1px solid #d9e7de; border-radius: 12px; color: #075E54; font-weight: 700; font-size: .92rem; text-decoration: none; }
.omb-wa-topic:hover { background: #f0fbf4; border-color: #25D366; }
.omb-wa-main { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 999px; background: #25D366; color: #fff; font-weight: 800; text-decoration: none; }
.omb-wa-main:hover { background: #1ebe5b; }
.omb-wa-main svg { width: 22px; height: 22px; }
.omb-wa-channel { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border-radius: 12px; color: #1C1917; text-decoration: none; border: 1px solid #d9e7de; }
.omb-wa-channel > svg:first-child { flex: none; color: #075E54; }
.omb-wa-channel span { flex: 1; min-width: 0; } .omb-wa-channel strong { display: block; font-size: .92rem; color: #075E54; } .omb-wa-channel small { display: block; color: #64748B; font-size: .78rem; }
.omb-wa-channel:hover { border-color: #25D366; }
.omb-wa-note { margin: 0; text-align: center; font-size: .8rem; color: #57534e; } .omb-wa-note a { color: #075E54; font-weight: 700; }
.omb-wa-topic:focus-visible, .omb-wa-main:focus-visible, .omb-wa-channel:focus-visible { outline: 3px solid #F5A01A; outline-offset: 2px; }
@media (max-width: 640px) { .omb-wa.omb-chat-panel { height: auto; max-height: calc(100dvh - 92px); } }
