@charset "UTF-8";

/* styled-checkbox */
.styled-checkbox {
    position: absolute;
    opacity: 0;
}

.styled-checkbox+label {
    position: relative;
    cursor: pointer;
}

.styled-checkbox+label:before {
    content: "";
    margin-right: 10px;
    display: inline-block;
    vertical-align: text-top;
    width: 15px;
    height: 15px;
    background: #fbffd7;
    border: 1px #C1D301 solid;
}

.styled-checkbox:hover+label:before {
    background: #ecf95e;
}

.styled-checkbox:focus+label:before {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.styled-checkbox:checked+label:before {
    background: #C1D301;
}

.styled-checkbox:disabled+label {
    color: #999;
    cursor: auto;
}

.styled-checkbox:disabled+label:before {
    box-shadow: none;
    background: #ccc;
}

.styled-checkbox:checked+label:after {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    background: white;
    width: 2px;
    height: 2px;
    box-shadow: 2px 0 0 white, 4px 0 0 white, 4px -2px 0 white, 4px -4px 0 white, 4px -6px 0 white, 4px -8px 0 white;
    transform: rotate(45deg);
}


/* styled-radio */
.radios input[type=radio] {
    position: absolute;
    opacity: 0;
}

.radios input[type=radio]+.radio-label:before {
    content: "";
    background: #f4f4f4;
    border-radius: 100%;
    border: 1px solid #b4b4b4;
    display: inline-block;
    width: 1.4rem;
    height: 1.4rem;
    position: relative;
    top: -0.2rem;
    margin-right: .8rem;
    vertical-align: top;
    cursor: pointer;
    text-align: center;
    transition: all 250ms ease;
}

.radios input[type=radio]:checked+.radio-label:before {
    background-color: #C1D301;
    box-shadow: inset 0 0 0 4px #f4f4f4;
}

.radios input[type=radio]:focus+.radio-label:before {
    outline: none;
    border-color: #C1D301;
}

.radios input[type=radio]:disabled+.radio-label:before {
    box-shadow: inset 0 0 0 4px #f4f4f4;
    border-color: #b4b4b4;
    background: #b4b4b4;
}

.radios input[type=radio]+.radio-label:rempty:before {
    margin-right: 0;
}

/* Custom input number */
.ctrl {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    border-radius: 5px;
    font-size: 14px;
    height: 30px;
}

.ctrl__counter {
    position: relative;
    width: 150px;
    height: 32px;
    color: #333C48;
    text-align: center;
    overflow: hidden;
    border-top: solid #C1D301 1px;
    border-bottom: solid #C1D301 1px;
}

.ctrl__counter.is-input .ctrl__counter-num {
    visibility: hidden;
    opacity: 0;
    transition: opacity 100ms ease-in;
}

.ctrl__counter.is-input .ctrl__counter-input {
    visibility: visible;
    opacity: 1;
    transition: opacity 100ms ease-in;
}

.ctrl__counter-input {
    width: 100%;
    padding: 0;
    outline: none;
    color: #333C48;
    font-size: 16px;
    line-height: 30px;
    text-align: center;
    border: none;
}

.ctrl__counter-num {
    display: none;
    /*
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    line-height: 30px;
    visibility: visible;
    opacity: 1;
    transition: opacity 1000ms ease-in;
    */
}
#carts input[type=number] {
    -moz-appearance: textfield;
}
#carts input::-webkit-outer-spin-button,
#carts input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ctrl__counter-num.is-increment-hide {
    opacity: 0;
    transform: translateY(-50px);
    -webkit-animation: increment-prev 100ms ease-in;
    animation: increment-prev 100ms ease-in;
}

.ctrl__counter-num.is-increment-visible {
    opacity: 1;
    transform: translateY(0);
    -webkit-animation: increment-next 100ms ease-out;
    animation: increment-next 100ms ease-out;
}

.ctrl__counter-num.is-decrement-hide {
    opacity: 0;
    transform: translateY(50px);
    -webkit-animation: decrement-prev 100ms ease-in;
    animation: decrement-prev 100ms ease-in;
}

.ctrl__counter-num.is-decrement-visible {
    opacity: 1;
    transform: translateY(0);
    -webkit-animation: decrement-next 100ms ease-out;
    animation: decrement-next 100ms ease-out;
}

.ctrl__button {
    width: 100px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    border: #C1D301 solid 1px;
    user-select: none;
}

.ctrl__button:hover {
    background-color: #C1D301;
    color: white;
    transition: background-color 100ms ease-in;
}

.ctrl__button:active {
    background-color: #ecf95e;
    transition: background-color 100ms ease-in;
}

.ctrl__button--decrement {
    border-radius: 5px 0 0 5px;
}

.ctrl__button--increment {
    border-radius: 0 5px 5px 0;
}

@-webkit-keyframes decrement-prev {
    from {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes decrement-prev {
    from {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes decrement-next {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
}

@keyframes decrement-next {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
}

@-webkit-keyframes increment-prev {
    from {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes increment-prev {
    from {
        opacity: 1;
        transform: translateY(0);
    }
}

@-webkit-keyframes increment-next {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
}

@keyframes increment-next {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
}