.shop-assistant {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  border: 1px solid #dae3eb;
  border-radius: 1rem;
  padding: 1rem;
  background: #fff;
  color: #132a46;
  direction: rtl;
}
.shop-assistant::backdrop { background: #132a4670; }
.shop-assistant header, .shop-assistant form {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.shop-assistant header { justify-content: space-between; }
.shop-assistant h2 { margin: 0; font-size: 1.25rem; }
.assistant-messages { max-height: 48dvh; overflow: auto; overflow-wrap: anywhere; padding: .5rem; }
.assistant-messages p { margin: .5rem 0; padding: .65rem; background: #f1f5f8; border-radius: .6rem; }
.assistant-messages .assistant-user { background: #e4f0eb; }
.assistant-product { display: block; padding: .5rem; text-decoration: underline; }
.shop-assistant input { flex: 1; min-width: 0; padding: .65rem; border: 1px solid #9aabba; border-radius: .5rem; }

.ai-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
  margin-block: 1.5rem 2.25rem;
  overflow: hidden;
  background: linear-gradient(125deg, #18554f, #102a46 72%);
  color: #fff;
  border-radius: 1.5rem;
}
.ai-banner-copy { padding: clamp(1.25rem, 4vw, 3rem); }
.ai-banner h2 { margin: .65rem 0 .5rem; font-size: clamp(1.65rem, 4vw, 3rem); line-height: 1.18; }
.ai-banner p { color: #e1f3ee; margin: 0 0 1.15rem; }
.ai-badge { color: #ffdfaa; font-size: .95rem; font-weight: 700; }
.ai-banner .ai-start { background: #d8f4e8; color: #143936; min-height: 48px; gap: .5rem; }
.ai-banner .ai-start:hover { background: #fff; }
.ai-illustration { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
@media (max-width: 650px) {
  .ai-banner { grid-template-columns: 1fr; }
  .ai-banner-copy { display: contents; }
  .ai-banner-heading { grid-row: 1; padding: 1.25rem 1.25rem .7rem; }
  .ai-illustration { height: auto; grid-row: 2; }
  .ai-banner-actions { grid-row: 3; padding: 1.1rem 1.25rem 1.25rem; }
}
.assistant-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .4rem 0 .6rem; }
.assistant-chips[hidden] { display: none; }
.assistant-chips button {
  min-height: 40px; padding: .4rem .8rem; border: 1px solid #b9d8cb; border-radius: 999px;
  background: #eef8f3; color: #143936; font: inherit; font-size: .95rem; cursor: pointer;
}
.assistant-chips button:hover, .assistant-chips button:focus-visible { background: #d8f4e8; }
.assistant-product-row {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  margin: .4rem 0; padding: .35rem .5rem; border: 1px solid #dae3eb; border-radius: .6rem;
}
.assistant-product-row .assistant-product { flex: 1; min-width: 0; padding: .25rem; }
.assistant-add { flex: none; min-height: 40px; padding: .35rem .8rem; white-space: nowrap; }
.assistant-add:disabled { opacity: .85; cursor: default; }
