/* gf-shop-qa.css - вопросы о модели (27.10.2026): блок на странице товара в духе «Вопросов о товаре» Озона
   и окно чата в углу, как у онлайн-чатов. Подключается только на странице товара (gfs_qa.section_html). */
.gfs-qa, .gfs-qa-panel, .gfs-qa-fab {
  --qa-ink: #121212; --qa-ink-2: #5A6470; --qa-ink-3: #8B94A0; --qa-bg-alt: #F4F6F8; --qa-line: #E3E7EC;
  --qa-yellow: #ffd400; --qa-tint: #FFF8D6; --qa-link: #326891; --qa-red: #D64545;
  --qa-sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.gfs-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gfs-qa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* заголовок - как активная вкладка «Вопросы о товаре 146» */
.gfs .gfs-qa-h { font-family: var(--qa-sans); font-style: normal; font-weight: 800; font-size: 28px; text-align: left;
  margin: 0 0 22px; letter-spacing: -.2px; }
.gfs-qa-h span { display: inline-block; padding-bottom: 6px; border-bottom: 3px solid var(--qa-yellow); }
.gfs-qa-h sup { font-size: 15px; font-weight: 700; color: var(--qa-ink-3); margin-left: 4px; vertical-align: 14px; }

/* «Задайте вопрос о модели» */
.gfs-qa-ask { background: var(--qa-bg-alt); border-radius: 16px; padding: 26px 26px 24px; max-width: 820px; }
.gfs-qa-ask h3 { font-family: var(--qa-sans); font-size: 21px; font-weight: 700; margin: 0 0 8px; color: var(--qa-ink); }
.gfs-qa-ask > p { font-family: var(--qa-sans); font-size: 15px; line-height: 1.45; color: var(--qa-ink); margin: 0 0 18px; }
.gfs-qa-form textarea, .gfs-qa-fields input {
  display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--qa-line); border-radius: 12px; background: #fff;
  font-family: var(--qa-sans); font-size: 16px; color: var(--qa-ink); padding: 15px 16px; resize: none;
  transition: border-color .15s, box-shadow .15s; }
.gfs-qa-form textarea { min-height: 56px; line-height: 1.4; overflow-y: auto; }
.gfs-qa-form.on textarea { min-height: 96px; }
.gfs-qa-form textarea::placeholder { color: var(--qa-ink-3); }
.gfs-qa-form textarea:focus, .gfs-qa-fields input:focus, .gfs-qa-cf textarea:focus {
  outline: none; border-color: var(--qa-ink); box-shadow: 0 0 0 3px rgba(255, 212, 0, .45); }
.gfs-qa-more { margin-top: 14px; }
.gfs-qa-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gfs-qa-fields label span { display: block; font-family: var(--qa-sans); font-size: 13px; font-weight: 700;
  color: var(--qa-ink-2); margin: 0 0 5px; }
.gfs-qa-fields input { padding: 12px 14px; }
.gfs-qa-fields-1 { grid-template-columns: minmax(0, 360px); }
.gfs-qa-known { font-family: var(--qa-sans); font-size: 14px; color: var(--qa-ink-2); margin: 0 0 8px; overflow-wrap: anywhere; }
.gfs-qa-known b { color: var(--qa-ink); }
.gfs-qa-pub { font-family: var(--qa-sans); font-size: 13px; color: var(--qa-ink-3); margin: 0 0 14px; }
.gfs .gfs-qa-pub a, .gfs-qa-panel .gfs-qa-pub a { color: var(--qa-link); text-decoration: underline; }
/* гость: вместо кнопки отправки - вход в аккаунт G-Fans */
.gfs-qa-login { font-family: var(--qa-sans); font-size: 15px; line-height: 1.45; color: var(--qa-ink); background: #fff;
  border-radius: 12px; padding: 14px 16px; border-left: 4px solid var(--qa-yellow); }
.gfs-qa-login p { margin: 0 0 12px; }
.gfs-qa-nw { white-space: nowrap; }
.gfs-qa-login-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.gfs-qa-login .gfs-btn { border-radius: 10px; }
.gfs-qa-guest .gfs-qa-row { display: none; }
.gfs-qa-again { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--qa-link);
  text-decoration: underline; cursor: pointer; }
.gfs-qa-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gfs-qa-send { border-radius: 10px; }
.gfs-qa-err { font-family: var(--qa-sans); font-size: 14px; font-weight: 700; color: var(--qa-red); }
.gfs-qa-done { font-family: var(--qa-sans); font-size: 15px; line-height: 1.5; background: #fff; border-radius: 12px;
  padding: 16px 18px; border-left: 4px solid var(--qa-yellow); overflow-wrap: anywhere; }

/* свои вопросы, которые ещё ждут ответа или с ответом только на почту */
.gfs-qa-own { margin-top: 14px; background: #fff; border-radius: 12px; padding: 14px 16px; font-family: var(--qa-sans);
  font-size: 15px; line-height: 1.45; }
.gfs-qa-own-h { font-size: 13px; font-weight: 700; color: var(--qa-ink-2); margin-bottom: 4px; }
.gfs-qa-own p { margin: 0 0 6px; }
.gfs-qa-own-a { margin-top: 8px; padding-left: 12px; border-left: 3px solid var(--qa-yellow); }

/* вопросы с ответами */
.gfs-qa-list { max-width: 820px; margin-top: 8px; }
.gfs-qa-item { padding: 22px 0; border-bottom: 1px solid var(--qa-line); font-family: var(--qa-sans); }
.gfs-qa-who { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; margin-bottom: 8px; }
.gfs-qa-who b { color: var(--qa-ink); }
.gfs-qa-who time { color: var(--qa-ink-3); font-size: 14px; }
.gfs-qa-av { width: 32px; height: 32px; border-radius: 50%; background: #E8ECF1; color: var(--qa-ink-2); font-weight: 800;
  font-size: 15px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-family: var(--qa-sans); }
.gfs-qa-av-shop { background: var(--qa-ink); color: var(--qa-yellow); }
.gfs-qa-tag { font-size: 12px; font-weight: 700; letter-spacing: .3px; background: var(--qa-tint); color: var(--qa-ink);
  border-radius: 6px; padding: 2px 8px; }
.gfs-qa-text { font-size: 16px; line-height: 1.5; color: var(--qa-ink); overflow-wrap: anywhere; }
.gfs-qa-text p { margin: 0 0 8px; }
.gfs-qa-text p:last-child { margin-bottom: 0; }
.gfs-qa-ans { margin: 16px 0 0 42px; background: var(--qa-bg-alt); border-radius: 12px; padding: 14px 16px; }
.gfs .gfs-qa-ans a { color: var(--qa-link); text-decoration: underline; }
.gfs-qa-item:target { animation: gfs-qa-flash 2.4s ease-out; }
@keyframes gfs-qa-flash { from { background: var(--qa-tint); } to { background: transparent; } }
.gfs-qa-rest summary { cursor: pointer; font-family: var(--qa-sans); font-size: 15px; font-weight: 700; color: var(--qa-link);
  padding: 18px 0 4px; list-style: none; }
.gfs-qa-rest summary::-webkit-details-marker { display: none; }
.gfs-qa-rest[open] summary { display: none; }
.gfs-qa-to { margin: 0 18px 10px 0; }

/* кнопка чата в углу */
.gfs-qa-fab { position: fixed; right: 22px; bottom: 22px; z-index: 600; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 28px; background: var(--qa-ink); color: var(--qa-yellow);
  font-family: var(--qa-sans); font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .18);
  transition: transform .15s, box-shadow .15s, opacity .2s, visibility .2s; }
.gfs-qa-fab.gfs-qa-mini { width: 56px; padding: 0; justify-content: center; }
.gfs-qa-fab.gfs-qa-mini .gfs-qa-fab-t { display: none; }
.gfs-qa-fab.gfs-qa-mini .gfs-qa-dot { top: 9px; left: auto; right: 11px; }
.gfs-qa-fab.gfs-qa-away { opacity: 0; visibility: hidden; transform: translateY(12px); }
.gfs-qa-fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .26), 0 2px 6px rgba(0, 0, 0, .18); }
.gfs-qa-fab:focus-visible { outline: 3px solid var(--qa-yellow); outline-offset: 3px; }
.gfs-qa-fab-t { color: #fff; }
.gfs-qa-dot { position: absolute; top: 8px; left: 38px; width: 11px; height: 11px; border-radius: 50%; background: var(--qa-red);
  box-shadow: 0 0 0 2px var(--qa-ink); }
.gfs-qa-fab[aria-expanded="true"] { display: none; }

/* окно чата */
.gfs-qa-panel { position: fixed; right: 22px; bottom: 22px; z-index: 650; width: 380px; max-width: calc(100vw - 32px);
  height: min(600px, calc(100vh - 44px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px;
  overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .12); font-family: var(--qa-sans); }
.gfs-qa-panel[hidden] { display: none; }
.gfs-qa-ph { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; background: var(--qa-ink); color: #fff; flex: none; }
.gfs-qa-ph .gfs-qa-av { width: 40px; height: 40px; font-size: 18px; background: var(--qa-yellow); color: var(--qa-ink); }
.gfs-qa-ph-t { flex: 1; min-width: 0; }
.gfs-qa-ph-t b { display: block; font-size: 16px; }
.gfs-qa-ph-t span { display: block; font-size: 13px; color: #c9c9c9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gfs-qa-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 28px;
  line-height: 1; cursor: pointer; flex: none; }
.gfs-qa-x:hover { background: rgba(255, 255, 255, .12); }
.gfs-qa-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: var(--qa-bg-alt); overscroll-behavior: contain; }
.gfs-qa-b { max-width: 86%; margin: 0 0 10px; }
.gfs-qa-bt { padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; color: var(--qa-ink);
  overflow-wrap: anywhere; }
.gfs-qa-bt p { margin: 0 0 6px; }
.gfs-qa-bt p:last-child { margin: 0; }
.gfs-qa-b-shop .gfs-qa-bt { background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.gfs-qa-b-me { margin-left: auto; }
.gfs-qa-b-me .gfs-qa-bt { background: var(--qa-yellow); border-bottom-right-radius: 4px; }
.gfs-qa-bm { font-size: 12px; color: var(--qa-ink-3); margin: 4px 6px 0; }
.gfs-qa-b-me .gfs-qa-bm { text-align: right; }
.gfs-qa-bm a { color: var(--qa-link); }
.gfs-qa-note { font-size: 13px; color: var(--qa-ink-2); text-align: right; margin: -4px 4px 12px; overflow-wrap: anywhere; }
.gfs-qa-cf { flex: none; border-top: 1px solid var(--qa-line); padding: 10px 12px 12px; background: #fff; }
.gfs-qa-ask-contact { margin-bottom: 10px; max-height: 46vh; overflow-y: auto; }
.gfs-qa-ask-h { font-size: 14px; font-weight: 700; margin: 0 0 10px; }
.gfs-qa-cf .gfs-qa-fields { grid-template-columns: 1fr; gap: 8px; margin-bottom: 10px; }
.gfs-qa-cf .gfs-qa-fields label { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 8px; }
.gfs-qa-cf .gfs-qa-fields label span { margin: 0; }
.gfs-qa-cf .gfs-qa-fields input { padding: 10px 12px; border-radius: 10px; }
.gfs-qa-cf .gfs-qa-known { font-size: 13px; margin: 0 0 8px; }
.gfs-qa-cf .gfs-qa-pub { font-size: 12px; margin: 0 0 4px; }
.gfs-qa-cf .gfs-qa-login { padding: 0; border: 0; font-size: 14px; }
.gfs-qa-cf .gfs-qa-login .gfs-btn { padding: 11px 16px; }
.gfs-qa-compose { display: flex; align-items: flex-end; gap: 8px; }
.gfs-qa-cf-field { flex: 1; min-width: 0; }
.gfs-qa-cf textarea { display: block; width: 100%; box-sizing: border-box; border: 1px solid var(--qa-line); border-radius: 14px;
  padding: 11px 14px; font-family: var(--qa-sans); font-size: 16px; line-height: 1.35; resize: none; max-height: 180px; }
.gfs-qa-go { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--qa-yellow); color: var(--qa-ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.gfs-qa-go:hover { background: #ffe340; }
.gfs-qa-go[disabled] { opacity: .5; cursor: default; }
.gfs-qa-cf .gfs-qa-err:empty { display: none; }
.gfs-qa-cf .gfs-qa-err { display: block; margin-top: 6px; font-size: 13px; }

@media (max-width: 640px) {
  .gfs .gfs-qa-h { font-size: 24px; }
  .gfs-qa-h sup { vertical-align: 11px; }
  .gfs-qa-ask { padding: 20px 16px; border-radius: 14px; }
  .gfs-qa-ask h3 { font-size: 19px; }
  .gfs-qa-fields { grid-template-columns: 1fr; }
  .gfs-qa-send { width: 100%; }
  .gfs-qa-login-btns .gfs-btn { flex: 1; }
  .gfs-qa-ans { margin-left: 0; }
  .gfs-qa-fab { right: 16px; bottom: 16px; width: 56px; padding: 0; justify-content: center; }
  .gfs-qa-fab-t { display: none; }
  .gfs-qa-dot { top: 9px; left: auto; right: 11px; }
  .gfs-body:has(.gfs-toast.on) .gfs-qa-fab { bottom: 86px; }
  .gfs-qa-panel { inset: 0; right: 0; bottom: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; border-radius: 0; }
  html.gfs-qa-lock, html.gfs-qa-lock body { overflow: hidden; }
}
@media print { .gfs-qa-fab, .gfs-qa-panel, .gfs-qa-ask { display: none !important; } }
