.asynclistry-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6em;
    margin-bottom: 0.5em;
}

.asynclistry-checkbox input[type="checkbox"] {
    visibility: hidden;
    display: none;
}

.asynclistry-checkbox *,
.asynclistry-checkbox ::after,
.asynclistry-checkbox ::before {
    box-sizing: border-box;
}

.asynclistry-switch {
    font-size: 14px;       /* reduced size */
    position: relative;
    display: inline-block;
    width: 2.6em;          /* reduced width */
    height: 1.5em;         /* reduced height */
    flex-shrink: 0;
}

.asynclistry-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.asynclistry-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff;
    border: 1px solid var(--asynclistry-primary);
    transition: .4s;
    border-radius: 20px;
}

.asynclistry-slider:before {
    position: absolute;
    content: "";
    height: 1.1em;
    width: 1.1em;
    border-radius: 50%;
    left: 0.2em;
    bottom: 0.2em;
    top: 0.1em;
    background-color: var(--asynclistry-primary);
    transition: .4s;
}

.asynclistry-checkbox input:checked + .asynclistry-slider {
    background-color: var(--asynclistry-primary);
    border: 1px solid var(--asynclistry-primary);
}

.asynclistry-checkbox input:focus + .asynclistry-slider {
    box-shadow: 0 0 1px var(--asynclistry-primary);
}

.asynclistry-checkbox input:checked + .asynclistry-slider:before {
    transform: translateX(1.1em);
    background-color: #fff;
}

.asynclistry-label {
    cursor: pointer;
}

.trumbowyg-box,
.trumbowyg-editor {
    background-color: #ffffff !important;
}

/* Inputs and textareas with primary background + white text */
.input-asynclistry-primary,
textarea.input-asynclistry-primary,
select.input-asynclistry-primary {
    background-color: var(--asynclistry-primary) !important;
    color: #fff !important;
    border: 1px solid var(--asynclistry-primary) !important;
}

.input-asynclistry-primary::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.trumbowyg-box,
.trumbowyg-editor {
    background-color: #fff !important;
}



