﻿/* ---------- Custom checkbox ----- START ----- */

/* Customize the label (the container) */
.container {
    display: block;
    position: relative;
    padding-left: 66px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 12px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-top: 3px;
}

    /* Hide the browser's default checkbox */
    .container input {
        position: absolute;
        opacity: 0;
        cursor: pointer;
        height: 0;
        width: 0;
    }

/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid gray;
    margin-left: 27px;
    transition: .2s;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container input:checked ~ .checkmark {
    background-color: #f8bd1e;
    border: 0px solid gray;
}

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.container input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container .checkmark:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.checkmark_blue {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #eee;
    border-radius: 3px;
    border: 1px solid gray;
    margin-left: 27px;
}

.container:hover input ~ .checkmark_blue {
    background-color: #ccc;
}

.container input:checked ~ .checkmark_blue {
    background-color: #116ba0;
    border: 0px solid gray;
}

.checkmark_blue:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked ~ .checkmark_blue:after {
    display: block;
}

.container .checkmark_blue:after {
    left: 7px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* ---------- Custom checkbox ----- SLUTT ----- */


/* ---------- Custom slider ----- START ----- */

/* The switch - the box around the slider */
.slider_switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-bottom: 2px;
    vertical-align: middle;
}

    /* Hide default HTML checkbox */
    .slider_switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #c0c0c0;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 16px;
        left: 4px;
        bottom: 2px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #116ba0;
}

input:focus + .slider {
    box-shadow: 0 0 1px #116ba0;
}

input:checked + .slider:before {
    -webkit-transform: translateX(16px);
    -ms-transform: translateX(16px);
    transform: translateX(16px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 10px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.wrapper_slider {
    padding-left: 110px;
    box-sizing: border-box;
}

.wrapper_discount {
    margin-bottom 15px;
    box-sizing: border-box;
}

.discount_width {
    float: left;
    width: 36%;
}

@media only screen and (max-width: 840px) {
    .wrapper_slider {
        padding-left: 15px;
    }

    .wrapper_discount {
        margin-top: 15px;
        padding-left: 15px;
    }

    .discount_width {
        float: left;
        width: 48%;
    }
}

/* ---------- Custom slider ----- SLUTT ----- */
