/* Legacy-parity text rendering: the old Creditas site sets
 * -webkit-font-smoothing: antialiased globally, which renders type
 * lighter/thinner on macOS. Webflow Code Components live in isolated
 * shadow roots, so this must be declared per-component on :host to
 * inherit into the shadow tree (the property does not cross the
 * shadow boundary). Without it, Blink defaults to subpixel smoothing
 * and identical 400-weight text looks heavier than the old site. */
:host {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Class naming: no BEM `__`; elements nested under `.product-card`. The CTA
   is `.cta-link` (not `.cta`) to avoid the global `.cta` block (Cta component). */

.product-card,
.product-card *,
.product-card *::before,
.product-card *::after {
  box-sizing: border-box;
}

.product-card {
  display: flex;
  flex-direction: column;
  width: 288px;
  /* Shared card-sizing contract (--card-*). Defaults preserve the natural
     288px width: flex-basis:auto means "use my width", so standalone and grid
     use are unchanged. A slot host can override --card-basis/-grow to reflow
     into a row. See components/README.md. */
  flex-basis: var(--card-basis, auto);
  flex-grow: var(--card-grow, 0);
  min-width: 0;
  max-width: var(--card-max, 100%);
  background-color: #ffffff;
  border: 1px solid #f1f3f2;
  border-radius: 20px;
  box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.08), 0px 12px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #292929;
  font-family: 'Helvetica Now Display', 'Helveticanowdisplay', Helvetica, Arial,
    sans-serif;

  .media {
    width: 100%;
    height: 144px;
    overflow: hidden;
  }

  .image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 32px;
  }

  .title {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: 0.3px;
    font-family: 'Maison Neue Extended', 'Maisonneueextended Book',
      'Maisonneueextended', 'Helvetica Now Display', 'Helveticanowdisplay',
      sans-serif;
  }

  .description {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.3px;
    color: #5c5c5c;
  }

  .bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  .bullet {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .bullet-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    object-fit: contain;
  }

  .bullet-text {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.3px;
    color: #292929;
  }

  /* CTA is now the shared <CardCtaButton> (real @creditas-ui primary button,
     styled by the DS theme inside its own ShadowEmotionProvider). The old
     hand-rolled `.cta-link` styles were removed. `.cta-slot` keeps the CTA
     pinned to the bottom of the card and left-aligned; `.card-cta-slot`
     (CardCtaButton's own wrapper) controls the button width. */
  .cta-slot {
    margin-top: auto;
    align-self: flex-start;
    width: 100%;
  }
}

/* Slotted bullets (kept flat — ::slotted only resolves in the shadow tree). */
.product-card .bullets ::slotted(*) {
  display: contents;
}

