/* BrickJunkie LEGO price comparison hub */
.bj-compare-hero .bj-shop-description {
  max-width: 68ch;
}

.bj-compare-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
}

.bj-compare-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--bj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bj-muted);
  font-size: .76rem;
  font-weight: 750;
}

.bj-compare-stats strong {
  color: var(--bj-ink);
  font-size: .88rem;
}

.bj-product-search small {
  display: block;
  margin-top: 7px;
  color: var(--bj-muted);
  font-size: .74rem;
}

.bj-compare-shortcuts {
  min-width: 0;
  max-width: 100%;
  margin: -4px 0 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--bj-line);
  border-radius: 13px;
  background: #fff;
}

.bj-compare-shortcuts > strong {
  flex: 0 0 auto;
  font-size: .8rem;
}

.bj-compare-shortcuts > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.bj-compare-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--bj-soft);
  color: var(--bj-ink);
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.bj-compare-shortcuts a:hover,
.bj-compare-shortcuts a:focus-visible {
  background: var(--bj-yellow);
  color: #111;
}

.bj-compare-shortcuts a.is-deal {
  background: #edf9f3;
  color: #087443;
}

.bj-compare-shortcuts a.is-deal:hover,
.bj-compare-shortcuts a.is-deal:focus-visible {
  background: #dff5e9;
  color: #075f38;
}

.bj-compare-shortcuts a span {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font-size: .68rem;
  text-align: center;
}

.woocommerce ul.products li.product .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px 7px;
}

.bj-price-source {
  flex-basis: 100%;
  color: var(--bj-muted);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.2;
}

.bj-comparison-price {
  color: var(--bj-red-dark);
  font-size: 1.05em;
  font-weight: 900;
}

.bj-card-saving {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dff5e9;
  color: #087443;
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
}

.bj-card-offers {
  min-width: 0;
  margin: 2px 0 10px;
  padding: 8px 9px;
  display: grid;
  gap: 2px;
  border-radius: 9px;
  background: var(--bj-soft);
  line-height: 1.25;
}

.bj-card-offers strong {
  color: var(--bj-ink);
  font-size: .72rem;
}

.bj-card-offers span {
  max-width: 100%;
  overflow: hidden;
  color: var(--bj-muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bj-compare-seo {
  max-width: 1040px;
  margin: clamp(44px, 7vw, 82px) auto 12px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--bj-line);
  border-radius: 22px;
  background: #fff;
}

.bj-compare-seo-intro {
  max-width: 760px;
}

.bj-compare-seo-intro h2,
.bj-compare-seo-grid h2,
.bj-compare-faq h2 {
  margin-top: 6px;
}

.bj-compare-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 30px;
}

.bj-compare-benefits article {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--bj-line);
  border-radius: 14px;
  background: var(--bj-soft);
}

.bj-compare-benefits article > strong {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bj-yellow);
  color: #111;
  font-size: .8rem;
  font-weight: 900;
}

.bj-compare-benefits h3 {
  margin: 0 0 7px;
  font-size: 1rem;
}

.bj-compare-benefits p,
.bj-compare-seo-grid p,
.bj-compare-faq p {
  margin: 0;
  color: var(--bj-muted);
  font-size: .9rem;
  line-height: 1.6;
}

.bj-compare-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 30px 0;
}

.bj-compare-seo-grid > div {
  min-width: 0;
}

.bj-compare-seo-grid h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.bj-compare-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px !important;
}

.bj-compare-links a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--bj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bj-ink);
  font-size: .76rem;
  font-weight: 800;
  text-decoration: none;
}

.bj-compare-links a:hover {
  border-color: var(--bj-blue);
  color: var(--bj-blue-dark);
}

.bj-compare-paths {
  margin: 28px 0 24px;
  padding: 20px;
  border: 1px solid var(--bj-line);
  border-radius: 15px;
  background: var(--bj-soft);
}
.bj-compare-paths h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}
.bj-compare-paths > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bj-compare-paths a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--bj-line);
  border-radius: 999px;
  background: #fff;
  color: var(--bj-ink);
  font-size: .75rem;
  font-weight: 850;
  text-decoration: none;
}
.bj-compare-paths a:hover {
  border-color: var(--bj-blue);
  color: var(--bj-blue-dark);
}

.bj-compare-faq {
  padding-top: 26px;
  border-top: 1px solid var(--bj-line);
}

.bj-compare-faq details {
  border-top: 1px solid var(--bj-line);
}

.bj-compare-faq details:last-child {
  border-bottom: 1px solid var(--bj-line);
}

.bj-compare-faq summary {
  cursor: pointer;
  padding: 13px 2px;
  font-weight: 850;
}

.bj-compare-faq details p {
  padding: 0 2px 14px;
}

@media (max-width: 820px) {
  .bj-compare-shortcuts {
    display: block;
  }

  .bj-compare-shortcuts > strong {
    display: block;
    margin-bottom: 8px;
  }

  .bj-compare-benefits,
  .bj-compare-seo-grid {
    grid-template-columns: 1fr;
  }

  .bj-compare-benefits {
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .bj-compare-stats {
    gap: 7px;
  }

  .bj-compare-stats span {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .bj-compare-shortcuts {
    padding: 11px 12px;
  }

  .bj-compare-shortcuts > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .bj-compare-shortcuts a {
    justify-content: space-between;
    border-radius: 10px;
  }

  .bj-compare-seo {
    padding: 18px;
    border-radius: 16px;
  }
}

@media (max-width: 380px) {
  .bj-compare-shortcuts > div {
    grid-template-columns: 1fr;
  }
}
