/* Chat bot widget, design A (resources/views/partials/chat.blade.php + chat.js). */
.dtc { --ink: #231C5A; --gold: #F2B92C; position: fixed; z-index: 2147481000; right: 24px; bottom: 24px; font-family: inherit; color: var(--ink); }
.dtc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.dtc-launch { position: relative; display: grid; place-items: center; width: 60px; height: 60px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: var(--ink); box-shadow: 0 12px 30px rgba(28, 22, 74, .35); cursor: pointer; transition: transform .15s; }
.dtc-launch:hover { transform: scale(1.05); }
.dtc-launch:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dtc-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #E5484D; border: 2px solid #FFF; }
.dtc-dot[hidden] { display: none; }
.dtc-panel { position: absolute; right: 0; bottom: 76px; display: flex; flex-direction: column; width: 370px; height: min(560px, calc(100vh - 120px)); overflow: hidden; border-radius: 22px; background: #FFF; box-shadow: 0 24px 60px rgba(28, 22, 74, .35); transform-origin: bottom right; animation: dtc-in .18s ease-out; }
.dtc-panel[hidden] { display: none; }
@keyframes dtc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.dtc-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 14px 16px; background: linear-gradient(160deg, #2E2672, #1C164A); color: #FFF; }
.dtc-ava { position: relative; display: grid; flex: none; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gold); color: var(--ink); }
/* Online dot on Diboo's face (amber while a visitor waits for the team). */
.dtc-ava::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border: 2px solid #231C5A; border-radius: 50%; background: #22C55E; }
.dtc-ava.is-waiting::after { background: var(--gold); border-color: #FFF; }
.dtc-who { flex: 1; min-width: 0; line-height: 1.2; } .dtc-who b { display: block; font-size: 16px; line-height: 1.2; } .dtc-who small { display: block; margin-top: 1px; font-size: 12px; line-height: 1.3; opacity: .75; }
.dtc-x { flex: none; width: 32px; height: 32px; min-height: 0; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #FFF; font-size: 22px; line-height: 1; opacity: .8; cursor: pointer; }
.dtc-x:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.dtc-log { flex: 1; overflow-y: auto; padding: 14px; scrollbar-width: thin; }
.dtc-m { max-width: 84%; margin: 0 0 8px; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.dtc-bot { background: #F1EFFC; border-bottom-left-radius: 4px; }
.dtc-me { margin-left: auto; background: var(--ink); color: #FFF; border-bottom-right-radius: 4px; }
.dtc-m a { color: #4338CA; font-weight: 700; }
.dtc-links { display: grid; gap: 4px; margin-top: 8px; }
.dtc-links a { display: block; padding: 7px 10px; border-radius: 10px; background: #FFF; color: var(--ink); font-size: 13px; text-decoration: none; }
.dtc-links a:hover { color: #4338CA; }
.dtc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.dtc-chips button { min-height: 0; margin: 0; padding: 7px 12px; border: 1.5px solid #DCD7F5; border-radius: 99px; background: #FFF; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.dtc-chips button:hover { border-color: var(--ink); }
.dtc-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.dtc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8F86D6; animation: dtc-b 1s infinite; }
.dtc-typing i:nth-child(2) { animation-delay: .15s; } .dtc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dtc-b { 50% { transform: translateY(-4px); opacity: .5; } }
.dtc-lead { display: grid; gap: 8px; margin: 0 0 10px; padding: 12px; border-radius: 14px; border: 1.5px solid #E6E2F7; }
.dtc-lead b { font-size: 14px; }
.dtc-lead input, .dtc-lead textarea { width: 100%; max-width: none; min-height: 0; margin: 0; padding: 9px 11px; border: 1.5px solid #938CC4; border-radius: 10px; font: inherit; font-size: 13.5px; color: var(--ink); background: #FFF; }
.dtc-lead button { min-height: 0; margin: 0; padding: 10px; border: 0; border-radius: 10px; background: var(--gold); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.dtc-lead .dtc-err { color: #B4233C; font-size: 12.5px; }
.dtc-hp { position: absolute; left: -9999px; }
.dtc-ava.is-agent { border-radius: 50%; font-size: 16px; font-weight: 800; }
/* Prices (owner's pick A, 2026-10-10): service tiles with their starting price, then one service's plans as cards. */
.dtc-time { display: block; margin: -4px 0 10px; font-size: 11px; color: #6B6496; text-align: right; }
.dtc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 10px; }
.dtc-pick button, .dtc-pick-q { display: block; width: 100%; min-height: 0; margin: 0; padding: 9px 10px; border: 1.5px solid #DCD7F5; border-radius: 12px; background: #FFF; color: var(--ink); font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer; }
.dtc-pick button:hover, .dtc-pick-q:hover { border-color: var(--ink); }
.dtc-pick small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: #6B6496; }
.dtc-pick-q { border-style: dashed; }
.dtc-plans { display: grid; gap: 6px; max-width: 92%; margin: 0 0 10px; }
.dtc-plan { display: block; padding: 11px 12px; border: 1.5px solid #E6E2F7; border-radius: 14px; background: #FFF; color: var(--ink); text-decoration: none; }
.dtc-plan:hover { border-color: var(--ink); }
.dtc-plan.is-hot { border-color: var(--gold); box-shadow: 0 0 0 3px #FFF3D1; }
.dtc-plan-r { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dtc-plan b { font-size: 14px; }
.dtc-plan b i { display: inline-block; margin-left: 4px; padding: 2px 7px; border-radius: 6px; background: #FFF3D1; color: #8A5F00; font-size: 11px; font-style: normal; font-weight: 800; vertical-align: 1px; }
.dtc-plan-p { font-size: 15px; font-weight: 800; white-space: nowrap; }
.dtc-plan-p small { margin-left: 2px; font-size: 11.5px; font-weight: 500; color: #6B6496; }
.dtc-plan ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: #4B4580; }
.dtc-quote { display: block; padding: 10px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 13.5px; font-weight: 800; text-align: center; text-decoration: none; }
/* Live chat with the team: "joined" lines, the team member's messages, the waiting box. */
.dtc-sys { display: flex; align-items: center; gap: 8px; margin: 10px 0; font-size: 12.5px; color: #6B6496; text-align: center; }
.dtc-sys::before, .dtc-sys::after { content: ""; flex: 1; min-width: 16px; height: 1px; background: #E6E2F7; }
.dtc-ag { background: #FFF; border: 1.5px solid #E6E2F7; border-bottom-left-radius: 4px; }
.dtc-ag small { display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 800; color: #4338CA; }
.dtc-row { display: flex; align-items: flex-end; gap: 8px; }
.dtc-face { display: grid; flex: none; place-items: center; width: 28px; height: 28px; margin-bottom: 8px; border-radius: 50%; background: #4338CA; color: #FFF; font-size: 12px; font-weight: 800; }
.dtc-strip { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-bottom: 1px solid #CDEFD9; background: #EAFBF1; color: #13663A; font-size: 12.5px; font-weight: 700; }
.dtc-strip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.dtc-wait { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 12px; border: 1.5px solid #F7DE9C; border-radius: 14px; background: #FFF8E6; font-size: 13.5px; line-height: 1.4; }
.dtc-wait b { display: block; }
.dtc-ring { flex: none; width: 28px; height: 28px; border: 3px solid #F7DE9C; border-top-color: var(--gold); border-radius: 50%; animation: dtc-spin 1s linear infinite; }
@keyframes dtc-spin { to { transform: rotate(360deg); } }
.dtc-in { display: flex; gap: 8px; align-items: center; padding: 10px; border-top: 1px solid #EEEBFA; }
.dtc-in input { flex: 1; max-width: none; min-height: 0; margin: 0; padding: 11px 14px; border: 1.5px solid #938CC4; border-radius: 99px; font: inherit; font-size: 14px; color: var(--ink); }
.dtc-in button { display: grid; flex: none; place-items: center; width: 42px; height: 42px; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--gold); color: var(--ink); cursor: pointer; }
.dtc-in button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 600px) {
    .dtc { right: 16px; bottom: 16px; }
    .dtc.is-open .dtc-panel { position: fixed; inset: auto 8px 84px 8px; width: auto; height: min(70vh, calc(100vh - 110px)); }
}
@media (max-width: 767px) {
    /* Above the account dashboard's tab bar. */
    .dtc--support { bottom: 84px; }
    .dtc--support.is-open .dtc-panel { position: fixed; inset: auto 8px 152px 8px; width: auto; height: min(64vh, calc(100vh - 180px)); }
}
/* Diboo's animation (owner, 2026-10-08: A+B+C+D). Everywhere: blinks and looks around. On the chat button: floats,
   the antenna glows and bounces, and every 8 s it wiggles with a "Hi!" (only while the chat is closed). */
.dtc-robot * { transform-box: fill-box; }
.dtc-eyes { transform-origin: center; animation: dtc-blink 4.5s infinite; }
.dtc-pupils { animation: dtc-look 6s ease-in-out infinite; }
.dtc-ava .dtc-eyes { animation-delay: 1.2s; }
.dtc-ava .dtc-pupils { animation-delay: 2s; }
@keyframes dtc-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes dtc-look { 0%, 20%, 100% { transform: translateX(0); } 30%, 45% { transform: translateX(-1.6px); } 55%, 70% { transform: translateX(1.6px); } }
.dtc-launch .dtc-bob { animation: dtc-float 3s ease-in-out infinite; }
.dtc-launch .dtc-robot { transform-origin: 50% 90%; animation: dtc-wiggle 8s ease-in-out infinite; }
.dtc-launch .dtc-ant { transform-origin: 50% 100%; animation: dtc-bounce 3s ease-in-out infinite; }
.dtc-launch .dtc-ball { transform-origin: center; animation: dtc-glow 2s ease-in-out infinite; }
@keyframes dtc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes dtc-wiggle { 0%, 80%, 100% { transform: rotate(0); } 84% { transform: rotate(-10deg); } 88% { transform: rotate(9deg); } 92% { transform: rotate(-6deg); } 96% { transform: rotate(3deg); } }
@keyframes dtc-bounce { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 90% { transform: rotate(-5deg); } }
@keyframes dtc-glow { 0%, 100% { fill: #FF6B9A; transform: scale(1); } 50% { fill: #FFB3CB; transform: scale(1.25); } }
.dtc-launch { font: inherit; }
/* "Hi, I'm Diboo!" (owner's pick C): a chat-message bubble above the button, its tail pointing down at Diboo. */
.dtc-hi { position: absolute; right: -2px; bottom: 74px; padding: 10px 14px 11px; border-radius: 16px; background: #FFF; color: var(--ink); line-height: 1.2; text-align: left; white-space: nowrap; box-shadow: 0 10px 26px rgba(28, 22, 74, .3); opacity: 0; pointer-events: none; transform-origin: 85% 100%; animation: dtc-hi 8s ease-in-out infinite; }
.dtc-hi b { display: block; font-size: 15px; font-weight: 800; }
.dtc-hi small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; opacity: .7; }
.dtc-hi::after { content: ""; position: absolute; right: 24px; bottom: -9px; width: 18px; height: 10px; background: #FFF; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.dtc.is-open .dtc-hi { display: none; }
@keyframes dtc-hi { 0%, 76%, 100% { opacity: 0; transform: translateY(8px) scale(.7); } 80% { opacity: 1; transform: translateY(0) scale(1.05); } 82%, 95% { opacity: 1; transform: none; } 98% { opacity: 0; transform: translateY(4px) scale(.92); } }
@media (prefers-reduced-motion: reduce) { .dtc-panel { animation: none; } .dtc-typing i, .dtc-ring, .dtc-robot, .dtc-robot *, .dtc-hi { animation: none; } .dtc-hi { display: none; } }
/* Screen-reader only (audit B11): the live reply line and the typing text. */
.dtc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
