/* Rxeset AI chat widget — uses the site's design tokens from styles.css. */
.rxchat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 9998;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 76px; height: 76px; padding: 0; gap: 1px;
  background: var(--accent, #D14010); color: var(--on-accent, #FBFAF8);
  border: none; border-radius: 50%;
  font: inherit; cursor: pointer;
  box-shadow: 0 10px 30px rgba(33,31,34,0.22);
  transition: transform 200ms var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1));
}
.rxchat-fab .ask {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; opacity: 0.9; line-height: 1;
}
/* Brand mark inside the widget: shrink the site logo; on the red bubble the
   accent-red "Rx" would vanish, so render the whole mark in cream there. */
.rxchat-fab .rxlogo { font-size: 19px; color: var(--on-accent, #FBFAF8); line-height: 1.1; }
.rxchat-fab .rxlogo .lit { color: var(--on-accent, #FBFAF8); }
.rxchat-head .t .rxlogo { font-size: 21px; position: relative; top: 1px; }
@media (hover: hover) { .rxchat-fab:hover { transform: translateY(-2px); } }
.rxchat-fab:active { transform: scale(0.96); }

.rxchat-panel {
  position: fixed; right: 22px; bottom: 22px; z-index: 9999;
  width: min(380px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 110px));
  display: none; flex-direction: column; overflow: hidden;
  background: var(--bg, #FBFAF8); border: 1px solid var(--line, rgba(33,31,34,0.14));
  border-radius: 18px; box-shadow: 0 24px 60px rgba(33,31,34,0.28);
}
.rxchat-panel.open { display: flex; }

.rxchat-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--bg-2, #F4EFE7);
  border-bottom: 1px solid var(--line, rgba(33,31,34,0.14));
}
.rxchat-head .t { font-weight: 700; font-size: 15px; color: var(--ink, #211F22); }
.rxchat-head .s { font-size: 12px; color: var(--ink-soft, #57514F); }
.rxchat-close {
  background: none; border: none; cursor: pointer; color: var(--ink-soft, #57514F);
  font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px;
}

.rxchat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.rxchat-msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.rxchat-msg.bot { align-self: flex-start; background: var(--bg-2, #F4EFE7); color: var(--ink, #211F22); border-bottom-left-radius: 5px; }
.rxchat-msg.me { align-self: flex-end; background: var(--accent, #D14010); color: var(--on-accent, #FBFAF8); border-bottom-right-radius: 5px; }
.rxchat-msg.typing { color: var(--ink-soft, #57514F); font-style: italic; }

.rxchat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line, rgba(33,31,34,0.14)); }
.rxchat-form input {
  flex: 1; background: #fff; border: 1px solid var(--line, rgba(33,31,34,0.14));
  border-radius: 10px; padding: 11px 13px; font: inherit; font-size: 15px; color: var(--ink, #211F22);
}
.rxchat-form input:focus { outline: none; border-color: var(--accent, #D14010); }
.rxchat-form button {
  background: var(--accent, #D14010); color: var(--on-accent, #FBFAF8); border: none;
  border-radius: 10px; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer;
}
.rxchat-form button:disabled { opacity: 0.5; cursor: default; }

.rxchat-disclaimer { padding: 0 12px 10px; font-size: 11px; color: var(--ink-faint, #8a8482); text-align: center; }
