/* DraftSafe "Ask us" assistant (Nov 28 2026) */
.dsc-launch {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 9px;
  background: #861A2B; color: #FFFFFF; border: 0; border-radius: 999px;
  padding: 14px 20px 14px 17px; font: 600 15px/1 Inter, system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), 0 0 0 3px rgba(255, 255, 255, .9);
  transition: transform .18s ease, background .18s ease;
}
.dsc-launch:hover { background: #5E1220; transform: translateY(-2px); }
.dsc-is-open .dsc-launch { display: none; }
.dsc-launch.dsc-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.dsc-launch { transition: transform .18s ease, background .18s ease, opacity .2s ease; }

.dsc-box {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 380px; height: min(600px, calc(100vh - 44px)); max-height: calc(100dvh - 44px);
  display: none; flex-direction: column; overflow: hidden;
  background: #FAF8F5; color: #222222; border-radius: 14px; border: 1px solid #E4DDD5;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .32); font: 15px/1.5 Inter, system-ui, sans-serif;
}
.dsc-box.dsc-open { display: flex; }
.dsc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #0E0C0C; color: #FFFFFF; padding: 14px 16px; border-bottom: 3px solid #861A2B; }
.dsc-head b { display: block; font-size: 16px; }
.dsc-head small { display: block; color: #BDB5AE; font-size: 12px; margin-top: 2px; }
.dsc-x { background: none; border: 0; color: #FFFFFF; font-size: 18px; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.dsc-x:hover { background: rgba(255, 255, 255, .1); }
.dsc-list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dsc-m { max-width: 86%; padding: 10px 14px; border-radius: 14px; word-wrap: break-word; }
.dsc-assistant { align-self: flex-start; background: #FFFFFF; border: 1px solid #E8E2DA; border-bottom-left-radius: 4px; }
.dsc-user { align-self: flex-end; background: #861A2B; color: #FFFFFF; border-bottom-right-radius: 4px; }
.dsc-m a { color: #861A2B; font-weight: 600; }
.dsc-typing { display: flex; gap: 5px; padding: 14px 16px; }
.dsc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #B8AEA6; animation: dscDot 1s infinite ease-in-out; }
.dsc-typing span:nth-child(2) { animation-delay: .15s; } .dsc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dscDot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.dsc-sug { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.dsc-sug button { background: #FFFFFF; border: 1px solid #D9CFC6; color: #5E1220; border-radius: 999px;
  padding: 8px 12px; font: 500 13px/1.2 Inter, system-ui, sans-serif; cursor: pointer; }
.dsc-sug button:hover { border-color: #861A2B; background: #F6EEEF; }
.dsc-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #E8E2DA; background: #FFFFFF; }
.dsc-form textarea { flex: 1; resize: none; border: 1px solid #D9CFC6; border-radius: 10px; padding: 10px 12px;
  font: 16px/1.4 Inter, system-ui, sans-serif; max-height: 110px; outline: none; background: #FFFFFF; color: #222222; }
.dsc-form textarea:focus { border-color: #861A2B; }
.dsc-form button { flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px; border: 0; background: #861A2B; color: #FFFFFF; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.dsc-form button:disabled { opacity: .5; cursor: default; }
.dsc-note { margin: 0; padding: 8px 14px 12px; font-size: 11.5px; line-height: 1.45; color: #6E6660; background: #FFFFFF; }
.dsc-note a { color: #861A2B; }

/* phones and tablets: sit above the Call/Book bar; full-screen chat */
@media (max-width: 760px) {
  .dsc-launch { right: 14px; bottom: calc(84px + env(safe-area-inset-bottom)); padding: 12px 16px 12px 14px; font-size: 14px; }
  .dsc-box { inset: 0; width: auto; height: 100%; max-height: none; border-radius: 0; border: 0; }
  .dsc-is-open .ds-mbar { display: none !important; }
}
/* phones held sideways: icon-only button */
@media (max-width: 1199px) and (max-height: 500px) {
  .dsc-launch span { display: none; }
  .dsc-launch { padding: 12px; right: 12px; bottom: 12px; }
  .dsc-box { inset: 0; width: auto; height: 100%; max-height: none; border-radius: 0; }
}
@media print { .dsc-launch, .dsc-box { display: none !important; } }
