.cbx {
    -webkit-perspective: 20;
    perspective: 20;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px;
    border: 2px solid #CA3000;
    background: #e8e8eb;
    border-radius: 4px;
    transform: translate3d(0, 0, 0);
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .cbx:hover {
    border-color: #CA3000;
  }
  
  .flip {
    display: block;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    position: relative;
    width: 20px;
    height: 20px;
  }
  
  #cbx {
    display: none;
  }
  
  #cbx:checked + .cbx {
    border-color: #CA3000;
  }
  
  #cbx:checked + .flip {
    transform: rotateY(180deg);
  }
  
  .front,
  .back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-radius: 2px;
  }
  
  .front {
    background: #fff;
    z-index: 1;
  }
  
  .back {
    transform: rotateY(180deg);
    background: #CA3000;
    text-align: center;
    color: #fff;
    line-height: 20px;
    box-shadow: 0 0 0 1px #CA3000;
  }
  
  .back svg {
    margin-top: 2px;
    margin-left: 2px;
    fill: none;
  }
  
  .back svg path {
    stroke: #fff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  
  