/* DigiAppsPH website assistant */
#dg-chat { position: fixed; right: 18px; bottom: 18px; z-index: 300; font-family: "Nunito Sans", system-ui, sans-serif; color-scheme: only light; }
#dg-chat *, #dg-chat *::before, #dg-chat *::after { box-sizing: border-box; }
.dgc-fab { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin-left: auto; border: 0; border-radius: 50%; cursor: pointer; color: #1a1405; background: linear-gradient(135deg, #eec45a, #e2b552 55%, #cf9d36); box-shadow: 0 14px 34px -8px rgba(6, 21, 50, .65), 0 0 0 4px rgba(226, 181, 82, .25); transition: transform .25s; }
.dgc-fab:hover { transform: translateY(-2px) scale(1.04); }
.dgc-fab::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #e2b552; animation: dgc-ring 3.2s ease-out infinite 2s; pointer-events: none; }
.dgc-fab svg { width: 26px; height: 26px; }
.dgc-fab .dgc-i-x { display: none; }
.is-open .dgc-fab .dgc-i-x { display: block; }
.is-open .dgc-fab .dgc-i-chat, .is-open .dgc-fab::after { display: none; }
@keyframes dgc-ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.dgc-panel { display: flex; flex-direction: column; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 110px)); margin-bottom: 14px; border-radius: 22px; overflow: hidden; background: #061532; border: 1px solid rgba(248, 215, 120, .22); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7); }
.dgc-panel[hidden] { display: none; }
.dgc-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(160deg, #0f3b76, #0a2147); border-bottom: 1px solid rgba(157, 176, 207, .16); color: #fff; }
.dgc-head b { display: block; font: 800 15px Montserrat, system-ui, sans-serif; }
.dgc-head small { color: #9db0cf; font-size: 12px; }
.dgc-dot { width: 10px; height: 10px; border-radius: 50%; background: #5fd48a; box-shadow: 0 0 0 4px rgba(95, 212, 138, .2); flex: none; }
.dgc-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.dgc-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.dgc-bot { align-self: flex-start; background: #12294f; color: #e3ebf8; border-bottom-left-radius: 5px; }
.dgc-user { align-self: flex-end; background: #eec45a; color: #1a1405; border-bottom-right-radius: 5px; font-weight: 600; }
.dgc-bot a { color: #f8d778; text-decoration: underline; text-underline-offset: 2px; }
.dgc-typing { display: flex; gap: 5px; padding: 14px; }
.dgc-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9db0cf; animation: dgc-b 1.1s infinite ease-in-out; }
.dgc-typing i:nth-child(2) { animation-delay: .15s; } .dgc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dgc-b { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
.dgc-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.dgc-chips[hidden] { display: none; }
.dgc-chips button { cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(248, 215, 120, .4); background: rgba(248, 215, 120, .08); color: #f8d778; font: 600 13px "Nunito Sans", system-ui, sans-serif; }
.dgc-chips button:hover { background: rgba(248, 215, 120, .18); }
.dgc-form { display: flex; gap: 8px; padding: 10px 14px 6px; border-top: 1px solid rgba(157, 176, 207, .16); }
.dgc-form input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(157, 176, 207, .3); background: #0d2349; color: #fff; font: 400 16px "Nunito Sans", system-ui, sans-serif; }
.dgc-form input::placeholder { color: #8da1c2; }
.dgc-form input:focus { outline: 2px solid #e2b552; outline-offset: 0; }
.dgc-form button { flex: none; width: 46px; height: 46px; border: 0; border-radius: 12px; cursor: pointer; display: grid; place-items: center; background: #eec45a; color: #1a1405; }
.dgc-form button svg { width: 20px; height: 20px; }
.dgc-note { margin: 0; padding: 4px 16px 12px; font-size: 11.5px; color: #8da1c2; text-align: center; }
@media (max-width: 480px) {
  #dg-chat { right: 12px; bottom: 12px; }
  .dgc-panel { width: calc(100vw - 24px); height: min(78vh, calc(100vh - 96px)); }
}
@media (prefers-reduced-motion: reduce) { .dgc-fab::after, .dgc-typing i { animation: none; } }
.dgc-ts { display: flex; justify-content: center; padding: 6px 16px; min-height: 0; }
.dgc-ts[hidden] { display: none; }
.dgc-form .dgc-mic { background: rgba(248, 215, 120, .1); color: #f8d778; border: 1px solid rgba(248, 215, 120, .4); }
.dgc-form .dgc-mic[hidden] { display: none; }
.dgc-form .dgc-mic[aria-pressed="true"] { background: #1c3a6e; border-color: #f8d778; }
.dgc-form .dgc-mic.is-live { background: #eec45a; color: #1a1405; animation: dgc-mic 1.2s ease-in-out infinite; }
@keyframes dgc-mic { 0%, 100% { box-shadow: 0 0 0 0 rgba(238, 196, 90, .55); } 50% { box-shadow: 0 0 0 8px rgba(238, 196, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .dgc-form .dgc-mic.is-live { animation: none; } }
