/* ================================================
   BQ Store FAQs — Frontend CSS v2.2
   Accordion: one open at a time, smooth height.
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

#bq-faq {
  all: initial;
  display: block;
  font-family: var(--bq-font, 'Space Grotesk', sans-serif) !important;
  background: var(--bq-bg, #fff);
  box-sizing: border-box;
  width: 100%;
  --bqp: #129CC9;
  --bq-bg: #fff;
  --bq-font: 'Space Grotesk', sans-serif;
}

#bq-faq *,
#bq-faq *::before,
#bq-faq *::after {
  all: unset;
  box-sizing: border-box;
  font-family: var(--bq-font, 'Space Grotesk', sans-serif);
}

/* ── Copy / Select protection (scoped only to FAQ) ── */
#bq-faq {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* ── Remove all focus/tap blue highlights ── */
#bq-faq,
#bq-faq *,
#bq-faq *:focus,
#bq-faq *:active,
#bq-faq *:focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
  box-shadow: none;
}

#bq-faq div    { display: block; }
#bq-faq span   { display: inline; }
#bq-faq p      { display: block; }
#bq-faq button { display: flex; cursor: pointer; }
#bq-faq img    { display: inline-block; }

/* ── Wrap ── */
#bq-faq .faq-wrap { display: block; width: 100%; max-width: 100%; margin: 0 auto; }

/* ── Label ── */
#bq-faq .faq-label { display: flex; align-items: center; gap: 14px; margin-bottom: 36px; }
#bq-faq .faq-label span {
  display: inline;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--bqp); white-space: nowrap;
}
#bq-faq .faq-label::after {
  content: ''; display: block; flex: 1; height: 1.5px;
  background: linear-gradient(to right, var(--bqp) 0%, transparent 100%);
  border-radius: 2px; opacity: .4;
}

/* ── Grid ── */
#bq-faq .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }

/* ── Card ── */
#bq-faq .faq-card {
  display: block; background: #fff; border-radius: 14px;
  border: 1.5px solid #e8edf0; overflow: hidden; cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .2s;
  will-change: transform;
}
#bq-faq .faq-card:hover {
  border-color: var(--bqp);
  box-shadow: 0 6px 24px rgba(0,0,0,.07);
  transform: translateY(-1px);
}
#bq-faq .faq-card.open {
  border-color: var(--bqp);
  box-shadow: 0 8px 32px rgba(0,0,0,.09);
  transform: translateY(-2px);
}

/* ── Header ── */
#bq-faq .faq-header {
  display: flex; align-items: center; gap: 14px; padding: 20px 18px;
  border-left: 3px solid transparent;
  transition: border-color .25s, background .25s;
}
#bq-faq .faq-card.open .faq-header {
  border-left-color: var(--bqp);
  background: color-mix(in srgb, var(--bqp) 5%, transparent);
}

/* ── Icon ── */
#bq-faq .faq-icon {
  display: flex; align-items: center; justify-content: center;
  width: var(--bq-icon-size, 46px); height: var(--bq-icon-size, 46px);
  min-width: var(--bq-icon-size, 46px);
  border-radius: var(--bq-icon-radius, 12px);
  background: color-mix(in srgb, var(--bqp) 10%, #fff);
  font-size: calc(var(--bq-icon-size, 46px) * 0.46);
  flex-shrink: 0; line-height: 1; transition: background .25s; overflow: hidden;
}
#bq-faq .faq-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
#bq-faq .faq-card.open .faq-icon { background: color-mix(in srgb, var(--bqp) 18%, #fff); }

#bq-faq .faq-header.faq-no-icon { gap: 12px; }
#bq-faq .faq-body.faq-no-icon-body p { padding-left: 18px; }

/* ── Question ── */
#bq-faq .faq-q {
  display: block; flex: 1; font-size: 14.5px; font-weight: 700;
  color: #0d1f2d; line-height: 1.4;
  transition: color .2s;
}
#bq-faq .faq-card.open .faq-q { color: var(--bqp); }

/* ── Toggle button ── */
#bq-faq .faq-plus {
  all: unset; display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-width: 32px; border-radius: 50%;
  background: var(--bqp);
  font-size: 22px; font-weight: 300; color: #fff;
  line-height: 1; flex-shrink: 0; cursor: pointer;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .2s;
  -webkit-appearance: none; appearance: none; box-shadow: none; outline: none;
  text-align: center; user-select: none;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--bqp) 40%, transparent);
}
#bq-faq .faq-plus:focus,
#bq-faq .faq-plus:active { outline: none !important; box-shadow: none !important; }
#bq-faq .faq-card:hover .faq-plus { opacity: .88; }
#bq-faq .faq-card.open .faq-plus {
  transform: rotate(45deg);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--bqp) 50%, transparent);
}

/* ── Divider ── */
#bq-faq .faq-divider { display: none; height: 1px; background: #e8edf0; margin: 0; }
#bq-faq .faq-card.open .faq-divider { display: block; }

/* ── Answer body — JS controls max-height ── */
#bq-faq .faq-body {
  display: block; max-height: 0; overflow: hidden;
  transition: max-height .42s cubic-bezier(.4, 0, .2, 1);
}
#bq-faq .faq-card.open .faq-body { /* max-height set by JS */ }
#bq-faq .faq-body p {
  display: block; padding: 14px 20px 20px 20px;
  font-size: 14.5px; line-height: 1.8; color: #5a6a78; font-weight: 400; margin: 0;
}

/* ── Mobile ── */
@media (max-width: 768px) {
  #bq-faq .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  #bq-faq .faq-header { padding: 14px 14px; gap: 10px; }
  #bq-faq .faq-icon { font-size: calc(var(--bq-icon-size, 46px) * 0.42); }
  #bq-faq .faq-q { font-size: 13px; }
  #bq-faq .faq-plus { width: 28px; height: 28px; min-width: 28px; font-size: 18px; }
  #bq-faq .faq-body p { padding: 12px 14px 16px 14px; font-size: 13px; }
}
