.nsn-compliance {
    display: flex;
    justify-content: center;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.nsn-compliance__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: inherit;
}

.nsn-compliance__switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.nsn-compliance__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}

.nsn-compliance__slider {
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.nsn-compliance__slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background-color: #d0d3d8;
    border-radius: 50%;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nsn-compliance__input:checked + .nsn-compliance__slider {
    background-color: #4caf50;
}

.nsn-compliance__input:checked + .nsn-compliance__slider::before {
    transform: translateX(18px);
    background-color: #ffffff;
}

.nsn-compliance__input:focus-visible + .nsn-compliance__slider {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.nsn-compliance__text {
    white-space: nowrap;
}
