/*
 * Public card contract
 * Vendor cards answer "who". Listing cards answer "what".
 */

body.wp-child-theme-marnamic {
  --marnamic-card-radius: var(--marnamic-radius);
  --marnamic-card-border: rgba(161, 192, 195, 0.22);
  --marnamic-card-border-hover: rgba(231, 253, 135, 0.46);
  --marnamic-card-surface: rgba(24, 39, 43, 0.84);
  --marnamic-card-surface-footer: rgba(15, 25, 27, 0.3);
  --marnamic-card-space: clamp(18px, 2vw, 24px);
  --marnamic-card-gap: 12px;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendor--view-block, .hp-listing--view-block).marnamic-card {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  color: var(--marnamic-cream) !important;
  background: var(--marnamic-card-surface) !important;
  border: 1px solid var(--marnamic-card-border) !important;
  border-radius: var(--marnamic-card-radius) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14) !important;
  overflow: hidden !important;
  transform: none !important;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendor--view-block, .hp-listing--view-block).marnamic-card:hover {
  background: rgba(32, 51, 55, 0.94) !important;
  border-color: var(--marnamic-card-border-hover) !important;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
  transform: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__header, .hp-listing__header) {
  flex: 0 0 auto;
  min-width: 0;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__header {
  margin: 0 !important;
  padding: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__image {
  display: grid !important;
  min-height: 164px !important;
  place-items: center !important;
  padding: 20px var(--marnamic-card-space) 8px !important;
  background: transparent !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__image > a {
  display: flex !important;
  width: min(100%, 242px) !important;
  min-height: 120px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px !important;
  background: var(--marnamic-logo-tile) !important;
  border: 1px solid rgba(19, 33, 36, 0.1) !important;
  border-radius: calc(var(--marnamic-card-radius) - 2px) !important;
  box-shadow: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__image img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 84px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__image {
  position: relative !important;
  display: block !important;
  min-height: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: rgba(15, 25, 27, 0.46) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__image :is(a, img, video) {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: 16 / 10;
  object-fit: cover !important;
  border: 0 !important;
  border-radius: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__content, .hp-listing__content) {
  display: flex !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  gap: var(--marnamic-card-gap) !important;
  padding: 10px var(--marnamic-card-space) var(--marnamic-card-space) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__name, .hp-listing__title) {
  min-width: 0 !important;
  margin: 0 !important;
  color: var(--marnamic-cream) !important;
  font-family: var(--marnamic-font-display) !important;
  font-size: clamp(1.08rem, 1.3vw, 1.3rem) !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
  text-align: left !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__name, .hp-listing__title) a {
  display: inline !important;
  overflow-wrap: anywhere !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__details--primary {
  display: flex !important;
  min-width: 0 !important;
  align-items: center !important;
  gap: 8px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__created-date {
  display: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__category a,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__role {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 5px 9px !important;
  color: #132124 !important;
  background: var(--marnamic-lime) !important;
  border-radius: 999px !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__meta {
  display: grid;
  min-width: 0;
  gap: 10px;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__description {
  display: -webkit-box;
  margin: 0 !important;
  overflow: hidden;
  color: var(--marnamic-text-muted) !important;
  font-size: 0.9rem !important;
  line-height: 1.48 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__identity {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__region,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__location {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: var(--marnamic-mint) !important;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__circularity-score {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 3px 4px 3px 9px;
  color: var(--marnamic-mint);
  background: rgba(97, 165, 172, 0.12);
  border: 1px solid rgba(97, 165, 172, 0.34);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__circularity-score strong {
  display: inline-flex;
  min-width: 26px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  color: var(--marnamic-dark);
  background: var(--marnamic-teal);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__location .hp-icon {
  color: var(--marnamic-teal);
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__tags {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__tag {
  max-width: 100%;
  padding: 5px 8px;
  overflow: hidden;
  color: var(--marnamic-mint);
  background: rgba(161, 192, 195, 0.1);
  border: 1px solid rgba(161, 192, 195, 0.2);
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__footer, .hp-listing__footer) {
  display: flex !important;
  min-height: 60px !important;
  align-items: center !important;
  justify-content: flex-end !important;
  margin-top: auto !important;
  padding: 10px var(--marnamic-card-space) !important;
  background: var(--marnamic-card-surface-footer) !important;
  border-top: 1px solid rgba(161, 192, 195, 0.14) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__actions, .hp-listing__actions) {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__action, .hp-listing__action) {
  display: inline-flex !important;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  color: var(--marnamic-mint) !important;
  background: rgba(15, 25, 27, 0.48) !important;
  border: 1px solid rgba(161, 192, 195, 0.22) !important;
  border-radius: var(--marnamic-card-radius) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__action, .hp-listing__action):is(:hover, :focus-visible) {
  color: #132124 !important;
  background: var(--marnamic-lime) !important;
  border-color: var(--marnamic-lime) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-page__sidebar .marnamic-card--vendor .hp-vendor__image {
  min-height: 132px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-page__sidebar .marnamic-card--vendor .hp-vendor__image > a {
  min-height: 94px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-page__sidebar .marnamic-card--vendor .hp-vendor__content {
  padding-bottom: 18px !important;
}

/* Archive-specific legacy rules use deliberately high specificity. Keep their
 * layout contract, but replace the former compact variants with this shared
 * card system in both discovery and result contexts. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
  grid-template-columns: none !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 0 !important;
  background: var(--marnamic-card-surface) !important;
  border: 1px solid var(--marnamic-card-border) !important;
  border-radius: var(--marnamic-card-radius) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__image,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__image {
  display: grid !important;
  width: auto !important;
  min-height: 164px !important;
  margin: 0 !important;
  padding: 20px var(--marnamic-card-space) 8px !important;
  place-items: center !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__image a,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__image a {
  display: flex !important;
  width: min(100%, 242px) !important;
  min-width: 0 !important;
  min-height: 120px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: 18px !important;
  border-radius: calc(var(--marnamic-card-radius) - 2px) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__image img,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__image img {
  width: 100% !important;
  max-width: 100% !important;
  max-height: 84px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__content,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__content {
  min-height: 0 !important;
  flex: 0 0 auto !important;
  align-items: stretch !important;
  gap: var(--marnamic-card-gap) !important;
  padding: 10px var(--marnamic-card-space) var(--marnamic-card-space) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__name,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__name {
  width: auto !important;
  font-size: clamp(1.08rem, 1.3vw, 1.3rem) !important;
  line-height: 1.2 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__name a,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__name a {
  display: inline !important;
  width: auto !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__footer,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__footer {
  justify-content: flex-end !important;
  gap: 0 !important;
  padding: 10px var(--marnamic-card-space) !important;
  background: var(--marnamic-card-surface-footer) !important;
}

@media (max-width: 720px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendors, .hp-listings) :is(.hp-grid__item, [class*="hp-col-"]) {
    min-width: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendor--view-block, .hp-listing--view-block).marnamic-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__image {
    min-height: 150px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__content, .hp-listing__content) {
    padding: 10px 18px 18px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__footer, .hp-listing__footer) {
    min-height: 56px !important;
    padding-inline: 18px !important;
  }
}

/* Shared WordPress + HivePress pagination contract. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.pagination, .pagination .nav-links, .hp-pagination) {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .pagination .nav-links > a,
  .pagination .nav-links > span,
  .pagination > a,
  .pagination > span,
  .hp-pagination a,
  .hp-pagination span
) {
  display: inline-flex !important;
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--marnamic-ui-text) !important;
  background: var(--marnamic-ui-input) !important;
  border: 1px solid var(--marnamic-ui-border) !important;
  border-radius: var(--marnamic-ui-radius-md) !important;
  box-shadow: none !important;
  font-family: var(--marnamic-font-body) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition:
    color var(--marnamic-ui-transition),
    background-color var(--marnamic-ui-transition),
    border-color var(--marnamic-ui-transition),
    transform var(--marnamic-ui-transition) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .pagination .current,
  .pagination .nav-links > a:hover,
  .pagination .nav-links > a:focus-visible,
  .pagination > a:hover,
  .pagination > a:focus-visible,
  .hp-pagination .current,
  .hp-pagination a:hover,
  .hp-pagination a:focus-visible
) {
  color: var(--marnamic-ui-primary-text) !important;
  background: var(--marnamic-ui-primary) !important;
  border-color: var(--marnamic-ui-primary) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.pagination a, .hp-pagination a):active {
  transform: translateY(1px) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.pagination .dots, .hp-pagination .dots) {
  color: var(--marnamic-ui-text-soft) !important;
  background: transparent !important;
  border-color: transparent !important;
  pointer-events: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .pagination .next,
  .pagination .prev,
  .hp-pagination .next,
  .hp-pagination .prev
) {
  position: relative !important;
  font-size: 0 !important;
  overflow: hidden !important;
}

/* WordPress' blog pagination has a more specific `.nav-links > a` base rule.
 * Match its real markup so the visible English label cannot win the cascade. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .pagination .nav-links > a.next.page-numbers,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .pagination .nav-links > a.prev.page-numbers,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-pagination > a.next,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-pagination > a.prev {
  font-size: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
  .pagination .next,
  .pagination .prev,
  .hp-pagination .next,
  .hp-pagination .prev
)::before {
  display: block !important;
  width: 11px !important;
  height: 11px !important;
  content: "" !important;
  border-top: 3px solid currentColor !important;
  border-right: 3px solid currentColor !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .pagination .nav-links > a:is(.next, .prev).page-numbers::before,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-pagination > a:is(.next, .prev)::before {
  display: block !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.pagination .next, .hp-pagination .next)::before {
  margin-left: -4px !important;
  transform: rotate(45deg) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.pagination .prev, .hp-pagination .prev)::before {
  margin-right: -4px !important;
  transform: rotate(-135deg) !important;
}

@media (max-width: 520px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.pagination, .pagination .nav-links, .hp-pagination) {
    gap: 8px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(
    .pagination .nav-links > a,
    .pagination .nav-links > span,
    .pagination > a,
    .pagination > span,
    .hp-pagination a,
    .hp-pagination span
  ) {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    font-size: 0.94rem !important;
  }
}

/* Card system 1.0.223
 * Compact anatomy based on an 8px spacing grid: media, title/meta, optional
 * teaser, tags and one explicit primary destination. */
body.wp-child-theme-marnamic {
  --marnamic-card-radius: 8px;
  --marnamic-card-border: rgba(161, 192, 195, 0.32);
  --marnamic-card-border-hover: rgba(231, 253, 135, 0.68);
  --marnamic-card-surface: #1b2b2f;
  --marnamic-card-surface-hover: #203438;
  --marnamic-card-space: 16px;
  --marnamic-card-gap: 8px;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendor--view-block, .hp-listing--view-block).marnamic-card {
  height: auto !important;
  min-height: 0 !important;
  flex-direction: column !important;
  background: var(--marnamic-card-surface) !important;
  border: 1px solid var(--marnamic-card-border) !important;
  border-radius: var(--marnamic-card-radius) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14) !important;
  transform: translateY(0) !important;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendor--view-block, .hp-listing--view-block).marnamic-card:hover {
  background: var(--marnamic-card-surface-hover) !important;
  border-color: var(--marnamic-card-border-hover) !important;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2) !important;
  transform: translateY(-2px) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendor--view-block, .hp-listing--view-block).marnamic-card:active {
  transform: translateY(0) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendor--view-block, .hp-listing--view-block).marnamic-card:has(:focus-visible) {
  outline: 3px solid rgba(231, 253, 135, 0.5) !important;
  outline-offset: 3px !important;
}

/*
 * The whole vendor card opens the profile. The name link stretches over the
 * card; image and "Profil ansehen" stay visible cues outside the tab order.
 * Further actions inside the card (e.g. favourites) remain clickable above it.
 */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-block.marnamic-card .hp-vendor__name a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-block.marnamic-card :is(.hp-vendor__actions, .marnamic-card__matching-cta) {
  position: relative;
  z-index: 6;
}


body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__header,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__header,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__header {
  margin: 0 !important;
  padding: 16px 16px 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__image,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__image,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__image {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__image > a,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__image > a,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__image > a {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 112px !important;
  min-height: 112px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 16px !important;
  background: #f1e9dd !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__image img,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__image img,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__image img {
  width: auto !important;
  max-width: 88% !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
}

/* Circularity belongs to the visual identity of an actor. Keep the score on
 * the logo tile instead of mixing it into category and region metadata. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .hp-vendor--view-block.marnamic-card.marnamic-card--vendor {
  position: relative !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .hp-vendor--view-block.marnamic-card.marnamic-card--vendor
  .marnamic-card__circularity-score {
  position: absolute !important;
  top: 26px !important;
  right: 26px !important;
  left: auto !important;
  z-index: 4 !important;
  min-height: 32px !important;
  margin: 0 !important;
  padding: 4px 5px 4px 11px !important;
  color: var(--marnamic-mint, #a1c0c3) !important;
  background: rgba(19, 33, 36, 0.94) !important;
  border: 1px solid rgba(97, 165, 172, 0.72) !important;
  border-radius: 999px !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.24) !important;
  pointer-events: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .hp-vendor--view-block.marnamic-card.marnamic-card--vendor
  .marnamic-card__circularity-score strong {
  min-width: 26px !important;
  height: 22px !important;
  padding: 0 6px !important;
  background: var(--marnamic-teal, #61a5ac) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__image,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__image :is(a, img, video) {
  border-radius: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__image :is(a, img, video) {
  aspect-ratio: 16 / 9 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__content, .hp-listing__content),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__content,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__content {
  min-height: 0 !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  padding: 16px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__name, .hp-listing__title),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__name,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__name {
  display: -webkit-box !important;
  min-height: 48px !important;
  margin: 0 !important;
  overflow: hidden !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__meta {
  gap: 8px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__description {
  min-height: 46px;
  font-size: 16px !important;
  line-height: 23px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__identity {
  gap: 8px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--listing .hp-listing__category a,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__role {
  padding: 0 !important;
  color: var(--marnamic-lime) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 18px !important;
  text-transform: uppercase !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__region,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__location {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 20px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__tags {
  gap: 6px !important;
  max-height: none !important;
  overflow: visible !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__tag {
  padding: 5px 8px !important;
  font-size: 13px !important;
  line-height: 16px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__footer, .hp-listing__footer),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__footer,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__footer {
  display: flex !important;
  min-height: 56px !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-top: auto !important;
  padding: 8px 16px 16px !important;
  background: transparent !important;
  border-top: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__cta {
  display: inline-flex !important;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px !important;
  color: #132124 !important;
  background: var(--marnamic-lime) !important;
  border: 1px solid var(--marnamic-lime) !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 22px !important;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__cta:is(:hover, :focus-visible) {
  color: #132124 !important;
  background: var(--marnamic-lime-hover) !important;
  border-color: var(--marnamic-lime-hover) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18) !important;
  transform: translateY(-1px);
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card__cta:active {
  box-shadow: none !important;
  transform: translateY(0);
}

/*
 * Vendor archive matching actions.
 *
 * The directed request link is part of every reusable Vendor card template,
 * but it is only exposed after an archive search/filter. The unfiltered
 * discovery stays exploratory, embedded provider cards remain compact and
 * AJAX-refreshed result cards keep the same vendor-specific URL.
 */
body.wp-child-theme-marnamic.wp-child-theme-marnamic
  .marnamic-card__matching-cta {
  display: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  .hp-vendor--view-block.marnamic-card.marnamic-card--vendor
  .hp-vendor__footer {
  display: grid !important;
  grid-template-areas: "profile message";
  grid-template-columns: minmax(0, 1fr) 40px !important;
  gap: 8px !important;
  align-items: center !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page.marnamic-archive-search-results.marnamic-archive-search-results--vendor
  .hp-vendor--view-block.marnamic-card.marnamic-card--vendor
  .hp-vendor__footer,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide
  .styleguide-archive-frame
  .hp-vendor--view-block.marnamic-card.marnamic-card--vendor
  .hp-vendor__footer {
  grid-template-areas:
    "profile message"
    "matching matching";
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page.marnamic-archive-search-results.marnamic-archive-search-results--vendor
  .hp-vendor--view-block.marnamic-card.marnamic-card--vendor
  .hp-vendor__footer:not(:has(.marnamic-card__matching-cta)) {
  grid-template-areas: "profile message";
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  .marnamic-card--vendor .marnamic-card__cta--profile {
  grid-area: profile;
  width: 100% !important;
  color: var(--marnamic-cream, #f1e9dd) !important;
  background: rgba(15, 25, 27, 0.78) !important;
  border-color: rgba(161, 192, 195, 0.34) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  .marnamic-card--vendor .marnamic-card__cta--profile:is(:hover, :focus-visible) {
  color: var(--marnamic-dark, #132124) !important;
  background: var(--marnamic-lime-hover, #dffc5f) !important;
  border-color: var(--marnamic-lime-hover, #dffc5f) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page.marnamic-archive-search-results.marnamic-archive-search-results--vendor
  .marnamic-card--vendor .marnamic-card__matching-cta,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide
  .styleguide-archive-frame
  .marnamic-card--vendor .marnamic-card__matching-cta {
  display: inline-flex !important;
  grid-area: matching;
  width: 100% !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  .marnamic-card--vendor .marnamic-card__matching-cta i {
  color: currentColor !important;
  font-size: 0.9em !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  .marnamic-card--vendor .hp-vendor__actions {
  grid-area: message;
  justify-self: end;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--vendors-view-page
  .marnamic-card--vendor .hp-vendor__footer:not(:has(.hp-vendor__actions:not(:empty)))
  .marnamic-card__cta--profile {
  grid-column: 1 / -1;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__actions, .hp-listing__actions):empty {
  display: none !important;
}

@media (max-width: 720px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__header,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__header,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__header {
    padding: 12px 12px 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic
    .hp-vendor--view-block.marnamic-card.marnamic-card--vendor
    .marnamic-card__circularity-score {
    top: 22px !important;
    right: 22px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card :is(.hp-vendor__content, .hp-listing__content),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__content,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__content {
    padding: 16px !important;
  }
}

/* Vendor detail summary is a card too. Keep it in the same visual family as
 * archive cards instead of stacking a separate header and description box. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary {
  display: flex !important;
  min-width: 0 !important;
  flex-direction: column !important;
  gap: 0 !important;
  padding: 16px !important;
  color: var(--marnamic-cream) !important;
  background: var(--marnamic-card-surface) !important;
  border: 1px solid var(--marnamic-card-border) !important;
  border-radius: var(--marnamic-card-radius) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14) !important;
  overflow: hidden !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .hp-vendor__image {
  display: flex !important;
  width: 100% !important;
  min-height: 112px !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 16px !important;
  padding: 16px !important;
  background: #f1e9dd !important;
  border: 0 !important;
  border-radius: 6px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .hp-vendor__image img {
  width: auto !important;
  max-width: 88% !important;
  height: auto !important;
  max-height: 72px !important;
  object-fit: contain !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .hp-vendor__name {
  margin: 0 !important;
  color: var(--marnamic-cream) !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 28px !important;
  text-align: left !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .hp-vendor__details--primary {
  display: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .hp-vendor__description {
  margin: 16px 0 0 !important;
  padding: 16px 0 0 !important;
  color: var(--marnamic-text-muted) !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(161, 192, 195, 0.18) !important;
  border-radius: 0 !important;
  font-size: 16px !important;
  line-height: 24px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .hp-vendor__description > :first-child {
  margin-top: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .hp-vendor__description > :last-child {
  margin-bottom: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .marnamic-vendor-contact {
  width: 100% !important;
  margin: 16px 0 0 !important;
  padding: 16px 0 0 !important;
  border-top: 1px solid rgba(161, 192, 195, 0.18) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .marnamic-vendor-contact__title {
  margin: 0 0 4px !important;
  color: var(--marnamic-cream) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 24px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-page .hp-vendor__summary .marnamic-vendor-contact__item {
  padding: 12px 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.hp-template--listing-view-page .hp-page__sidebar .marnamic-card--vendor .marnamic-card__cta {
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  color: #132124 !important;
  white-space: nowrap !important;
}

/* Equal-height Vendor grid cards. Let each grid row derive its height from the
 * richest card in that row; a fixed max-height clipped wrapped badge rows. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-vendor--view-block.marnamic-card.marnamic-card--vendor {
  block-size: auto !important;
  height: 100% !important;
  min-block-size: 400px !important;
  min-height: 400px !important;
  max-block-size: none !important;
  max-height: none !important;
}

/* The Vendor archive has older high-specificity layout rules. Repeat the
 * content-safe row contract in the real discovery/result contexts. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__content .hp-vendors.hp-block.hp-grid .hp-vendor--view-block.marnamic-card.marnamic-card--vendor,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__content .hp-vendors.hp-block.hp-grid .hp-vendor--view-block.marnamic-card.marnamic-card--vendor {
  block-size: auto !important;
  height: 100% !important;
  min-block-size: 400px !important;
  min-height: 400px !important;
  max-block-size: none !important;
  max-height: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .marnamic-card--vendor .hp-vendor__content,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-vendor--view-block.marnamic-card .hp-vendor__content,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-vendor--view-block.marnamic-card .hp-vendor__content {
  flex: 1 1 auto !important;
}

/* A Vendor block inside a detail sidebar may contain contact actions and must
 * continue to size itself from its real content. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic .hp-page__sidebar .hp-vendor--view-block.marnamic-card.marnamic-card--vendor {
  block-size: auto !important;
  height: auto !important;
  min-block-size: 0 !important;
  min-height: 0 !important;
  max-block-size: none !important;
  max-height: none !important;
}

/* Keep result navigation visually separate from the final card row. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendors, .hp-listings) + .hp-pagination {
  clear: both !important;
  margin-top: 32px !important;
}

@media (max-width: 720px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic :is(.hp-vendors, .hp-listings) + .hp-pagination {
    margin-top: 24px !important;
  }
}

/* Results toolbar: count on the left, useful sorting on the right. */
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar {
  display: grid !important;
  width: 100% !important;
  min-height: 64px !important;
  grid-template-columns: minmax(0, 1fr) max-content !important;
  gap: 16px 24px !important;
  align-items: center !important;
  margin: 0 0 32px !important;
  padding: 11px 16px !important;
  background: rgba(24, 39, 43, 0.72) !important;
  border: 1px solid rgba(161, 192, 195, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-result-count,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-result-count,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-result-count {
  display: inline-flex !important;
  width: auto !important;
  min-height: 40px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--marnamic-text-muted) !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 20px !important;
  text-transform: none !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  justify-self: end !important;
  margin: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__fields, .hp-form__field),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__fields, .hp-form__field),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__fields, .hp-form__field) {
  display: grid !important;
  width: auto !important;
  min-width: 0 !important;
  grid-template-columns: max-content 210px !important;
  gap: 10px !important;
  align-items: center !important;
  margin: 0 !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort .hp-form__fields,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort .hp-form__fields,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort .hp-form__fields {
  grid-template-columns: max-content !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__label, .hp-field__label),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__label, .hp-field__label),
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__label, .hp-field__label) {
  margin: 0 !important;
  color: var(--marnamic-text-muted) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 20px !important;
  text-transform: none !important;
  white-space: nowrap !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort .select2-container,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort .select2-container,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort .select2-container {
  width: 210px !important;
  min-width: 210px !important;
  max-width: 210px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort .select2-selection--single,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort .select2-selection--single,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort .select2-selection--single {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort .select2-selection__rendered,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort .select2-selection__rendered,
body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort .select2-selection__rendered {
  letter-spacing: 0 !important;
  text-transform: none !important;
}

@media (max-width: 820px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar {
    min-height: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 24px !important;
    padding: 12px !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort {
    width: 100% !important;
    justify-self: stretch !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__fields, .hp-form__field),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__fields, .hp-form__field),
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort :is(.hp-form__fields, .hp-form__field) {
    width: 100% !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-vendor-discovery .hp-page__topbar .hp-form--vendor-sort .select2-container,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-archive-search-results.marnamic-archive-search-results--vendor .hp-page__topbar .hp-form--vendor-sort .select2-container,
  body.wp-child-theme-marnamic.wp-child-theme-marnamic.marnamic-styleguide .styleguide-archive-frame .hp-page__topbar .hp-form--vendor-sort .select2-container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
