/* Seller conversion modules
 * ---------------------------------------------------------------------------
 * Styles the in-content CTA and consumer-intent bridge injected by
 * wp-content/mu-plugins/seller-conversion-modules.php.
 *
 * Matches the AirKit surface language used by .article-service-item exactly:
 * a flat #f4f4f4 panel at 1rem radius, no border, no shadow. An earlier
 * revision carried a coloured left keyline to separate the module from the
 * body text, but the stroke broke across the corner radius and introduced a
 * surface treatment used nowhere else. The generous vertical margin does that
 * separating job on its own.
 */

.pz-inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;

  background: #f4f4f4;
  border: none;
  border-radius: 1rem;
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.pz-inline-cta__body {
  flex: 1 1 20rem;
  min-width: 0;
}

.pz-inline-cta__heading {
  margin: 0 0 0.375rem;
  font-family: var(--font-family-primary);
  font-size: 1.0625rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  color: var(--color-shade-02);
}

.pz-inline-cta__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-neutral-08);
}

.pz-inline-cta__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.75rem 1.375rem;
  border-radius: 0.5rem;
  background: var(--color-shade-02);
  color: var(--color-shade-01) !important;

  font-family: var(--font-family-primary);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;

  transition: background-color 0.15s ease-in-out;
}

.pz-inline-cta__button:hover,
.pz-inline-cta__button:focus {
  background: var(--color-accent-02);
  color: var(--color-shade-01) !important;
  text-decoration: none !important;
}

.pz-inline-cta__button:focus-visible {
  outline: 2px solid var(--color-shade-02);
  outline-offset: 2px;
}

/* Homepage hero conversion path
 * ---------------------------------------------------------------------------
 * The hero previously offered only a search box, so a visitor who did not
 * already know what to search for had nothing to act on. These rules style the
 * value-proposition line and the primary/secondary action pair added to
 * header.php.
 */

/* .hero-subheading already carries a 2.5rem bottom margin from blog.css, which
   is sized for a hero that ends there. Here the search bar follows, so the gap
   is tightened. */
.hero-subheading--compact {
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* The category chips sit immediately after and are also pill-shaped, so
   without extra separation the two rows read as a single control group. */
.hero-actions + .category-chips-container {
  margin-top: 1.5rem;
}

.hero-actions__primary,
.hero-actions__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0.875rem 1.625rem;
  border-radius: 0.5rem;

  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-decoration: none !important;

  transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.hero-actions__primary {
  background: var(--color-shade-02);
  color: var(--color-shade-01) !important;
  border: 1px solid var(--color-shade-02);
}

.hero-actions__primary:hover,
.hero-actions__primary:focus {
  background: var(--color-accent-02);
  border-color: var(--color-accent-02);
  color: var(--color-shade-01) !important;
}

.hero-actions__secondary {
  background: transparent;
  color: var(--color-shade-02) !important;
  border: 1px solid var(--color-neutral-03);
}

.hero-actions__secondary:hover,
.hero-actions__secondary:focus {
  border-color: var(--color-shade-02);
  color: var(--color-shade-02) !important;
}

.hero-actions__primary:focus-visible,
.hero-actions__secondary:focus-visible {
  outline: 2px solid var(--color-shade-02);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions__primary,
  .hero-actions__secondary {
    width: 100%;
  }

  .pz-inline-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 1.125rem;
    padding: 1.25rem;
    margin: 2rem 0;
  }

  .pz-inline-cta__button {
    width: 100%;
  }
}
