/**
 * STYLE-004: SizePicker styles
 * All colors via design tokens.
 */

.SizePicker {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1, 4px);
  width: 100%;
}

.SizePicker-label {
  font-size: var(--font-size-xsmall, 11px);
  font-weight: 500;
  color: var(--theme-color-fg-default-shy);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  user-select: none;
}

// Segmented control group
.SizePicker-group {
  display: flex;
  gap: 2px;
  background: var(--theme-color-bg-3);
  border: 1px solid var(--theme-color-border-default);
  border-radius: var(--border-radius-small, 4px);
  padding: 2px;
}

.SizePicker-option {
  flex: 1;
  padding: var(--spacing-1, 4px) 0;
  background: transparent;
  color: var(--theme-color-fg-default-shy);
  border: none;
  border-radius: 2px;
  font-size: var(--font-size-xsmall, 11px);
  font-weight: 500;
  cursor: pointer;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  transition: background 80ms ease, color 80ms ease;

  &:hover:not(:disabled) {
    background: var(--theme-color-bg-2);
    color: var(--theme-color-fg-default);
  }

  &:focus-visible {
    outline: 2px solid var(--theme-color-primary);
    outline-offset: -1px;
  }

  &:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  &--active {
    background: var(--theme-color-bg-2);
    color: var(--theme-color-fg-highlight);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);

    &:hover {
      background: var(--theme-color-bg-2);
    }
  }
}
