/* ============================================================
   Oganiko Select — og-select
   Canonical component · OS-000 Select (single-choice dropdown)
   Source of truth: OS-000-Design-System/components/select/select.css
   ------------------------------------------------------------
   Native <select> restyled with ODS tokens. Assimilated from
   Origin UI / shadcn Select inspiration — closed-state intent only;
   open list remains the platform native UI in v0.
   Token names only; fallbacks repeat tokens/*.css values so the
   file works in the static catalogue. Do not invent new token values.
   version: 0.1.0 (2026-09-22) · maturity: experimental
   ------------------------------------------------------------
   Markup:
     <div class="og-select og-select--md">
       <label class="og-select__label" for="delivery-day">Delivery day</label>
       <div class="og-select__control">
         <select id="delivery-day" class="og-select__native">…</select>
         <span class="og-select__chevron" aria-hidden="true">…</span>
       </div>
     </div>
   ============================================================ */

.og-select {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2, 0.5rem);
  font-family: var(--font-primary, 'Open Sans', 'Helvetica Neue', Arial, sans-serif);
  color: var(--color-text, #000000);
  max-width: 100%;
}

.og-select__label {
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--weight-semibold, 600);
  line-height: var(--leading-snug, 1.25);
  color: var(--color-text, #000000);
}

.og-select__control {
  position: relative;
  display: block;
}

.og-select__native {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  font-family: inherit;
  font-weight: var(--weight-regular, 400);
  line-height: var(--leading-normal, 1.5);
  color: var(--color-text, #000000);
  background-color: var(--color-bg, #ffffff);
  border: 1px solid var(--color-border, #e0e0e0);
  border-radius: var(--radius-md, 8px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
  cursor: pointer;
  transition:
    border-color var(--transition-fast, 150ms ease),
    box-shadow var(--transition-fast, 150ms ease);
}

.og-select--sm .og-select__native {
  padding: var(--spacing-2, 0.5rem) var(--spacing-10, 2.5rem) var(--spacing-2, 0.5rem)
    var(--spacing-3, 0.75rem);
  font-size: var(--text-sm, 0.875rem);
}

.og-select--md .og-select__native,
.og-select:not(.og-select--sm):not(.og-select--lg) .og-select__native {
  padding: var(--spacing-3, 0.75rem) var(--spacing-10, 2.5rem) var(--spacing-3, 0.75rem)
    var(--spacing-4, 1rem);
  font-size: var(--text-sm, 0.875rem);
}

.og-select--lg .og-select__native {
  padding: var(--spacing-4, 1rem) var(--spacing-12, 3rem) var(--spacing-4, 1rem)
    var(--spacing-5, 1.25rem);
  font-size: var(--text-base, 1rem);
  border-radius: var(--radius-lg, 12px);
}

.og-select__native:hover:not(:disabled) {
  border-color: var(--color-text-secondary, #333333);
}

.og-select__native:focus-visible {
  outline: 2px solid var(--color-border-focus, #34c755);
  outline-offset: 2px;
  border-color: var(--color-border-focus, #34c755);
}

.og-select__native:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: var(--color-bg-muted, #f5f5f3);
}

.og-select--quiet .og-select__native {
  background-color: var(--color-bg-muted, #f5f5f3);
  box-shadow: none;
}

.og-select--invalid .og-select__native,
.og-select__native[aria-invalid='true'] {
  border-color: var(--color-error, #e53e3e);
}

.og-select__chevron {
  position: absolute;
  top: 50%;
  right: var(--spacing-3, 0.75rem);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--color-text-secondary, #333333);
  pointer-events: none;
}

.og-select__chevron svg,
.og-select__chevron iconify-icon {
  width: 24px;
  height: 24px;
  font-size: 24px;
  color: currentColor;
}

.og-select__hint,
.og-select__error {
  font-size: var(--text-sm, 0.875rem);
  line-height: var(--leading-normal, 1.5);
}

.og-select__hint {
  color: var(--color-text-secondary, #333333);
}

.og-select__error {
  color: var(--color-error, #e53e3e);
}

@media (prefers-reduced-motion: reduce) {
  .og-select__native {
    transition: none;
  }
}
