/* EKECAR Asszisztens: isolated styles for the optional demo chat. */
.assistant-widget { position: fixed; inset: auto 22px calc(22px + env(safe-area-inset-bottom, 0px) + var(--assistant-keyboard-offset, 0px)) auto; z-index: 1000; font-family: 'Outfit', sans-serif; }
.assistant-widget * { box-sizing: border-box; }
.assistant-launcher { width: 58px; height: 58px; display: grid; place-items: center; margin-left: auto; color: var(--primary); background: linear-gradient(145deg, #10283c, #071524); border: 1px solid rgba(25, 198, 232, .48); border-radius: 50%; box-shadow: 0 8px 28px rgba(0,0,0,.42), 0 0 18px rgba(25,198,232,.18); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.assistant-launcher:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.48), 0 0 22px rgba(25,198,232,.25); }
.assistant-launcher svg { width: 26px; height: 26px; }
.assistant-panel[hidden] { display: none; }
.assistant-panel { width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100dvh - 104px)); min-height: min(400px, calc(100dvh - 104px)); display: flex; flex-direction: column; overflow: hidden; margin-bottom: 12px; color: #edf7fc; background: rgba(7,17,30,.96); border: 1px solid rgba(25,198,232,.28); border-radius: 20px; box-shadow: 0 20px 55px rgba(0,0,0,.58), 0 0 22px rgba(25,198,232,.10); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .18s ease, transform .18s ease; }
.assistant-panel.is-open { opacity: 1; transform: translateY(0) scale(1); }
.assistant-header { flex: none; display: flex; align-items: flex-start; gap: 11px; padding: 17px 14px; border-bottom: 1px solid rgba(150,190,220,.16); background: rgba(12,32,50,.92); }
.assistant-mark { flex: 0 0 38px; height: 38px; display: grid; place-items: center; color: var(--primary); border-radius: 12px; background: rgba(25,198,232,.1); }
.assistant-mark svg { width: 23px; height: 23px; }
.assistant-heading { min-width: 0; flex: 1; }
.assistant-heading h2 { color: #f1f9fc; font-family: 'Syne', sans-serif; font-size: 16px; line-height: 1.35; }
.assistant-heading p { color: #b9cad9; font-size: 11px; line-height: 1.4; margin: 4px 0; }
.assistant-status { color: #85dbea; font-size: 11px; }
.assistant-status::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #74cbdc; vertical-align: 1px; }
.assistant-header-actions { display: flex; gap: 2px; flex: none; }
.assistant-header-actions button { width: 30px; height: 30px; color: #cbdce8; background: transparent; border: 0; border-radius: 8px; font-size: 24px; line-height: 1; cursor: pointer; }
.assistant-header-actions button:hover { color: #fff; background: rgba(25,198,232,.13); }
.assistant-messages { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 12px; scrollbar-color: rgba(25,198,232,.35) transparent; }
.assistant-message { max-width: 92%; min-width: 0; overflow-wrap: anywhere; border-radius: 15px; padding: 11px 13px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; }
.assistant-message--bot { align-self: flex-start; color: #e4f0f8; background: rgba(22,39,57,.95); border: 1px solid rgba(150,190,220,.19); border-bottom-left-radius: 4px; }
.assistant-message--user { align-self: flex-end; color: #f5fcfe; background: rgba(16,91,120,.84); border: 1px solid rgba(25,198,232,.37); border-bottom-right-radius: 4px; }
.assistant-actions { align-self: flex-start; display: flex; flex-wrap: wrap; gap: 7px; max-width: 100%; }
.assistant-actions button, .assistant-actions a, .assistant-quick button { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; color: #a9eaf6; background: rgba(25,198,232,.08); border: 1px solid rgba(25,198,232,.36); border-radius: 20px; text-decoration: none; font: 500 12px/1.3 'Outfit', sans-serif; cursor: pointer; }
.assistant-actions svg { width: 15px; height: 15px; flex: none; }
.assistant-actions button:hover, .assistant-actions a:hover, .assistant-quick button:hover { background: rgba(25,198,232,.17); color: #fff; }
.assistant-actions button:disabled { opacity: .5; cursor: not-allowed; }
.assistant-actions button:disabled:hover { background: rgba(25,198,232,.08); color: #a9eaf6; }
.assistant-note { align-self: flex-start; color: #b7c9d8; font-size: 11px; line-height: 1.4; }
.assistant-quick { flex: none; display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 12px; max-height: 140px; overflow-y: auto; }
.assistant-quick[hidden] { display: none; }
.assistant-form { flex: none; display: flex; gap: 8px; padding: 11px 13px; border-top: 1px solid rgba(150,190,220,.16); background: rgba(9,23,38,.96); }
.assistant-form textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 100px; resize: vertical; padding: 11px 12px; color: #f4faff; background: #0d2335; border: 1px solid rgba(150,190,220,.25); border-radius: 12px; font: 13px/1.45 'Outfit', sans-serif; }
.assistant-form textarea::placeholder { color: #a7bbca; }
.assistant-form button { width: 42px; height: 42px; flex: none; display: grid; place-items: center; color: var(--primary); background: #102b42; border: 1px solid rgba(25,198,232,.4); border-radius: 12px; cursor: pointer; }
.assistant-form button:hover { background: #153a56; }
.assistant-form button svg { width: 21px; height: 21px; }
.assistant-disclaimer { flex: none; color: #adbdca; font-size: 10px; text-align: center; padding: 0 12px 11px; background: rgba(9,23,38,.96); }
.assistant-widget button:focus-visible, .assistant-widget a:focus-visible, .assistant-widget textarea:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 600px) {
  .assistant-widget { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--assistant-keyboard-offset, 0px)); }
  .assistant-panel { width: calc(100vw - 24px); height: min(620px, calc(100dvh - 100px - var(--assistant-keyboard-offset, 0px))); min-height: 0; margin-bottom: 10px; }
  .assistant-launcher { width: 54px; height: 54px; }
  .assistant-header { padding: 12px; }
  .assistant-quick { max-height: 100px; }
}
@media (max-height: 500px) { .assistant-panel { height: calc(100dvh - 90px - var(--assistant-keyboard-offset, 0px)); min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .assistant-launcher, .assistant-panel { transition: none; } }
