.wp-block-buntywp-toggle-content {
    --switch-width: 50px;
    --switch-height: 25px;
    --switch-bg: #ccc;
    --switch-active-bg: #4caf50;

    .toggle-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-bottom: 20px;

        .toggle-switch {
            position: relative;
            width: var(--switch-width);
            height: var(--switch-height);
            background: var(--switch-bg);
            border-radius: var(--switch-height);
            cursor: pointer;
            transition: background 0.3s;
            border: none;
            outline: none;

            &::after {
                content: "";
                position: absolute;
                top: 2px;
                left: 2px;
                width: calc(var(--switch-height) - 4px);
                height: calc(var(--switch-height) - 4px);
                background: #fff;
                border-radius: 50%;
                transition: transform 0.3s;
            }
        }
    }

    .block-editor-inner-blocks {

        .toggle-content {
            display: none;
        }

        .wp-block-buntywp-left-toggle-content,
        .wp-block-buntywp-right-toggle-content {

            .aligncenter {
                margin-left: auto;
                margin-right: auto;
            }

            .alignright {
                float: right;
                margin-inline-start: 2em;
                margin-inline-end: 0;
            }
        }
    }

    .left {

        .wp-block-buntywp-left-toggle-content {
            display: block;
        }
    }

    .right {

        .wp-block-buntywp-right-toggle-content {
            display: block;
        }

        .toggle-switch {
            background: var(--switch-active-bg);

            &::after {
                transform: translateX(calc(var(--switch-width) - var(--switch-height)));
            }
        }
    }

}