/* The switch - the box around the slider */
.enfold-dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.enfold-dark-mode-toggle-label {
    margin-right: 10px;
    font-weight: bold;
    cursor: pointer;
}

.enfold-dark-mode-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0;
}

/* Hide default HTML checkbox */
.enfold-dark-mode-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.enfold-dark-mode-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    overflow: hidden;
}

.enfold-dark-mode-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line><line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line><line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line><line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line></svg>');
    background-size: 16px;
    background-position: center;
    background-repeat: no-repeat;
    transition: .4s;
    z-index: 2;
}

/* Rounded sliders */
.enfold-dark-mode-slider.round {
    border-radius: 34px;
}

.enfold-dark-mode-slider.round:before {
    border-radius: 50%;
}

input:checked + .enfold-dark-mode-slider {
    background-color: #2196F3; /* Fallback, overridden by PHP inline CSS */
}

input:focus + .enfold-dark-mode-slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .enfold-dark-mode-slider:before {
    transform: translateX(26px);
}
