// The code is a bit of a mess at the moment! Sorry about that.

.rdcheck body {
    padding: 1rem;
    color: #f1f5f6;
}
.rdcheck h1 {
    color: #f1f5f6;
    margin-bottom: 2rem;
}
.rdcheck section {
  display: flex;
  flex-flow: row wrap;
}
.rdcheck section > div {
  flex: 1;
  padding: 0.5rem;
}
.rdcheck input[type="radio"] {	    
    cursor: pointer;
    width: 0;
    height: 0;
	
    /*display: none;*/
	&:not(:disabled) ~ label {
		cursor: pointer;
	}

	&:disabled ~ label {
		color: hsla(0, 0%, 0%, 0.25);
		border-color: #f1f5f6;
		box-shadow: none;
		cursor: not-allowed;
		background: #f1f5f6;
	}
}


.rdcheck label {
    height: 100%;
    display: block;
    background: #f1f5f6;
    border: 1px solid #f0f2f3;
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0px 3px 10px -1px #f0f2f3;
    position: relative;
}
.rdcheck input[type="radio"]:checked + label {
    background: #40a7e3;
    /*color: hsl(0, 0%, 50%);*/
    color:#fff!important;
    font-weight:bold!important;
    box-shadow: #40a7e3;
    &::after
    {
    font-weight: bold !important;
    color: #fff !important;
    /*color: #f1f5f6;*/
    font-family: FontAwesome;
    border: hsl(0, 0%, 50%);
    /*content: "\f00c";*/
    font-size: 24px;
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 5%;
    background: white;
    box-shadow: 0px 1px 5px -1px hsla(0, 0%, 0%, 0.25);
}
}
.rdcheck input[type="radio"]:checked:after {
        width: 15px;
        height: 15px;
        border-radius: 15px;		
        top: 5px;
        right: 15px;
        position: absolute;			       
        content: url(circle-check.svg);
        display: inline;
        visibility: visible;
        border: 2px solid white;
		z-index: 10;
		&::checked
		{
			display:none;
		}
}
.rdcheck input[type="radio"]:after {
        display: none;
}

.rdcheck input[type="radio"]:disabled + label {
    color: #9F9F9F;
    border-color: #DFDFDF;
    box-shadow: none;
    cursor: not-allowed;
    background: #DFDFDF;
}
.rdcheck p {
  font-weight: 900;
}


@media only screen and (max-width: 700px) {
  .rdcheck section {
    flex-direction: column;
  }
}
