#searchCourse {
  position: relative;
  width: 100%;
  max-width: 424px;
  margin: 0 auto;
}

#searchCourse .course-search-input {
  width: 100%;
  padding: 15px 40px 15px 15px;
  border: var(--border);
  border-radius: 16px;
  font-family: var(--text-font-family);
  font-size: var(--text-font-size);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white-background-color);
}

#searchCourse .course-search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-color) 20%, transparent);
}

#searchCourse .search-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--dark-text-color);
  pointer-events: none;
}

#searchCourse .results-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 8px;
  border: var(--border);
  border-radius: 16px;
  background: var(--white-background-color);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  z-index: 50;
  max-height: 0;
  transition: max-height 0.2s ease;
}

#searchCourse.is-open .results-popover {
  max-height: 280px;
}

#searchCourse .results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 250px;
  overflow: auto;
}

#searchCourse .result-item a {
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px 15px;
  cursor: pointer;
}

#searchCourse .result-item a.add-missing {
  box-sizing: border-box;
  justify-content: flex-start;
}

#searchCourse .result-item[aria-selected="true"] a,
#searchCourse .result-item a:hover {
  background: var(--gray-background-color);
}

#searchCourse .result-type {
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.7;
  line-height: 1;
  border: var(--border);
  border-radius: 5px;
  padding: 5px;
}

#searchCourse .result-name {
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-weight: 500;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

#searchCourse .add-missing {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: var(--white-background-color);
  cursor: pointer;
  text-align: left;
}

#searchCourse .add-missing:hover {
  background: var(--gray-background-color);
}

#searchCourse .add-missing .plus {
  color: var(--dark-text-color);
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: var(--border);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background-color: #f7f7f7;
}

#searchCourse .add-missing-text {
  color: var(--text-color);
  font-family: var(--text-font-family);
  font-size: 14px;
  font-weight: 500;
}

#searchCourse .sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
