/* All styling is scoped; each concept may override the inherited --select-* tokens. */
.ibiza-select {
  --ibiza-select-ready: 1;
  position: relative;
  display: block;
  min-width: 0;
  width: 100%;
  font: inherit;
  color: var(--select-color, #243a32);
}
.ibiza-select > .ibiza-select__native,
.ibiza-select > .ibiza-select__label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  border: 0 !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  pointer-events: none;
}
/* Replace an existing native-select caret, including C's select-control wrapper. */
.ibiza-select > svg { display: none; }
.ibiza-select .ibiza-select__control {
  appearance: none;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: max(44px, var(--select-height, 48px));
  margin: 0;
  padding: 10px var(--select-padding-x, 14px);
  border: 1px solid var(--select-border, #777f79);
  border-radius: var(--select-radius, 0);
  background: var(--select-bg, #fff);
  color: var(--select-color, #243a32);
  font: inherit;
  font-size: var(--select-font-size, 16px);
  font-weight: var(--select-font-weight, 400);
  line-height: 1.4;
  letter-spacing: normal;
  text-align: start;
  text-transform: none;
  cursor: pointer;
  box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.ibiza-select .ibiza-select__value { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ibiza-select .ibiza-select__arrow { display: inline-flex; flex: 0 0 auto; pointer-events: none; }
.ibiza-select .ibiza-select__arrow svg { position: static; width: 18px; height: 18px; margin: 0; transform: none; fill: currentColor; }
.ibiza-select .ibiza-select__control:hover:not(:disabled) { border-color: var(--select-hover-border, #354d42); background: var(--select-hover-bg, var(--select-bg, #fff)); }
.ibiza-select .ibiza-select__control:focus-visible { outline: 2px solid var(--select-focus, #315b4a); outline-offset: 3px; }
.ibiza-select .ibiza-select__control:disabled { opacity: 1; color: var(--select-disabled-color, #626962); background: var(--select-disabled-bg, #e9ebe7); cursor: not-allowed; }
.ibiza-select .ibiza-select__control[aria-invalid="true"] { border-color: var(--select-error, #9a3030); }
.ibiza-select .ibiza-select__list {
  box-sizing: border-box;
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 4px;
  max-width: calc(100vw - 16px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid var(--select-border, #777f79);
  border-radius: var(--select-radius, 0);
  background: var(--select-popup-bg, var(--select-bg, #fff));
  color: var(--select-color, #243a32);
  font: inherit;
  font-size: var(--select-font-size, 16px);
  font-weight: var(--select-font-weight, 400);
  line-height: 1.4;
  letter-spacing: normal;
  text-align: start;
  text-transform: none;
  box-shadow: 0 8px 24px rgb(0 0 0 / 12%);
}
.ibiza-select .ibiza-select__list::backdrop { background: transparent; pointer-events: none; }
.ibiza-select .ibiza-select__option {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px;
  border-inline-start: 3px solid transparent;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.ibiza-select .ibiza-select__option[hidden] { display: none; }
.ibiza-select .ibiza-select__option[aria-selected="true"] { border-inline-start-color: currentColor; font-weight: 600; }
.ibiza-select .ibiza-select__option--active { color: var(--select-active-color, #fff); background: var(--select-active-bg, #304c40); }
.ibiza-select .ibiza-select__option[aria-disabled="true"] { color: var(--select-disabled-color, #626962); cursor: not-allowed; }
.ibiza-select .ibiza-select__group { padding: 10px 13px 4px; font-size: .85em; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .ibiza-select .ibiza-select__control { transition: none; }
}
@media (forced-colors: active) {
  .ibiza-select .ibiza-select__control,
  .ibiza-select .ibiza-select__list { border-color: ButtonText; color: ButtonText; background: Canvas; }
  .ibiza-select .ibiza-select__control:focus-visible { outline-color: Highlight; }
  .ibiza-select .ibiza-select__option--active { forced-color-adjust: none; color: HighlightText; background: Highlight; }
  .ibiza-select .ibiza-select__option[aria-disabled="true"],
  .ibiza-select .ibiza-select__control:disabled { color: GrayText; }
}
