/* cignyl-sftp 20260824 */
/* ------------------------------ */
/* v2 Radio (native input)        */
/* ------------------------------ */

.v2-theme .v2-radio-field {
  display: inline-flex;
  align-items: center;
  gap: var(--v2-space-sm);
  vertical-align: middle;
}

.v2-theme .v2-radio__label {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: hsl(var(--foreground));
  user-select: none;
}

.v2-theme .v2-radio-field--label-clickable-true .v2-radio__label {
  cursor: pointer;
}

.v2-theme .v2-radio-field--disabled-true .v2-radio__label {
  opacity: 0.7;
  cursor: default;
}

.v2-theme .v2-radio {
  --v2-radio-size: 1.125rem; /* default */
  --v2-radio-dot: 0.6875rem; /* default (11px @ 16px root) */
  --v2-radio-accent: hsl(var(--primary));
  position: relative;
  width: var(--v2-radio-size);
  height: var(--v2-radio-size);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
}

/* sizes */
.v2-theme .v2-radio--size-xsm { --v2-radio-size: 0.875rem; --v2-radio-dot: 0.5rem; }      /* 14px / 8px */
.v2-theme .v2-radio--size-sm { --v2-radio-size: 1rem; --v2-radio-dot: 0.5625rem; }        /* 16px / 9px */
.v2-theme .v2-radio--size-default { --v2-radio-size: 1.125rem; --v2-radio-dot: 0.6875rem; } /* 18px / 11px */
.v2-theme .v2-radio--size-lg { --v2-radio-size: 1.25rem; --v2-radio-dot: 0.75rem; }       /* 20px / 12px */
.v2-theme .v2-radio--size-xlg { --v2-radio-size: 1.375rem; --v2-radio-dot: 0.8125rem; }   /* 22px / 13px */

/* variants (accent drives border + dot when checked) */
.v2-theme .v2-radio--variant-default { --v2-radio-accent: hsl(var(--primary)); }
.v2-theme .v2-radio--variant-secondary { --v2-radio-accent: hsl(var(--secondary-foreground)); }
.v2-theme .v2-radio--variant-destructive { --v2-radio-accent: hsl(var(--destructive)); }
.v2-theme .v2-radio--variant-success { --v2-radio-accent: hsl(var(--success)); }
.v2-theme .v2-radio--variant-warning { --v2-radio-accent: hsl(var(--warning)); }
.v2-theme .v2-radio--variant-info { --v2-radio-accent: hsl(var(--info)); }

.v2-theme .v2-radio__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.v2-theme .v2-radio__circle {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative; /* anchor dot centering */
  border-radius: 9999px;
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.v2-theme .v2-radio__dot {
  /* Use absolute centering to avoid “off-by-a-pixel” drift. */
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--v2-radio-dot);
  height: var(--v2-radio-dot);
  display: block;
  border-radius: 9999px;
  background-color: var(--v2-radio-accent);
  transform: translate3d(-50%, -50%, 0) scale(0);
  transform-origin: center;
  transition: transform 120ms ease;
}

.v2-theme .v2-radio__input:focus-visible + .v2-radio__circle {
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.v2-theme .v2-radio--disabled-true {
  opacity: 0.5;
  pointer-events: none;
}

/* checked visual state */
.v2-theme .v2-radio--checked-true .v2-radio__circle {
  border-color: var(--v2-radio-accent);
}

.v2-theme .v2-radio--checked-true .v2-radio__dot {
  transform: translate3d(-50%, -50%, 0) scale(1);
}

