:root {
  color-scheme: dark;
  --ink: #0c0a08;
  --panel: #15120f;
  --panel-2: #1c1813;
  --cream: #fff8e8;
  --muted: #a49b90;
  --yellow: #ffc400;
  --green: #25d366;
  --line: rgba(255,255,255,.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--cream); background: radial-gradient(circle at 80% 0, rgba(255,196,0,.12), transparent 28%), var(--ink); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.bot-shell { width: min(720px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0; }
.bot-shell > header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 8px; }
.bot-shell > header img { width: 68px; height: 68px; border-radius: 50%; object-fit: contain; background: var(--yellow); filter: drop-shadow(0 12px 16px rgba(0,0,0,.36)); }
.bot-shell > header h1 { margin: 0; font-family: "Arial Black", Impact, sans-serif; font-size: 24px; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.bot-shell > header p { display: flex; align-items: center; gap: 7px; margin: 7px 0 0; color: var(--muted); font-size: 11px; font-weight: 750; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(37,211,102,.09); }

.phone { min-height: 650px; display: grid; grid-template-rows: minmax(0,1fr) auto auto; overflow: hidden; border: 1px solid var(--line); border-radius: 25px; background: rgba(21,18,15,.94); box-shadow: 0 28px 75px rgba(0,0,0,.36); }
.messages { min-height: 0; max-height: calc(100svh - 260px); overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 22px; scrollbar-width: thin; scrollbar-color: #494137 transparent; }
.msg { position: relative; width: fit-content; max-width: min(88%, 510px); padding: 11px 14px; border: 1px solid var(--line); border-radius: 7px 17px 17px 17px; color: #eee7dc; background: var(--panel-2); box-shadow: 0 8px 20px rgba(0,0,0,.12); font-size: 14px; line-height: 1.48; white-space: pre-line; animation: messageIn .25s ease both; }
.msg.user { align-self: flex-end; border-color: rgba(255,196,0,.25); border-radius: 17px 7px 17px 17px; color: #171006; background: var(--yellow); }
.msg.typing { color: #91887e; font-size: 12px; font-style: italic; }
.msg.typing::after { content: ""; display: inline-block; width: 14px; height: 4px; margin-left: 5px; border-radius: 8px; background: radial-gradient(circle, currentColor 1.5px, transparent 2px) 0 50%/6px 4px repeat-x; animation: dots .9s linear infinite; }

.order-link { width: fit-content; display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; padding: 11px 14px; border-radius: 12px; color: white; background: #168f42; box-shadow: 0 10px 24px rgba(22,143,66,.2); font-size: 12px; font-weight: 900; text-decoration: none; }
.order-link:hover { background: #1aa94d; }

.quick-replies { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 4px; scrollbar-width: none; }
.quick-replies::-webkit-scrollbar { display: none; }
.quick-replies button { min-height: 38px; flex: 0 0 auto; border: 1px solid rgba(255,196,0,.28); border-radius: 999px; padding: 8px 12px; color: var(--yellow); background: rgba(255,196,0,.055); cursor: pointer; font-size: 11px; font-weight: 850; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.quick-replies button:hover { color: var(--ink); border-color: var(--yellow); background: var(--yellow); }

.composer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; padding: 12px 14px 14px; }
.composer input { width: 100%; min-height: 51px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: white; background: rgba(255,255,255,.055); outline: none; }
.composer input::placeholder { color: #746d65; }
.composer input:focus { border-color: rgba(255,196,0,.55); box-shadow: 0 0 0 4px rgba(255,196,0,.08); }
.composer button { min-width: 100px; min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; color: var(--ink); background: var(--yellow); cursor: pointer; font-weight: 950; }
.composer button:hover b { translate: 2px 0; }
.composer button b { font-size: 17px; transition: translate .18s ease; }
.composer input:disabled, .composer button:disabled { cursor: wait; opacity: .62; }

html.embed, html.embed body { height: 100%; overflow: hidden; }
html.embed .bot-shell { width: 100%; height: 100%; padding: 0; }
html.embed .bot-shell > header { display: none; }
html.embed .phone { height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
html.embed .messages { max-height: none; }

@keyframes messageIn { from { opacity: 0; transform: translateY(7px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes dots { to { background-position: 6px 50%; } }

@media (max-width: 560px) {
  .bot-shell { width: 100%; padding: 0; }
  .bot-shell > header { margin: 0; padding: 12px 14px; }
  .bot-shell > header img { width: 52px; height: 52px; }
  .phone { min-height: calc(100svh - 76px); border-inline: 0; border-bottom: 0; border-radius: 22px 22px 0 0; }
  .messages { max-height: calc(100svh - 250px); padding: 16px 14px; }
  .msg { max-width: 91%; font-size: 13px; }
  .composer { padding-inline: 10px; }
  .composer button { min-width: 54px; }
  .composer button span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.demo-disclaimer{padding:8px 12px;text-align:center;background:linear-gradient(90deg,#850b13,#e32a27);color:#fff;font-size:10px;font-weight:850;letter-spacing:.05em}
