:host {
  --border-interactive-default: var(--pine-border-interactive-default);
  --border-interactive-hover: var(--pine-border-interactive-hover);
  --border-radius: var(--pine-border-radius-circle);
  --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);
  --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-200);
  --color-background-checked: var(--pine-color-purple-500);
  --color-background-checked-hover: var(--pine-color-purple-600);
  --color-background-default: var(--pine-color-white);
  --color-background-disabled: var(--pine-color-grey-100);
  --color-background-hover: var(--pine-color-grey-50);
  --color-background-checked-invalid: var(--pine-color-red-500);
  --color-background-checked-invalid-hover: var(--pine-color-red-600);
  --color-border-checked-hover: var(--pine-color-purple-600);
  --color-border-disabled: var(--pine-color-grey-300);
  --color-border-invalid: var(--pine-color-red-500);
  --color-border-checked-invalid-hover: var(--pine-color-red-600);
  --color-text-invalid: var(--pine-color-red-500);
  --color-text-disabled: var(---pine-color-grey-600);
  --color-text-message-default: var(--pine-color-grey-800);
  --color-text-message-disabled: var(--pine-color-grey-500);
  --sizing-check-size: 6px;
  --sizing-input-size: 16px;
  --sizing-margin-block-start: 6px;
  align-items: center;
  display: flex;
  flex-flow: row wrap;
}

:host(.is-invalid) input {
  border-color: var(--color-border-invalid);
}
:host(.is-invalid) input:checked {
  background: var(--color-background-checked-invalid);
}
:host(.is-invalid) input:checked:hover {
  background: var(--color-background-checked-invalid-hover);
  border-color: var(--color-border-checked-invalid-hover);
}
:host(.is-invalid) input:focus-visible {
  box-shadow: var(--box-shadow-focus-error);
  outline: none;
}
:host(.is-invalid) label,
:host(.is-invalid) .pds-radio__message--error {
  color: var(--color-text-invalid);
}

input {
  appearance: none;
  border: var(--border-interactive-default);
  border-radius: var(--border-radius);
  height: var(--sizing-input-size);
  margin: 0;
  position: relative;
  width: var(--sizing-input-size);
}
input:hover {
  background: var(--color-background-hover);
  border: var(--border-interactive-hover);
}
input:checked {
  background: var(--color-background-checked);
  border-color: var(--color-background-checked);
}
input:checked:hover {
  background: var(--color-background-checked-hover);
  border-color: var(--color-border-checked-hover);
}
input:checked::after {
  background: var(--color-background-default);
  border-radius: 50%;
  content: "";
  display: block;
  height: var(--sizing-check-size);
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--sizing-check-size);
}
input:disabled {
  background: var(--color-background-disabled);
  border-color: var(--color-border-disabled);
  cursor: not-allowed;
}
input:disabled:checked {
  border-color: var(--color-border-disabled);
}
input:disabled:checked::after {
  border-color: var(--color-border-disabled);
}
input:disabled + label {
  color: var(--color-border-hover);
  cursor: not-allowed;
}
input:disabled ~ .pds-radio__message {
  color: var(--color-text-message-disabled);
}
input:focus-visible {
  box-shadow: var(--box-shadow-focus);
  outline: none;
}

label {
  font-weight: var(--pine-font-weight-body-medium);
  margin-inline-start: 10px;
}

.pds-radio__message {
  color: var(--pine-color-grey-700);
  margin-block-start: var(--sizing-margin-block-start);
  margin-inline-start: 26px;
  width: 100%;
}

.pds-radio__message--error {
  align-items: center;
  display: flex;
  font-size: var(--pine-font-size-085);
  gap: var(--pine-spacing-050);
}