@tailwind components;
@tailwind utilities;

.b3-wvs-legacy-select-native {
  display: none !important;
}

.b3-wvs-legacy-select {
  position: relative;
  width: 100%;
  min-width: 0;
  --b3-wvs-select-accent: var(--wp-admin-theme-color, #2271b1);
}

.b3-wvs-legacy-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #ffffff;
  color: #1d2327;
  cursor: pointer;
  font: inherit;
  line-height: 1.4;
  text-align: left;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.b3-wvs-legacy-select-trigger:hover {
  border-color: #646970;
}

.b3-wvs-legacy-select-trigger:focus,
.b3-wvs-legacy-select-trigger:focus-visible {
  outline: none;
  border-color: var(--b3-wvs-select-accent);
  box-shadow: 0 0 0 1px var(--b3-wvs-select-accent);
}

.b3-wvs-legacy-select.is-open .b3-wvs-legacy-select-trigger {
  border-color: var(--b3-wvs-select-accent);
  box-shadow: 0 0 0 1px var(--b3-wvs-select-accent);
}

.b3-wvs-legacy-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b3-wvs-legacy-select-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #646970;
  transition: transform 0.2s ease;
}

.b3-wvs-legacy-select.is-open .b3-wvs-legacy-select-chevron {
  transform: rotate(180deg);
}

.b3-wvs-legacy-select-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 240px;
  margin: 0;
  padding: 4px;
  list-style: none;
  overflow: auto;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.b3-wvs-legacy-select.is-open .b3-wvs-legacy-select-menu {
  display: block;
}

.b3-wvs-legacy-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  color: #1d2327;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}

.b3-wvs-legacy-select-option.is-focused {
  background: #f0f6fc;
}

.b3-wvs-legacy-select-option.is-selected {
  color: var(--b3-wvs-select-accent);
  font-weight: 600;
}

.b3-wvs-legacy-select-option.is-selected.is-focused {
  background: color-mix(in srgb, var(--b3-wvs-select-accent) 10%, #ffffff);
}

.b3-wvs-legacy-select-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--b3-wvs-select-accent);
}
