:host { all: initial; font: 400 16px/1.45 Instrument,system-ui,sans-serif; color: #ecf8ff; }
*, *::before, *::after { box-sizing: border-box; }
button,input { font: inherit; }
button,a { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, .gesprek:focus-visible {
  outline: 3px solid #fff192; outline-offset: 2px;
}
.open { position: fixed; right: max(16px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom));
  z-index: 8; display: inline-flex; align-items:center; gap:9px; padding:7px 15px 7px 8px;
  min-height:44px; color:#effbff; font-weight:650; font-size:14px; background:linear-gradient(155deg,#253f50,#0d1a28 70%);
  border:1px solid #79b8c9; border-radius:13px; box-shadow:0 3px 15px #07132350; }
.open:hover,.keuzes button:hover,.sluit:hover { background:#274859; }
:host([data-contact]) { display:block; margin:0 0 12px; }
:host([data-contact]) .open { position:static; box-shadow:none; }
.merk { display:inline-block; width:30px; height:30px; flex:none; overflow:hidden; }
.merk img { display:block; height:100%; width:100%; object-fit:contain; }
dialog { color-scheme:dark; position:fixed; inset:auto max(14px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) auto;
  color:#eff8fd; background:#0e1b27; border:1px solid #7397a7; border-radius:16px; padding:0; margin:0;
  width:min(414px,calc(100vw - 24px)); max-width:none; height:min(552px,calc(100dvh - 28px)); max-height:none;
  box-shadow:0 18px 55px #020a15a8; font:inherit; overflow:hidden; }
dialog[open] { display:grid; grid-template-rows:auto minmax(0,1fr) auto; }
dialog::backdrop { background:rgb(4 12 23 / 50%); }
header { display:flex; align-items:center; gap:10px; min-width:0; padding:10px 14px;
  background:linear-gradient(113deg,#253f50,#112433); border-bottom:1px solid #48616e; }
h2 { font-size:18px; line-height:1.2; margin:0; font-weight:700; }
.sluit { margin-left:auto; background:transparent; color:#fff; width:44px; min-height:44px; border:1px solid #67909f; border-radius:9px; font-size:24px; }
.gesprek { overflow:auto; overscroll-behavior:contain; padding:16px; scrollbar-color:#526f7e #12202c; }
p { margin:0; }
.welkom p:first-child { font-weight:700; font-size:19px; }
.welkom p+p { color:#c5d6df; margin-top:4px; }
.keuzes,.links { display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; margin-top:10px; }
.keuzes button,.overdracht { text-align:left; color:#dafaff; background:#1c3442; border:1px solid #658994; border-radius:8px; min-height:40px; padding:7px 10px; font-size:14px; }
.beurt { margin:14px 0 0; overflow-wrap:anywhere; }
.beurt.eigen { margin-left:auto; width:fit-content; max-width:92%; background:#233f50; padding:8px 12px; border-radius:12px 12px 2px 12px; }
.spreker { display:block; margin-bottom:3px; color:#a9dbe6; font-size:12px; font-weight:700; }
.links a { display:inline-flex; align-items:center; min-height:32px; color:#9bebff; text-decoration:underline; text-underline-offset:3px; font-size:14px; }
.overdracht { margin-top:9px; background:transparent; }
.invoer { padding:10px 16px 12px; border-top:1px solid #415968; background:#152633; }
.invoer label { display:block; margin-bottom:4px; font-size:14px; font-weight:650; }
.invoer div { display:flex; gap:8px; }
.invoer input { width:0; min-width:0; flex:1; border:1px solid #7798a6; border-radius:8px; padding:8px 11px; color:#f5fbff; background:#091620; font-size:16px; }
input::placeholder { color:#a9bfcd; }
.stuur { color:#062330; background:#a0edfb; border:0; border-radius:8px; padding:8px 14px; min-height:44px; font-weight:700; }
#gidsprivacy { color:#c0d3dc; font-size:12px; margin-top:5px; }
@media(max-width:480px) {
  dialog { inset:auto 0 0; width:100%; height:min(90dvh,600px); border-radius:16px 16px 0 0;
    padding-bottom:env(safe-area-inset-bottom); }
  .gesprek { padding:12px; } header,.invoer { padding-left:12px; padding-right:12px; }
}
@media(max-height:400px) { dialog { height:100dvh; inset-block:0; } header { padding-block:3px; } .invoer {padding-block:5px;} }

@media(max-width:390px) {
  :host(:not([data-contact])) .open { width:46px; height:46px; justify-content:center; padding:6px; }
  :host(:not([data-contact])) .open span:last-child { display:none; }
}
