/* Shared product switcher used by the four mobile trading terminals. */
.tn-type-sel {
  gap: 6px;
  min-height: 32px;
  padding: 5px 9px 5px 6px;
}

.tn-type-icon {
  width: 23px;
  height: 23px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 23px;
}

.tn-type-icon .ecxs-feature-icon {
  width: 23px;
  height: 23px;
}

.type-drop-panel {
  min-width: 210px;
  max-height: calc(100vh - 76px);
  max-height: calc(100dvh - 76px - env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 7px;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .46), inset 0 1px rgba(255, 255, 255, .035);
}

.type-drop-item {
  min-height: 52px;
  padding: 8px 9px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 11px;
}

.type-drop-item + .type-drop-item {
  margin-top: 3px;
}

.type-drop-item:hover,
.type-drop-item:active {
  color: var(--t1);
  background: var(--bg3);
}

.type-drop-item.active {
  color: var(--bl);
  border-color: rgba(55, 114, 255, .22);
  background: linear-gradient(90deg, rgba(55, 114, 255, .16), rgba(55, 114, 255, .065));
}

.type-drop-item .td-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 10px;
  background: rgba(15, 23, 42, .38);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

.type-drop-item .td-icon[data-feature-icon="spot"] {
  border-color: rgba(80, 108, 193, .28);
  background: rgba(80, 108, 193, .12);
}

.type-drop-item .td-icon[data-feature-icon="futures"] {
  border-color: rgba(176, 82, 104, .28);
  background: rgba(176, 82, 104, .12);
}

.type-drop-item .td-icon[data-feature-icon="seconds"] {
  border-color: rgba(193, 155, 67, .28);
  background: rgba(193, 155, 67, .12);
}

.type-drop-item .td-icon[data-feature-icon="options"] {
  border-color: rgba(62, 154, 123, .28);
  background: rgba(62, 154, 123, .12);
}

.type-drop-item .td-icon[data-feature-icon="copy"] {
  border-color: rgba(80, 108, 193, .30);
  background: rgba(80, 108, 193, .14);
}

.type-drop-item .td-icon .ecxs-feature-icon {
  width: 29px;
  height: 29px;
}

.type-drop-item .td-tag {
  min-width: 36px;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  text-align: center;
  letter-spacing: .04em;
}

.type-drop-item .tag-copy {
  color: #8098d8;
  background: rgba(80, 108, 193, .16);
}

html.light-mode .type-drop-item .tag-copy {
  color: #3655a3;
  background: rgba(80, 108, 193, .12);
}

@media (max-width: 380px) {
  .tn-type-icon,
  .tn-type-icon .ecxs-feature-icon {
    width: 21px;
    height: 21px;
  }

  .tn-type-icon {
    flex-basis: 21px;
  }

  .type-drop-panel {
    min-width: 198px;
  }
}
