.madinum-assistant[hidden], .madinum-assistant-ready .wa-float { display: none; }

.assistant-launch {
  position: fixed;
  inset-inline-start: max(16px, env(safe-area-inset-left));
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 48px;
  padding: .55rem .95rem;
  border: 1px solid #60795a;
  border-radius: 999px;
  background: #304a35;
  color: #fff;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 8px 24px #23332233;
  cursor: pointer;
}
.has-compare-bar .assistant-launch { inset-block-end: var(--compare-space, 120px); }

.assistant-panel {
  position: fixed;
  inset: auto;
  inset-inline-start: 16px;
  inset-block-end: max(16px, env(safe-area-inset-bottom));
  width: min(410px, calc(100% - 32px));
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e2d9c5;
  border-radius: 22px;
  background: #fffdfa;
  color: #26382b;
  box-shadow: 0 22px 60px #20332544;
}
.assistant-panel::backdrop { background: #15231959; }
.assistant-layout { display: flex; flex-direction: column; block-size: min(610px, calc(100dvh - 32px)); }
.assistant-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .8rem 1rem;
  background: #304a35;
  color: #fff;
}
.assistant-header img { border-radius: 8px; flex: none; }
.assistant-header h2 { margin: 0; color: inherit; font: inherit; font-weight: 700; }
.assistant-header p { margin: 0; font-size: .8rem; color: #e9eadc; }
.assistant-close {
  margin-inline-start: auto;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid #758573;
  background: transparent;
  color: #fff;
  font: 1.5rem/1 system-ui, sans-serif;
  cursor: pointer;
}
.assistant-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  min-block-size: 0;
  padding: .85rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.assistant-message {
  align-self: flex-start;
  max-inline-size: 92%;
  margin: 0;
  padding: .65rem .75rem;
  border-radius: 14px;
  background: #f3ede0;
  font-size: .92rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.assistant-user { align-self: flex-end; background: #35553b; color: #fff; }
.assistant-message a { display: flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: underline; }
.assistant-topics { display: flex; flex-wrap: wrap; gap: .3rem; padding: .5rem .8rem; border-block-start: 1px solid #eee7d8; }
.assistant-topics button, .assistant-form button, .assistant-contact a {
  min-height: 44px;
  border-radius: 12px;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}
.assistant-topics button { border: 1px solid #cdd8c8; background: #f2f5ed; color: #304a35; padding-inline: .55rem; }
.assistant-form { display: flex; gap: .45rem; padding: .35rem .8rem; }
.assistant-form input { flex: 1; min-width: 0; min-height: 44px; padding: .45rem .65rem; border: 1px solid #a6b1a2; border-radius: 12px; color: #26382b; background: #fff; font: inherit; font-size: 16px; }
.assistant-form button { color: #fff; border: 0; background: #304a35; padding-inline: .9rem; }
.assistant-contact { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .3rem; padding: .2rem .8rem .45rem; }
.assistant-contact a { display: inline-flex; align-items: center; padding-inline: .25rem; color: #304a35; text-decoration: underline; }
.madinum-assistant :focus-visible { outline: 2px solid #ac7027; outline-offset: 2px; }

@media (max-width: 760px) {
  .br-property-page .assistant-launch { inset-block-end: calc(88px + env(safe-area-inset-bottom)); }
}
@media (max-height: 420px) {
  .assistant-topics { display: none; }
}

.assistant-message{white-space:pre-line}
