/* PRICEHACK_V2_DESIGN_STAGE_03_1 */
:root {
  --ph2-dark: #171717;
  --ph2-yellow: #ffcc00;
  --ph2-border: #e5e7eb;
  --ph2-radius: 12px;
}

/* PRICEHACK_V2_FLOATING_HEADER_V1
   Keep the original floating header container.
   Do not paint the entire full-width header.
*/
.unified-header {
  background: transparent !important;
  color: inherit;
  border-bottom: 0 !important;
}

.unified-header .unified-header-frame,
.unified-header .global-nav-wrap,
.unified-header .global-nav-panel,
.unified-header .global-nav-main,
.unified-header .section-controls-row {
  background: transparent;
}

.unified-header .smart-search {
  position: relative;
  background: #fff;
  border: 2px solid transparent;
  border-radius: var(--ph2-radius);
  max-width: 100%;
}

.unified-header .smart-search:focus-within {
  border-color: var(--ph2-yellow);
}

.unified-header .smart-search input[type="search"] {
  background: transparent;
  color: #171717;
  min-width: 0;
}

.unified-header .smart-search button[type="submit"] {
  background: var(--ph2-yellow);
  color: #171717;
  border-radius: 9px;
  font-weight: 700;
}

.unified-header .smart-search-dropdown {
  background: #fff;
  color: #171717;
  border: 1px solid var(--ph2-border);
  border-radius: var(--ph2-radius);
  z-index: 100;
}

.unified-header .mechanic-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unified-header .mechanic-section-nav .mechanic-section-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 13px;
  background: #292929;
  border: 1px solid #404040;
  border-radius: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
}

.unified-header .mechanic-section-nav .mechanic-section-btn:hover {
  background: #404040;
}

.unified-header .mechanic-section-nav .mechanic-section-btn.active {
  background: var(--ph2-yellow);
  border-color: var(--ph2-yellow);
  color: #171717;
}

@media (max-width: 768px) {
  .unified-header .mechanic-section-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 5px;
  }

  .unified-header .mechanic-section-nav .mechanic-section-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 13px;
    padding: 8px 11px;
  }

  .unified-header .smart-search {
    width: 100%;
  }
}
