/* "Spørg FIXON" chat (js/site-chat.js). Everything is scoped to .fxc / #chat-launch
   so page styles cannot reach it. Computer: panel bottom-right. Phone: full screen. */
#chat-launch.fxc-launch{position:fixed;right:24px;bottom:24px;z-index:40;display:flex;align-items:center;gap:10px;min-height:56px;padding:0 22px 0 18px;border:0;border-radius:999px;background:#A855F7;color:#fff;font:800 17px/1 Manrope,Arial,sans-serif;box-shadow:0 8px 28px #51208238;cursor:pointer;-webkit-tap-highlight-color:transparent}
#chat-launch.fxc-launch:hover{background:#9333ea}
#chat-launch.fxc-launch svg{width:24px;height:24px}
#chat-launch.fxc-launch .chat-badge{position:absolute;top:-4px;right:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#dc2626;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;border:2px solid #fff}

.fxc{position:fixed;inset:auto 24px 24px auto;margin:0;padding:0;border:0;width:400px;max-width:calc(100vw - 32px);height:min(640px,calc(100dvh - 48px));max-height:none;border-radius:20px;background:#fff;color:#202024;font-family:Manrope,Arial,sans-serif;box-shadow:0 24px 80px #27123c40;overflow:hidden;z-index:50}
.fxc[open]{display:flex;flex-direction:column}
.fxc::backdrop{background:#160f2126}
.fxc *{box-sizing:border-box}
.fxc button{font-family:inherit}

.fxc-head{flex:none;display:flex;align-items:center;gap:10px;padding:14px 12px 14px 16px;background:linear-gradient(135deg,#a855f7,#7c3aed);color:#fff}
.fxc-avatar{flex:none;width:40px;height:40px;border-radius:50%;background:#ffffff26;display:grid;place-items:center}
.fxc-avatar svg{width:22px;height:22px}
.fxc-headtext{flex:1;min-width:0}
.fxc-headtext h2{margin:0;font-size:16px;font-weight:800;letter-spacing:-.01em;line-height:1.2;color:#fff}
.fxc-headtext p{margin:2px 0 0;font-size:12.5px;opacity:.92;display:flex;align-items:center;gap:6px}
.fxc-dot{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 2px #ffffff40}
.fxc[data-status=WAITING] .fxc-dot{background:#fbbf24}
.fxc-human{flex:none;display:flex;align-items:center;gap:6px;height:36px;padding:0 10px;border:1px solid #ffffff59;border-radius:999px;background:transparent;color:#fff;font-size:12.5px;font-weight:700;cursor:pointer}
.fxc-human svg{width:16px;height:16px}
.fxc-human:hover{background:#ffffff1f}
.fxc[data-status=OPEN] .fxc-human,.fxc[data-status=WAITING] .fxc-human{display:none}
.fxc-close{flex:none;width:40px;height:40px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;display:grid;place-items:center}
.fxc-close svg{width:22px;height:22px}
.fxc-close:hover{background:#ffffff1f}

.fxc-body{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:14px 16px 8px;background:#faf8fc}
.fxc-privacy{margin:0 0 10px;text-align:center;font-size:11.5px;color:#8a8291}
.fxc-log{display:flex;flex-direction:column;gap:8px}
.fxc-msg{max-width:86%;padding:10px 13px;font-size:15px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere;border-radius:16px}
.fxc-msg a{color:inherit;font-weight:700;text-decoration:underline}
.fxc-bot{align-self:flex-start;background:#fff;border:1px solid #ece6f2;border-bottom-left-radius:5px;color:#2b2730}
.fxc-staff{align-self:flex-start;background:#f3e8ff;border-bottom-left-radius:5px;color:#2b2730}
.fxc-who{display:block;font-size:12px;font-weight:800;color:#6b21a8;margin-bottom:2px}
.fxc-me{align-self:flex-end;background:#A855F7;color:#fff;border-bottom-right-radius:5px}
.fxc-system{align-self:center;max-width:94%;background:transparent;border:1px dashed #d7bfeb;font-size:13px;color:#5d5566;text-align:center}
.fxc-typing{display:flex;gap:4px;padding:14px 16px}
.fxc-typing i{width:7px;height:7px;border-radius:50%;background:#b8a9c7;animation:fxc-bounce 1.2s infinite ease-in-out}
.fxc-typing i:nth-child(2){animation-delay:.15s}.fxc-typing i:nth-child(3){animation-delay:.3s}
@keyframes fxc-bounce{0%,80%,100%{transform:translateY(0);opacity:.5}40%{transform:translateY(-5px);opacity:1}}

.fxc-topics{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 4px}
.fxc-topics[hidden]{display:none}
.fxc-topics button{min-height:40px;padding:8px 14px;border:1px solid #d7bfeb;border-radius:999px;background:#fff;color:#5b21b6;font-size:14px;font-weight:600;cursor:pointer;text-align:left}
.fxc-topics button:hover{background:#f3e8ff}

.fxc-handoff{align-self:stretch;display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid #e4d8ed;border-radius:14px;background:#fff}
.fxc-handoff strong{font-size:15px}
.fxc-handoff p{margin:0 0 4px;font-size:13.5px;color:#5d5566;line-height:1.45}
.fxc-handoff label{font-size:13px;font-weight:700;color:#3a3540;margin-top:4px}
.fxc-handoff input{width:100%;min-height:46px;padding:10px 12px;border:1px solid #d7d4dc;border-radius:10px;background:#fff;font:16px Manrope,Arial,sans-serif;color:#202024}
.fxc-handoff input:focus{outline:2px solid #A855F7;outline-offset:-1px;border-color:transparent}
.fxc-handoff-actions{display:flex;align-items:center;gap:12px;margin-top:8px}
.fxc-handoff-actions button[type=submit]{flex:1;min-height:48px;border:0;border-radius:12px;background:#A855F7;color:#fff;font-size:16px;font-weight:800;cursor:pointer}
.fxc-handoff-actions button[type=submit]:disabled{opacity:.6}
.fxc-link{border:0;background:none;color:#6b6472;font-size:14px;font-weight:600;text-decoration:underline;cursor:pointer;padding:8px}
.fxc-error{margin:8px 0 0;padding:8px 10px;border-radius:10px;background:#fef2f2;color:#a02c30;font-size:13.5px}

.fxc-form{flex:none;display:flex;align-items:flex-end;gap:8px;padding:10px 12px 12px;border-top:1px solid #efe9f4;background:#fff}
.fxc-form textarea{flex:1;min-width:0;min-height:46px;max-height:120px;resize:none;padding:12px 14px;border:1px solid #d7d4dc;border-radius:23px;background:#f7f6f9;font:16px/1.35 Manrope,Arial,sans-serif;color:#202024}
.fxc-form textarea:focus{outline:2px solid #A855F7;outline-offset:-1px;background:#fff;border-color:transparent}
.fxc-send{flex:none;width:46px;height:46px;border:0;border-radius:50%;background:#A855F7;color:#fff;display:grid;place-items:center;cursor:pointer}
.fxc-send svg{width:22px;height:22px}
.fxc-send:hover{background:#9333ea}
.fxc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* Phone: full screen, sized to the visible area so the keyboard never hides the input. */
@media(max-width:760px){
  #chat-launch.fxc-launch{right:16px;bottom:16px;width:56px;padding:0;justify-content:center}
  #chat-launch.fxc-launch span:not(.chat-badge){display:none}
  .fxc{inset:var(--fxc-top,0) 0 auto 0;width:100%;max-width:100%;height:var(--fxc-h,100dvh);border-radius:0;box-shadow:none}
  .fxc::backdrop{background:#fff}
  .fxc-head{padding-top:calc(12px + env(safe-area-inset-top))}
  .fxc-human span{display:none}
  .fxc-human{width:40px;padding:0;justify-content:center}
  .fxc-form{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .fxc-msg{max-width:90%}
  /* While the chat is open the page underneath must not scroll or show the app bar. */
  html.fxc-open,html.fxc-open body{overflow:hidden}
  html.fxc-open .appbar{display:none!important}
}
/* Booking has a fixed price/continue bar at the bottom on a phone: lift the button above it. */
@media(max-width:760px){body:has(#mobile-total) #chat-launch.fxc-launch{bottom:calc(92px + env(safe-area-inset-bottom))}}
/* Old page styles target #chat-messages / p by id or tag: neutralise them inside the widget. */
.fxc #chat-messages{max-height:none;overflow:visible}
.fxc .fxc-headtext p,.fxc .fxc-headtext span{color:#fff}
.fxc p{letter-spacing:normal}
.fxc .fxc-headtext p{min-width:0;white-space:nowrap}
.fxc #fxc-status{overflow:hidden;text-overflow:ellipsis}
.fxc .fxc-human{width:40px;padding:0;justify-content:center}
.fxc .fxc-human span{display:none}
