/* DIRC Website Concierge widget.
   Brand system is fixed — see AGENTS.md. Do not drift these values:
   --bg:#0c0c0f  --accent:#d92539  --bright:#ff5b67  logo red #dc1416  DM Sans */

.dirc-cc-launch {
  position: fixed; bottom: 24px; right: 24px; z-index: 9998;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border: 0; border-radius: 999px;
  background: #d92539; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700;
  cursor: pointer; box-shadow: 0 8px 28px rgba(217, 37, 57, .32);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.dirc-cc-launch:hover { transform: translateY(-2px); background: #b01124; box-shadow: 0 12px 34px rgba(217, 37, 57, .42); }
.dirc-cc-launch:focus-visible { outline: 2px solid #ff5b67; outline-offset: 3px; }
.dirc-cc-launch[hidden] { display: none; }

.dirc-cc-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column;
  width: 396px; max-width: calc(100vw - 32px);
  height: 580px; max-height: calc(100vh - 48px);
  background: #0c0c0f; color: #ededf0;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.dirc-cc-panel[hidden] { display: none; }

.dirc-cc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(38, 38, 46, .42);
}
.dirc-cc-title { font-size: 14px; font-weight: 700; letter-spacing: -.01em; }
.dirc-cc-sub { font-size: 11px; color: #86868f; margin-top: 2px; }
.dirc-cc-close {
  background: transparent; border: 0; color: #86868f;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; border-radius: 6px;
}
.dirc-cc-close:hover { color: #ededf0; }
.dirc-cc-close:focus-visible { outline: 2px solid #ff5b67; outline-offset: 2px; }

.dirc-cc-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.dirc-cc-msg { max-width: 88%; font-size: 14px; line-height: 1.62; white-space: pre-wrap; word-wrap: break-word; }
.dirc-cc-msg.agent { align-self: flex-start; color: #ededf0; }
.dirc-cc-msg.agent a { color: #ff5b67; text-decoration: underline; font-weight: 600; }
.dirc-cc-msg.agent a:hover { color: #d92539; }
.dirc-cc-msg.visitor {
  align-self: flex-end; background: rgba(217, 37, 57, .14);
  border: 1px solid rgba(217, 37, 57, .28); border-radius: 12px 12px 3px 12px;
  padding: 10px 13px; color: #fff;
}
.dirc-cc-msg.notice { align-self: stretch; font-size: 12px; color: #86868f; border-left: 2px solid #d92539; padding-left: 11px; }

.dirc-cc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 4px 0; }
.dirc-cc-typing span { width: 6px; height: 6px; border-radius: 50%; background: #86868f; animation: dirc-cc-bounce 1.3s infinite; }
.dirc-cc-typing span:nth-child(2) { animation-delay: .18s; }
.dirc-cc-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes dirc-cc-bounce { 0%, 60%, 100% { opacity: .3 } 30% { opacity: 1 } }

.dirc-cc-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px; }
.dirc-cc-row { display: flex; gap: 9px; align-items: flex-end; }
.dirc-cc-input {
  flex: 1; resize: none; max-height: 110px;
  background: #15151a; color: #ededf0;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 10px;
  padding: 11px 13px; font-family: inherit; font-size: 14px; line-height: 1.5;
}
.dirc-cc-input::placeholder { color: #6d6d76; }
.dirc-cc-input:focus { outline: none; border-color: rgba(217, 37, 57, .55); }
.dirc-cc-send {
  background: #d92539; color: #fff; border: 0; border-radius: 10px;
  padding: 11px 15px; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.dirc-cc-send:hover:not(:disabled) { background: #b01124; }
.dirc-cc-send:disabled { opacity: .45; cursor: not-allowed; }
.dirc-cc-send:focus-visible { outline: 2px solid #ff5b67; outline-offset: 2px; }
.dirc-cc-legal { font-size: 10.5px; color: #6d6d76; margin-top: 9px; line-height: 1.5; }
.dirc-cc-legal a { color: #86868f; text-decoration: underline; }

@media (max-width: 480px) {
  .dirc-cc-panel { bottom: 0; right: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
  .dirc-cc-launch { bottom: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .dirc-cc-launch { transition: none; }
  .dirc-cc-typing span { animation: none; opacity: .6; }
}
