@font-face {
  font-family: "Estedad Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src:
    local("Estedad Variable"),
    local("Estedad"),
    url("https://cdn.jsdelivr.net/fontsource/fonts/estedad:vf@5.3.0/arabic-wght-normal.woff2") format("woff2-variations");
}

.ssa-chat,
.ssa-chat * {
  box-sizing: border-box;
}

.ssa-chat,
.ssa-chat *,
.ssa-chat input,
.ssa-chat textarea,
.ssa-chat select,
.ssa-chat button {
  font-family: "Estedad Variable", "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif !important;
}

.ssa-chat {
  --ssa-primary: #6d28d9;
  --ssa-accent: #8b5cf6;
  --ssa-text: #1f2937;
  --ssa-muted: #6b7280;
  --ssa-border: #e8e8f0;
  --ssa-surface: #ffffff;
  --ssa-soft: #f7f5ff;
  --ssa-z: 999999;
  font-family: "Estedad Variable", "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif !important;
  direction: rtl;
  text-align: right;
  line-height: 1.65;
  color: var(--ssa-text);
}

.ssa-chat--floating {
  position: fixed;
  bottom: 52px;
  z-index: var(--ssa-z);
}

.ssa-chat--right { right: 24px; }
.ssa-chat--left { left: 24px; }

.ssa-chat__launcher {
  appearance: none !important;
  width: 66px !important;
  height: 66px !important;
  min-width: 66px !important;
  min-height: 66px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 23px !important;
  background: linear-gradient(145deg, var(--ssa-accent), var(--ssa-primary)) !important;
  color: #fff !important;
  display: grid !important;
  place-items: center !important;
  cursor: pointer;
  box-shadow: 0 18px 45px rgba(69, 39, 160, .3), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: visible !important;
}

.ssa-chat__launcher:hover,
.ssa-chat__launcher:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 52px rgba(69, 39, 160, .38), inset 0 1px 0 rgba(255, 255, 255, .3) !important;
  outline: none;
}

.ssa-chat__launcher > span:not(.ssa-chat__pulse) {
  font-size: 28px;
  line-height: 1;
}

.ssa-chat__launcher img,
.ssa-chat__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.ssa-chat__pulse {
  position: absolute;
  inset: -7px;
  border: 1px solid color-mix(in srgb, var(--ssa-accent) 45%, transparent);
  border-radius: 28px;
  animation: ssa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes ssa-pulse {
  0% { transform: scale(.84); opacity: 0; }
  35% { opacity: .8; }
  100% { transform: scale(1.13); opacity: 0; }
}

.ssa-chat__panel {
  width: min(390px, calc(100vw - 32px));
  height: min(650px, calc(100vh - 120px));
  min-height: 480px;
  background: var(--ssa-surface);
  border: 1px solid rgba(35, 24, 74, .09);
  border-radius: 28px;
  box-shadow: 0 30px 90px rgba(31, 24, 55, .22), 0 8px 24px rgba(31, 24, 55, .1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  animation: ssa-panel-in .25s ease both;
}

.ssa-chat--floating .ssa-chat__panel {
  position: absolute;
  bottom: 82px;
}

.ssa-chat--right .ssa-chat__panel { right: 0; transform-origin: bottom right; }
.ssa-chat--left .ssa-chat__panel { left: 0; transform-origin: bottom left; }
.ssa-chat__panel[hidden] { display: none !important; }

@keyframes ssa-panel-in {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ssa-chat--inline {
  width: 100%;
}

.ssa-chat--inline .ssa-chat__panel {
  position: relative;
  width: 100%;
  height: min(680px, 78vh);
  min-height: 520px;
  border-radius: 24px;
}

.ssa-chat__header {
  min-height: 78px;
  padding: 14px 16px;
  color: #fff;
  background:
    radial-gradient(circle at 12% -30%, rgba(255, 255, 255, .34), transparent 38%),
    linear-gradient(135deg, var(--ssa-accent), var(--ssa-primary));
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.ssa-chat__avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2);
  overflow: hidden;
  font-size: 21px;
}

.ssa-chat__identity {
  min-width: 0;
  flex: 1;
}

.ssa-chat__identity strong,
.ssa-chat__identity small {
  display: block;
  color: #fff;
}

.ssa-chat__identity strong {
  font-size: 15px;
  font-weight: 800;
}

.ssa-chat__identity small {
  font-size: 11px;
  opacity: .86;
  margin-top: 1px;
}

.ssa-chat__identity small i {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7ef0ac;
  margin-left: 5px;
  box-shadow: 0 0 0 3px rgba(126, 240, 172, .16);
}

.ssa-chat__close {
  appearance: none !important;
  border: 0 !important;
  background: rgba(255, 255, 255, .14) !important;
  color: #fff !important;
  border-radius: 12px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 25px !important;
  font-weight: 300 !important;
  line-height: 1 !important;
  cursor: pointer;
  display: grid !important;
  place-items: center !important;
}

.ssa-chat__messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 15px 12px;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--ssa-accent) 7%, transparent), transparent 25%),
    #fbfbfd;
  scrollbar-width: thin;
  scrollbar-color: #d8d4e4 transparent;
}

.ssa-chat__message {
  display: flex;
  margin: 0 0 11px;
  animation: ssa-message-in .2s ease both;
}

@keyframes ssa-message-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.ssa-chat__message--assistant { justify-content: flex-start; }
.ssa-chat__message--user { justify-content: flex-end; }

.ssa-chat__bubble {
  max-width: 84%;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.ssa-chat__message--assistant .ssa-chat__bubble {
  background: #fff;
  border: 1px solid var(--ssa-border);
  border-radius: 17px 17px 5px 17px;
  color: var(--ssa-text);
  box-shadow: 0 4px 14px rgba(31, 24, 55, .045);
}

.ssa-chat__message--user .ssa-chat__bubble {
  background: linear-gradient(135deg, var(--ssa-accent), var(--ssa-primary));
  color: #fff;
  border-radius: 17px 17px 17px 5px;
  box-shadow: 0 7px 20px color-mix(in srgb, var(--ssa-primary) 23%, transparent);
}

.ssa-chat__products {
  display: grid;
  gap: 10px;
  margin: 5px 0 15px;
}

.ssa-chat__product {
  display: grid !important;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 11px;
  min-height: 94px;
  padding: 9px !important;
  border-radius: 18px !important;
  border: 1px solid var(--ssa-border) !important;
  background: #fff !important;
  color: var(--ssa-text) !important;
  text-decoration: none !important;
  box-shadow: 0 7px 22px rgba(31, 24, 55, .055);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ssa-chat__product:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ssa-accent) 40%, var(--ssa-border)) !important;
  box-shadow: 0 12px 28px rgba(31, 24, 55, .1);
}

.ssa-chat__product-media {
  width: 78px;
  height: 78px;
  border-radius: 13px;
  background: var(--ssa-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.ssa-chat__product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ssa-chat__product-content {
  min-width: 0;
  align-self: center;
}

.ssa-chat__product-content strong {
  color: var(--ssa-text) !important;
  display: block;
  font-size: 12.5px;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssa-chat__product-price {
  display: block;
  color: var(--ssa-primary);
  font-weight: 800;
  font-size: 12px;
  margin-top: 2px;
}

.ssa-chat__product-content p {
  color: var(--ssa-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.55 !important;
  margin: 3px 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ssa-chat__product-content em {
  color: var(--ssa-primary);
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
}

.ssa-chat__typing {
  height: 31px;
  padding: 0 18px;
  background: #fbfbfd;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ssa-muted);
  flex: 0 0 auto;
}

.ssa-chat__typing[hidden] { display: none; }

.ssa-chat__typing span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ssa-accent);
  animation: ssa-dot 1s infinite ease-in-out;
}

.ssa-chat__typing span:nth-child(2) { animation-delay: .12s; }
.ssa-chat__typing span:nth-child(3) { animation-delay: .24s; }
.ssa-chat__typing em { font-size: 10px; font-style: normal; margin-right: 5px; }

@keyframes ssa-dot {
  0%, 70%, 100% { transform: translateY(0); opacity: .4; }
  35% { transform: translateY(-4px); opacity: 1; }
}

.ssa-chat__composer {
  display: flex !important;
  align-items: flex-end;
  gap: 9px;
  padding: 11px 12px 9px !important;
  margin: 0 !important;
  border-top: 1px solid var(--ssa-border);
  background: #fff;
  flex: 0 0 auto;
}

.ssa-chat__input {
  appearance: none;
  width: auto !important;
  flex: 1;
  min-width: 0;
  min-height: 45px !important;
  max-height: 110px;
  resize: none;
  border: 1px solid var(--ssa-border) !important;
  border-radius: 15px !important;
  background: #f8f8fb !important;
  color: var(--ssa-text) !important;
  padding: 11px 13px !important;
  margin: 0 !important;
  font-family: inherit !important;
  font-size: 12.5px !important;
  line-height: 1.7 !important;
  box-shadow: none !important;
  outline: none !important;
}

.ssa-chat__input:focus {
  border-color: color-mix(in srgb, var(--ssa-accent) 55%, #ddd) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ssa-accent) 11%, transparent) !important;
}

.ssa-chat__input::placeholder { color: #a1a1ad; opacity: 1; }

.ssa-chat__send {
  appearance: none !important;
  flex: 0 0 45px;
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  min-height: 45px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 15px !important;
  display: grid !important;
  place-items: center !important;
  color: #fff !important;
  background: linear-gradient(145deg, var(--ssa-accent), var(--ssa-primary)) !important;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--ssa-primary) 23%, transparent) !important;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.ssa-chat__send:hover { transform: translateY(-1px); }
.ssa-chat__send:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.ssa-chat__send svg { width: 19px; height: 19px; fill: currentColor; transform: rotate(180deg); }

.ssa-chat__footer {
  padding: 0 12px 8px;
  background: #fff;
  color: #a0a0aa;
  font-size: 9px;
  text-align: center;
  flex: 0 0 auto;
}

@media (max-width: 600px) {
  .ssa-chat--floating {
    right: 15px;
    left: auto;
    bottom: 135px;
  }
  


  .ssa-chat--floating.ssa-chat--left {
    left: 15px;
    right: auto;
  }

  .ssa-chat__launcher {
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    border-radius: 20px !important;
  }

  .ssa-chat--floating .ssa-chat__panel {
    position: fixed;
    inset: 8px 8px 8px 8px;
    width: auto;
    height: auto;
    min-height: 0;
    border-radius: 23px;
  }

  .ssa-chat--inline .ssa-chat__panel {
    height: min(680px, 80vh);
    min-height: 500px;
  }
}

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

.ssa-chat__message--assistant {
  align-items: flex-end;
  gap: 7px;
}

.ssa-chat__message-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(135deg, var(--ssa-accent), var(--ssa-primary));
  box-shadow: 0 5px 14px color-mix(in srgb, var(--ssa-primary) 18%, transparent);
}

.ssa-chat__message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ssa-chat__message-avatar i {
  font-style: normal;
}

.ssa-chat__message--assistant .ssa-chat__bubble {
  max-width: calc(84% - 20px);
}

.ssa-chat__product-reason {
  -webkit-line-clamp: 3 !important;
}

.ssa-chat__sources {
  margin: 1px 35px 15px 0;
  padding: 10px;
  border: 1px solid var(--ssa-border);
  border-radius: 16px;
  background: rgba(255,255,255,.84);
}

.ssa-chat__sources-title {
  display: block;
  margin-bottom: 7px;
  color: var(--ssa-text);
  font-size: 10.5px;
}

.ssa-chat__sources-list {
  display: grid;
  gap: 6px;
}

.ssa-chat__source {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 8px !important;
  border-radius: 11px !important;
  background: #f7f5fc !important;
  color: var(--ssa-text) !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
}

.ssa-chat__source[href]:hover {
  border-color: color-mix(in srgb, var(--ssa-accent) 30%, transparent) !important;
  background: #fff !important;
}

.ssa-chat__source > span {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--ssa-primary);
  background: #eee8ff;
  font-size: 8px;
  font-weight: 800;
}

.ssa-chat__source > div {
  min-width: 0;
}

.ssa-chat__source b,
.ssa-chat__source small {
  display: block;
}

.ssa-chat__source b {
  overflow: hidden;
  color: var(--ssa-text);
  font-size: 9.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ssa-chat__source small {
  color: var(--ssa-muted);
  font-size: 8px;
  line-height: 1.5;
}

.ssa-chat__human-row {
  flex: 0 0 auto;
  padding: 8px 12px 0;
  background: #fff;
  border-top: 1px solid var(--ssa-border);
}

.ssa-chat__human-button {
  width: 100% !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 1px solid color-mix(in srgb, var(--ssa-accent) 30%, var(--ssa-border)) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--ssa-accent) 7%, #fff) !important;
  color: var(--ssa-primary) !important;
  font-family: inherit !important;
  font-size: 10.5px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.ssa-chat__human-button:hover {
  background: color-mix(in srgb, var(--ssa-accent) 12%, #fff) !important;
}

.ssa-chat__support-modal {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ssa-chat__support-modal[hidden] {
  display: none !important;
}

.ssa-chat__support-backdrop {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: inherit !important;
  background: rgba(20, 15, 38, .58) !important;
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.ssa-chat__support-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: calc(100% - 18px);
  overflow: auto;
  padding: 17px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(20,15,40,.28);
}

.ssa-chat__support-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.ssa-chat__support-head > div {
  min-width: 0;
  flex: 1;
}

.ssa-chat__support-head strong,
.ssa-chat__support-head small {
  display: block;
}

.ssa-chat__support-head strong {
  color: var(--ssa-text);
  font-size: 13px;
}

.ssa-chat__support-head small {
  margin-top: 3px;
  color: var(--ssa-muted);
  font-size: 9px;
  line-height: 1.65;
}

.ssa-chat__support-head button {
  appearance: none !important;
  width: 31px !important;
  height: 31px !important;
  min-width: 31px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: #f1eff6 !important;
  color: #56505f !important;
  font-size: 20px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.ssa-chat__support-form {
  display: grid !important;
  gap: 10px;
  margin: 0 !important;
}

.ssa-chat__support-form label,
.ssa-chat__support-form label > span {
  display: block;
}

.ssa-chat__support-form label > span {
  margin-bottom: 5px;
  color: #4b4c57;
  font-size: 9.5px;
  font-weight: 700;
}

.ssa-chat__support-form input,
.ssa-chat__support-form textarea {
  width: 100% !important;
  min-height: 41px !important;
  margin: 0 !important;
  padding: 9px 11px !important;
  border: 1px solid var(--ssa-border) !important;
  border-radius: 11px !important;
  background: #faf9fc !important;
  color: var(--ssa-text) !important;
  font-family: inherit !important;
  font-size: 11px !important;
  line-height: 1.7 !important;
  box-shadow: none !important;
  outline: none !important;
}

.ssa-chat__support-form textarea {
  resize: vertical;
  min-height: 92px !important;
}

.ssa-chat__support-form input:focus,
.ssa-chat__support-form textarea:focus {
  border-color: color-mix(in srgb, var(--ssa-accent) 50%, #ddd) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ssa-accent) 10%, transparent) !important;
}

.ssa-chat__support-submit {
  min-height: 43px !important;
  margin: 2px 0 0 !important;
  padding: 9px 13px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, var(--ssa-accent), var(--ssa-primary)) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer;
}

.ssa-chat__support-submit:disabled {
  opacity: .6;
  cursor: wait;
}

.ssa-chat__support-result {
  padding: 9px 10px;
  border-radius: 10px;
  font-size: 9.5px;
  line-height: 1.7;
}

.ssa-chat__support-result.is-loading { background: #f2f2f5; color: #666a74; }
.ssa-chat__support-result.is-success { background: #e9f9f0; color: #177447; }
.ssa-chat__support-result.is-error { background: #fff0f0; color: #aa3030; }

@media (max-width: 600px) {
  .ssa-chat__support-modal { padding: 10px; }
  .ssa-chat__support-card { max-height: calc(100% - 8px); }
}

.ssa-chat__products {
  gap: 13px;
  margin: 6px 0 17px;
}

.ssa-chat__product {
  position: relative;
  display: grid !important;
  grid-template-columns: 112px minmax(0, 1fr) !important;
  gap: 13px !important;
  min-height: 152px !important;
  padding: 12px !important;
  padding-top: 35px !important;
  border-radius: 22px !important;
  border: 1px solid color-mix(in srgb, var(--ssa-accent) 16%, var(--ssa-border)) !important;
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--ssa-accent) 7%, transparent), transparent 34%),
    #fff !important;
  color: var(--ssa-text) !important;
  box-shadow: 0 12px 30px rgba(31, 24, 55, .075) !important;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ssa-chat__product:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ssa-accent) 42%, var(--ssa-border)) !important;
  box-shadow: 0 17px 36px rgba(31, 24, 55, .12) !important;
}

.ssa-chat__product.is-confirmed {
  border-color: color-mix(in srgb, #22a06b 48%, var(--ssa-border)) !important;
  background: linear-gradient(145deg, rgba(239, 253, 247, .82), #fff 52%) !important;
}

.ssa-chat__product-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: calc(100% - 24px);
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--ssa-primary);
  background: color-mix(in srgb, var(--ssa-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--ssa-accent) 18%, transparent);
  font-size: 9px;
  line-height: 1.45;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ssa-chat__product.is-confirmed .ssa-chat__product-badge {
  color: #14764e;
  background: #eafaf3;
  border-color: #cdeede;
}

.ssa-chat__product-media {
  width: 112px !important;
  height: 126px !important;
  border-radius: 17px !important;
  background: linear-gradient(145deg, #faf9ff, #f1edfb) !important;
  overflow: hidden;
  display: grid !important;
  place-items: center;
  text-decoration: none !important;
  border: 1px solid rgba(67, 45, 121, .07);
}

.ssa-chat__product-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform .3s ease;
}

.ssa-chat__product:hover .ssa-chat__product-media img {
  transform: scale(1.035);
}

.ssa-chat__product-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.ssa-chat__product-title {
  color: var(--ssa-text) !important;
  text-decoration: none !important;
  font-size: 12.5px;
  line-height: 1.65;
  font-weight: 850;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 41px;
}

.ssa-chat__product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
}

.ssa-chat__product-stock {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8.5px;
  line-height: 1.4;
  font-weight: 800;
}

.ssa-chat__product-stock::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.ssa-chat__product-stock.is-in {
  color: #168058;
  background: #ebfaf4;
}

.ssa-chat__product-stock.is-out {
  color: #b34646;
  background: #fff0f0;
}

.ssa-chat__product-prices {
  min-width: 0;
  text-align: left;
  direction: rtl;
}

.ssa-chat__product-prices strong,
.ssa-chat__product-prices del {
  display: block;
  white-space: nowrap;
}

.ssa-chat__product-prices strong {
  color: var(--ssa-primary);
  font-size: 10.5px;
  font-weight: 900;
}

.ssa-chat__product-prices del {
  color: #9a94a8;
  font-size: 8.5px;
  line-height: 1.2;
}

.ssa-chat__product-description,
.ssa-chat__product-reason {
  color: var(--ssa-muted) !important;
  font-size: 9.5px !important;
  line-height: 1.65 !important;
  margin: 6px 0 0 !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ssa-chat__product-description {
  -webkit-line-clamp: 2;
}

.ssa-chat__product-reason {
  -webkit-line-clamp: 1 !important;
  color: color-mix(in srgb, var(--ssa-primary) 65%, var(--ssa-muted)) !important;
}

.ssa-chat__product-actions {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 7px;
  margin-top: auto;
  padding-top: 9px;
}

.ssa-chat__product-view,
.ssa-chat__product-confirm {
  min-height: 32px;
  border-radius: 10px !important;
  padding: 7px 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit !important;
  font-size: 8.8px !important;
  line-height: 1.45 !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.ssa-chat__product-view {
  color: var(--ssa-primary) !important;
  background: var(--ssa-soft) !important;
  border: 1px solid color-mix(in srgb, var(--ssa-accent) 18%, var(--ssa-border)) !important;
}

.ssa-chat__product-confirm {
  color: #fff !important;
  background: linear-gradient(135deg, var(--ssa-accent), var(--ssa-primary)) !important;
  border: 0 !important;
  box-shadow: 0 7px 16px color-mix(in srgb, var(--ssa-primary) 20%, transparent);
}

.ssa-chat__product-confirm:hover,
.ssa-chat__product-view:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.ssa-chat__product-confirm:disabled {
  cursor: default;
  opacity: .72;
  transform: none;
}

@media (max-width: 420px) {
  .ssa-chat__product {
    grid-template-columns: 96px minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 10px !important;
    padding-top: 34px !important;
  }

  .ssa-chat__product-media {
    width: 96px !important;
    height: 116px !important;
  }

  .ssa-chat__product-actions {
    grid-template-columns: 1fr;
  }
}

.ssa-chat__product-secondary,
.ssa-chat__product-cart,
.ssa-chat__product-watch {
  min-height: 32px;
  border-radius: 10px !important;
  padding: 7px 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: inherit !important;
  font-size: 8.8px !important;
  line-height: 1.45 !important;
  font-weight: 850 !important;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, background .18s ease;
}

.ssa-chat__product-secondary {
  color: var(--ssa-primary) !important;
  background: #fff !important;
  border: 1px solid color-mix(in srgb, var(--ssa-primary) 24%, var(--ssa-border)) !important;
}

.ssa-chat__product-cart {
  color: #fff !important;
  background: linear-gradient(135deg, #14966f, #0f766e) !important;
  border: 0 !important;
}

.ssa-chat__product-watch {
  color: #fff !important;
  background: linear-gradient(135deg, #7c3aed, #c026d3) !important;
  border: 0 !important;
}

.ssa-chat__product-secondary:hover,
.ssa-chat__product-cart:hover,
.ssa-chat__product-watch:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.ssa-chat__product-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ssa-chat--card-style-2 .ssa-chat__products {
  gap: 9px;
}

.ssa-chat--card-style-2 .ssa-chat__product {
  grid-template-columns: 82px minmax(0, 1fr) !important;
  gap: 10px !important;
  min-height: 116px !important;
  padding: 9px !important;
  border-radius: 16px !important;
  border-color: #ebe7f1 !important;
  background: #fbfafd !important;
  box-shadow: 0 7px 18px rgba(31, 24, 55, .055) !important;
}

.ssa-chat--card-style-2 .ssa-chat__product:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ssa-accent) 32%, #e5dfec) !important;
  box-shadow: 0 11px 24px rgba(31, 24, 55, .09) !important;
}

.ssa-chat--card-style-2 .ssa-chat__product-badge {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  max-width: 100%;
  margin-bottom: -3px;
  padding: 2px 7px;
  font-size: 7.8px;
}

.ssa-chat--card-style-2 .ssa-chat__product-media {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 82px !important;
  height: 104px !important;
  border-radius: 13px !important;
  background: #f0ecf7 !important;
}

.ssa-chat--card-style-2 .ssa-chat__product-body {
  grid-column: 2;
  grid-row: 2;
}

.ssa-chat--card-style-2 .ssa-chat__product-title {
  min-height: auto;
  font-size: 11.5px;
  line-height: 1.55;
}

.ssa-chat--card-style-2 .ssa-chat__product-meta {
  margin-top: 2px;
}

.ssa-chat--card-style-2 .ssa-chat__product-description,
.ssa-chat--card-style-2 .ssa-chat__product-reason {
  display: none !important;
}

.ssa-chat--card-style-2 .ssa-chat__product-actions {
  gap: 5px;
  padding-top: 6px;
}

.ssa-chat--card-style-2 .ssa-chat__product-view,
.ssa-chat--card-style-2 .ssa-chat__product-confirm,
.ssa-chat--card-style-2 .ssa-chat__product-secondary,
.ssa-chat--card-style-2 .ssa-chat__product-cart,
.ssa-chat--card-style-2 .ssa-chat__product-watch {
  min-height: 29px;
  padding: 5px 6px !important;
  border-radius: 8px !important;
  font-size: 7.8px !important;
}

.ssa-chat--card-style-3 .ssa-chat__products {
  gap: 15px;
}

.ssa-chat--card-style-3 .ssa-chat__product {
  display: block !important;
  min-height: 0 !important;
  padding: 10px !important;
  padding-top: 38px !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background:
    radial-gradient(circle at 95% 0, rgba(244, 114, 182, .38), transparent 35%),
    radial-gradient(circle at 0 100%, rgba(167, 139, 250, .27), transparent 40%),
    linear-gradient(145deg, #25104b, #4c1d95 54%, #7e22ce) !important;
  color: #fff !important;
  box-shadow: 0 17px 36px rgba(76, 29, 149, .27) !important;
}

.ssa-chat--card-style-3 .ssa-chat__product:hover {
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.30) !important;
  box-shadow: 0 23px 45px rgba(76, 29, 149, .34) !important;
}

.ssa-chat--card-style-3 .ssa-chat__product.is-confirmed {
  border-color: rgba(167, 243, 208, .54) !important;
  background:
    radial-gradient(circle at 95% 0, rgba(52, 211, 153, .30), transparent 34%),
    linear-gradient(145deg, #123c38, #115e59 56%, #0f766e) !important;
}

.ssa-chat--card-style-3 .ssa-chat__product-badge {
  top: 10px;
  right: 11px;
  color: #fff;
  background: rgba(255,255,255,.13);
  border-color: rgba(255,255,255,.21);
  backdrop-filter: blur(7px);
}

.ssa-chat--card-style-3 .ssa-chat__product.is-confirmed .ssa-chat__product-badge {
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.23);
}

.ssa-chat--card-style-3 .ssa-chat__product-media {
  width: 100% !important;
  height: 175px !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.12) !important;
  border-color: rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

.ssa-chat--card-style-3 .ssa-chat__product-media img {
  object-fit: contain !important;
  padding: 8px;
}

.ssa-chat--card-style-3 .ssa-chat__product-body {
  padding: 12px 3px 2px;
}

.ssa-chat--card-style-3 .ssa-chat__product-title {
  min-height: auto;
  color: #fff !important;
  font-size: 13.5px;
}

.ssa-chat--card-style-3 .ssa-chat__product-meta {
  margin-top: 7px;
}

.ssa-chat--card-style-3 .ssa-chat__product-stock.is-in {
  color: #d1fae5;
  background: rgba(16, 185, 129, .18);
}

.ssa-chat--card-style-3 .ssa-chat__product-stock.is-out {
  color: #ffe4e6;
  background: rgba(244, 63, 94, .18);
}

.ssa-chat--card-style-3 .ssa-chat__product-prices strong {
  color: #fff;
  font-size: 11.5px;
}

.ssa-chat--card-style-3 .ssa-chat__product-prices del {
  color: rgba(255,255,255,.60);
}

.ssa-chat--card-style-3 .ssa-chat__product-description,
.ssa-chat--card-style-3 .ssa-chat__product-reason {
  color: rgba(255,255,255,.72) !important;
}

.ssa-chat--card-style-3 .ssa-chat__product-reason {
  color: #eadcff !important;
}

.ssa-chat--card-style-3 .ssa-chat__product-view,
.ssa-chat--card-style-3 .ssa-chat__product-secondary {
  color: #4c1d95 !important;
  background: #fff !important;
  border-color: rgba(255,255,255,.78) !important;
}

.ssa-chat--card-style-3 .ssa-chat__product-confirm {
  color: #fff !important;
  background: linear-gradient(135deg, #ec4899, #a855f7) !important;
  box-shadow: 0 8px 18px rgba(236, 72, 153, .24);
}

.ssa-chat--card-style-3 .ssa-chat__product-cart {
  background: linear-gradient(135deg, #10b981, #0f766e) !important;
}

.ssa-chat--card-style-3 .ssa-chat__product-watch {
  color: #4c1d95 !important;
  background: #fff !important;
}

@media (max-width: 420px) {
  .ssa-chat--card-style-2 .ssa-chat__product {
    grid-template-columns: 72px minmax(0, 1fr) !important;
    padding: 8px !important;
  }

  .ssa-chat--card-style-2 .ssa-chat__product-media {
    width: 72px !important;
    height: 96px !important;
  }

  .ssa-chat--card-style-3 .ssa-chat__product-media {
    height: 155px !important;
  }
}
