.customize-control-ast-toggle-control .components-toggle-control .components-base-control__field, .ast-togglecontrol-wrapper .components-base-control__field { margin: 0; } .customize-control-ast-toggle-control .components-toggle-control .components-form-toggle, .customize-control-ast-link .ast-togglecontrol-wrapper .components-form-toggle, .customize-control-ast-toggle .components-toggle-control .components-form-toggle { margin: 0; order: 2; } .customize-control-ast-link .ast-togglecontrol-wrapper .components-base-control__field { margin: 20px 0; } .ast-togglecontrol-wrapper .toggle-control-label { font-size: 14px; } .customize-control-ast-toggle-control .components-toggle-control .components-toggle-control__label, .ast-togglecontrol-wrapper label { display: flex; flex: 1 1 auto; } .ast-switch ~ label { position: relative; display: block; width: 35px; height: 14px; background-color: var(--ast-customizer-color-7); color: transparent; border-radius: 50px; cursor: pointer; transition: all 0.2s ease-in; } .ast-switch ~ label:after { content: ''; position: absolute; top: -3px; left: -1px; display: block; width: 20px; height: 20px; border-radius: 50px; background: var(--ast-customizer-color-9); box-shadow: 0 2px 4px 0 rgba(72, 72, 72, 0.50); transition: all 0.2s ease-in; } .ast-switch:checked ~ label { background: var(--ast-customizer-color-1); } .ast-switch:checked ~ label:after { transform: translateX(16px); background: var(--ast-customizer-color-9); } .ast-switch:disabled ~ label { background: #f0f0f0; pointer-events: none; } .ast-switch:disabled ~ label:after { background: #d1d1d1; box-shadow: 0 1px 2px 0 rgba(72, 72, 72, 0.50); } .ast-switch:not(:checked), .ast-switch:checked { opacity: 0; }