/* ===========================================
   Livo — Shared custom <select> dropdown
   (header search category + archive sort)
=========================================== */

.livo-custom-dd {
  position: relative;
}

.livo-custom-dd-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.livo-custom-dd-ui {
  position: relative;
}

.livo-custom-dd-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  font-family: var(--livo-font, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #111111;
  cursor: pointer;
  outline: none;
  text-align: left;
  white-space: nowrap;
}

.livo-custom-dd-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.livo-custom-dd-chevron {
  flex-shrink: 0;
  color: #aaa;
  transition: transform .15s ease;
}

.livo-custom-dd.open .livo-custom-dd-chevron {
  transform: rotate(180deg);
}

.livo-custom-dd-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 220px;
  max-height: 320px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #FFFFFF;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity .15s ease, visibility .15s ease, transform .15s ease;
}

.livo-custom-dd.open .livo-custom-dd-list {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.livo-custom-dd-item {
  padding: 10px 16px;
  font-family: var(--livo-font, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 400;
  color: #111111;
  cursor: pointer;
  line-height: 1.35;
  transition: background .12s ease;
}

.livo-custom-dd-item:hover {
  background: #F5F5F7;
  color: #111111;
}

.livo-custom-dd-item.is-active {
  font-weight: 600;
  color: #111111;
}
