/* The bar is in normal flow, then stays visible while scrolling. */
#ch-languagebar{box-sizing:border-box;position:sticky;top:var(--ch-adminbar-offset,0px);margin-top:var(--ch-adminbar-extra,0px);z-index:99990;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-height:40px;width:100%;max-width:100%;padding:6px clamp(12px,3vw,36px);background:#122c2c;color:#fff;font:14px/1.4 Arial,"Noto Sans Sinhala",sans-serif;border-bottom:1px solid #ffffff26;isolation:isolate;}
#ch-languagebar *{box-sizing:border-box;}
#ch-languagebar .ch-language-label{font-size:12px;margin-right:4px;}
#ch-languagebar button{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:32px;min-width:72px;padding:5px 12px;margin:0;border:1px solid #ffffff70;border-radius:999px;background:transparent;color:#fff;font:inherit;line-height:1.3;cursor:pointer;white-space:nowrap;}
#ch-languagebar button[aria-pressed="true"]{background:#f0d79b;color:#142c2c;border-color:#f0d79b;font-weight:700;}
#ch-languagebar button:hover{border-color:#fff;}
#ch-languagebar button:focus-visible{outline:3px solid #83d9f3;outline-offset:3px;}
#ch-languagebar .ch-language-status{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
body.admin-bar #ch-languagebar{top:var(--ch-adminbar-offset,32px);}
@media(max-width:782px){body.admin-bar #ch-languagebar{top:var(--ch-adminbar-offset,46px);}}
@media(max-width:360px){#ch-languagebar{justify-content:center;padding:6px 8px;gap:6px;}#ch-languagebar .ch-language-label{font-size:11px;}}
/* Keep translated CF7 captions inside their form on narrow screens. */
input[type="submit"].wpcf7-submit{box-sizing:border-box;max-width:100%;}
/* The calculator's empty-state caption is CSS content, not a DOM text node. */
html[lang="si"] #capsule-estimate-premium [id$="-quote-result"]:empty::before{content:"ආරම්භයක් ලෙස, ඔබේ මාදිලි තෝරා “ගණනය කරන්න” ඔබන්න. ඔබේ දළ ඇස්තමේන්තුව මෙහි පෙන්වනු ඇත.";}
html[lang="si"] #pool-concept > p.note::before{content:"AURA POOL සංකල්පය"!important;}
/* Only the calculator's Sinhala headings need this narrow-screen adjustment. */
@media(max-width:479.98px){
html[data-ch-language="si"] #capsule-estimate-premium .estimate-hero h1{font-size:clamp(28px,8.5vw,40px);overflow-wrap:anywhere;}
html[data-ch-language="si"] #capsule-estimate-premium h2{overflow-wrap:anywhere;}
}
@media print{#ch-languagebar{display:none!important;}}
