/* Smart Cases chat (assets/chat.js). Theme look: Fabrik kit colours (blue #1A77BC, ink #191817, light #F7F7F7, rule #E6E9EB),
   Manrope, square corners, buttons in the theme's uppercase style. Every rule starts at #sc-chat, so the Elementor kit's global
   button and input styles (.elementor-kit-5 button, 25px 30px padding) cannot reach inside. */
#sc-chat { --scc-blue: var(--e-global-color-vamtam_accent_1, #1A77BC); --scc-ink: var(--e-global-color-vamtam_accent_4, #191817);
  --scc-light: var(--e-global-color-vamtam_accent_2, #F7F7F7); --scc-rule: var(--e-global-color-vamtam_accent_7, #E6E9EB);
  position: fixed; right: 24px; bottom: 24px; z-index: 9990; font-family: Manrope, system-ui, sans-serif; font-size: 15px; line-height: 1.5; color: var(--scc-ink); }
#sc-chat.sc-chat--raised { bottom: 96px; }
#sc-chat *, #sc-chat *::before, #sc-chat *::after { box-sizing: border-box; }
#sc-chat button { font: inherit; letter-spacing: normal; text-transform: none; border: 0; border-radius: 0; box-shadow: none; margin: 0; cursor: pointer; min-height: 0; line-height: 1; }
#sc-chat svg { width: 24px; height: 24px; display: block; }
#sc-chat .sc-chat__launcher { width: 60px; height: 60px; padding: 0; display: grid; place-items: center; background: var(--scc-blue); color: #fff; box-shadow: 0 8px 24px rgba(25, 24, 23, .18); transition: background .2s; }
#sc-chat .sc-chat__launcher:hover, #sc-chat .sc-chat__launcher:focus-visible { background: var(--scc-ink); color: #fff; }
#sc-chat.is-open .sc-chat__launcher { display: none; }
#sc-chat .sc-chat__panel { position: absolute; right: 0; bottom: 0; width: 380px; height: min(620px, calc(100svh - 120px)); background: #fff; border: 1px solid var(--scc-rule);
  box-shadow: 0 16px 48px rgba(25, 24, 23, .16); display: flex; flex-direction: column; }
#sc-chat .sc-chat__panel[hidden] { display: none; }
#sc-chat .sc-chat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 12px 16px 20px; background: var(--scc-ink); color: #fff; }
#sc-chat .sc-chat__title { margin: 0; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #fff; }
#sc-chat .sc-chat__sub { margin: 2px 0 0; font-size: 13px; color: rgba(255, 255, 255, .7); }
#sc-chat .sc-chat__headbtns { display: flex; align-items: center; gap: 4px; }
#sc-chat .sc-chat__icon { width: 40px; height: 40px; padding: 8px; background: transparent; color: #fff; }
#sc-chat .sc-chat__icon:hover { background: rgba(255, 255, 255, .12); color: #fff; }
#sc-chat .sc-chat__end { padding: 8px 10px; background: transparent; color: #fff; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
#sc-chat .sc-chat__end:hover { background: rgba(255, 255, 255, .12); color: #fff; }
#sc-chat .sc-chat__end[hidden] { display: none; }
#sc-chat .sc-chat__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
#sc-chat .sc-chat__msg { max-width: 88%; }
#sc-chat .sc-chat__msg.is-user { align-self: flex-end; }
#sc-chat .sc-chat__who { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #777; margin: 0 0 4px; }
#sc-chat .sc-chat__msg.is-user .sc-chat__who { text-align: right; }
#sc-chat .sc-chat__text { padding: 12px 14px; background: var(--scc-light); font-size: 14px; overflow-wrap: anywhere; }
#sc-chat .sc-chat__msg.is-user .sc-chat__text { background: var(--scc-blue); color: #fff; }
#sc-chat .sc-chat__text a { color: var(--scc-blue); text-decoration: underline; }
#sc-chat .sc-chat__note { margin: 0; font-size: 13px; color: #555; }
#sc-chat .sc-chat__note.is-error { color: #b3261e; }
#sc-chat .sc-chat__note.is-done { padding: 12px 14px; border-left: 3px solid var(--scc-blue); background: var(--scc-light); color: var(--scc-ink); }
#sc-chat .sc-chat__typing { margin: 0; font-size: 13px; color: #777; }
#sc-chat .sc-chat__foot { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--scc-rule); }
#sc-chat .sc-chat__foot[hidden] { display: none; }
#sc-chat textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; margin: 0; padding: 11px 12px; border: 1px solid var(--scc-rule); border-radius: 0;
  font: inherit; font-size: 14px; line-height: 1.4; color: var(--scc-ink); background: #fff; box-shadow: none; }
#sc-chat textarea:focus, #sc-chat input:focus { outline: 2px solid var(--scc-blue); outline-offset: -1px; border-color: var(--scc-blue); }
#sc-chat .sc-chat__send { width: 44px; height: 44px; padding: 10px; background: var(--scc-ink); color: #fff; flex: none; }
#sc-chat .sc-chat__send:hover { background: var(--scc-blue); color: #fff; }
#sc-chat .sc-chat__send:disabled { opacity: .5; cursor: default; }
#sc-chat .sc-chat__form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
#sc-chat .sc-chat__intro { margin: 0; font-size: 14px; color: #444; }
#sc-chat .sc-chat__field { margin: 0; }
#sc-chat .sc-chat__field label { display: block; margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .5px; color: var(--scc-ink); text-transform: none; }
#sc-chat .sc-chat__field input { width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--scc-rule); border-radius: 0; background: #fff;
  font: inherit; font-size: 14px; color: var(--scc-ink); box-shadow: none; }
#sc-chat .sc-chat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#sc-chat .sc-chat__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: #444; text-transform: none; letter-spacing: normal; font-weight: 400; cursor: pointer; }
#sc-chat .sc-chat__consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--scc-blue); }
#sc-chat .sc-chat__consent a { color: var(--scc-blue); text-decoration: underline; }
#sc-chat .sc-chat__error { margin: 0; font-size: 13px; color: #b3261e; }
#sc-chat .sc-chat__error[hidden] { display: none; }
#sc-chat .sc-chat__primary { align-self: stretch; padding: 18px 24px; background: var(--scc-ink); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; line-height: 1.3; transition: background .2s; }
#sc-chat .sc-chat__primary:hover, #sc-chat .sc-chat__primary:focus-visible { background: var(--scc-blue); color: #fff; }
#sc-chat .sc-chat__primary:disabled { opacity: .6; cursor: default; }
@media (max-width: 600px) {
  #sc-chat { right: 16px; bottom: 16px; }
  #sc-chat.sc-chat--raised { bottom: 16px; }
  #sc-chat.is-open { inset: 0; }
  #sc-chat .sc-chat__panel { position: fixed; inset: 0; width: auto; height: auto; border: 0; }
}
@media (prefers-reduced-motion: reduce) { #sc-chat * { transition: none !important; } }
