.matching-chat { --chat-accent:var(--marketplace-accent,#426f64); --chat-deep:var(--marketplace-accent-deep,#22473e); position:fixed; right:24px; bottom:20px; z-index:1100; color:#202c28; font:14px/1.5 var(--ui-font-sans,system-ui,sans-serif); }
body:has(.cookie-banner:not([hidden])) .matching-chat:not(.is-open) { z-index:39; }
.matching-chat *, .matching-chat *::before, .matching-chat *::after { box-sizing:border-box; }
.matching-chat[hidden],.matching-chat [hidden] { display:none !important; }
.matching-chat button,.matching-chat a { -webkit-tap-highlight-color:transparent; font:inherit; }
.matching-chat button { cursor:pointer; }
.matching-chat button:focus-visible,.matching-chat a:focus-visible,.matching-chat summary:focus-visible,.matching-chat__timeline:focus-visible { outline:3px solid #2f6fdb; outline-offset:2px; }
.matching-chat .matching-chat__launcher { display:flex; gap:10px; align-items:center; min-height:62px; max-width:calc(100vw - 24px); padding:8px 18px 8px 9px; border:1px solid #d0dfd8; border-radius:40px; background:var(--chat-deep); color:#fff; box-shadow:0 8px 28px #203c3429; text-align:left; }
.matching-chat .matching-chat__launcher>img { width:44px; height:44px; object-fit:cover; border-radius:50%; }
.matching-chat .matching-chat__launcher strong { display:block; font-size:13px; font-weight:700; color:#fff; }
.matching-chat .matching-chat__launcher small { display:block; font-size:11px; color:#e3eee8; }
.matching-chat .matching-chat__panel { position:absolute; right:0; bottom:0; display:flex; flex-direction:column; width:min(420px,calc(100vw - 32px)); height:min(720px,calc(100dvh - 48px - var(--psy-cookie-banner-height,0px))); overflow:hidden; background:#eff5f1; border:1px solid #d5dfd9; border-radius:22px; box-shadow:0 14px 60px #1e352d30; }
.matching-chat .matching-chat__header { position:relative; z-index:1; display:flex; align-items:center; gap:10px; flex:0 0 auto; padding:12px 14px; background:var(--chat-deep); border-bottom:1px solid #ffffff26; }
.matching-chat .matching-chat__header>img { object-fit:cover; width:40px; height:40px; border-radius:50%; }
.matching-chat .matching-chat__header h2 { margin:0; color:#fff; font-size:15px; line-height:1.4; font-weight:750; letter-spacing:0; }
.matching-chat .matching-chat__header p { margin:1px 0 0; color:#e3eee8; font-size:12px; }
.matching-chat .matching-chat__close { display:grid; place-items:center; flex:none; margin-left:auto; width:44px; height:44px; border:1px solid #ffffff38; border-radius:12px; background:#ffffff14; }
.matching-chat .matching-chat__close { position:relative; color:#fff; }
.matching-chat .matching-chat__close img { display:none; }
.matching-chat .matching-chat__close::before,.matching-chat .matching-chat__close::after { content:""; position:absolute; width:20px; height:2px; border-radius:1px; background:currentColor; transform:rotate(45deg); }
.matching-chat .matching-chat__close::after { transform:rotate(-45deg); }
.matching-chat .matching-chat__close:hover { background:#ffffff2b; }
.matching-chat .matching-chat__timeline { position:relative; flex:1 1 auto; min-height:0; overflow-y:auto; overflow-x:hidden; padding:20px 14px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#bacdc0 transparent; overflow-anchor:none; }
.matching-chat .matching-chat__turn { display:flex; align-items:flex-start; gap:8px; margin:0 0 18px; }
.matching-chat .matching-chat__message-avatar { flex:none; width:28px; height:28px; margin-top:4px; border-radius:50%; object-fit:cover; }
.matching-chat .matching-chat__message-content { min-width:0; flex:1; }
.matching-chat .matching-chat__bubble { padding:11px 13px; border-radius:4px 15px 15px 15px; background:#fff; color:#273d32; box-shadow:0 1px 2px #203c340a; }
.matching-chat .matching-chat__bubble p { margin:0; font-size:14px; line-height:1.55; }
.matching-chat .matching-chat__bubble p+p { margin-top:9px; }
.matching-chat .matching-chat__options { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.matching-chat .matching-chat__option { display:inline-flex; align-items:center; justify-content:center; min-height:44px; max-width:100%; padding:8px 11px; border:1px solid #729c88; border-radius:20px; background:#dcece2; box-shadow:0 2px 0 #b5cfc0; color:#294e3e; font-size:12px !important; line-height:1.35 !important; text-align:left; font-weight:600 !important; overflow-wrap:anywhere; }
.matching-chat .matching-chat__option:hover:not(:disabled) { border-color:var(--chat-accent); background:#c8e1d2; }
.matching-chat .matching-chat__option[aria-pressed="true"] { border-color:#528372; background:#e1eee6; color:#244f3d; }
.matching-chat .matching-chat__option:disabled { cursor:default; color:#627268; border-color:#dae3dd; background:#f6f9f7; }
.matching-chat .matching-chat__option:disabled[aria-pressed="true"] { color:#315d48; border-color:#91b3a0; background:#e1eee6; }
.matching-chat .matching-chat__option--urgent:not(:disabled) { color:#893c36; border-color:#d9bdb9; }
.matching-chat .matching-chat__turn--user { justify-content:flex-end; margin-left:42px; }
.matching-chat .matching-chat__user-bubble { max-width:100%; padding:9px 12px; border-radius:15px 4px 15px 15px; background:var(--chat-deep); color:#fff; }
.matching-chat .matching-chat__user-bubble p { margin:0; font-size:14px; overflow-wrap:anywhere; }
.matching-chat .matching-chat__primary { display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:11px 13px; margin:10px 0 0; border:0; border-radius:14px; color:#fff; background:var(--chat-accent); text-align:center; text-decoration:none; font-size:13px; font-weight:700 !important; }
.matching-chat .matching-chat__primary img { filter:brightness(0) invert(1); flex:none; }
.matching-chat .matching-chat__primary:hover { background:var(--chat-deep); color:#fff; }
.matching-chat .matching-chat__typing { display:flex; align-items:center; gap:4px; width:max-content; max-width:100%; min-height:42px; padding:10px 12px; border-radius:4px 15px 15px 15px; background:#fff; color:#5b7163; }
.matching-chat .matching-chat__typing>span { width:5px; height:5px; border-radius:50%; background:#71917e; animation:matching-chat-dot .9s infinite alternate; }
.matching-chat .matching-chat__typing>span:nth-child(2) { animation-delay:.15s; }
.matching-chat .matching-chat__typing>span:nth-child(3) { animation-delay:.3s; }
.matching-chat .matching-chat__typing small { margin-left:5px; font-size:11px; }
.matching-chat .matching-chat__turn.is-current { animation:matching-chat-appear .18s ease-out; }
.matching-chat .matching-chat__loading,.matching-chat .matching-chat__error { color:#465f50; font-size:13px; padding:12px; }
.matching-chat .matching-chat__text-link { display:block; min-height:44px; padding:10px 0; color:var(--chat-deep); }
.matching-chat .matching-chat__status,.matching-chat .matching-chat__sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@keyframes matching-chat-dot { to { opacity:.25; transform:translateY(-2px); } }
@keyframes matching-chat-appear { from { opacity:.5; transform:translateY(4px); } to { opacity:1; transform:none; } }
@media(max-width:600px) {
 body:has(.cookie-banner:not([hidden])) .matching-chat:not(.is-open) { z-index:1250; }
 .matching-chat { z-index:1300; right:16px; bottom:max(16px,env(safe-area-inset-bottom)); }
 .matching-chat .matching-chat__panel { width:calc(100vw - 32px); height:min(600px,calc(100dvh - 80px - env(safe-area-inset-bottom))); border-radius:18px; }
 .matching-chat .matching-chat__header { padding:10px 12px; gap:8px; }
 .matching-chat .matching-chat__header>img { width:36px; height:36px; }
 .matching-chat .matching-chat__timeline { padding:16px 10px; }
 .matching-chat .matching-chat__turn { gap:6px; }
 .matching-chat .matching-chat__message-avatar { width:24px; height:24px; }
 .matching-chat .matching-chat__bubble { padding:10px 11px; }
 .matching-chat .matching-chat__bubble p,.matching-chat .matching-chat__user-bubble p { font-size:13px; }
 .matching-chat .matching-chat__launcher { min-height:62px; width:min(218px,calc(100vw - 145px)); padding:6px 12px 6px 6px; gap:8px; border:3px solid #fff; }
 .matching-chat .matching-chat__launcher>img { width:48px; height:48px; }
 .matching-chat .matching-chat__launcher strong { font-size:12px; }
 .matching-chat .matching-chat__launcher small { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
 .matching-chat .matching-chat__typing>span,.matching-chat .matching-chat__turn.is-current { animation:none; }
}
