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

  position: relative !important;
  display: inline-block !important;
}

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

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

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

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

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

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

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

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

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

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