/* Currency switcher root */
.currency-switcher {
  --cs-radius: 999px;
  --cs-bg: #ffffff;
  --cs-border: #d3d3d3;
  --cs-hover: #e6f7ec;
  --cs-text-main: #191a1a;
  --cs-text-sub: rgba(25, 26, 26, 0.5);

  position: relative;
  display: inline-block;
}

/* Main pill button */
.currency-switcher-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 160px;
  padding: 13px 24px;
  border-radius: var(--cs-radius);
  border: none;
  background: var(--cs-bg);
  box-shadow: inset 0 0 0 1px var(--cs-border);
  text-align: left;
  cursor: pointer;
  font-family:
    "Test Founders Grotesk",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  transition:
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.currency-switcher-toggle:hover,
.currency-switcher-toggle[aria-expanded="true"] {
  background: var(--cs-hover);
}

/* Labels inside pill */
.currency-switcher .cs-label {
  font-size: 12px;
  color: var(--cs-text-sub);
}

.currency-switcher .cs-value {
  font-size: 14px;
  color: var(--cs-text-main);
}

/* Popover with options */
.currency-switcher-popover {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  min-width: 160px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px var(--cs-border);
  padding: 6px;
  z-index: 20;
}

/* Option buttons */
.currency-switcher-popover .cs-option {
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
  color: var(--cs-text-main);
  font-family:
    "Test Founders Grotesk",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  transition: background-color 0.2s ease;
}

.currency-switcher-popover .cs-option:hover {
  background: var(--cs-hover);
}

/* Simple mobile tweak */
@media (max-width: 767px) {
  .currency-switcher {
    width: 100%;
  }

  .currency-switcher-toggle {
    width: 100%;
    min-width: auto;
    padding: 10px 18px;
  }

  .currency-switcher-popover {
    min-width: 100%;
  }
}
