/* DEJOIY Care chat bubble: ink and lime like the rest of DEJOIY, sits bottom-right above page content. */
#djs-chat { --djs-ink: #121212; --djs-lime: #D4FF3A; --djs-paper: #F3F2EE; --djs-line: #E2DFD8; --djs-muted: #5C5A55; position: fixed; left: 18px; bottom: 18px; z-index: 9990; font: 400 15px/1.45 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--djs-ink); }
#djs-chat *, #djs-chat *::before, #djs-chat *::after { box-sizing: border-box; }
#djs-chat [hidden] { display: none !important; }
#djs-chat button { font: inherit; cursor: pointer; }
.djs-bubble { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 0; border-radius: 999px; background: var(--djs-ink); color: #fff; font-weight: 700 !important; box-shadow: 0 10px 30px -10px rgba(18, 18, 18, .55); transition: transform .2s cubic-bezier(.16, 1, .3, 1); position: relative; }
.djs-bubble:hover { transform: translateY(-2px); }
.djs-bubble:active { transform: scale(.97); }
.djs-bubble-face { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--djs-lime); color: var(--djs-ink); font-weight: 800; letter-spacing: -.02em; }
.djs-badge { position: absolute; top: -4px; left: 30px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #B42318; color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.djs-panel { position: absolute; left: 0; bottom: 64px; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(18, 18, 18, .45); overflow: hidden; animation: djs-in .28s cubic-bezier(.16, 1, .3, 1); }
@keyframes djs-in { from { opacity: 0; transform: translateY(12px); } }
.djs-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--djs-ink); color: #fff; }
.djs-head b { display: block; font-size: 17px; }
.djs-sub { display: block; font-size: 13px; color: rgba(255, 255, 255, .72); }
.djs-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px !important; line-height: 1; }
.djs-start { display: grid; gap: 10px; padding: 16px 18px; overflow: auto; }
.djs-intro { margin: 0; color: var(--djs-muted); font-size: 14px; }
.djs-start label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; }
.djs-start label span { font-weight: 400; color: var(--djs-muted); }
.djs-start input, .djs-start textarea, .djs-compose textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--djs-line); border-radius: 10px; background: #fff; font: 400 15px/1.4 inherit; font-family: inherit; color: var(--djs-ink); resize: none; }
.djs-start input:focus, .djs-start textarea:focus, .djs-compose textarea:focus { outline: 2px solid var(--djs-ink); outline-offset: 0; border-color: transparent; }
.djs-hp { position: absolute !important; left: -9999px; }
.djs-err { margin: 0; color: #B42318; font-size: 13px; min-height: 0; }
.djs-err:empty { display: none; }
.djs-send { padding: 11px 16px; border: 0; border-radius: 10px; background: var(--djs-lime); color: var(--djs-ink); font-weight: 700 !important; }
.djs-send:disabled { opacity: .6; }
.djs-thread { display: flex; flex-direction: column; flex: 1; min-height: 0; background: var(--djs-paper); }
.djs-log { flex: 1; list-style: none; margin: 0; padding: 16px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.djs-m { max-width: 82%; }
.djs-m p { margin: 0; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.djs-m time { display: block; margin-top: 2px; font-size: 11px; color: var(--djs-muted); }
.djs-me { align-self: flex-end; text-align: right; }
.djs-me p { background: var(--djs-ink); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.djs-agent p { background: #fff; border: 1px solid var(--djs-line); border-bottom-left-radius: 4px; }
.djs-sys { align-self: center; max-width: 100%; }
.djs-sys p { background: #FDE7E5; color: #B42318; font-size: 13px; }
.djs-compose { display: flex; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--djs-line); }
.djs-compose textarea { min-height: 44px; max-height: 120px; }
.djs-new { margin: 0; padding: 8px; border: 0; background: #fff; color: var(--djs-muted); font-size: 13px !important; text-decoration: underline; }
.djs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 520px) {
	#djs-chat { left: 12px; bottom: 12px; }
	.djs-bubble-label { display: none; }
	.djs-bubble { padding: 8px; }
	.djs-panel { position: fixed; inset: auto 8px 74px 8px; width: auto; height: calc(100dvh - 96px); }
}
@media (prefers-reduced-motion: reduce) { .djs-panel { animation: none; } .djs-bubble { transition: none; } }
/* The shop theme styles bare labels and buttons; keep the bubble in its own voice. */
#djs-chat label, #djs-chat button, #djs-chat input, #djs-chat textarea { text-transform: none; letter-spacing: normal; font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
#djs-chat .djs-start label { font-size: 13px; margin: 0; }
#djs-chat .djs-send { font-size: 15px; min-height: 44px; }

/* Sellerhub has no JOI, so its bubble sits bottom-right and is always there. */
#djs-chat.djs-right { left: auto; right: 18px; }
#djs-chat.djs-right .djs-panel { left: auto; right: 0; }
#djs-chat.djs-right .djs-bubble { margin-left: auto; }
@media (max-width: 520px) { #djs-chat.djs-right { left: auto; right: 12px; } }
#djs-chat.djs-right { --djs-lime: #FFB21E; --djs-ink: #0D1B2A; }
