/* Mirrors the billing app's shared m-dropdown control. */
.sb-dropdown {
  position: relative;
  display: inline-flex;
  width: 100%;
  min-width: 0;
  margin-top: 7px;
  vertical-align: middle;
  font-weight: 400;
}
.sb-dropdown .sb-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #dce2ee;
  border-radius: 9px;
  background: #fff;
  color: #17243f;
  text-align: start;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgb(23 35 66 / 3%);
  cursor: pointer;
  transition:
    border-color 160ms,
    box-shadow 160ms,
    background-color 160ms;
}
.sb-dropdown .sb-dropdown-trigger:hover:not(:disabled) {
  border-color: #b7c5df;
  background: #fcfdff;
}
.sb-dropdown .sb-dropdown-trigger:focus-visible,
.sb-dropdown .sb-dropdown-trigger[aria-expanded="true"] {
  outline: none;
  border-color: #6481d6;
  box-shadow: 0 0 0 3px rgb(61 95 191 / 11%);
}
.sb-dropdown .sb-dropdown-trigger[aria-invalid="true"] {
  border-color: #bf4968;
}
.sb-dropdown .sb-dropdown-trigger:disabled {
  background: #f6f7fa;
  color: #7b879d;
  cursor: not-allowed;
}
.sb-dropdown-value {
  display: block;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sb-dropdown-trigger[data-placeholder="true"] .sb-dropdown-value {
  color: #7b879d;
}
.sb-dropdown-arrow {
  display: flex;
  flex-shrink: 0;
  color: #61708a;
  transition: transform 180ms;
}
.sb-dropdown-trigger[aria-expanded="true"] .sb-dropdown-arrow {
  transform: rotate(180deg);
}
.sb-dropdown-menu {
  position: fixed;
  z-index: 1000;
  box-sizing: border-box;
  margin: 0;
  padding: 5px;
  border: 1px solid #e1e6f0;
  border-radius: 12px;
  background: #fff;
  color: #17243f;
  box-shadow:
    0 16px 44px -10px rgb(23 35 66 / 20%),
    0 3px 10px rgb(23 35 66 / 5%);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  overflow: auto;
  overscroll-behavior: contain;
}
.sb-dropdown-menu[hidden] {
  display: none !important;
}
.sb-dropdown-option {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 38px;
  padding: 9px 34px 9px 11px;
  border-radius: 7px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  cursor: pointer;
  user-select: none;
}
.sb-dropdown-option[aria-selected="true"] {
  font-weight: 550;
  background: #f3f6fd;
  color: #294b9c;
}
.sb-dropdown-option[aria-selected="true"]::after {
  content: "✓";
  position: absolute;
  right: 11px;
  color: #4264bd;
}
.sb-dropdown-option.is-active {
  background: #edf2fc;
  color: #203d82;
}
.sb-dropdown-option[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}
.sb-dropdown select.sb-dropdown-native {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (max-width: 700px) {
  .sb-dropdown .sb-dropdown-trigger,
  .sb-dropdown-menu {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sb-dropdown .sb-dropdown-trigger,
  .sb-dropdown-arrow {
    transition: none;
  }
}

.demo-fields label > .sb-dropdown {
  display: inline-flex;
  color: inherit;
}

/* Opaque app-style list surface, including menus promoted to the browser top layer. */
.sb-dropdown-menu {
  inset: auto;
  background: #fff;
  opacity: 1;
  color-scheme: light;
}
.sb-dropdown-option--described {
  display: grid;
  gap: 3px;
  align-content: center;
  min-height: 62px;
  padding-block: 11px;
}
.sb-dropdown-option-title {
  font-weight: 500;
}
.sb-dropdown-option-description {
  display: block;
  color: #61708a;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
}
.sb-dropdown-option[aria-selected="true"] .sb-dropdown-option-title {
  font-weight: 600;
}
.sb-dropdown-option[aria-selected="true"]::after {
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 700px) {
  .sb-dropdown-option {
    min-height: 44px;
  }
  .sb-dropdown-option--described {
    min-height: 66px;
  }
}
