/* ===== DROPDOWN WRAPPER ===== */
.currency-dropdown-wrapper {
  position: relative;
}

/* ===== TRIGGER BUTTON ===== */
.currency-switch-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.currency-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(45deg, #42307d 0%, #7f56d9 100%);
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
  border: none;
  font-size: 14px;
  color: white;
  cursor: pointer;
  min-width: 220px;
  text-align: left;
}
.currency-dropdown-btn:hover {
  opacity: 0.9;
}

.currency-dropdown-btn .currency-text {
  flex: 1;
  text-transform: capitalize;
}
.currency-dropdown-btn .dropdown-arrow {
  width: 16px;
  height: 16px;
  color: white;
  transition: transform 0.2s;
}
.currency-dropdown-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.currency-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 280px;
  max-height: 320px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}
.currency-dropdown-menu.active {
  display: block;
}

/* ===== SEARCH INPUT ===== */
.currency-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
#currencySearchInput {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 13px;
  color: #333;
  background: #f9f9f9;
  outline: none;
}
#currencySearchInput:focus {
  border-color: #aaa;
  background: #fff;
}

/* ===== OPTIONS ===== */
.currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  color: #333;
}
.currency-option:hover {
  background: #f5f5f5;
}
.currency-option.active {
  background: #e8f0fe;
  color: #1a56db;
}
.currency-option .option-content {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.currency-option .option-code {
  font-weight: 500;
  font-size: 13px;
}
.currency-option .option-name {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
}
.currency-option.active .option-name {
  color: #1a56db;
}

/* ===== NO RESULTS ===== */
.currency-no-results {
  padding: 12px;
  text-align: center;
  color: #999;
  font-size: 13px;
}
