/************ Buy/sell radio tabs ****************/

.radio-tab {
    width: 120px;
    display: inline-block;
    position: relative;
}
.radio-tab input[type="radio"] {
    opacity: 0;
    position: absolute;
}
.radio-tab label {
    border-radius: 5px;
    color: #505050;
    /*background: #7edef5;*/
    display: block;
    position: relative;
    padding: 9px;
    margin: 0;
    text-align: center;
    font-size: 17px;
    font-weight: normal;
    /*border: 1px solid #aecbe2;*/
    border: 1px solid #ccc;
    /*
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    background: white linear-gradient(to top, rgba(0,0,0,0.07), rgba(0,0,0,0.02) 25%, transparent);
    */
}
.radio-tab.flat-right label {
    border-right: 1px solid #c4d9e8 !important;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.radio-tab.flat-left label {
    border-left: 0 !important;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
.radio-tab input[type="radio"]:checked+label {
    font-weight: bold;
    color: #555;
    background: white;
    /*
    color: white;
    background: #03bfe8;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.1) 3%, rgba(0,0,0,0.03) 10%, transparent),
                linear-gradient(to right, rgba(0,0,0,0.1), rgba(0,0,0,0.1) 1%, rgba(0,0,0,0.03) 5%, transparent) #03bfe8;
    border: 1px solid #01a7cb;
    */
}
.radio-tab label:hover {
    color: #444;
}
.radio-tab input[type="radio"]:not(:checked)+label {
    cursor: pointer;
}

/********* Button-like checkboxes with a check mark *************/

.radio-button {
    clear: both;
    margin: 0 10px 0 0;
    width: auto;
    min-width: 130px;
    font-weight: normal;
    color: #474d4e;
    position: relative;
    display: inline-block;
    text-align: left;
}
.radio-button label {
    width: 100%;
    font-weight: normal;
    padding-right: 0.6em;
}
/* hide input */
.radio-button input.radio {
    opacity: 0;
    position: absolute;
}

/* style label */
.radio-button input.radio ~ label {
    position: relative;
    line-height: normal;
    text-indent: 22px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.radio-button input.radio ~ label:before {
    border: 1px solid #d5dee6;
    border-radius: 3px;
    position: absolute;
    display: block;
    top: 8px;
    bottom: 0;
    left: 10px;
    content:' ';
    color: transparent;
    width: 16px;
    height: 16px;
    background: white;
    box-shadow: inset 2px 2px 10px rgba(0,0,0,0.1);
}

/* hover/checked */
.radio-button input.radio:checked ~ label,
.radio-button input.radio:hover ~ label {
    /*background-color: #1c4365;*/
}

/* hover */
.radio-button input.radio:hover:not(:checked) ~ label {

}
.radio-button input.radio:hover:not(:checked) ~ label:before {
}

/* checked */
.radio-button input.radio:checked ~ label {
    font-weight: bold;
}
.radio-button input.radio:checked ~ label:before {
    /*background-color: #4DCB6D;*/
}

.radio-button input.radio:checked ~ label:after {
    content: '\2714';
    /* color: #4DCB6D; */
    color: #03bfe8 !important;
    position: absolute;
    top: -1px;
    text-indent: 0;
    font-size: 20px;
    left: 10px;
}



.field-type .radio-button {
    /*min-width: 23%;*/
}

.raised {
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    background: linear-gradient(to top, rgba(0,0,0,0.07), rgba(0,0,0,0.02) 12px, transparent),
                linear-gradient(to left, rgba(0,0,0,0.04), transparent 7px, transparent) white;
}

/******* Custom Checkbox ********/
.custom-checkbox input {
    width: 16px;
    height: 16px;
    opacity: 0.8;
    position: relative;
    top: 3px;
    margin-right: 3px;
}
.custom-checkbox label {
    /*reset Bootstrap default*/
    font-weight: normal;
}


/******* Custom Checkbox (filters) ********/

.chk {
    /*clear: both;*/
    margin: 4px 0 9px 0;
    font-weight: normal;
    color: #474d4e;
    position: relative;
    text-align: left;
}
.chk.sm {
    margin: 3px 0 5px 0;
}
.chk label {
    width: 100%;
    font-weight: normal;
}
/* hide input */
.chk input[type=checkbox] {
    opacity: 0;
    position: absolute;
}

/* style label */
.chk input[type=checkbox] ~ label {
    position: relative;
    line-height: normal;
    padding-left: 28px;
    margin: 0;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.chk.sm input[type=checkbox] ~ label {
    padding-left: 23px;
    line-height: 16px;
}
.chk input[type=checkbox] ~ label:before {
    border: 1px solid #CFCFD0;
    border-radius: 3px;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    content:' ';
    color: transparent;
    width: 20px;
    height: 20px;
    background: white;
}
.chk.sm input[type=checkbox] ~ label:before {
    width: 16px;
    height: 16px;
}
.chk.my-radio input[type=checkbox] ~ label:before {
    border: 1px solid #CFCFD0;
    border-radius: 10px;
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    content:' ';
    color: transparent;
    width: 20px;
    height: 20px;
    background: white;
}

/* checked */
.chk input[type=checkbox]:checked ~ label {

}
.chk input[type=checkbox]:checked ~ label:before {
    background-color: #009EE2;
    border: none;
}
.chk input[type=checkbox]:checked ~ label:after {
    /*
    differs by 1px on FF and iOS
    font: normal normal normal 14px/1 FontAwesome;
    font-size: 16px;
    content: '\f00c';
    top: 2px;
    left: 2px;
    */
    content: '';
    width: 20px;
    height: 20px;
    background: transparent url(/img/custom-inputs/checkbox-icon.png) no-repeat 2px 4px;
    background-size: 16px 12px;
    color: white !important;
    position: absolute;
    top: 0;
    left: 0;
    text-indent: 0;
}
.chk.sm input[type=checkbox]:checked ~ label:after {
    width: 16px;
    height: 16px;
    background-position: 2px 4px;
    background-size: 12px 9px;
}

/* hover */
.chk input[type=checkbox]:hover ~ label {
    color: black;
}
.chk input[type=checkbox]:hover:not(:checked) ~ label {

}
.chk input[type=checkbox]:hover:not(:checked) ~ label:before {
}

/* disabled */
.chk input[type=checkbox][disabled] ~ label:before {
    background: #f0f0f0;
}
.chk input[type=checkbox][disabled]:checked ~ label:before {
    background: #92c5d8;
}

