.nch-dropdown__button {
  display: flex;
  padding: 12px 20px;
  align-items: center;
  flex: 1 0 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
}

.nch-dropdown__text {
  color: var(--7A8E96, #7A8E96);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: calc(100% - 60px); /* Account for arrow and count */
  user-select: none;
}

:is(.nch-dropdown:hover, .nch-dropdown__selected) .nch-dropdown__text {
  color: var(--White, #FFF);
  line-height: normal;
}

/* When showing multiple selected items */
.nch-dropdown__selected.nch-dropdown--multiple .nch-dropdown__text {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nch-dropdown .nch-dropdown__menu:not(.nch-dropdown--open) {
  display: none;
}

.nch-dropdown .nch-dropdown__menu.nch-dropdown--open {
  position: absolute;
  width: 100%;
  list-style: none;

  border-radius: 8px;
  background: var(--Dark, #052330);
  fill: var(--Dark, #052330);
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));

  display: flex;
  flex-direction: column;
  z-index: 10000;

  /* min-width: 300px; */
  /* padding: 4px; */

  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.nch-dropdown__icon {
  width: 24px;
  height: 24px;
  margin-right: 20px;
}

.nch-dropdown__icon > img {
  vertical-align: unset;
}

.nch-dropdown:is(.nch-dropdown__selected) .nch-dropdown__icon__normal {
  display: none;
}

.nch-dropdown:not(.nch-dropdown__selected) .nch-dropdown__icon__selected {
  display: none;
}

.nch-dropdown__arrow {
  width: 24px;
  height: 24px;
  margin-left: 5px;
}

.nch-dropdown__pinned-items {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  flex-direction: row;
  overflow-x: auto;
  width: 100%;
  scrollbar-width: none;
  padding-right: 20px;
  transition: opacity 0.3s ease;
}

.nch-dropdown__pinned-items:empty {
  opacity: 0;
}

.nch-dropdown__pinned-items .nch-dropdown__link {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nch-dropdown__pinned-items .nch-dropdown__link[data-selected="1"] {
  transform: scale(0.95);
  opacity: 0.7;
}

.nch-dropdown__pinned-items .nch-dropdown__link[data-pinned="1"] {
  display: flex;
  padding: 6px 12px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);

  color: var(--7A8E96, #7A8E96);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 200% */
  text-transform: uppercase;
}

.nch-dropdown__link, .nch-dropdown__link:hover, .nch-dropdown__link:active, .nch-dropdown__link:focus {
  text-decoration: none;
}

.nch-dropdown__link-text {
  white-space: nowrap;
}

.nch-dropdown__link-icon {
  width: 24px;
  height: 16px;
}

.nch-modal__subtitle {
  color: var(--7A8E96, #7A8E96);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  margin-top: 20px;
  margin-bottom: 12px;
  transition: opacity 0.3s ease;
}

.nch-modal__search > input {
  display: flex;
  width: 100%;
  padding: 12px 20px 12px calc(20px + 24px + 20px);
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: url('/img/search-field-icon.svg') no-repeat center left 20px, rgba(255, 255, 255, 0.05);

  overflow: hidden;

  color: var(--White, #FFF);
  text-overflow: ellipsis;
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;

  &::placeholder {
    color: var(--7A8E96, #7A8E96);
    text-overflow: ellipsis;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
  }
}

.nch-modal__title {
  display: flex;
  height: 24px;
  flex-direction: row;
  justify-content: center;
  flex: 0 0 auto;
  gap: 20px;
  position: relative;

  overflow: hidden;
  color: var(--White, #FFF);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Barlow;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;

  margin: 24px 20px 30px 20px;
}

.nch-modal__title-back {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  width: 24px;
  height: 24px;
}

.nch-modal__body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  /* Create space for the footer */
  margin-bottom: 88px; /* Footer height (48px) + footer padding (40px) */
  padding-bottom: 20px;
  max-height: 80dvh;
}

.nch-modal__body::-webkit-scrollbar {
  width: 6px;
}

.nch-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.nch-modal__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.nch-modal__body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Gradient overlay at bottom when content overflows */
.nch-modal__body::after {
  content: '';
  position: fixed;
  bottom: 88px; /* Above the footer */
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent 0%, rgba(5, 35, 48, 0.8) 60%, var(--Dark, #052330) 100%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10001;
}

/* Show gradient when content is scrollable */
.nch-modal__body.has-overflow::after {
  opacity: 1;
}

.nch-modal__footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0 20px 40px 20px;
  background: var(--Dark, #052330);
  z-index: 10002;
}

.nch-modal__footer .btn {
  font-weight: 500;
  font-family: Inter;
  height: 48px;
  font-size: 12px;
}

.nch-dropdown__item {
  display: flex;
  width: 100%;
  flex: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nch-dropdown__item:not([style*="display: none"]) {
  opacity: 1;
  transform: translateY(0);
}

.nch-dropdown__item[style*="display: none"] {
  opacity: 0;
  transform: translateY(-10px);
}

.nch-dropdown__items {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
}

.nch-dropdown__items .nch-dropdown__link {
  display: flex;
  padding: 12px;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  flex: 1;

  &[data-selected="1"], &:hover {
    border-radius: 8px;
    background: var(--Dark-2, #1A3947);
  }
}

.nch-dropdown__items .nch-dropdown__link .nch-dropdown__link-text {
  color: var(--White, #FFF);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nch-dropdown__items .nch-dropdown__link .nch-dropdown__link-sub-text {
  color: var(--7A8E96, #7A8E96);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin-top: 1px;
}

:is(.nch-dropdown__pinned-items, .nch-dropdown__items) .nch-dropdown__link:not([data-selected="1"]) .nch-dropdown__link-selected {
  display: none;
}

:is(.nch-dropdown__pinned-items, .nch-dropdown__items) .nch-dropdown__link[data-selected="1"] .nch-dropdown__link-selected {
  width: 24px;
  height: 24px;
  margin-left: auto;
}

:is(.nch-dropdown__pinned-items, .nch-dropdown__items) .nch-dropdown__link[data-selected="1"] .nch-dropdown__link-selected > svg {
  vertical-align: unset;
}

.nch-dropdown__items.nch-dropdown__selected {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--Dark-2, #1A3947);
  margin-bottom: calc(-1 * (20px - 12px));
}

.nvh-modal-m, .nvh-modal-ml {
  --ml: 20px;
  margin-left: 20px;
}

.nvh-modal-m, .nvh-modal-mr {
  --mr: 20px;
  margin-right: 20px;
}

.nvh-modal-m, .nvh-modal-mr, .nvh-modal-ml {
  width: calc(100% - var(--ml, 0px) - var(--mr, 0px));
}

.nch-dropdown__selection {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nch-dropdown__selection-count {
  display: none;
  min-width: 20px;
  height: 20px;
  background: #6FB622;
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 20px;
}

.nch-dropdown__selected .nch-dropdown__selection-count:not(:empty) {
  display: block;
}

/* Empty state for search */
.nch-dropdown__no-results {
  display: flex;
  padding: 20px;
  justify-content: center;
  align-items: center;
  color: var(--7A8E96, #7A8E96);
  font-family: Inter;
  font-size: 14px;
  font-style: italic;
}

/* Hide arrow when there are selections */
.nch-dropdown--has-selections .nch-dropdown__arrow {
  display: none;
}

/* Base state - hidden by default */
.nch-dropdown--animating {
  display: none;
}

/* Opening state - make visible and position off-screen */
.nch-dropdown--opening {
  display: block !important;
  position: absolute !important;
  width: 100% !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  transform: translateX(-100%) !important;
  transition: none !important;
  z-index: 10000 !important;
  border-radius: 8px !important;
  background: var(--Dark, #052330) !important;
  fill: var(--Dark, #052330) !important;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)) !important;
  flex-direction: column !important;
}

/* Slide in animation */
.nch-dropdown--slide-in {
  transform: translateX(0) !important;
  transition: transform 0.3s ease-out !important;
}

/* Open state - visible and in position */
.nch-dropdown--open {
  display: block !important;
  position: absolute !important;
  width: 100% !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  transform: translateX(0) !important;
  z-index: 10000 !important;
  border-radius: 8px !important;
  background: var(--Dark, #052330) !important;
  fill: var(--Dark, #052330) !important;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)) !important;
  flex-direction: column !important;
}

/* Closing state - start slide out animation */
.nch-dropdown--closing {
  display: block !important;
  position: absolute !important;
  width: 100% !important;
  left: 0 !important;
  top: 0 !important;
  height: 100% !important;
  transition: transform 0.2s ease-in !important;
  z-index: 10000 !important;
  border-radius: 8px !important;
  background: var(--Dark, #052330) !important;
  fill: var(--Dark, #052330) !important;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25)) !important;
  flex-direction: column !important;
}

/* Slide out animation */
.nch-dropdown--slide-out {
  transform: translateX(-100%) !important;
}