:host {
  --border-default: var(--pine-border-width-thin) solid var(--pine-color-grey-400);
  --border-color-interactive-hover: var(--pine-border-width-thin) solid var(--pine-color-grey-500);
  --border-radius: var(--pine-border-radius-050);
  --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);
  --box-shadow-focus-invalid: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-200);
  --color-background: var(--pine-color-white);
  --color-background-disabled: var(--pine-color-grey-200);
  --color-background-hover: var(--pine-color-grey-100);
  --color-border-disabled: var(--pine-color-grey-600);
  --color-border-icon: var(--pine-color-white);
  --color-checked: var(--pine-color-grey-950);
  --color-disabled: var(--pine-color-grey-300);
  --color-invalid: var(--pine-color-red-300);
  --color-text-disabled: var(--pine-color-grey-500);
  --color-text-message: var(--pine-color-grey-700);
  --sizing-input: var(--pine-font-size-100);
  align-items: center;
  display: flex;
  flex-flow: row wrap;
}

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

:host(.is-indeterminate) input {
  background: var(--color-checked);
  border-color: var(--color-checked);
}
:host(.is-indeterminate) input::after {
  border: 1px solid var(--color-border-icon);
  border-bottom: 0;
  border-left: 0;
  border-top: 0;
  content: "";
  display: block;
  height: 7px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: rotate(87deg) translate3d(-114%, 25%, 0);
  width: 4px;
}

input {
  appearance: none;
  background-color: var(--color-background);
  border: var(--border-default);
  border-radius: var(--border-radius);
  height: var(--sizing-input);
  margin: 0;
  position: relative;
  width: var(--sizing-input);
}
input:hover {
  background: var(--color-background-hover);
  border: var(--border-color-interactive-hover);
}
input:checked {
  background: var(--color-checked);
  border-color: var(--color-checked);
}
input:checked::after {
  border: 1px solid var(--color-border-icon);
  border-left: 0;
  border-top: 0;
  content: "";
  display: block;
  height: 7px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: rotate(43deg) translate3d(-110%, -30%, 0);
  width: 4px;
}
input:disabled {
  background: var(--color-background-disabled);
  border-color: var(--color-disabled);
  cursor: not-allowed;
}
input:disabled:checked {
  background: var(--color-disabled);
  border-color: var(--color-disabled);
}
input:disabled:checked::after {
  border-color: var(--color-border-disabled);
}
input:disabled + label {
  color: var(--color-text-disabled);
  cursor: not-allowed;
}
input:disabled ~ .pds-checkbox__message {
  color: var(--color-text-disabled);
}
input:focus-visible {
  box-shadow: var(--box-shadow-focus);
  outline: none;
}

label {
  margin-inline-start: 10px;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: polygon(0 0, 0 0, 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.pds-checkbox__message {
  color: var(--color-text-message);
  font-size: 14px;
  margin-block-start: 6px;
  margin-inline-start: 26px;
  width: 100%;
}