/* goodstore.lv «MI konsultants» widget v0.8 — the sheet (#gs-aic), the block inside the search results (.gs-aic-block) and the
   site's own buttons. Colours and font follow the new look (gdm-new tokens). The look is the owner's pictures of 14.11.2026. */
#gs-aic, .gs-aic-block {
  --aic-ink: var(--gsn-ink, #1F2329); --aic-text: var(--gsn-text, #3A3F47); --aic-muted: var(--gsn-muted, #646B76);
  --aic-line: var(--gsn-line2, #DDE1E6); --aic-soft: #F3F4F6; --aic-red: var(--gsn-red, #D93A2B); --aic-red-d: var(--gsn-red-d, #B42318);
  --aic-tint: var(--gsn-tint, #FDEEEC); --aic-ok: #1E7F4F; --aic-bg: #FFFFFF;
  --aic-font: var(--gsn-font, 'Qanelas', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font: 400 15px/1.45 var(--aic-font); color: var(--aic-text);
}
#gs-aic *, #gs-aic *::before, #gs-aic *::after, .gs-aic-block *, .gs-aic-block *::before, .gs-aic-block *::after { box-sizing: border-box; }
#gs-aic [hidden], .gs-aic-block [hidden] { display: none !important; }
#gs-aic button, .gs-aic-block button { font: inherit; }
#gs-aic :focus-visible, .gs-aic-block :focus-visible { outline: 2px solid var(--aic-red); outline-offset: 2px; }
.gs-aic-hidden { display: none !important; }
.gs-aic-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px; }

/* ---- messages: the visitor's on the right in the shop's tint, the consultant's on the left in grey with the sparkle */
.gs-aic-u { align-self: flex-end; max-width: 84%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; background: var(--aic-tint); color: var(--aic-ink);
  font-size: 15px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; }
.gs-aic-a { align-self: flex-start; display: flex; gap: 8px; max-width: 94%; }
.gs-aic-av { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #fff; border: 1px solid var(--aic-line); display: grid; place-items: center; }
.gs-aic-av svg { width: 16px; height: 16px; fill: var(--aic-red); }
.gs-aic-tx { min-width: 0; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: var(--aic-soft); color: var(--aic-text); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
#gs-aic .gs-aic-tx p, .gs-aic-block .gs-aic-tx p, #gs-aic .gs-aic-tx li, .gs-aic-block .gs-aic-tx li { font-size: inherit; line-height: inherit; color: inherit; }
.gs-aic-tx p { margin: 0 0 6px; } .gs-aic-tx p:last-child { margin-bottom: 0; }
.gs-aic-tx ul { margin: 4px 0 6px; padding-left: 18px; } .gs-aic-tx li { margin: 3px 0; }
.gs-aic-tx a { color: var(--aic-red-d); text-decoration: underline; text-underline-offset: 2px; }
.gs-aic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-aic-chip { border: 1.5px solid var(--aic-line); background: #fff; color: var(--aic-ink); border-radius: 999px; padding: 7px 13px; font-size: 14.5px; line-height: 1.25;
  cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
.gs-aic-chip:hover { border-color: var(--aic-red); color: var(--aic-red-d); }
.gs-aic-typing { align-items: center; }
.gs-aic-dots { display: inline-flex; gap: 5px; padding: 12px 14px; border-radius: 16px; background: var(--aic-soft); }
.gs-aic-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--aic-muted); opacity: .35; animation: gs-aic-dot 1.2s ease-in-out infinite; }
.gs-aic-dots i:nth-child(2) { animation-delay: .15s; } .gs-aic-dots i:nth-child(3) { animation-delay: .3s; }
.gs-aic-tl { font-size: 13px; color: var(--aic-muted); }
@keyframes gs-aic-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

/* ---- the product list and the kit */
.gs-aic-recs { align-self: stretch; display: flex; flex-direction: column; border-top: 1px solid var(--aic-line); padding-top: 6px; }
.gs-aic-recs-h { margin: 6px 0 2px; font-weight: 700; font-size: 17px; color: var(--aic-ink); }
.gs-aic-rl { display: flex; flex-direction: column; }
.gs-aic-rec { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--aic-line);
  color: var(--aic-ink); text-decoration: none; }
.gs-aic-rec:hover b { text-decoration: underline; }
.gs-aic-ri { width: 60px; height: 52px; display: grid; place-items: center; }
.gs-aic-ri img { max-width: 60px; max-height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.gs-aic-rt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gs-aic-rt b { font-size: 14.5px; line-height: 1.3; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gs-aic-rt small { font-size: 13px; line-height: 1.35; color: var(--aic-muted); }
.gs-aic-rt em { font-style: normal; font-size: 12.5px; color: var(--aic-ok); } .gs-aic-rt em.is-out { color: var(--aic-muted); }
.gs-aic-rp { display: flex; flex-direction: column; align-items: flex-end; } .gs-aic-rp b { font-size: 15px; white-space: nowrap; }
.gs-aic-rp s { font-size: 12px; color: var(--aic-muted); }
.gs-aic-kit { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0 2px; flex-wrap: wrap; }
.gs-aic-kit-t { font-weight: 700; font-size: 18px; color: var(--aic-ink); }
.gs-aic-kitb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--aic-red); color: #fff;
  font-weight: 600; cursor: pointer; }
.gs-aic-kitb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-aic-kitb:disabled { cursor: default; } .gs-aic-kitb.is-done { background: var(--aic-ok); } .gs-aic-kitb.is-err { background: var(--aic-muted); }
.gs-aic-tospec { align-self: flex-start; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--aic-red); border-radius: 12px; background: #fff; color: var(--aic-red-d);
  font-weight: 600; cursor: pointer; }

/* ---- the sheet: a sheet from the bottom on phones (above the bottom bar), a panel at the bottom right on computers */
#gs-aic { position: relative; z-index: 2147483100; }
.gs-aic-dim { position: fixed; inset: 0 0 calc(62px + env(safe-area-inset-bottom, 0px)) 0; background: rgba(31, 35, 41, .42); z-index: 2147483100; }
body:not(.gs-mnav-on) .gs-aic-dim { bottom: 0; }
.gs-aic-sheet { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 2147483101; max-height: 80vh;
  display: flex; flex-direction: column; background: var(--aic-bg); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(31, 35, 41, .2); overflow: hidden; }
body:not(.gs-mnav-on) .gs-aic-sheet { bottom: 0; }
.gs-aic-sheet::before { content: ''; align-self: center; flex: 0 0 auto; width: 40px; height: 5px; margin: 8px 0 0; border-radius: 3px; background: #D5D9DE; }
.gs-aic-sh { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px 8px 16px; }
.gs-aic-spark { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 3px; } .gs-aic-spark svg { width: 24px; height: 24px; fill: var(--aic-red); }
.gs-aic-sht { flex: 1; min-width: 0; }
#gs-aic .gs-aic-title { margin: 0; font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--aic-ink); }
#gs-aic .gs-aic-sub { margin: 1px 0 0; font-size: 13.5px; line-height: 1.3; color: var(--aic-muted); }
.gs-aic-ib { width: 38px; height: 38px; flex: 0 0 38px; border: 0; border-radius: 10px; background: transparent; color: var(--aic-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.gs-aic-ib:hover { background: var(--aic-soft); }
.gs-aic-ib svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gs-aic-prod { display: flex; align-items: center; gap: 12px; margin: 0 16px 6px; padding: 9px 12px; border-radius: 14px; background: var(--aic-soft); }
.gs-aic-prod img { width: 60px; height: 46px; object-fit: contain; mix-blend-mode: multiply; flex: 0 0 60px; }
.gs-aic-prod b { font-size: 16px; font-weight: 600; color: var(--aic-ink); line-height: 1.3; }
.gs-aic-log { flex: 1; min-height: 120px; overflow-y: auto; padding: 8px 16px 10px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; scrollbar-width: thin; }
.gs-aic-human { padding: 0 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.gs-aic-cform { padding: 10px; border: 1px solid var(--aic-line); border-radius: 12px; background: var(--aic-bg); }
.gs-aic-cq { display: block; margin: 0 0 8px; font-size: 13.5px; font-weight: 600; color: var(--aic-ink); }
.gs-aic-crow { display: flex; gap: 8px; }
.gs-aic-cin { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--aic-line); border-radius: 10px; font: inherit; font-size: 16px; color: var(--aic-ink); background: var(--aic-bg); }
.gs-aic-cbtn { height: 42px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--aic-red-d); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gs-aic-cnote, .gs-aic-cerr, .gs-aic-cdone { margin: 6px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--aic-muted); } .gs-aic-cerr { color: var(--aic-red-d); }
.gs-aic-form, .gs-aic-bform { display: flex; align-items: flex-end; gap: 8px; }
.gs-aic-form { padding: 10px 16px; border-top: 1px solid var(--aic-line); }
.gs-aic-in, .gs-aic-bin { flex: 1; min-width: 0; min-height: 44px; max-height: 120px; resize: none; padding: 11px 13px; border: 1px solid var(--aic-line); border-radius: 14px;
  font: inherit; font-size: 16px; color: var(--aic-ink); background: var(--aic-bg); }
.gs-aic-in:focus, .gs-aic-bin:focus { border-color: var(--aic-ink); outline: none; }
.gs-aic-send { width: 46px; height: 44px; flex: 0 0 46px; border: 0; border-radius: 12px; background: var(--aic-red); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.gs-aic-send:disabled { opacity: .5; cursor: default; } .gs-aic-send svg { width: 20px; height: 20px; fill: currentColor; }
.gs-aic-foot { padding: 0 16px 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.35; color: var(--aic-muted); }
.gs-aic-flink { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px 4px 9px; border: 1px solid var(--aic-line); border-radius: 999px; background: var(--aic-bg);
  font-size: 12.5px; font-weight: 600; color: var(--aic-ink); cursor: pointer; }
.gs-aic-flink svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gs-aic-fab { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border: 0; border-radius: 50%; padding: 0; background: var(--aic-red); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(31, 35, 41, .28); cursor: pointer; z-index: 1040; }
.gs-aic-fab svg { width: 26px; height: 26px; fill: currentColor; }
@media (max-width: 991.98px) { body.gs-mnav-on .gs-aic-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 14px; } }
@media (min-width: 992px) {
  .gs-aic-dim { display: none; }
  .gs-aic-sheet { left: auto; right: 24px; bottom: 24px; width: 410px; max-height: min(640px, calc(100vh - 48px)); border-radius: 18px; box-shadow: 0 18px 48px rgba(31, 35, 41, .24); }
  .gs-aic-sheet::before { display: none; }
  .gs-aic-sh { padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { .gs-aic-dots i { animation: none; opacity: .6; } }

/* ---- the consultant inside the search results (phone panel and results page) */
.gs-aic-block { margin: 6px 14px 10px; padding: 14px; border: 1px solid var(--aic-line); border-radius: 16px; background: #FAFAFB; display: flex; flex-direction: column; gap: 12px; }
.gs-aic-scol .gs-aic-block { margin: 0; height: 100%; }
.gs-aic-blab { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--aic-muted); }
.gs-aic-blab svg { width: 18px; height: 18px; fill: var(--aic-red); flex: 0 0 18px; }
.gs-aic-bmsgs { display: flex; flex-direction: column; gap: 10px; }
.gs-aic-bmsgs .gs-aic-a:first-child .gs-aic-tx { font-weight: 600; color: var(--aic-ink); }
.gs-aic-back { align-self: flex-start; border: 0; background: none; padding: 2px 0; color: var(--aic-red-d); font-weight: 600; font-size: 15px; text-decoration: underline;
  text-underline-offset: 3px; cursor: pointer; }
.gs-aic-scol.col-12 .gs-aic-rl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 24px; }

/* ---- the site's own buttons (theme markup data-gs-aic="…", hidden until this script shows them) */
.gs-aic-mi { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; min-width: 76px; padding: 0 14px;
  border: 1.5px solid var(--gsn-red, #D93A2B); border-radius: 12px; background: var(--gsn-tint, #FDEEEC); color: var(--gsn-red-d, #B42318);
  font: 700 15px/1 var(--gsn-font, inherit); cursor: pointer; flex: 0 0 auto; }
.gs-aic-mi svg { width: 20px; height: 20px; fill: currentColor; }
.gs-aic-mi[hidden], .gs-aic-ask[hidden], .gs-aic-sb[hidden] { display: none !important; }
.gs-aic-ask { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; margin: 10px 0 0; padding: 0 14px;
  border: 1px solid var(--gsn-line2, #DDE1E6); border-radius: 12px; background: #fff; color: var(--gsn-ink, #1F2329);
  font: 600 16px/1.2 var(--gsn-font, inherit); cursor: pointer; text-align: left; }
.gs-aic-ask svg.gs-aic-i { width: 22px; height: 22px; fill: var(--gsn-red, #D93A2B); flex: 0 0 22px; }
.gs-aic-ask .gs-aic-chev { margin-left: auto; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.gs-aic-ask:hover { border-color: var(--gsn-ink, #1F2329); }
.gs-aic-sb { display: grid; place-items: center; width: 60px; height: 60px; margin: 14px 0 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--gsn-red, #D93A2B); color: #fff; box-shadow: 0 8px 22px rgba(31, 35, 41, .28); cursor: pointer; }
.gs-aic-sb svg { width: 28px; height: 28px; fill: currentColor; }
.gs-aic-sb:hover { background: var(--gsn-red-d, #B42318); }
