@import url("/static/vendor/google-fonts/google-fonts.css");

/* Site chat: floating button bottom right + side panel (mobile: full screen). Values come from the dropandplus mockup (Chat*.dc.html).
The mockup uses the browser default box model, so boxes here are content-box on purpose (buttons keep border-box like the mockup). */
.cw {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  text-align: left;
  color: #e8eaf2;
}
:where(.cw, .cw *) { box-sizing: content-box; }
:where(.cw) button { box-sizing: border-box; margin: 0; font-family: inherit; font-size: inherit; line-height: normal; cursor: pointer; }
:where(.cw) [hidden] { display: none !important; }
:where(.cw) a { color: inherit; text-decoration: none; }
:where(.cw) b { font-weight: 700; }
:where(.cw) img { vertical-align: baseline; max-width: none; }
.cw button:focus-visible,
.cw a:focus-visible,
.cw input:focus-visible { outline: 2px solid #f0952a; outline-offset: 2px; }

/* Button */
.cw .cw-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 1030;
  width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, #e8762a, #f0952a); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(232, 118, 42, .4);
}
.cw .cw-fab svg { width: 28px; height: 28px; }
.cw .cw-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #e8762a; animation: cw-ring 2s infinite; pointer-events: none; }
@keyframes cw-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.cw .cw-badge {
  box-sizing: border-box;
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #eb4b4b; border: 2px solid #07090e; color: #fff;
  font-size: 12px; font-weight: 800; display: grid; place-items: center;
}

/* Preview of a new message */
.cw .cw-preview {
  position: fixed; right: 96px; bottom: 30px; z-index: 1030;
  max-width: 300px; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: #171a2a; border: 1px solid #2c3050; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  color: inherit; text-align: left; font: inherit; cursor: pointer; box-sizing: content-box;
}
.cw .cw-preview .cw-ava { width: 30px; height: 30px; font-size: 12px; }
.cw .cw-preview-text { min-width: 0; font-size: 13px; line-height: 1.35; }
.cw .cw-preview-text span { color: #9aa2b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* Panel */
.cw .cw-overlay { position: fixed; inset: 0; z-index: 1045; background: rgba(7, 9, 14, .5); }
.cw .cw-panel {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 1046; width: 400px;
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #171a2a, #0b0e17);
  border-left: 1px solid #2c3050; box-shadow: -24px 0 60px rgba(0, 0, 0, .5);
}
.cw .cw-head {
  display: flex; align-items: center; gap: 10px; flex: none;
  padding: 10px 10px 10px 20px; border-bottom: 1px solid #1e2640; background: #0c0f18;
}
.cw .cw-title { font-family: 'Exo 2', sans-serif; font-size: 18px; font-weight: 800; }
.cw .cw-head-main { flex: 1; display: flex; align-items: center; gap: 10px; }
.cw .cw-online { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #8a92a8; flex: 1; }
.cw .cw-dot { width: 7px; height: 7px; border-radius: 50%; background: #2ec977; }
.cw .cw-close {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px;
  background: transparent; color: #aab1c6; font-size: 20px; line-height: normal;
}
.cw .cw-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.cw .cw-msgs {
  flex: 1; min-height: 0; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
  scrollbar-width: thin; scrollbar-color: #252d45 transparent; overscroll-behavior: contain;
}
.cw .cw-new {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: 999px; background: #e8762a; color: #fff;
  font-weight: 700; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 24px rgba(232, 118, 42, .35);
}
.cw .cw-empty { margin: auto; padding: 24px 0; color: #6d7690; font-size: 14px; text-align: center; line-height: 1.4; }
.cw .cw-empty button { display: block; margin: 8px auto 0; border: 0; background: none; color: #f0952a; font-weight: 700; font-size: 13px; min-height: 44px; }

/* Messages */
.cw .cw-msg { display: flex; flex-direction: column; }
.cw .cw-user { position: relative; display: flex; gap: 10px; align-items: flex-start; }
.cw .cw-ava {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #3a4a7a, #1d2640);
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
}
.cw .cw-photo { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cw .cw-frame { position: absolute; left: -3px; top: -3px; width: 40px; height: 40px; object-fit: contain; pointer-events: none; }
.cw .cw-preview .cw-frame { left: -3px; top: -3px; width: 36px; height: 36px; }
.cw .cw-main { min-width: 0; }
.cw .cw-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cw .cw-name { font-size: 14px; font-weight: 700; color: #e8eaf2; }
.cw .cw-name.is-plus { color: #f5c542; }
.cw .cw-name .cw-grad { -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.cw .cw-icon { width: 20px; height: 20px; border-radius: 3px; object-fit: cover; }
.cw .cw-plus {
  padding: 1px 7px; border-radius: 999px; background: rgba(245, 197, 66, .12); border: 1px solid #6b5614;
  color: #f5c542; font-size: 10px; font-weight: 800;
}
.cw .cw-staff { padding: 1px 5px; border-radius: 4px; color: #fff; font-size: 10px; font-weight: 800; }
.cw .cw-time { font-size: 12px; color: #6d7690; }
.cw .cw-del {
  position: absolute; right: -6px; top: -5px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: #6d7690; font-size: 13px; opacity: 0;
}
.cw .cw-msg:hover .cw-del, .cw .cw-del:focus-visible { opacity: 1; }
.cw .cw-del:hover { color: #ff9a9a; }
.cw .cw-reply { margin-top: 2px; padding-left: 8px; border-left: 2px solid #252d45; color: #6d7690; font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw .cw-text { font-size: 14px; line-height: 1.4; color: #d4d8e6; margin-top: 2px; overflow-wrap: anywhere; }

/* Drop message from the bot */
.cw .cw-bot {
  border-radius: 12px; padding: 10px 12px;
  border: 1px solid var(--c66); border-left: 4px solid var(--c);
  background: linear-gradient(90deg, var(--c24), transparent);
}
.cw .cw-bot-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cw .cw-bot-head b { font-size: 13px; }
.cw .cw-bot-tag { padding: 1px 7px; border-radius: 999px; background: #252d45; font-size: 10px; font-weight: 800; color: #aab1c6; }
.cw .cw-bot-head .cw-time { margin-left: auto; }
.cw .cw-bot-body { display: flex; align-items: center; gap: 12px; }
.cw .cw-bot-pic {
  width: 92px; height: 58px; border-radius: 8px; flex: none;
  background: radial-gradient(circle at 50% 62%, var(--c66), transparent 72%), #0c0f18;
  display: grid; place-items: center;
}
.cw .cw-bot-pic img { width: 80px; height: 50px; object-fit: contain; }
.cw .cw-bot-text { font-size: 13px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.cw .cw-bot-link { display: inline-flex; align-items: center; min-height: 32px; margin-top: 4px; font-weight: 700; font-size: 13px; color: #f0952a; }

/* Compose */
.cw .cw-notes { flex: none; }
.cw .cw-note { margin: 0 14px 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.cw .cw-note.is-warn { background: rgba(245, 197, 66, .08); border: 1px solid #4a3d14; color: #f5c542; }
.cw .cw-note.is-bad { background: rgba(235, 75, 75, .08); border: 1px solid rgba(235, 75, 75, .4); color: #ff9a9a; }
.cw .cw-compose { padding: 12px 14px; border-top: 1px solid #1e2640; display: flex; gap: 10px; flex: none; }
.cw .cw-compose.is-note { display: block; }
.cw .cw-compose.is-note .cw-note { margin: 0; }
.cw .cw-input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; margin: 0; border-radius: 12px;
  border: 1px solid #252d45; background: #0c0f18; color: #e8eaf2; font: inherit; font-size: 14px; box-sizing: content-box;
}
.cw .cw-input:focus { outline: none; border-color: #f0952a; }
.cw .cw-input::placeholder { color: #6d7690; opacity: 1; }
.cw .cw-send {
  display: flex; align-items: center; justify-content: center; min-width: 104px; min-height: 46px; padding: 0; border: 0; border-radius: 12px;
  background: linear-gradient(135deg, #e8762a, #f0952a); color: #fff; font-weight: 700; font-size: 14px;
}
.cw .cw-send:disabled { opacity: .6; cursor: default; }
.cw .cw-send svg { display: none; width: 22px; height: 22px; }
.cw .cw-guest { align-items: center; flex-wrap: wrap; }
.cw .cw-guest-text { flex: 1; min-width: 140px; font-size: 13px; color: #9aa2b8; line-height: 1.4; }
.cw .cw-login {
  display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 12px;
  background: linear-gradient(135deg, #e8762a, #f0952a); color: #fff; font-weight: 700; font-size: 14px;
}

@media (max-width: 767.98px) {
.cw .cw-fab { right: 16px; bottom: 20px; width: 56px; height: 56px; }
.cw .cw-fab svg { width: 26px; height: 26px; }
.cw .cw-preview, .cw .cw-overlay { display: none !important; }
.cw .cw-panel { inset: 0; width: auto; border-left: 0; box-shadow: none; }
.cw .cw-head { gap: 6px; padding: 6px 8px 6px 18px; }
.cw .cw-head-main { display: block; }
.cw .cw-title { display: block; }
.cw .cw-online { flex: none; font-size: 12px; }
.cw .cw-close { width: 48px; height: 48px; font-size: 22px; }
.cw .cw-msgs { padding: 16px 14px; scrollbar-width: none; }
.cw .cw-msgs::-webkit-scrollbar { display: none; }
.cw .cw-text { font-size: 15px; }
.cw .cw-bot-pic { width: 84px; height: 54px; }
.cw .cw-bot-pic img { width: 74px; height: 46px; }
.cw .cw-bot-link { min-height: 44px; margin-top: 0; }
.cw .cw-compose { padding: 10px 12px 14px; background: #0c0f18; }
.cw .cw-input { height: 48px; font-size: 15px; background: #07090e; }
.cw .cw-send { min-width: 0; width: 56px; min-height: 48px; }
.cw .cw-send-text { display: none; }
.cw .cw-send svg { display: block; }
.cw .cw-del { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.cw .cw-ring { animation: none; }
}

html.cw-lock { overflow: hidden; }

/* Reply controls stay visible on touch screens and for keyboard users. */
.cw .cw-reply-btn { display: inline-flex; align-items: center; margin-top: 3px; padding: 0 8px; min-height: 30px; border: 0; border-radius: 6px; background: rgba(232, 118, 42, .1); color: #f2ae78; font-size: 12px; font-weight: 600; line-height: 1.2; }
.cw .cw-reply-btn:hover { background: rgba(232, 118, 42, .2); color: #ffd3af; }
@media (pointer: coarse) { .cw .cw-reply-btn { min-height: 36px; padding: 0 10px; } }
.cw .cw-reply-compose { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-top: 1px solid #1e2640; color: #aab4cb; font-size: 12px; }
.cw .cw-reply-compose > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw .cw-reply-compose button { border: 0; background: transparent; color: #aab4cb; min-width: 32px; min-height: 32px; }
