// Checkbox

.c-checkbox {
  input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    background-color: #fff;
    margin: 0;
    border: 2px solid #40405b;
    display: grid;
    place-content: center;
    cursor: pointer;

    &.size {
      &-lg {
        width: 24px;
        height: 24px;
        border-radius: 8px;
        &::before {
          width: 13px;
          height: 13px;
          box-shadow: inset 13px 13px #fff;
        }
      }
      &-md {
        width: 20px;
        height: 20px;
        border-radius: 6px;
        &::before {
          width: 11px;
          height: 11px;
          box-shadow: inset 11px 11px #fff;
        }
      }
      &-sm {
        width: 18px;
        height: 18px;
        border-radius: 5px;
        &::before {
          width: 9px;
          height: 9px;
          box-shadow: inset 9px 9px #fff;
        }
      }
    }
  }

  input[type="checkbox"]::before {
    content: "";
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    background-color: CanvasText;
  }

  input[type="checkbox"]:checked {
    background: #5050ff;
    border-color: #5050ff;
  }

  input[type="checkbox"]:checked::before {
    transform: scale(1);
  }

  input[type="checkbox"]:disabled {
    color: #959495;
    cursor: not-allowed;
    opacity: 0.2;
  }

  &__label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.16px;
    color: #111;
  }
}
