/* ── RadioGroup layout ────────────────────────────────────────────────────── */

.group {
  display: flex;
}

.vertical {
  flex-direction: column;
  gap: 8px;
}

.horizontal {
  flex-direction: row;
  gap: 16px;
}

/* ── RadioItem wrapper ────────────────────────────────────────────────────── */

.wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.wrapperDisabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ── Hidden native input ──────────────────────────────────────────────────── */

.input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

/* ── Custom circle ────────────────────────────────────────────────────────── */

.circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--bg-raised);
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

/* Inner dot when checked */
.circle::after {
  content: '';
  display: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.input:checked + .circle {
  border-color: var(--amber);
  background: var(--bg-raised);
}

.input:checked + .circle::after {
  display: block;
}

.input:focus-visible + .circle {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-bg);
}

.input:disabled + .circle {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Label ────────────────────────────────────────────────────────────────── */

.label {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-primary);
}
