/* Compact type choices in the native WooCommerce product summary.
   GBB's existing Poppins UI is preserved; CSS only, no product data changes. */
:root {
  --gy-type-bg: oklch(97% 0.008 75);
  --gy-type-surface: oklch(99% 0.004 75);
  --gy-type-fg: oklch(22% 0.012 65);
  --gy-type-muted: oklch(42% 0.012 65);
  --gy-type-border: oklch(74% 0.012 75);
  --gy-type-accent: oklch(32% 0.014 65);
  --gy-type-space-xs: 8px;
  --gy-type-space-sm: 12px;
  --gy-type-space-md: 16px;
  --gy-type-text-sm: 13px;
  --gy-type-text-base: 16px;
}
.gbb-type-selector {
  container-type: inline-size;
  margin: 0 0 var(--gy-type-space-md);
  padding: var(--gy-type-space-md);
  border: 1px solid var(--gy-type-border);
  border-radius: 8px;
  background: var(--gy-type-bg);
}
.gbb-type-step {
  margin: 0 0 var(--gy-type-space-sm);
  color: var(--gy-type-fg);
  font: 700 var(--gy-type-text-base)/1.5 Poppins, sans-serif;
}
.gbb-type-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gy-type-space-xs);
  width: 100%;
  max-width: 480px;
}
.gbb-type-selector .gbb-type-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 40px;
  padding: var(--gy-type-space-xs) var(--gy-type-space-sm);
  border: 1px solid var(--gy-type-border);
  border-radius: 4px;
  background: var(--gy-type-surface);
  color: var(--gy-type-fg) !important;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  font: 600 var(--gy-type-text-sm)/1.35 Poppins, sans-serif;
  transition: background 150ms cubic-bezier(.4, 0, .2, 1), border-color 150ms cubic-bezier(.4, 0, .2, 1), transform 150ms cubic-bezier(.4, 0, .2, 1);
}
.gbb-type-selector .gbb-type-option:hover {
  border-color: var(--gy-type-accent);
  background: var(--gy-type-bg);
}
.gbb-type-selector .gbb-type-option:focus-visible {
  outline: 2px solid var(--gy-type-accent);
  outline-offset: 2px;
}
.gbb-type-selector .gbb-type-option:active { transform: scale(.98); }
.gbb-type-selector .gbb-type-option.is-active {
  border-color: var(--gy-type-accent);
  background: var(--gy-type-accent);
  color: var(--gy-type-surface) !important;
}
.gbb-type-selector .gbb-type-option.is-active:hover { background: var(--gy-type-fg); }
.gbb-type-selector.is-loading { opacity: .65; pointer-events: none; }
.gbb-type-selector [aria-current=true] { cursor: default; }
.gbb-type-selector [aria-disabled=true] { opacity: .55; pointer-events: none; }
.gbb-type-error { margin: var(--gy-type-space-xs) 0 0; color: var(--gy-type-accent); font-size: var(--gy-type-text-sm); }
@container (max-width: 440px) {
  .gbb-type-options { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 360px; }
}
@container (max-width: 290px) {
  .gbb-type-options { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .gbb-type-selector .gbb-type-option { transition: none; }
}
