/*
 * This is a manifest file that'll be compiled into application.css.
 * This empty file is created to prevent loading tailwind source.
 */

/* Main menu styles adapted from new_link_design */
.dhn-main-menu {
  --dhn-menu-bg: transparent;
  --dhn-menu-bg-hover: #444;
  --dhn-menu-bg-focus: #555;
  --dhn-menu-text: #fff;
  --dhn-dropdown-bg: #fff;
  --dhn-dropdown-border: #f6f6f6;
  --dhn-dropdown-shadow: 0 1px 3px rgba(0, 0, 0, 0.15), 0 3px 10px rgba(0, 0, 0, 0.1);
  color: var(--dhn-menu-text);
  position: relative;
  z-index: 200;
  overflow: visible;
}

.dhn-main-menu__item {
  position: relative;
  overflow: visible;
}

.dhn-main-menu__trigger {
  align-items: center;
  background-color: var(--dhn-menu-bg);
  border-radius: 999px;
  color: var(--dhn-menu-text);
  display: inline-flex;
  height: 34px;
  outline: 0;
  padding: 8px 14px;
  font-size: 0.875rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dhn-main-menu__trigger:hover {
  background-color: var(--dhn-menu-bg-hover);
}

.dhn-main-menu__trigger:focus-visible {
  background-color: var(--dhn-menu-bg-focus);
}

.dhn-main-menu__dropdown {
  background-color: var(--dhn-dropdown-bg);
  border: 1px solid var(--dhn-dropdown-border);
  box-shadow: var(--dhn-dropdown-shadow);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 210;
}

.dhn-main-menu__dropdown--fit {
  width: max-content;
  min-width: 0;
  max-width: min(90vw, 360px);
}

.dhn-main-menu__link {
  font-size: 0.8125rem;
  color: #222;
  text-decoration: none;
}

.dhn-main-menu__link:hover {
  text-decoration: none;
}

.dhn-main-menu__chevron {
  transition: transform 0.2s ease;
}

.dhn-main-menu__trigger.is-open .dhn-main-menu__chevron {
  transform: rotate(180deg);
}

/* Search suggestions dropdown */
.dhn-search-wrap {
  position: relative;
  z-index: 150;
}

.dhn-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  z-index: 160;
}

.dhn-search-suggest__list {
  list-style: none;
  margin: 0;
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.dhn-search-suggest__item + .dhn-search-suggest__item {
  margin-top: 6px;
}

.dhn-search-suggest__button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.dhn-search-suggest__button:hover,
.dhn-search-suggest__button:focus-visible {
  background: #eaf2ff;
}

.dhn-search-suggest__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f4f6;
  font-size: 16px;
}

.dhn-search-suggest__text {
  color: #111827;
  font-size: 15px;
}

.dhn-search-suggest__text strong {
  font-weight: 700;
}

.dhn-search-input:focus,
.dhn-search-input:focus-visible {
  outline: none;
  box-shadow: none;
}
