/* Kommod's first-choice CTA, sticky mobile buy bar and comparison-table aids,
   ported from hundvagn.se (same editorial-trust template). Pairs with
   js/10-kommod-buy-assist.js. */
.et-hero-cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.9rem;
  margin: 0.2rem 0 0;
  padding: 0.85rem 1rem;
  background: var(--et-card);
  border: 1px solid var(--et-rule);
  border-left: 3px solid var(--et-pine);
  border-radius: var(--et-r-md);
  font-family: var(--et-sans);
  font-size: 0.95rem;
}
.et-hero-cta__thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--et-r-sm, 0.4rem);
  background: var(--et-paper);
  flex: 0 0 auto;
}
.et-hero-cta__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1 1 10rem;
}
.et-hero-cta__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--et-taupe);
}
.et-hero-cta__name {
  font-family: var(--et-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--et-ink);
}
.et-hero-cta__more {
  font-size: 0.82rem;
  color: var(--et-pine);
  text-decoration: none;
}
.et-hero-cta { flex: 0 0 auto; box-sizing: border-box; max-width: 100%; }

.et-compare-hint {
  display: none;
  font-family: var(--et-sans);
  font-size: 0.8rem;
  color: var(--et-taupe);
  margin: 0 0 0.4rem;
}

/* Comparison tables: keep the model name in view while the reader swipes. */
.et-compare tbody th,
.et-compare thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--et-card);
}
.et-compare thead th:first-child {
  background: color-mix(in srgb, var(--et-paper) 55%, var(--et-card));
}
.et-compare tr.is-winner th {
  background: color-mix(in srgb, var(--et-pine) 6%, var(--et-card));
}

.et-stickybuy { display: none; }

@media (max-width: 720px) {
  .et-stickybuy {
    display: flex;
    transform: translateY(110%);
    visibility: hidden;
    transition: transform 200ms ease, visibility 0s linear 200ms;
    align-items: center;
    gap: 0.7rem;
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 120;
    background: var(--et-card);
    border-top: 1px solid var(--et-rule);
    padding: 0.55rem 0.85rem;
    padding-block-end: calc(0.55rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 24px -14px color-mix(in srgb, var(--et-ink) 30%, transparent);
  }
  .et-stickybuy.is-visible {
    transform: translateY(0);
    visibility: visible;
    transition: transform 200ms ease;
  }
  body.has-stickybuy { padding-bottom: 4.5rem; }

  /* A compact masthead: the utility strip and generous padding cost ~80px of
   * the first screen, which is where the first-choice CTA has to live. */
  .et-masthead { padding-block: 0 !important; }
  .et-masthead__utility { display: none; }
  .et-masthead__main { margin-block-start: 0 !important; }
  .et-masthead__main,
  .et-masthead.is-condensed .et-masthead__main {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
  .et-wordmark,
  .et-masthead.is-condensed .et-wordmark { font-size: 1.15rem; }
  .et-masthead__cta { display: none; }

  .et-band--hero { padding-top: 1.1rem; }
  .et-review-hero { gap: 0.75rem; }
  .et-review-hero__title {
    font-size: clamp(1.75rem, 7.4vw, 2.3rem);
    line-height: 1.08;
  }
  .et-review-hero__dek {
    font-size: 1rem;
    line-height: 1.5;
  }
  .et-review-hero__media { display: none; }

  .et-disclosure { font-size: 0.75rem; padding: 0.5rem 0; }
  .et-band--disclosure { padding-block: 0.4rem !important; }

  .et-compare-hint { display: block; }
  .et-compare table { min-width: 34rem; }
  .et-compare th,
  .et-compare td { padding: 0.65rem 0.75rem; }

  #smedja-consent {
    inset-block-end: 0.5rem;
    inset-inline: 0.5rem;
    padding: 0.7rem 0.8rem;
    gap: 0.6rem;
    font-size: 0.82rem;
  }
  #smedja-consent p { flex-basis: 100%; }
  .smedja-consent__btns { width: 100%; }
  #smedja-consent button { flex: 1 1 0; padding: 0.55rem 0.6rem; }
  .et-stickybuy__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
  }
  .et-stickybuy__label {
    font-family: var(--et-sans);
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--et-taupe);
  }
  .et-stickybuy__name {
    font-family: var(--et-display);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .et-stickybuy__cta { flex: 0 0 auto; }
  .et-stickybuy__close {
    flex: 0 0 auto;
    min-width: 2.75rem;
    min-height: 2.75rem;
    background: none;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--et-taupe);
    cursor: pointer;
  }
}

@media (max-width: 560px) {
  .et-hero-cta {
    width: 100%;
    justify-content: center;
  }
}
