/* "Ask Masjid Bilal" chat. Masjid green and gold; uses the site's font. */
.mbchat { --g: #134429; --g2: #1b5e3b; --gold: #c99a2e; --ink: #16201b; --mut: #5b6962; --line: #e2e8e4; --soft: #f1f6f2;
	position: fixed; right: 18px; bottom: 18px; z-index: 99995; font: inherit; font-size: 15px; line-height: 1.45; color: var(--ink); }
.mbchat[dir=rtl] { right: auto; left: 18px; }
.mbchat *, .mbchat *::before, .mbchat *::after { box-sizing: border-box; }
.mbchat__bubble { position: relative; display: grid; place-items: center; width: 58px; height: 58px; margin-left: auto; border: 0; border-radius: 50%;
	background: var(--g); color: #fff; box-shadow: 0 8px 24px rgba(10,30,18,.3); cursor: pointer; }
.mbchat[dir=rtl] .mbchat__bubble { margin-left: 0; margin-right: auto; }
.mbchat__bubble svg { width: 26px; height: 26px; }
.mbchat__bubble:hover { background: var(--g2); }
.mbchat__dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); border: 2px solid #fff; display: none; }
.mbchat.has-reply .mbchat__dot { display: block; }
.mbchat :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.mbchat__panel { display: flex; flex-direction: column; width: min(370px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); margin-bottom: 12px;
	background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(10,30,18,.3); overflow: hidden; }
.mbchat__panel[hidden] { display: none; }
.mbchat__head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 14px 16px; background: var(--g); color: #fff; }
.mbchat__head > div { flex: 1; min-width: 0; }
.mbchat__head strong { display: block; font-size: 16px; }
.mbchat__head span { display: block; font-size: 12px; color: #cfe3d6; }
.mbchat__lang { padding: 5px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; background: transparent; color: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.mbchat__x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.mbchat__lang:hover, .mbchat__x:hover { background: rgba(255,255,255,.12); }
.mbchat__log { flex: 1; overflow-y: auto; padding: 14px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.mbchat__msg { max-width: 88%; padding: 9px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); white-space: pre-line; overflow-wrap: anywhere; }
.mbchat__msg--me { align-self: flex-end; background: var(--g2); border-color: var(--g2); color: #fff; }
.mbchat[dir=rtl] .mbchat__msg--me { align-self: flex-start; }
.mbchat__msg--staff { border-color: var(--gold); box-shadow: inset 3px 0 0 var(--gold); }
.mbchat__from { display: block; font-size: 12px; color: var(--g2); }
.mbchat__text a { color: var(--g2); font-weight: 600; }
.mbchat__link { display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 8px; background: var(--gold); color: #10261a !important; font-weight: 700; text-decoration: none !important; }
.mbchat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mbchat__chip { padding: 7px 12px; border: 1px solid var(--g2); border-radius: 999px; background: #fff; color: var(--g); font: inherit; font-size: 14px; cursor: pointer; }
.mbchat__chip:hover { background: var(--g); color: #fff; }
.mbchat__chip--person { border-color: var(--gold); }
.mbchat.is-busy .mbchat__log::after { content: "…"; align-self: flex-start; padding: 4px 12px; border-radius: 14px; background: #fff; color: var(--mut); }
.mbchat__bar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); margin: 0; }
.mbchat__bar input { flex: 1; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; }
.mbchat__go, .mbchat__send { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--g); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mbchat__personlink { margin: 0 10px 10px; padding: 0; border: 0; background: none; color: var(--g2); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; align-self: center; }
.mbchat__form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--gold); }
.mbchat__field { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; color: var(--mut); }
.mbchat__field input, .mbchat__field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 16px; color: var(--ink); }
.mbchat__by { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.mbchat__by legend { font-size: 13px; font-weight: 600; color: var(--mut); padding: 0; margin-bottom: 2px; }
.mbchat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.mbchat__err { margin: 0; color: #9b1c12; font-size: 13px; }
/* Keep campaign slide-ins clear of the chat bubble */
body.mbchat-on .mbcc--slidein.mbcc--right { bottom: 92px; }
@media (max-width: 640px) {
	.mbchat { right: 12px; bottom: 12px; }
	.mbchat[dir=rtl] { left: 12px; }
	.mbchat.is-open { left: 8px; right: 8px; }
	.mbchat__panel { width: 100%; height: calc(100vh - 100px); }
	body.mbchat-on .mbcc--slidein { bottom: 82px; }
}
@media (prefers-reduced-motion: reduce) { .mbchat * { transition: none !important; } }
