.footer-currency {
  list-style: none;
}

.footer-currency__trigger {
  font-family: var(--font-inter-tight, inherit);
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
  color: color-mix(in srgb, var(--color-primary-50, #fff) 50%, transparent);
  transition: color 0.3s ease;
}

.footer-currency__trigger:hover,
.footer-currency__trigger:focus-visible {
  color: var(--color-primary-50, #fff);
  outline: none;
}

.footer-currency__symbol {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: color-mix(in srgb, #fff 10%, transparent);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1;
}

.footer-currency__menu {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 0.5rem);
  z-index: 9999;
  box-sizing: border-box;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  border-radius: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--color-stroke-3, #ccc) 30%, transparent);
  background-color: var(--color-background-6, #1a1a1a);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(50%) scale(0.95);
  transform-origin: bottom center;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.footer-currency[data-open='true'] .footer-currency__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(50%) scale(1);
}

.footer-currency__option {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-currency__link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.25rem;
  color: color-mix(in srgb, #fff 60%, transparent);
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.footer-currency__link:hover,
.footer-currency__link:focus-visible {
  color: #fff;
  background-color: color-mix(in srgb, #fff 5%, transparent);
  outline: none;
}

.footer-currency__link[aria-selected='true'] {
  font-weight: 500;
  color: #fff;
}

.footer-currency__code {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.65;
}
