.wrap {
  position: relative;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.button:hover {
  background: #f5f5f4;
}

:global(html[data-theme='dark']) .button:hover {
  background: rgb(30 58 138 / 0.4);
}

@media (min-width: 640px) {
  .button {
    padding: 0.375rem 0.625rem;
  }
}

.label {
  border-radius: 999px;
  background: #1e3a8a;
  padding: 0.25rem 0.75rem;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}

:global(html[data-theme='dark']) .label {
  background: #fb923c;
}

@media (min-width: 640px) {
  .label {
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
  }
}

.chevron {
  width: 0.875rem;
  height: 0.875rem;
  color: #78716c;
  transition: transform 0.15s;
}

:global(html[data-theme='dark']) .chevron {
  color: #a8a29e;
}

.chevronOpen {
  transform: rotate(180deg);
}

.menu {
  position: absolute;
  top: 100%;
  z-index: 30;
  right: 0;
  margin-top: 0.5rem;
  width: 11rem;
  max-width: calc(100vw - 2rem);
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e7e5e4;
  background: rgb(255 255 255 / 0.95);
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(16px);
}

:global(html[data-theme='dark']) .menu {
  border-color: #1e3a8a;
  background: rgb(23 37 84 / 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.option {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #44403c;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.option:hover {
  background: #f5f5f4;
  color: #1e3a8a;
}

:global(html[data-theme='dark']) .option {
  color: #e7e5e4;
}

:global(html[data-theme='dark']) .option:hover {
  background: rgb(30 58 138 / 0.4);
  color: #fff;
}
