/* CAB-EL AI — style izolowane od istniejącego styles.css */
#cab-ai-root { font-family: Arial, sans-serif; color: #232a35; line-height: 1.45; }
#cab-ai-root * { box-sizing: border-box; }
#cab-ai-root button { margin: 0; font-family: inherit; cursor: pointer; }
#cab-ai-root button:focus-visible, #cab-ai-root input:focus-visible { outline: 3px solid #0269b5; outline-offset: 2px; }
#cab-ai-launcher { position: fixed; z-index: 9999; bottom: 22px; right: 22px; padding: 14px 20px; background: #163449; color: #fff; border: 1px solid #163449; border-radius: 30px; font-weight: 700; font-size: 15px; box-shadow: 0 4px 18px #0003; }
#cab-ai-window { position: fixed; z-index: 10000; right: 22px; bottom: 82px; width: 360px; height: 530px; max-width: calc(100vw - 28px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); padding: 0; margin: 0; border: 1px solid #d7dfe5; border-radius: 15px; box-shadow: 0 8px 32px #0003; background: #fff; display: flex; flex-direction: column; overflow: hidden; text-align: left; }
#cab-ai-window[hidden] { display: none !important; }
#cab-ai-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; background: #163449; color: white; padding: 12px 16px; }
#cab-ai-header small { display: block; font-size: 12px; color: #e1e8ee; }
#cab-ai-close { border: 0; background: transparent; color: #fff; font-size: 25px; padding: 2px 8px; }
#cab-ai-messages { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 13px; overscroll-behavior: contain; }
.cab-ai-message { flex-shrink: 0; padding: 10px 12px; border-radius: 12px; max-width: 88%; font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.cab-ai-bot { align-self: flex-start; color: #232a35; background: #eef1f4; }
.cab-ai-user { align-self: flex-end; background: #163449; color: white; }
#cab-ai-security { flex-shrink: 0; max-height: 145px; overflow: auto; padding: 0 12px; }
#cab-ai-form { display: flex; flex-shrink: 0; gap: 7px; margin: 0; padding: 10px; border-top: 1px solid #ddd; }
#cab-ai-input { flex: 1; min-width: 0; width: 100%; margin: 0; padding: 9px; border: 1px solid #bac4ce; border-radius: 8px; font-size: 16px; background: #fff; color: #232a35; }
#cab-ai-send { border: 0; border-radius: 8px; padding: 8px 12px; background: #163449; color: #fff; font-size: 14px; }
#cab-ai-send:disabled { opacity: .5; cursor: not-allowed; }
#cab-ai-info { flex-shrink: 0; font-size: 11px; text-align: center; padding: 4px 12px 9px; color: #48515b; line-height: 1.35; }
#cab-ai-info a { color: #0269b5; }
@media(max-width:480px) { #cab-ai-window { right: 10px; bottom: 75px; width: calc(100vw - 20px); max-width: none; max-height: calc(100dvh - 88px); } #cab-ai-launcher { right: 12px; bottom: 14px; } }
