.toggle--wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toggle--control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}

.toggle--input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

.toggle--slider {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #8c8f94;
    transition: background-color 0.2s ease;
}

.toggle--slider::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.toggle--input:checked + .toggle--slider {
    background: #2271b1;
}

.toggle--input:checked + .toggle--slider::after {
    transform: translateX(18px);
}

.toggle--input:focus-visible + .toggle--slider {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.toggle--state {
    display: inline-flex;
    min-width: 26px;
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
}

.toggle--state-on {
    display: none;
}

.toggle--wrapper.is-checked .toggle--state-on {
    display: inline;
    color: #0a7a3f;
}

.toggle--wrapper.is-checked .toggle--state-off {
    display: none;
}

.toggle .description {
    margin: 0;
    color: #50575e;
}
