/* ShopPilot: compact Store taxonomy profiles and dynamic /butikker cards. */
.sp-storefront {
  width: min(100%, 1260px);
  margin-inline: auto;
}
.sp-storefront .sp-storefront__wrap,
.sp-storefront .sp-storefront__content,
.sp-storefront .sp-storefront__article {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  min-width: 0;
}
.sp-storefront__hero {
  display: grid;
  grid-template-columns: minmax(175px, 285px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(18px, 2.8vw, 34px);
  border: 1px solid #e8dcf3;
  border-radius: 24px;
  background: linear-gradient(118deg, #fff 10%, #f7f2fd 100%);
  box-shadow: 0 12px 34px rgba(55, 26, 90, .045);
}
.sp-storefront__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  min-height: 126px;
  border-radius: 18px;
  background: #fff;
}
.sp-storefront__logo-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 105px;
  object-fit: contain;
}
.sp-storefront__eyebrow {
  margin: 0 0 6px !important;
  color: #6b3bc5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.sp-storefront__intro h1 {
  margin: 0 0 10px !important;
  color: #291b3a;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.sp-storefront__intro > p:not(.sp-storefront__eyebrow) {
  margin: 0 0 14px;
  color: #71677e;
  line-height: 1.65;
  max-width: 63ch;
}
.sp-storefront__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sp-storefront__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.sp-storefront__primary {
  color: #fff !important;
  background: #6b3bc5;
}
.sp-storefront__primary:hover {
  background: #51269d;
}
.sp-storefront__merchant {
  color: #5c2ca7 !important;
  background: #fff;
  border: 1px solid #d9c8f0;
}
.sp-storefront__products {
  scroll-margin-top: 100px;
  margin-top: clamp(24px, 3vw, 40px);
}
.sp-storefront__products-head {
  margin-bottom: 14px;
}
.sp-storefront__products h2 {
  margin: 0;
  color: #291b3a;
  font-size: clamp(21px, 2.6vw, 28px);
  letter-spacing: -.025em;
}
.sp-storefront__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.sp-storefront__categories a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid #e9ddf3;
  border-radius: 999px;
  background: #fff;
  color: #5e526f;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.sp-storefront__categories a.is-active,
.sp-storefront__categories a:hover {
  color: #6b3bc5;
  background: #f3ecfd;
  border-color: #cdb6e9;
}
.sp-storefront__offers { width: 100%; }
.sp-storefront__offers .re_filter_panel {
  margin-top: 0;
}
.sp-storefront__details {
  margin: 34px 0 42px;
  border: 1px solid #e7ddef;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}
.sp-storefront__details summary {
  cursor: pointer;
  padding: 17px 22px;
  color: #3d2756;
  font-size: 15px;
  font-weight: 750;
}
.sp-storefront__details summary:focus-visible {
  outline: 3px solid #9770ed;
  outline-offset: -3px;
}
.sp-storefront__details-body {
  padding: 6px 22px 22px;
  max-width: 850px;
  color: #655970;
  line-height: 1.65;
}
.sp-storefront__details-body :is(h2,h3) {
  color: #342243;
  font-size: 17px;
  margin: 16px 0 8px;
}

/* Dynamic directory: full wordmarks are visible without oversized product-like images. */
.sp-stores-page .sp-directory-dynamic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 16px;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px;
  border: 1px solid #e8def1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(44, 25, 70, .055);
}
.sp-stores-page .sp-directory-dynamic .sp-directory-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 365px;
  min-height: 120px;
  padding: 14px 20px;
  background: #faf8fd;
  border: 1px solid #f1e9f8;
  border-radius: 15px;
  margin: 0 0 19px;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 88px;
  object-fit: contain;
}
.sp-stores-page .sp-directory-logo__fallback {
  color: #6b3bc5;
  font-size: 46px;
  font-weight: 800;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-copy h3 {
  font-size: 21px;
  margin: 6px 0 10px;
  letter-spacing: -.025em;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-copy h3 a {
  color: #271641;
  text-decoration: none;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-copy > p:not(.sp-stores-kicker) {
  color: #71677e;
  line-height: 1.6;
  font-size: 14px;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-links {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-primary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  min-height: 45px;
  border-radius: 12px;
  background: #6b3bc5;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-external {
  color: #6234b1;
  font-size: 13px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .sp-storefront__hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px;
    gap: 16px;
    border-radius: 17px;
  }
  .sp-storefront__logo {
    min-height: 80px;
    padding: 12px 16px;
  }
  .sp-storefront__logo-image { max-height: 76px; }
  .sp-storefront__actions a { flex: 1 1 155px; }
  .sp-storefront__details summary { padding: 15px; }
  .sp-storefront__details-body { padding: 4px 15px 16px; }
  .sp-stores-page .sp-directory-dynamic { grid-template-columns: 1fr; gap: 14px; }
  .sp-stores-page .sp-directory-dynamic .sp-directory-card { padding: 17px; }
}

/* Store comparison facts: concise and aligned across merchant cards. */
.sp-stores-page .sp-directory-dynamic .sp-directory-facts {
  display: grid;
  gap: 9px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #f0eaf5;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-facts > div {
  display: grid;
  grid-template-columns: minmax(80px, .35fr) minmax(0, 1fr);
  gap: 12px;
  font-size: 13px;
  line-height: 1.45;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-facts dt {
  margin: 0;
  color: #756982;
  font-weight: 600;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-facts dd {
  margin: 0;
  color: #30253c;
  font-weight: 600;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-links {
  gap: 0;
}

/* Compact responsive directory cards — four desktop, three tablet, one mobile. */
@media (min-width: 1200px) {
  .sp-stores-page .sp-directory-dynamic { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .sp-stores-page .sp-directory-dynamic { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
.sp-stores-page .sp-directory-dynamic .sp-directory-card { padding: 17px; border-radius: 16px; }
.sp-stores-page .sp-directory-dynamic .sp-directory-logo {
  min-height: 80px; padding: 10px 12px; margin-bottom: 12px; border-radius: 11px;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-logo img { max-height: 62px; }
.sp-stores-page .sp-directory-dynamic .sp-directory-copy h3 { font-size: 17px; line-height: 1.3; margin: 4px 0 7px; }
.sp-stores-page .sp-directory-dynamic .sp-directory-copy > p:not(.sp-stores-kicker) {
  font-size: 12px; line-height: 1.5; margin-bottom: 8px;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-links { padding-top: 14px; }
.sp-stores-page .sp-directory-dynamic .sp-directory-primary { min-height: 44px; padding: 10px 11px; font-size: 12px; }
@media (max-width: 767px) {
  .sp-stores-page .sp-directory-dynamic { grid-template-columns: minmax(0, 1fr); }
  .sp-stores-page .sp-directory-dynamic .sp-directory-card { padding: 16px; }
}

/* Compact fact rows: shared hierarchy, predictable label width, readable values. */
.sp-stores-page .sp-directory-dynamic .sp-directory-facts {
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-facts > div {
  grid-template-columns: minmax(0, 75px) minmax(0, 1fr);
  column-gap: 7px;
  align-items: start;
  font-size: 11px;
  line-height: 1.35;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-facts dt {
  font-size: inherit;
  font-weight: 600;
  color: #746982;
}
.sp-stores-page .sp-directory-dynamic .sp-directory-facts dd {
  min-width: 0;
  overflow-wrap: break-word;
  font-size: inherit;
  font-weight: 450;
  color: #332b3b;
}
@media (max-width: 767px) {
  .sp-stores-page .sp-directory-dynamic .sp-directory-facts > div {
    grid-template-columns: 88px minmax(0, 1fr);
    font-size: 12px;
  }
}

/* Smaller merchant facts — maintain readable mobile sizing. */
.sp-stores-page .sp-directory-dynamic .sp-directory-facts { gap: 5px; }
.sp-stores-page .sp-directory-dynamic .sp-directory-facts > div { font-size: 10px; line-height: 1.4; }
.sp-stores-page .sp-directory-dynamic .sp-directory-facts dt,
.sp-stores-page .sp-directory-dynamic .sp-directory-facts dd { font-size: 10px; }
@media (max-width: 767px) {
  .sp-stores-page .sp-directory-dynamic .sp-directory-facts > div,
  .sp-stores-page .sp-directory-dynamic .sp-directory-facts dt,
  .sp-stores-page .sp-directory-dynamic .sp-directory-facts dd { font-size: 11px; }
}
