.html-dropdown * {
    box-sizing: border-box;
}


/* Main Dropdown */

.html-dropdown {
    position: relative;
    width: auto;
    user-select: none;
    display: inline-block;
    min-width:150px;
}

/* Selected Value */

.dropdown-selected {
  min-height: 35px;
  border: 1px solid #aaa;
  border-radius: 6px;
  padding: 2px 35px 2px 10px;
  background: white;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 100%;
  vertical-align:middle;
    
}

.dropdown-selected::after {
    content: "▼";
    position: absolute;
    right: 15px;
    font-size: 14px;
}

/* ================================
   SEARCH INPUT
================================ */

form .html-dropdown .dropdown-search {

    display: none;
    min-height: 25px;
    padding: 5px 35px 5px 10px;
    border: 0px solid #aaa;
    border-radius: 5px;
    outline: none;
    font-size: 14px;
    position: absolute;
    top: 5px;
    left: 10px;
    width: 60%;
}



/* Show Search When No Selection */

.html-dropdown.no-selection .dropdown-search {

    display: inline-block;
    
}


/* Dropdown Options */

.dropdown-options {
    display: none;

    position: absolute;
    top: calc(100% + 3px);
    left: 0;

    width: 100%;

    border: 1px solid #aaa;
    border-radius: 6px;

    background: white;

    z-index: 1000;

    max-height: 300px;
    overflow-y: auto;

    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.html-dropdown.open .dropdown-options {
    display: block;
}

/* Individual Option */

.dropdown-option {
    padding: 10px;
    cursor: pointer;

    display: flex;
    align-items: center;
    gap: 12px;

    border-bottom: 1px solid #eee;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: #f0f0f0;
}no-selection

.dropdown-option.active {
    background: #e8e8e8;
}

/* Images */

.dropdown-option img,
.dropdown-selected img {
    width: 50px;
    height: 50px;

    object-fit: contain;

    border-radius: 4px;
}

/* Math */

.math-content {
    font-size: 20px;
}
