/* Select */
.control-select {
    width: 100%;
    height: 2.5rem;
    border: 0.125rem solid var(--gray);
    color: var(--secondary);
    font-size: 1rem;
    box-sizing: border-box;
    text-indent: 1em;
    margin-top: .5rem;
}

/* Switch */
.control-switch,
.control-switch-style,
.control-switch-style:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.control-switch {
    display: flex;
    align-items: center;
}

.control-switch input {
    display: none;
}

.control-switch .control-switch-style {
    height: 1.25rem;
    left: 0;
    background: var(--gray);
    border-radius: 0.8rem;
    display: inline-block;
    position: relative;
    top: 0;
    transition: all 0.3s ease-in-out;
    width: 2.2rem;
    cursor: pointer;
}

.control-switch .control-switch-style:before {
    display: block;
    content: '';
    height: 1.25rem;
    position: absolute;
    width: 1.25rem;
    background-color: var(--white);
    border-radius: 50%;
    left: 1px;
    top: 0;
    transition: all 0.3s ease-in-out;
}

.control-switch input:checked+.control-switch-style {
    background-color: var(--blue);
}

.control-switch input:checked+.control-switch-style:before {
    left: calc(50% - 3px);
}

.control-switch input[disabled]+.control-switch-style,
.control-switch input:checked[disabled]+.control-switch-style {
    cursor: not-allowed;
    opacity: .5;
}

/* Radio */
.control-radio,
.control-radio-style,
.control-radio-style:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.control-radio {
    display: flex;
    align-items: center;
}

.control-radio input {
    display: none;
}

.control-radio .control-radio-style {
    position: relative;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    vertical-align: middle;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.control-radio .control-radio-style:before {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    content: '';
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--gray);
    transition: all 0.3s ease-in-out;
}

.control-radio input:checked+.control-radio-style:before {
    border: 1px solid var(--blue);
}

.control-radio input:checked+.control-radio-style:after {
    display: block;
    position: absolute;
    content: '';
    top: 0.3rem;
    left: 0.3rem;
    bottom: 0.3rem;
    right: 0.3rem;
    background: var(--blue);
    border-radius: 50%;
    transition: all 0.3s ease-in-out;
}

.control-radio input[disabled]+.control-radio-style {
    cursor: not-allowed;
    opacity: .5;
}

/* Range */
.control-range {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-range input[type="range"] {
    width: calc(100% - 2rem);
    outline: none;
    height: 2px;
    background-color: var(--secondary);
    -webkit-appearance: none;
}

.control-range input[type="range"]::-webkit-slider-thumb {
    border: 0;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    border-radius: 50%;
    background-color: var(--white);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3), 0 3px 5px rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
}

.control-range .progress {
    height: 1.25rem;
    color: var(--secondary);
    font-size: 1rem;
    line-height: 1.25rem;
}

/* Button */
.control-button {
    display: inline-block;
    width: 100%;
    height: 2.5rem;
    min-height: 2.5rem;
    line-height: 2.5rem;
    margin: .25rem 0;
    outline: none;
    color: var(--text-dark);
    padding: 0 1rem;
    background-color: var(--gray);
    font-size: .8rem;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.5s ease 0s;
}

.control-button:hover {
    color: var(--text-light);
    background-color: var(--secondary);
}

/* Color */
.control-color-dropper {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.control-color-dropper input[type="color"] {
    visibility: unset;
}

.control-color-dropper .color-item {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    cursor: pointer;
}

.control-color-dropper .color-dropper {
    background-color: var(--secondary);
}

/* image-File */
.control-image-dropper {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.control-image-dropper input[type="file"] {
    display: none;
}

.control-image-dropper .image-item {
    width: calc( (100% - 4rem) / 4);
    height: 3rem;
    border-radius: 3px;
    cursor: pointer;
    margin: .25rem .5rem;
}

.control-image-dropper .image-dropper {
    background-color: var(--secondary);
}