.radio,
.checkbox {
  border-color: var(--color-interactive-secondary);
}
.radio > label,
.checkbox > label {
  position: relative;
  padding-inline-start: 48px;
}
.radio > label input[type="radio"],
.checkbox > label input[type="radio"],
.radio > label input[type="checkbox"],
.checkbox > label input[type="checkbox"] {
  display: block;
  position: absolute;
  inset-block-start: 13px;
  inset-inline-start: 40px;
}
.tw-checkbox-button {
  border: 1px solid var(--color-interactive-secondary);
  background: var(--color-background-screen);
  inline-size: 22px;
  block-size: 22px;
  border-radius: 3px;
  display: inline-block;
  padding: 0;
  vertical-align: middle;
  text-align: center;
  transition: border 0.15s ease-in-out, background-color 0.15s ease-in-out;
}
.np-theme-personal .tw-checkbox-button {
  border: none;
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
}
.tw-checkbox-button .tw-checkbox-check,
.tw-checkbox-button .np-tw-checkbox-indeterminate {
  inline-size: 20px;
  block-size: 20px;
  margin: 0;
  display: none;
  color: var(--color-background-screen);
}
.tw-checkbox-button:not(.disabled):not(:disabled):hover,
input[type="checkbox"]:hover + .tw-checkbox-button,
.checkbox:hover .tw-checkbox-button {
  border-color: var(--color-interactive-secondary-hover);
}
.np-theme-personal .tw-checkbox-button:not(.disabled):not(:disabled):hover,
.np-theme-personal input[type="checkbox"]:hover + .tw-checkbox-button,
.np-theme-personal .checkbox:hover .tw-checkbox-button {
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary-hover);
}
.tw-checkbox-button:not(.disabled):not(:disabled):focus,
.tw-checkbox-button:not(.disabled):not(:disabled).focus,
.tw-checkbox-button:not(.disabled):not(:disabled):focus:hover,
.tw-checkbox-button:not(.disabled):not(:disabled).focus:hover,
input[type="checkbox"]:focus + .tw-checkbox-button,
.tw-checkbox-button:not(.disabled):not(:disabled):active,
.tw-checkbox-button:not(.disabled):not(:disabled).active,
input[type="checkbox"]:active + .tw-checkbox-button {
  border-color: var(--color-interactive-secondary);
  outline: none;
}
input[type="checkbox"]:focus-visible + .tw-checkbox-button {
  outline: var(--ring-outline-color) solid var(--ring-outline-width);
  outline-offset: var(--ring-outline-offset);
}
.checkbox input[type="checkbox"]:focus-visible + .tw-checkbox-button {
  outline: none;
}
.tw-checkbox-button:checked,
.tw-checkbox-button.checked,
input[type="checkbox"]:checked + .tw-checkbox-button,
input[type="checkbox"]:indeterminate + .tw-checkbox-button {
  border-color: var(--color-interactive-accent) !important;
  background-color: var(--color-interactive-accent);
}
.np-theme-personal .tw-checkbox-button:checked,
.np-theme-personal .tw-checkbox-button.checked,
.np-theme-personal input[type="checkbox"]:checked + .tw-checkbox-button,
.np-theme-personal input[type="checkbox"]:indeterminate + .tw-checkbox-button {
  background-color: var(--color-interactive-primary);
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
}
.tw-checkbox-button:checked .tw-checkbox-check,
.tw-checkbox-button.checked .tw-checkbox-check,
input[type="checkbox"]:checked + .tw-checkbox-button .tw-checkbox-check {
  display: inline-block;
}
input[type="checkbox"]:indeterminate + .tw-checkbox-button .np-tw-checkbox-indeterminate {
  display: inline-block;
}
.tw-checkbox-button:checked:hover,
.tw-checkbox-button.checked:hover,
input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:hover + .tw-checkbox-button {
  border-color: var(--color-interactive-accent-hover) !important;
  background-color: var(--color-interactive-accent-hover);
}
.np-theme-personal .tw-checkbox-button:checked:hover,
.np-theme-personal .tw-checkbox-button.checked:hover,
.np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
.np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:hover + .tw-checkbox-button {
  border-color: var(--color-interactive-primary-hover) !important;
  background-color: var(--color-interactive-primary-hover);
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary-hover);
}
.tw-checkbox-button:checked:active,
.tw-checkbox-button.checked:active,
input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-checkbox-button {
  border-color: var(--color-interactive-accent-active) !important;
  background-color: var(--color-interactive-accent-active);
}
.np-theme-personal .tw-checkbox-button:checked:active,
.np-theme-personal .tw-checkbox-button.checked:active,
.np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
.np-theme-personal input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate:active + .tw-checkbox-button {
  border-color: var(--color-interactive-primary-active) !important;
  background-color: var(--color-interactive-primary-active);
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary-active);
}
.checkbox.has-error .tw-checkbox-button,
.tw-checkbox-button.has-error {
  border-color: var(--color-interactive-negative) !important;
}
.checkbox.has-error .tw-checkbox-button:checked,
.tw-checkbox-button.has-error:checked,
.checkbox.has-error .tw-checkbox-button.checked,
.tw-checkbox-button.has-error.checked {
  background-color: var(--color-interactive-negative);
}
.checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked + .tw-checkbox-button,
.checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate + .tw-checkbox-button {
  border-color: var(--color-interactive-negative) !important;
  background-color: var(--color-interactive-negative);
}
.checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:hover + .tw-checkbox-button,
.checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:indeterminate + .tw-checkbox-button {
  border-color: var(--color-interactive-negative-hover) !important;
  background-color: var(--color-interactive-negative-hover);
}
.checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):checked:active + .tw-checkbox-button,
.checkbox.has-error input[type="checkbox"]:not(.disabled):not(:disabled):indeterminate + .tw-checkbox-button {
  border-color: var(--color-interactive-negative-active) !important;
  background-color: var(--color-interactive-negative-active);
}
.tw-radio-button {
  inline-size: 24px;
  block-size: 24px;
  border-radius: 50%;
  border: 1px solid var(--color-interactive-secondary);
  background: var(--color-background-screen);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border 0.15s ease-in-out;
}
.np-theme-personal .tw-radio-button {
  border: none;
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary);
  position: relative;
  inset-block-start: 0;
  inset-inline-start: 0;
}
.tw-radio-button .tw-radio-check {
  border-radius: 50%;
  text-align: center;
  inline-size: 12px;
  block-size: 12px;
  display: block;
  opacity: 0;
  transition: all 0.15s ease-in-out;
}
.radio:not(.disabled):not(:disabled):hover .tw-radio-button,
.tw-radio-button:not(.disabled):not(:disabled):hover {
  border-color: var(--color-interactive-secondary-hover);
}
.np-theme-personal .radio:not(.disabled):not(:disabled):hover .tw-radio-button,
.np-theme-personal .tw-radio-button:not(.disabled):not(:disabled):hover {
  border-color: transparent;
  box-shadow: inset 0 0 0 1px var(--color-interactive-secondary-hover);
}
.np-theme-personal .radio:not(.disabled):not(:disabled):hover .tw-radio-button:checked,
.np-theme-personal .tw-radio-button:not(.disabled):not(:disabled):hover:checked,
.np-theme-personal .radio:not(.disabled):not(:disabled):hover .tw-radio-button.checked,
.np-theme-personal .tw-radio-button:not(.disabled):not(:disabled):hover.checked {
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
}
.np-theme-personal .radio:not(.disabled):not(:disabled):hover .tw-radio-button:checked .tw-radio-check,
.np-theme-personal .tw-radio-button:not(.disabled):not(:disabled):hover:checked .tw-radio-check,
.np-theme-personal .radio:not(.disabled):not(:disabled):hover .tw-radio-button.checked .tw-radio-check,
.np-theme-personal .tw-radio-button:not(.disabled):not(:disabled):hover.checked .tw-radio-check {
  background-color: var(--color-interactive-primary-hover);
}
.tw-radio-button:not(.disabled):not(:disabled):focus,
.tw-radio-button:not(.disabled):not(:disabled).focus,
.tw-radio-button:not(.disabled):not(:disabled):active,
.tw-radio-button:not(.disabled):not(:disabled).active {
  border-color: var(--color-interactive-secondary-active);
  outline: none;
}
.tw-radio-button:checked,
.tw-radio-button.checked {
  border-color: var(--color-interactive-accent) !important;
}
.tw-radio-button:checked .tw-radio-check,
.tw-radio-button.checked .tw-radio-check {
  opacity: 1;
  background-color: var(--color-interactive-accent);
}
.np-theme-personal .tw-radio-button:checked,
.np-theme-personal .tw-radio-button.checked {
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1px var(--color-interactive-primary);
}
.np-theme-personal .tw-radio-button:checked .tw-radio-check,
.np-theme-personal .tw-radio-button.checked .tw-radio-check {
  background-color: var(--color-interactive-primary);
  max-block-size: 12px;
  max-inline-size: 12px;
}
.radio.has-error .tw-radio-button,
.tw-radio-button.has-error {
  border-color: var(--color-interactive-negative) !important;
}
.radio.has-error .tw-radio-button:checked .tw-radio-check,
.tw-radio-button.has-error:checked .tw-radio-check,
.radio.has-error .tw-radio-button.checked .tw-radio-check,
.tw-radio-button.has-error.checked .tw-radio-check {
  background-color: var(--color-interactive-negative);
}
.radio .tw-radio-button {
  position: absolute;
  inset-inline-start: 13px;
  inset-block-start: 11px;
}
.checkbox .tw-checkbox-button {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-start: 12px;
}
.form-inline .tw-checkbox-button,
.form-inline .tw-radio-button {
  vertical-align: bottom;
}
.form-horizontal .checkbox,
.form-horizontal .radio {
  padding-block-start: 0;
}
.form-horizontal .checkbox > label,
.form-horizontal .radio > label {
  margin-block-end: 0;
}
.np-radio.radio,
.np-checkbox.checkbox {
  min-inline-size: -moz-fit-content;
  min-inline-size: fit-content;
}
.np-radio.radio .np-radio-button,
.np-checkbox.checkbox .np-radio-button,
.np-radio.radio .np-checkbox-button,
.np-checkbox.checkbox .np-checkbox-button {
  position: relative;
  flex-shrink: 0;
}
.np-radio.radio .tw-checkbox-button,
.np-checkbox.checkbox .tw-checkbox-button,
.np-radio.radio .tw-radio-button,
.np-checkbox.checkbox .tw-radio-button {
  position: static;
}
.np-radio.radio > label,
.np-checkbox.checkbox > label {
  display: flex;
  align-items: center;
  padding-block: var(--size-8);
  padding-inline: var(--size-16);
}
.np-radio.radio > label .np-checkbox__text,
.np-checkbox.checkbox > label .np-checkbox__text,
.np-radio.radio > label .np-radio__text,
.np-checkbox.checkbox > label .np-radio__text {
  display: block;
  padding-block-start: 1px;
}
:not(.np-theme-personal) .np-radio.radio > label .np-checkbox__text,
:not(.np-theme-personal) .np-checkbox.checkbox > label .np-checkbox__text,
:not(.np-theme-personal) .np-radio.radio > label .np-radio__text,
:not(.np-theme-personal) .np-checkbox.checkbox > label .np-radio__text {
  font-weight: var(--wds-font-weight-body-regular);
  font-size: var(--wds-font-size-body-large);
  line-height: var(--wds-line-height-title-subsection);
  padding-block-start: 3px;
}
.np-theme-personal .np-radio.radio > label,
.np-theme-personal .np-checkbox.checkbox > label {
  padding: var(--input-padding);
}
.np-radio .np-radio__avatar {
  pointer-events: none;
}
