
.half-ring-key-button-checkbox {
  position: absolute;
  display: inline-block;
  pointer-events: none;
}

.half-ring-key-button-checkbox input[type='checkbox'] {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 1em;
  width: 50%;
  margin-left: var(--input-margin-left);
  height: 100%;
  opacity: 0;
  padding: 0;
  cursor: pointer; 
  z-index: 1;
  pointer-events: all; 
}

.half-ring-key-button-checkbox .state {
  display: flex;
  width: 100%;
  height: 100%;
  z-index: 0; 
  border-radius: 100% 100%;
  
  border: 10px solid var(--uncheck-color);
  border-radius: 50%;
  position: absolute;
  box-sizing: border-box;
  border-bottom-color: transparent;
  border-right-color: transparent;
  rotate: var(--rotate-degree);
}

.half-ring-key-button-checkbox input:hover:not(:disabled) ~ .state {
  border: 10px solid var(--first-color);
  border-bottom-color: transparent;
  border-right-color: transparent;
}

.half-ring-key-button-checkbox input:checked:not(:disabled) ~ .state {
  border: 10px solid var(--first-color);
  border-bottom-color: transparent;
  border-right-color: transparent;
}

.half-ring-key-button-checkbox input:disabled ~ .state {
  border: 10px solid red;
  opacity: 0.5;
  border-bottom-color: transparent;
  border-right-color: transparent;
}

.half-ring-key-button-checkbox .tooltip {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 180px;
  background-color: #D0D0D0;
  border-radius: 4px;
  text-align: center;
  padding: 2px;
  font-size: 14px;
  margin-left: var(--left-margin);
  margin-top: var(--top-margin);
  position: absolute;
  z-index: 1;
}

.half-ring-key-button-checkbox input:hover ~ .tooltip{
  display: flex;
}

.half-ring-key-button-checkbox:hover:not(:disabled) .tooltip:hover{
  display: none;
}