/* eslint-disable css/use-baseline */
/* eslint-disable css/no-invalid-properties */
/* Container outline and sizing */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -ms-user-select: none;
    margin-left: 0.5em;
}

/* Hide default HTML checkbox button */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The track of the slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #de82ff;
    transition: 0.4s;
    border-radius: 34px;
}

/* The moving circle (knob) inside the slider track */
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

/* Track color shift when input is checked */
input:checked+.slider {
    background-color: var(--primary-color);
}

/* Knob movement when input is checked */
input:checked+.slider:before {
    transform: translateX(26px);
}

.default_modifier {
    padding-right: 20px;
}

.settings_wrapper>* {
    width: fit-content;
}

.settings_wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.5fr 1fr 1fr auto;
    row-gap: 0.5em;
    margin-bottom: 1em;
}

.settings_item {
    display: block;
    justify-self: center;
    align-self: center;
}

.dark_mode {
    align-items: center;
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

.default_region {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
}

.timezone {
    grid-row: 3 / 4;
    grid-column: 1 / 2;
}

.default_modifiers {
    grid-row: 4 / 5;
    grid-column: 1 / 2;
}

.email {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
}