/* Noor AI Chatbot — self-contained styles. Accent comes from settings (--noor-cb-accent). */
.noor-cb {
	--noor-cb-accent: #25241F;
	--noor-cb-ink: #25241F;
	--noor-cb-muted: #77736B;
	--noor-cb-line: #E4DED4;
	--noor-cb-bg: #F5F2EC;
	--noor-cb-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	position: fixed; bottom: 22px; z-index: 9990; font-family: var(--noor-cb-font);
}
.noor-cb.is-right { right: 22px; } .noor-cb.is-left { left: 22px; }
.noor-cb *, .noor-cb *::before, .noor-cb *::after { box-sizing: border-box; }
.noor-cb button { font-family: inherit; text-transform: none; letter-spacing: normal; box-shadow: none; line-height: 1.2; }
.noor-cb .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.noor-cb__launch { position: relative; display: flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 7px; border: 0; border-radius: 999px; background: var(--noor-cb-accent); color: #fff; font-size: 15px; font-weight: 500; cursor: pointer; box-shadow: 0 12px 34px rgba(37, 36, 31, .22); transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s; }
.noor-cb__launch:hover { transform: translateY(-2px); background: var(--noor-cb-accent); color: #fff; }
.noor-cb__launch img, .noor-cb__launch-ico { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; display: grid; place-items: center; color: var(--noor-cb-ink); }
.noor-cb__dot { position: absolute; left: 38px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: #3BAA6B; border: 2px solid var(--noor-cb-accent); }
.noor-cb.is-open .noor-cb__launch { opacity: 0; pointer-events: none; transform: scale(.92); }
.noor-cb__panel { position: absolute; bottom: 0; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100vh - 44px)); background: #fff; border: 1px solid var(--noor-cb-line); border-radius: 18px; box-shadow: 0 30px 80px rgba(37, 36, 31, .18); display: flex; flex-direction: column; overflow: hidden; animation: noorCbIn .24s cubic-bezier(.2,.7,.2,1); }
.noor-cb.is-right .noor-cb__panel { right: 0; transform-origin: bottom right; }
.noor-cb.is-left .noor-cb__panel { left: 0; transform-origin: bottom left; }
.noor-cb__panel[hidden] { display: none; }
@keyframes noorCbIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.noor-cb__head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: var(--noor-cb-accent); color: #fff; }
.noor-cb__av { width: 40px; height: 40px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; }
.noor-cb__head strong { display: block; font-size: 15px; font-weight: 600; }
.noor-cb__head small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; opacity: .75; }
.noor-cb__head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3BAA6B; }
.noor-cb__close { margin-left: auto; background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; padding: 0; }
.noor-cb__close:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.noor-cb__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--noor-cb-bg); overscroll-behavior: contain; }
.noor-cb__msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; overflow-wrap: anywhere; color: var(--noor-cb-ink); }
.noor-cb__msg--bot { background: #fff; border: 1px solid var(--noor-cb-line); border-bottom-left-radius: 4px; align-self: flex-start; }
.noor-cb__msg--user { background: var(--noor-cb-accent); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.noor-cb__msg p { margin: 0 0 .5em; } .noor-cb__msg p:last-child { margin: 0; }
.noor-cb__msg ul { margin: .3em 0; padding-left: 1.1em; }
.noor-cb__msg a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.noor-cb__links { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.noor-cb__links a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border: 1px solid var(--noor-cb-line); border-radius: 10px; text-decoration: none; font-size: 13.5px; background: var(--noor-cb-bg); }
.noor-cb__links a:hover { border-color: var(--noor-cb-ink); }
.noor-cb__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.noor-cb__chips button { border: 1px solid var(--noor-cb-line); background: #fff; color: var(--noor-cb-ink); padding: 7px 12px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.noor-cb__chips button:hover, .noor-cb__chips button:focus-visible { border-color: var(--noor-cb-ink); background: #fff; color: var(--noor-cb-ink); }
.noor-cb__typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.noor-cb__typing i { width: 7px; height: 7px; border-radius: 50%; background: #B9B2A6; animation: noorCbBlink 1.2s infinite; }
.noor-cb__typing i:nth-child(2) { animation-delay: .15s; } .noor-cb__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes noorCbBlink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.noor-cb__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--noor-cb-line); background: #fff; margin: 0; }
.noor-cb__form input { flex: 1; min-width: 0; border: 1px solid var(--noor-cb-line); border-radius: 999px; padding: 0 16px; height: 44px; font: 400 15px var(--noor-cb-font); color: var(--noor-cb-ink); background: #fff; outline: none; }
.noor-cb__form input:focus { border-color: var(--noor-cb-ink); }
.noor-cb__form button { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--noor-cb-accent); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.noor-cb__foot { text-align: center; font-size: 11.5px; color: var(--noor-cb-muted); padding: 0 0 10px; background: #fff; }
.noor-cb__lead { display: grid; gap: 8px; margin-top: 8px; }
.noor-cb__lead input { border: 1px solid var(--noor-cb-line); border-radius: 10px; padding: 10px 12px; font: 400 14px var(--noor-cb-font); }
.noor-cb__lead button { background: var(--noor-cb-accent); color: #fff; border: 0; border-radius: 10px; padding: 11px; font-weight: 600; font-size: 14px; cursor: pointer; }
.noor-cb__lead small { color: #A23B2A; }
.noor-cb__hp { position: absolute !important; left: -9999px !important; }
.noor-cb button:focus-visible, .noor-cb input:focus-visible, .noor-cb a:focus-visible { outline: 2px solid #A58B65; outline-offset: 2px; }
@media (max-width: 560px) {
	.noor-cb.is-right { right: 14px; } .noor-cb.is-left { left: 14px; }
	.noor-cb { bottom: 14px; }
	.noor-cb__launch { padding-right: 7px; }
	.noor-cb__launch-txt { display: none; }
	.noor-cb__panel { position: fixed; inset: 0; width: 100vw; height: 100dvh; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .noor-cb *, .noor-cb { animation: none !important; transition: none !important; } }
