/* Xeltran Assistant */
.xa{--xa-red:#c90000;--xa-red-d:#a30000;--xa-ink:#16181d;--xa-mute:#6b7280;--xa-line:#e5e7eb;position:fixed;right:18px;bottom:18px;z-index:99990;font-family:inherit;font-size:15px;line-height:1.45;}
.xa[hidden]{display:none;}
.xa *{box-sizing:border-box;}
.xa button{font-family:inherit;}
.xa-fab{width:58px;height:58px;border-radius:50%;border:0;background:var(--xa-red);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 8px 24px rgba(201,0,0,.35);transition:transform .2s;margin-left:auto;}
.xa-fab:hover{transform:scale(1.04);}
.xa-fab__txt{display:none;}
.xa-fab{position:relative;}
.xa-dot{position:absolute;top:-2px;right:-2px;width:14px;height:14px;border-radius:50%;background:#ff3b30;border:2px solid #fff;box-shadow:0 0 0 0 rgba(255,59,48,.5);animation:xa-pulse 2s ease-out 3;}
@keyframes xa-pulse{0%{box-shadow:0 0 0 0 rgba(255,59,48,.55)}100%{box-shadow:0 0 0 10px rgba(255,59,48,0)}}
@media (min-width:601px){.xa-fab{width:auto;height:54px;border-radius:999px;padding:0 22px 0 18px;gap:9px;}.xa-fab__txt{display:inline;font-weight:700;font-size:15px;white-space:nowrap;}}
.xa-fab:focus-visible,.xa button:focus-visible,.xa input:focus-visible,.xa textarea:focus-visible{outline:3px solid rgba(201,0,0,.35);outline-offset:2px;}

/* Avatar */
.xa-ava{position:relative;flex:none;width:44px;height:44px;border:2px solid rgba(255,255,255,.85);border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;}
.xa-ava img{width:100%;height:100%;border-radius:50%;object-fit:cover;object-position:50% 20%;}
.xa-ava span{font-weight:800;font-size:14px;color:var(--xa-red);letter-spacing:.5px;}
.xa-ava--online::after{content:"";position:absolute;right:0;bottom:0;width:11px;height:11px;border-radius:50%;background:#22c55e;border:2px solid var(--xa-red);}

/* Teaser */
.xa-teaser{position:absolute;right:0;bottom:70px;width:290px;background:#fff;border-radius:16px;padding:16px;box-shadow:0 10px 30px rgba(0,0,0,.18);animation:xa-in .25s ease-out;}
.xa-teaser[hidden]{display:none;}
.xa-teaser__row{display:flex;gap:10px;align-items:flex-start;margin-bottom:12px;}
.xa-teaser .xa-ava{width:36px;height:36px;background:#fdecec;}
.xa-teaser p{margin:0 18px 0 0;padding:0;color:var(--xa-ink);font-size:14px;}
.xa-teaser__x{position:absolute;top:6px;right:8px;border:0;background:none;font-size:20px;line-height:1;color:var(--xa-mute);cursor:pointer;padding:4px;}
.xa-teaser__go{width:100%;border:0;background:var(--xa-red);color:#fff;border-radius:10px;padding:10px 16px;font-weight:700;cursor:pointer;font-size:14px;}

/* Panel */
.xa-panel{position:absolute;right:0;bottom:68px;width:380px;height:auto;max-height:min(620px,calc(100vh - 110px));background:#fff;border-radius:18px;box-shadow:0 16px 48px rgba(0,0,0,.22);display:flex;flex-direction:column;overflow:hidden;animation:xa-in .2s ease-out;}
.xa-panel[hidden]{display:none;}
.xa-head{display:flex;align-items:center;gap:12px;padding:14px 16px;background:var(--xa-red);color:#fff;flex:none;}
.xa-head__txt{flex:1;min-width:0;}
.xa-head strong{display:block;font-size:16px;line-height:1.2;}
.xa-head__txt span{display:block;font-size:12px;opacity:.88;margin-top:2px;}
.xa-close{flex:none;border:0;background:rgba(255,255,255,.18);color:#fff;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;}

/* Progress */
.xa-progress{flex:none;padding:10px 16px 8px;background:#fff;border-bottom:1px solid var(--xa-line);}
.xa-progress[hidden]{display:none;}
.xa-progress__bar{height:5px;border-radius:5px;background:#f1f2f4;overflow:hidden;}
.xa-progress__bar i{display:block;height:100%;width:0;background:var(--xa-red);border-radius:5px;transition:width .3s ease;}
.xa-progress__row{display:flex;justify-content:space-between;align-items:center;margin-top:6px;}
.xa-back{border:0;background:none;padding:2px 0;color:var(--xa-mute);font-size:13px;font-weight:600;cursor:pointer;}
.xa-back:hover{color:var(--xa-red);}
.xa-progress__txt{font-size:12px;color:var(--xa-mute);font-weight:600;}

/* Chat */
.xa-body{flex:0 1 auto;min-height:0;overflow-y:auto;padding:16px;background:#f6f7f9;display:flex;flex-direction:column;gap:8px;}
.xa-msg{max-width:85%;padding:10px 13px;border-radius:16px;color:var(--xa-ink);font-size:14.5px;animation:xa-in .22s ease-out;}
.xa-msg--bot{background:#fff;border:1px solid var(--xa-line);border-bottom-left-radius:4px;align-self:flex-start;}
.xa-msg--me{background:var(--xa-red);color:#fff;border-bottom-right-radius:4px;align-self:flex-end;}
.xa-sum{display:flex;flex-wrap:wrap;gap:4px 6px;font-weight:600;font-size:13.5px;}
.xa-sum i{font-style:normal;color:var(--xa-mute);font-weight:400;}

/* Footer / answers */
.xa-foot{flex:none;padding:12px 14px 14px;border-top:1px solid var(--xa-line);background:#fff;}
.xa-foot:empty{display:none;}
.xa-choices{display:grid;gap:8px;}
.xa-choices--grid{grid-template-columns:1fr 1fr;}
.xa-choices--list{grid-template-columns:1fr;}
.xa-choice{border:1.5px solid #e2e4e9;background:#fff;color:var(--xa-ink);border-radius:12px;padding:11px 12px;min-height:46px;font-size:14px;font-weight:600;cursor:pointer;text-align:left;line-height:1.25;transition:border-color .15s,background .15s,color .15s;}
.xa-choice small{display:block;font-weight:600;color:var(--xa-red);font-size:11.5px;margin-top:3px;}
.xa-choice:has(small){border-color:#f1b5b5;background:#fffafa;}
.xa-choice:hover{border-color:var(--xa-red);color:var(--xa-red);background:#fff7f7;}
.xa-choice--primary{background:var(--xa-red);border-color:var(--xa-red);color:#fff;}
.xa-choice--primary:hover{background:var(--xa-red-d);color:#fff;}
/* Odd number of answers: last one spans the full row */
.xa-choices--grid .xa-choice:last-child:nth-child(odd){grid-column:1/-1;}

/* Welcome screen */
.xa-start{display:flex;flex-direction:column;gap:8px;}
.xa-btn{border-radius:12px;padding:13px 14px;font-size:15px;font-weight:700;cursor:pointer;text-align:center;border:1.5px solid var(--xa-red);}
.xa-btn--primary{background:var(--xa-red);color:#fff;}
.xa-btn--primary:hover{background:var(--xa-red-d);}
.xa-btn--ghost{background:#fff;color:var(--xa-red);}
.xa-btn--ghost:hover{background:#fff7f7;}
.xa-faq-title{margin:10px 0 0;padding:0;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--xa-mute);}
.xa-faq{display:flex;flex-direction:column;border:1px solid var(--xa-line);border-radius:12px;overflow:hidden;}
.xa-faq__q{display:flex;justify-content:space-between;align-items:center;gap:10px;border:0;border-top:1px solid var(--xa-line);background:#fff;padding:11px 14px;font-size:14px;color:var(--xa-ink);text-align:left;cursor:pointer;}
.xa-faq__q:first-child{border-top:0;}
.xa-faq__q span{color:var(--xa-mute);font-size:18px;line-height:1;}
.xa-faq__q:hover{background:#fafafa;color:var(--xa-red);}

/* Welcome hero */
/* The panel fits its content at every step (no empty gap) and the chat scrolls once it reaches the max height. */
.xa-panel.is-welcome .xa-body{background:#fff;padding-bottom:4px;}
.xa-panel.is-welcome .xa-foot{border-top:0;padding-top:6px;}
.xa-hero{padding:4px 2px 0;}
.xa-hero h3{margin:0 0 6px;padding:0;font-size:20px;line-height:1.25;font-weight:800;color:var(--xa-ink);letter-spacing:-.01em;}
.xa-hero p{margin:0 0 10px;padding:0;font-size:14px;color:#4b5563;}
.xa-trust{display:flex;flex-wrap:wrap;gap:6px 12px;margin:0;padding:8px 10px;list-style:none;background:#fdf2f2;border-radius:10px;}
.xa-trust li{margin:0;padding:0 0 0 18px;font-size:12.5px;color:#374151;position:relative;list-style:none;}
.xa-trust li::before{content:"";position:absolute;left:2px;top:3px;width:9px;height:5px;border-left:2px solid var(--xa-red);border-bottom:2px solid var(--xa-red);transform:rotate(-45deg);}
.xa-row{display:flex;gap:8px;}
.xa-row>*{flex:1;}

/* Details step: the form gets the whole panel, the chat shrinks to a summary */
.xa-panel:not(.is-welcome) .xa-hero{display:none;} /* only on the welcome screen */
.xa-panel.is-form .xa-msg:not(.xa-keep){display:none;}
.xa-panel.is-form .xa-body{flex:none;max-height:180px;}
.xa-panel.is-form .xa-foot{flex:0 1 auto;min-height:0;overflow-y:auto;}
.xa-panel.is-done .xa-body{max-height:none;}
.xa-form{display:flex;flex-direction:column;gap:8px;}
.xa-form input:not([type=checkbox]),.xa-form textarea{width:100%;border:1px solid #d6d9e0;border-radius:10px;padding:10px 12px;font-size:16px;font-family:inherit;color:var(--xa-ink);background:#fff;margin:0;}
.xa-form textarea{resize:none;}
.xa-form input:focus,.xa-form textarea:focus{border-color:var(--xa-red);outline:none;box-shadow:0 0 0 3px rgba(201,0,0,.12);}
.xa-consent{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--xa-mute);margin:2px 0;}
.xa-consent input{margin-top:2px;accent-color:var(--xa-red);}
.xa-consent a{color:var(--xa-red);}
.xa-send{border:0;background:var(--xa-red);color:#fff;border-radius:12px;padding:13px;font-weight:700;font-size:15px;cursor:pointer;}
.xa-send:hover{background:var(--xa-red-d);}
.xa-send[disabled]{opacity:.6;}
.xa-err{margin:0;color:#b32d2e;font-size:13px;}
.xa-err[hidden]{display:none;}
.xa-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden;}
@keyframes xa-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Phones: small bubble; the chat only fills the screen after the visitor taps it. */
@media (max-width:600px){
	.xa{right:12px;bottom:12px;}
	.xa-fab{width:52px;height:52px;}
	.xa-teaser{width:calc(100vw - 24px);right:0;bottom:62px;}
	.xa.is-open{left:0;right:0;bottom:0;}
	.xa.is-open .xa-fab{display:none;}
	html.xa-open,html.xa-open body{overflow:hidden;}
	.xa-panel{position:fixed;left:0;right:0;bottom:0;width:100%;height:auto;max-height:88vh;max-height:88dvh;border-radius:18px 18px 0 0;}
}
/* Stay clear of the property page's sticky "Enquire" bar on phones. */
body.xpf-page .xa:not(.is-open){bottom:84px;}
@media (min-width:981px){body.xpf-page .xa:not(.is-open){bottom:18px;}}
@media (prefers-reduced-motion:reduce){.xa *{animation:none!important;transition:none!important;}}
/* Sit above Google's reCAPTCHA badge (bottom-right, from the site's contact form). #xa-root beats the page rules above. */
@media (min-width:601px){
	body:has(.grecaptcha-badge) #xa-root.xa{bottom:90px;}
	body:has(.grecaptcha-badge) #xa-root .xa-panel{max-height:min(620px,calc(100vh - 190px));}
}
@media (max-width:600px){body:has(.grecaptcha-badge) #xa-root.xa:not(.is-open){bottom:90px;}}
@media (max-width:980px){body.xpf-page:has(.grecaptcha-badge) #xa-root.xa:not(.is-open){bottom:150px;}}
