:host {
  position: relative;
  display: inline-block;
  background-color: var(--as-checkbox-fill-color, #ffffff);
  border-width: 1px;
  border-style: solid;
  border-color: var(--as-checkbox-border-color, #c0c0c0);
  border-radius: var(--as-checkbox-border-radius, 0);
  user-select: none;
}
:host::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  opacity: 0;
  pointer-events: none;
}

:host(:hover) {
  cursor: pointer;
}
:host(:hover)::before {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.04);
}

:host(:focus) {
  box-shadow: inset 1px 1px 0 0 rgba(0, 0, 0, 0.16);
}
:host(:focus)::before {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.06);
}

.checkbox-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--as-checkbox-size, 24px);
  height: var(--as-checkbox-size, 24px);
  opacity: 0;
  transition: opacity 90ms ease;
}

:host(:hover) .checkbox-icon {
  opacity: 0.37;
}

:host(.is-checked) .checkbox-icon {
  opacity: 1;
}

:host(.is-disabled) {
  background-color: #ffffff;
  pointer-events: none;
}