/**
 * Marketplace directions in the site header.
 *
 * "Was bietest Du?" is the primary offer flow, "Was suchst Du?" is the
 * complementary request flow. HivePress route and model names stay unchanged.
 */

/* Launch feature switch. PHP removes the actions from fresh markup; this
 * fallback also covers cached header fragments until their cache is purged. */
body.wp-child-theme-marnamic.marnamic-header-marketplace-actions-disabled
  .site-header .header-navbar__actions :is(
    .hp-menu__item--listing-submit,
    .hp-menu__item--request-submit
  ),
body.wp-child-theme-marnamic.marnamic-header-marketplace-actions-disabled
  .marnamic-mobile-marketplace-switch {
  display: none !important;
}

body.wp-child-theme-marnamic .header-navbar__actions .hp-menu--site-header {
  gap: 10px;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions .hp-menu__item--listing-submit,
body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions .hp-menu__item--request-submit {
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0 14px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header.site-header .header-navbar.header-navbar .header-navbar__actions.header-navbar__actions .hp-menu.hp-menu--site-header .hp-menu__item--listing-submit.button.button--secondary {
  color: var(--marnamic-dark) !important;
  background: var(--marnamic-lime) !important;
  border: 1px solid var(--marnamic-lime) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header.site-header .header-navbar.header-navbar .header-navbar__actions.header-navbar__actions .hp-menu.hp-menu--site-header .hp-menu__item--request-submit.hp-link {
  color: var(--marnamic-cream) !important;
  background: rgba(15, 25, 27, 0.9) !important;
  border: 1px solid var(--marnamic-border) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header.site-header .header-navbar.header-navbar .header-navbar__actions.header-navbar__actions .hp-menu.hp-menu--site-header .hp-menu__item--listing-submit.button.button--secondary:is(:hover, :focus-visible) {
  color: var(--marnamic-dark) !important;
  background: var(--marnamic-lime-hover) !important;
  border-color: var(--marnamic-lime-hover) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header.site-header .header-navbar.header-navbar .header-navbar__actions.header-navbar__actions .hp-menu.hp-menu--site-header .hp-menu__item--request-submit.hp-link:is(:hover, :focus-visible) {
  color: var(--marnamic-lime) !important;
  background: rgba(32, 51, 55, 0.94) !important;
  border-color: rgba(231, 253, 135, 0.46) !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions :is(
  .hp-menu__item--listing-submit,
  .hp-menu__item--request-submit
):focus-visible {
  outline: 3px solid rgba(231, 253, 135, 0.24) !important;
  outline-offset: 3px !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions .hp-menu__item--listing-submit :is(i, .hp-icon),
body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions .hp-menu__item--request-submit :is(i, .hp-icon) {
  color: currentColor !important;
  font-size: 0.8rem !important;
}

body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions .hp-menu__item--request-submit .fa-file-alt::before {
  content: "\f002";
}

@media (max-width: 980px) {
  body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions :is(
    .hp-menu__item--listing-submit,
    .hp-menu__item--request-submit
  ) {
    display: inline-flex !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    padding: 0 !important;
    font-size: 0 !important;
  }

  body.wp-child-theme-marnamic.wp-child-theme-marnamic .site-header .header-navbar__actions :is(
    .hp-menu__item--listing-submit,
    .hp-menu__item--request-submit
  ) :is(i, .hp-icon, i::before, .hp-icon::before) {
    font-size: 0.95rem !important;
  }
}
