﻿.toggle-wrap input {
    display: none;
}

/* design label for pill toggle */
.pill-switch {
    display: inline-block;
    width: 65px;
    height: 32px;
    background-color: #F7F7F7;
    border: 1px solid #BFC5CE;
    border-radius: 48px;
    position: relative;
    transition: background-color 300ms linear;
    cursor: pointer;
    text-align: left;
}

.pill-switch:hover {
    background: #EEE;
}

/* circle for label for unchecked input */
.pill-switch::before {
    content: '';
    display: block;
    position: absolute;
    top: 2px;
    left: 2px;
    height: 26px;
    width: 26px;
    background: white;
    border-radius: 50%;
    transition: transform 300ms ease-in;
    box-shadow: 0px 1px 6px rgba(0, 0, 0, 0.5);
}

/* add text after label */
.pill-switch::after {
    content: 'No';
    margin-left: 40px;
    line-height: 28px;
    font-weight: 700;
    color: #474432;
}

/* change label bg color for checked input */
:checked + .pill-switch {
    background-color: #23410A;
}

/* move circle to right for checked input */
:checked + .pill-switch::before {
    transform: translate3d(33px, 0, 0);
}

/* add text after label for checked input */
:checked + .pill-switch::after {
    content: 'Yes';
    margin-left: 5px;
    color: #FFF;
}

/* change bg color for checked input */
:checked + .pill-switch:hover {
    background: #23410A;
}
