@charset "UTF-8";

.assistant-launch { position: fixed; inset-inline-end: 1.2rem; inset-block-end: 1.2rem; z-index: 45; border: 1px solid #5de0f2; border-radius: 999px; background: var(--navy); color: white; box-shadow: 0 12px 32px rgb(3 11 31 / 28%); padding: .75rem 1rem; display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; cursor: pointer; }
.assistant-launch:hover, .assistant-launch:focus-visible { background: #15394b; }
.assistant-launch-icon { width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; background: var(--cyan); color: var(--navy); font-weight: 900; }
.assistant-dialog { width: min(100% - 1.5rem, 510px); max-width: 100%; height: min(780px, calc(100dvh - 2rem)); max-height: calc(100dvh - 2rem); margin: auto 1rem 1rem auto; border: 1px solid #b9ccd5; border-radius: 1rem; padding: 0; box-shadow: 0 24px 70px rgb(2 10 29 / 28%); overflow: hidden; }
html[dir="rtl"] .assistant-dialog { margin: auto auto 1rem 1rem; }
.assistant-dialog::backdrop { background: rgb(5 11 28 / 42%); backdrop-filter: blur(2px); }
.assistant-shell { height: 100%; display: flex; flex-direction: column; background: #f5f7f7; }
.assistant-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; background: var(--navy); color: white; }
.assistant-header h1, .assistant-header h2 { font-size: 1.1rem; margin: 0; }
.assistant-header p { color: #bdd5e5; font-size: .75rem; margin: .2rem 0 0; }
.assistant-close { width: 38px; height: 38px; border: 1px solid #52627b; border-radius: .5rem; background: transparent; color: white; cursor: pointer; font-size: 1.2rem; }
.assistant-log { flex: 1; min-height: 240px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .75rem; scroll-behavior: smooth; }
.assistant-message { max-width: 92%; padding: .72rem .85rem; border-radius: .75rem; line-height: 1.5; font-size: .91rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-message p { margin: 0 0 .5rem; }
.assistant-message p:last-child { margin-bottom: 0; }
.assistant-message-user { align-self: flex-end; background: #d9f4f7; color: #123a45; border-end-end-radius: .2rem; }
html[dir="rtl"] .assistant-message-user { align-self: flex-start; }
.assistant-message-assistant { align-self: flex-start; background: white; border: 1px solid #dbe2e5; border-end-start-radius: .2rem; }
html[dir="rtl"] .assistant-message-assistant { align-self: flex-end; }
.assistant-disclosure { color: var(--muted); font-size: .75rem; margin: 0; }
.assistant-products { display: grid; gap: .55rem; margin-top: .65rem; }
.assistant-product { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: .65rem; padding: .55rem; border: 1px solid #d9e1e4; border-radius: .6rem; background: #fbfcfc; }
.assistant-product img { width: 62px; height: 62px; object-fit: contain; background: white; border-radius: .4rem; }
.assistant-product strong { font-size: .82rem; line-height: 1.3; display: block; }
.assistant-product small { color: var(--muted); display: block; margin-top: .18rem; }
.assistant-product-price { color: var(--cyan-dark); font-weight: 800; margin-top: .25rem; }
.assistant-product-actions { grid-column: 1 / -1; display: flex; gap: .45rem; flex-wrap: wrap; }
.assistant-product-actions .button { min-height: 34px; padding: .35rem .6rem; font-size: .75rem; }
.assistant-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .65rem; }
.assistant-links .button { min-height: 36px; padding: .4rem .65rem; font-size: .77rem; }
.assistant-quick { display: flex; gap: .45rem; overflow-x: auto; padding: .65rem 1rem; background: white; border-top: 1px solid #dbe2e5; }
.assistant-quick button { flex: 0 0 auto; border: 1px solid #bfd1d8; border-radius: 999px; background: #f4fafb; color: #194552; padding: .4rem .65rem; font-size: .75rem; font-weight: 700; cursor: pointer; }
.assistant-quick button:hover { border-color: var(--cyan-dark); background: #dff5f8; }
.assistant-form { display: grid; grid-template-columns: 1fr auto; gap: .55rem; padding: .75rem 1rem 1rem; background: white; border-top: 1px solid #dbe2e5; }
.assistant-form textarea { min-height: 48px; max-height: 130px; resize: vertical; border: 1px solid #9fb3bf; border-radius: .6rem; padding: .65rem .75rem; }
.assistant-form .button { min-height: 48px; padding-inline: .9rem; }
.assistant-thinking { display: inline-flex; gap: .25rem; align-items: center; }
.assistant-thinking span { width: .35rem; height: .35rem; background: var(--cyan-dark); border-radius: 50%; animation: assistant-pulse 900ms infinite alternate; }
.assistant-thinking span:nth-child(2) { animation-delay: 180ms; }
.assistant-thinking span:nth-child(3) { animation-delay: 360ms; }
.assistant-page-head { background: var(--navy); color: white; padding-block: clamp(2rem, 5vw, 3.5rem); }
.assistant-page-head h1 { max-width: 18ch; }
.assistant-page-head .lede { color: #c7d8e6; }
.assistant-page-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.25rem; align-items: start; }
.assistant-page-grid .assistant-shell { height: min(720px, 75dvh); min-height: 550px; border: 1px solid #d1dde1; border-radius: .85rem; overflow: hidden; box-shadow: var(--shadow); }
.assistant-benefits { display: grid; gap: .8rem; }
.assistant-benefit { background: white; border: 1px solid var(--line); border-radius: .7rem; padding: 1rem; }
.assistant-benefit h2 { font-size: 1.1rem; }
.assistant-benefit p { color: var(--muted); font-size: .9rem; margin: 0; }
.assistant-mode { display: inline-flex; gap: .35rem; align-items: center; }
.assistant-mode::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--cyan); }

@keyframes assistant-pulse { to { opacity: .25; transform: translateY(-2px); } }
@media (max-width: 850px) {
  .assistant-page-grid { grid-template-columns: 1fr; }
  .assistant-page-grid .assistant-shell { height: 650px; }
}
@media (max-width: 560px) {
  .assistant-launch { inset-inline-end: .75rem; inset-block-end: .75rem; padding: .6rem .8rem; }
  .assistant-dialog { width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
  html[dir="rtl"] .assistant-dialog { margin: 0; }
  .assistant-page-grid .assistant-shell { min-height: 580px; height: 75dvh; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant-log { scroll-behavior: auto; }
  .assistant-thinking span { animation: none; }
}
