.wrap {
  position: relative;
}

.button {
  display: inline-flex;
  min-width: 4.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border-radius: 999px;
  padding: 0.375rem 0.625rem;
  font-size: 11px;
  font-weight: 600;
  color: #44403c;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.button:hover {
  background: #f5f5f4;
}

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

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

@media (min-width: 640px) {
  .button {
    min-width: 5.25rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

.chevron {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.15s;
}

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

.menu {
  position: absolute;
  top: 100%;
  z-index: 30;
  margin-top: 0.5rem;
  width: 12rem;
  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);
  left: 0;
}

@media (min-width: 640px) {
  .menu {
    left: auto;
    right: 0;
  }
}

: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;
  gap: 0.75rem;
  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;
}
