/*
 * Standard Slides dropdown: a dark read-only combobox built on the Webflow .dropdownwrapper /
 * .dropdownselector classes. dropdown.js builds the menu and handles mouse and keyboard; the server links
 * both files into the Webflow pages. The default trigger is the 48px form-field size; .is-compact is the
 * 34px size for toolbars such as the dashboard chart header.
 * Selectors are two classes deep so they outrank Webflow's .w-input[readonly] and .textfield:focus.
 */
.slides-dropdown {
  position: relative;
}

.slides-dropdown .slides-dropdown-trigger {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 8px 36px 8px 12px;
  border: 1.5px solid #ffffff1a;
  border-radius: 5px;
  background: #ffffff08 url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 12 12%27%3E%3Cpath d=%27M2.5 4.5 6 8l3.5-3.5%27 fill=%27none%27 stroke=%27%23ffffff99%27 stroke-width=%271.5%27 stroke-linecap=%27round%27 stroke-linejoin=%27round%27/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
  color: #fff;
  font-family: inherit;
  font-size: 13.33px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

.slides-dropdown .slides-dropdown-trigger:focus,
.slides-dropdown.is-open .slides-dropdown-trigger {
  border-color: var(--callout);
}

.slides-dropdown.is-compact .slides-dropdown-trigger {
  width: auto;
  height: 34px;
  padding: 0 32px 0 10px;
  background-position: right 11px center;
}

.slides-dropdown .slides-dropdown-menu {
  top: calc(100% + 6px);
  right: auto;
  left: 0;
  box-sizing: border-box;
  width: max-content;
  min-width: 100%;
  gap: 2px;
  padding: 6px;
  border: 1.5px solid #ffffff1a;
  border-radius: 5px;
  background: linear-gradient(#ffffff08, #ffffff08) var(--dark-bg);
  box-shadow: 0 10px 30px #00000080;
}

.slides-dropdown.is-open .slides-dropdown-menu {
  display: flex;
}

.slides-dropdown .slides-dropdown-option {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 13.33px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.slides-dropdown .slides-dropdown-option.is-active,
.slides-dropdown .slides-dropdown-option[aria-selected="true"] {
  background-color: #ffffff12;
}

.slides-dropdown .slides-dropdown-option[aria-selected="true"] {
  color: var(--core);
}
