:root {
    --white: #fff;
    --color: #000000e5;
    --border-color: #e6e6e6;
    --control-label-color: #00000080;
    --input-bg: #F3F3F3 // #c8c8c8;
    --input-color: #999999;
    --input-active-bg: #FFFFFF;
    --input-active-color: #0099FF;
    --input-active-box-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.1);
    --border-radius: 2px;
}

.bm-full {
    width: 100% !important;
}

.bm-button-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.bm-inline-row {
    display: inline-flex;
}

.bm-inline-col {
    display: inline-flex;
    flex-direction: column;
}

.bm-background-preview>div {
    height: 100% !important;
    width: 100% !important;
}

.bm-gradient-label {
    min-width: 50px;
    font-size: 12px;
    flex: 1;
}

.bm-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bm-row {
    display: flex;
}

.bm-inline-row,
.bm-row {
    align-items: center;
    justify-content: space-between;
}

/**
 * BM ID
 */
 .bm-id {
    position: absolute;
    right: 12px;
    top: 8px;
    font-size: 10px;
    color: var(--input-color);
    line-height: normal;
    font-weight: 600;

    span {
        color: #09f;
    }
}

/**
 * Paragraph
 */
.bm-control-paragraph {
    font-size: 10px !important;
    color: #999 !important;
    line-height: normal !important;
    margin: 4px 0 12px 0 !important;
}

/**
 * Input
 */
.bm-control-input {
    border: none !important;
    background: var(--input-bg);
    font-size: 12px !important;
    color: #999 !important;
    width: 100%;
    border-radius: var(--border-radius) !important;
    box-shadow: none;
    outline: none;

    &:focus {
        border-color: #09f !important;
        box-shadow: 0 0 0 1px #09f !important;
        outline: 2px solid transparent !important;
        color: #000 !important;
    }

    &:hover {
        color: #000 !important;
    }

}

.bm-animation-replay.bm-button-control svg {
    fill: transparent;
    height: 1em;
    width: 1em;
    font-size: 18px;
}

/**
 * Effects
 */
.bm-effects-control {
    padding: 0 0 8px 0;

    &__add {
        margin: 0;
        height: auto;
        margin: 0 0 4px 0;
        gap: 4px;
        margin: 5px 0 !important;
    }

    &__type {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: var(--input-bg);
        border-radius: var(--border-radius);
        padding: 3px 4px;
        margin: 0 0 2px 0;
    }

    &__select {
        font-size: 12px;
        line-height: normal;
        margin: 0;
        padding: 0;
        line-height: normal;
        min-height: auto;
        flex: 1;
        border-color: var(--border-color) !important;
    }

    &__remove {
        padding: 0;
        margin: 0;
    }

    button {
        height: auto !important;
        border: none !important;
    }

    .bm-visibility {
        padding: 0;
        margin: 0;
        line-height: normal;
    }

    .bm-effects-control__select {
        font-size: 12px;
        padding: 0px 8px;
        height: auto;
        min-height: auto;
        background-color: transparent;
        border: none;

        &:hover,
        &:focus,
        &:active {
            border: none !important;
            box-shadow: none !important;
            outline: none;
            height: auto;
        }
    }

    &__actions {
        display: flex;
        gap: 0;
    }

    &__preview {
        display: flex;
        align-items: center;
        justify-content: center;

        .bm-button-control svg {
            height: 1em;
            width: 1em;
            font-size: 20px;
        }
    }

}

/**
 * Height & Width Control
 */
.bm-width-and-height-control {
    .bm-base-input {
        flex: 1;
    }

    .bm-row {
        gap: 12px;
    }
}

/**
 * Row
 */
.bm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .bm-width-control,
    .bm-height-control {
        width: 100%;
        padding: 0;

        .bm-base-input {
            width: 100%;
        }
    }
}
.bm-control-label .bm-reset svg {
    height: auto;
    fill: rgba(0, 0, 0, 0) !important;
    color: #000 !important;
}
/**
 * Base Controls
 */
.bm-base-input {
    display: flex;
    align-items: center;
    // outline-color: rgba(0, 0, 0, 0.898);
    border: 1px solid transparent;
    display: inline-flex;
    border-radius: var(--border-radius);
    position: relative;
    min-width: 20px;
    background: var(--input-bg);
    color: var(--input-color);

    input {
        font-size: 11px;
        line-height: normal;
        font-weight: 400;
        max-width: 66px;
        border: none;
        background: transparent;
        // cursor: ew-resize;
        min-width: 12px;
        flex: 1;
        margin: 0;
        padding: 0;

        &:focus,
        &:hover {
            outline: none;
        }
    }

    &.with-incrementors {
        input {
            text-align: center;
        }
    }

    &.is-dragging,
    &.is-hovered {
        border-color: var(--input-active-color);
    }

    &.is-dragging {
        user-select: none;

        input {
            cursor: ew-resize;
            user-select: none;
            pointer-events: none;
        }
    }

    &__unit {
        // position: absolute;
        right: 0;
        top: 0;
        right: 5px;
        cursor: pointer;
    }

    &__icon,
    &__unit {
        fill: var(--input-color);
        color: var(--input-color);
    }

    &__icon {
        min-height: 24px;
        min-width: 24px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    &.bm-can-drag .bm-base-input__icon {
        cursor: ew-resize;
    }

    &.is-vertical {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: stretch;
        text-align: center;
        width: 20px;

        // &.bm-can-drag .bm-base-input__icon {
            // cursor: n-resize;
        // }
    
        input {
            width: 20px;
            text-align: center;
            // cursor: n-resize;
        }
    }

    &__increment,
    &__decrement {
        margin: 0;
        height: auto;
        align-self: normal;
        padding: 0 4px;

        &:focus:not(:disabled) {
            box-shadow: 0 0 0 1px var(--input-active-color);
            outline: none;
        }
    }
}

// Define the scrollbar styles as a mixin
@mixin custom-scrollbar {
    ::-webkit-scrollbar {
        width: 8px;
        height: 8px;
    }
    ::-webkit-scrollbar-thumb {
        background-color: #888;
        border-radius: var(--border-radius);
        border: 2px solid transparent;
        background-clip: padding-box;
    }
    ::-webkit-scrollbar-thumb:hover {
        background-color: #555;
    }
    ::-webkit-scrollbar-track {
        background-color: #f0f0f0;
        border-radius: var(--border-radius);
    }
}


.bm-controls {
    select {
        height: auto;
        font-size: 12px;
        line-height: normal;
        min-height: auto;
        border-color: lightgray;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    @include custom-scrollbar;
} 

/**
 * Width & Height
 */
.bm-width-control,
.bm-height-control {
    display: flex;
    border-radius: var(--border-radius);
    flex-direction: column;
    align-items: start;
    gap: 8px;
    padding: 5px 10px;

    &__width,
    &__min-max {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 12px;
    }

    .bm-base-input {
        flex: 1;
    }

    &__devices {
        flex: 1;
        text-align: center;
    }

}

/**
 * Control
 */
.bm-control-label {
    font-size: 9px;
    color: var(--control-label-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 2px;

    .bm-reset {
        height: 12px !important;
        width: 12px !important;
    }
}

/**
 * Responsive
 */
.bm-responsive {
    // padding: 0px 10px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    /* Add New */
    .bm-responsive__add-new {
        margin-left: 2px;

        &.bm-button-control svg {
            font-size: 20px;
        }
    }

    &__label {
        font-size: 11px;
        font-weight: 500;
        line-height: 1.4;
        // text-transform: uppercase;
        display: inline-flex;
        margin-bottom: calc(8px);
        padding: 0px;
        flex: 1;
    }

    &.bm-control-seperator {
        position: relative;
        padding: 12px 0 0 0;
        // border-top: 1px solid var(--border-color);
        margin: 12px 0 0 0;

        &:before {
            content: '';
            position: absolute;
            left: -16px;
            right: -16px;
            height: 1px;
            background: #e6e6e6;
            top: 0;
        }
    }

    // @at-root .components-panel__body &.bm-responsive--appearance {
    //     padding: 12px 0;
    //     // border-top: 1px solid var(--border-color);
    //     margin: 12px 0 0 0;
    // }
    // @at-root .components-panel__body &.bm-responsive--layout {
    //     padding: 12px 0;
    //     // border-top: 1px solid var(--border-color);
    //     margin: 12px 0 0 0;
    // }
    // @at-root .components-panel__body &.bm-responsive--backgorund {
    //     padding: 12px 0;
    //     // border-top: 1px solid var(--border-color);
    //     margin: 12px 0 0 0;
    // }

    .bm-button-control {
        padding: 2px 3px;

        svg {
            height: 1em;
            width: 1em;
            // fill: transparent;
            font-size: 12px;
        }
    }

    .bm-buttons .bm-button-control svg {
        font-size: 18px;
    }

    .bm-reset svg {
        fill: transparent;
    }

    &__actions {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
    }
}

/**
 * Color Picker
 */
.bm-color-picker {
    display: flex;
    align-items: center;
    padding: 2px 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin: 0 10px;
    gap: 5px;

    &__input {
        width: auto;
        min-width: auto;
        max-width: initial;
        border: none;
        font-size: 12px;
        outline: none;
        flex: 1;
        font-weight: 400;
    }

    .bm-base-input {
        border: none;
        min-width: 40px;

        input {
            min-width: 40px;
            font-size: 12px;
        }
    }

    &__preview {
        height: 14px;
        width: 14px;
        padding: 0;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--border-radius);
        overflow: hidden;
        border: 1px solid var(--border-color);
        min-width: 14px;
        border: none;

        // &:focus:not(:disabled),
        // &:hover {
        //     // box-shadow: 0 0 0 1px var(--input-active-color);
        //     box-shadow: none;
        // }

        span {
            display: block;
            height: 100%;
            width: 100%;
        }
    }

    &:hover {
        border-color: var(--input-active-color);
    }

    &.is-active {

        >.bm-row+span,
        .bm-base-input+span {
            display: none;
        }
    }
}

/**
 * Extend default color picker box.
 */
.bm-color-picker__popover {
    .react-colorful__pointer-fill {
        box-shadow: rgb(255, 255, 255) 0px 0px 0px 4px inset;
    }

    #inspector-select-control-0 {
        border: 1px solid var(--border-color);
        border-color: lightgray;
        height: auto;
        min-height: auto;
    }

    .react-colorful+div {
        padding: 4px 0;

        .react-colorful__pointer.react-colorful__alpha-pointer {
            border: 1px solid lightgray;
        }

        >div {
            padding: 3px 10px;

            // HEX
            .components-input-control {
                &__backdrop {
                    border-color: lightgray;
                    padding: 0;
                }

                &__input {
                    padding: 6px;
                    line-height: normal;
                    height: auto;
                    min-height: auto;
                }

                .components-spacer {
                    margin: 0 0 0 10px;
                }
            }

            // RGBA, HSL
            .components-h-stack {
                [type="number"] {
                    width: 50px;
                }

                .components {
                    &-spacer {
                        padding: 0 0 0 12px;
                        margin: 0;
                    }

                    &-range-control {
                        flex: 1;
                        width: 100%;
                    }

                    &-input-base {
                        width: 70px;
                    }

                    &-input-control {
                        width: auto;
                    }
                }
            }
        }

        [data-wp-component="InputBase"] {
            margin: 0;
        }
    }
}

/**
 * Box Model
 */
.bm-box-model-control {
    margin: 0 0 4px 0;

    + .bm-row {
        align-items: flex-start;
    }

    .bm-base-input__unit {
        opacity: .2;
    }
    .bm-base-input:hover {
        .bm-base-input__unit {
            opacity: 1;
        }
    }
    .bm-box-model__padding .bm-box-model__left,
    .bm-box-model__padding .bm-box-model__right {
        top: 22px;
    }

    .bm-base-input input {
        margin: 0;
    }

    .bm-box-model__tick {
        position: absolute;
        right: 0;
        top: 0;
        opacity: 0.5;

        outline: none;
        height: auto;
        width: auto !important;
        min-width: auto !important;
        min-height: auto !important;
        padding: 0 !important;

        &:hover,
        &:focus {
            background: transparent !important;
        }

        svg {
            fill: #000;
            height: 18px;
            width: 18px;
        }
    }

    .bm-base-input {
        position: absolute;
        border: none;
        background: transparent;

        // input {
        //     // width: 30px;
        //     // background: transparent;
        //     // border: none;
        // }

        // &__icon {
        //     display: none;
        // }
    }

    .bm-box-model__inner {
        min-height: 20px;
        display: inline-block;
        background: #8cb6c0;
        border: 1px solid black;
        width: 90px;
    }

    .bm-base-input {
        position: absolute;

        input {
            min-width: 20px;
            // min-width: 30px !important;
            // max-width: 100%;
            text-align: center;
            height: 20px;
            // border: 1px solid #000; // TEMPORARY
        }
    }

    .bm-box-model__margin,
    .bm-box-model__border,
    .bm-box-model__padding {
        position: relative;
        padding: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #000;

        .bm-box-model {
            &__top {
                top: 0;
                left: 50%;
                transform: translateX(-50%);
            }
            &__right {
                right: 1px;
            }
            &__bottom {
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
            }
            &__left {
                left: 1px;
            }
        }
        // .bm-base-input {
        //     &:nth-child(1) {
        //         top: 0;
        //         left: 50%;
        //         transform: translateX(-50%);
        //     }

        //     &:nth-child(2) {
        //         right: 1px;
        //     }

        //     &:nth-child(3) {
        //         bottom: 0;
        //         left: 50%;
        //         transform: translateX(-50%);
        //     }

        //     &:nth-child(4) {
        //         left: 1px;
        //     }
        // }
    }

    .bm-box-model__margin {
        background: #f7cb99;
        border-style: dashed;
    }

    .bm-box-model__border {
        background: #fcdc99;
    }

    .bm-box-model__padding {
        background: #c3cf8a;
        padding: 20px 25px;
    }

    // .bm-box-model__margin .bm-box-model__border-control--bottom {
    //     left: calc( 3px + 50% );
    // }
    
    // .bm-box-model__margin .bm-box-model__border-control--top {
    //     left: calc(3px + 50%);
    // }

    // .bm-box-model__margin .bm-box-model__border-control--left,
    // .bm-box-model__margin .bm-box-model__border-control--right {
    //     padding-top: 12px;
    // }

    .bm-box-model__border-control {
        position: absolute;
        display: flex;
        gap: 0;
        align-items: center;
        min-height: 20px;

        &--top,
        &--right,
        &--bottom,
        &--left {
            .bm-border-style {
                position: relative,
            }
        }

        &--right,
        &--left {
            flex-direction: column;
        }

        &--top {
            top: 0;

            > .bm-box-model__top {
                left: calc(-1px + 50%);
            }
        }

        &--right {
            right: 0;
        }

        &--bottom {
            bottom: 0;
        }

        &--left {
            left: 0;
        }

        // &--top,
        // &--bottom {
        //     .bm-border-style {
        //         // left: -3px;
        //         // top: 1px;
        //     }
        // }

        &--left,
        &--right {
            padding: 2px 0 0 0;

            // .bm-border-style {
            //     top: -2px;
            // }
        }

        // Color picker.
        .bm-color-picker {
            border: none;
            margin: 0;
            padding: 0;
            height: 12px;
            width: 12px;
            overflow: hidden;

            &__input {
                display: none;
            }

            &__preview {
                // box-shadow: none;
                border: none;

                +span {
                    display: none;
                }
            }

            .bm-base-input {
                display: none;
            }
        }

        // Input.
        .bm-base-input {
            position: relative;

            +span {
                display: none;
            }

            input {
                height: auto;
            }
        }

        // Border Style.
        .bm-border-style {
            display: flex;

            &__button {
                // height: 4px;
                // width: 18px;

                svg {
                    height: auto;
                    width: 100%;
                }

                &:focus:not(:disabled) {
                    box-shadow: 0 0 0 1px var(--input-active-color);
                }
            }
        }


        .bm-border-style button {
            height: 16px;
            width: 16px;
            text-align: center;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 4px;
        }

        &--top .bm-border-style button,
        &--bottom .bm-border-style button {
            margin: 0 0 0 -5px;
        }

        &--left .bm-border-style button,
        &--right .bm-border-style button {
            margin: 0 0 -4px -1px;
        }

        &--left > .bm-base-input,
        &--right > .bm-base-input {
            margin: 0 0 4px 0;
        }
        
    }
}

/**
 * Border Style
 */
.bm-border-style {
    &__button {
        padding: 0;
        height: 20px;
        width: 20px;
    }
}

/**
 * Box Sizing
 */
.bm-box-sizing-control {
    .bm-button-control svg {
        width: 1em;
        height: 1em;
        font-size: 14px;
        fill: none;
    }
    .bm-buttons {
        gap: 8px;
        padding: 6px;
    }
}

/**
 * Select control
 */
.bm-select {
    padding: 1px;
    background: var(--input-bg);
    display: inline-flex;
    color: var(--input-color);
    border-radius: var(--border-radius);
}

.bm-selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    gap: 2px;
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 2px;
    line-height: normal;
    border: 1px solid transparent;

    > span {
        padding: 3px 8px;
    }

    > svg {
        + span {
            padding: 0 8px 0 0px;
        }
    }

    @at-root .bm-select.is-active & {
        background: #fff;
        color: #09f !important;
        box-shadow: var(--input-active-box-shadow);

        > svg {
            fill: #09f;
        }
    }

    @at-root .bm-select.with-icon & {
        padding: 0;
    }
}

/**
 * Layar and background blur
 */
.bm-transition__duration,
.bm-transition__delay,
.bm-background-blur .bm-base-input,
.bm-layer-blur .bm-base-input {
    width: 70px;
}

/**
 * Transform
 */
.bm-transform { 
    &__perspective {
        width: 70px;
    }
    &__translate,
    &__skew,
    &__scale,
    &__rotation {
        gap: 4px;
        > .bm-base-input {
            min-width: 60px;
        }
    }
}

/**
 * Typography
 */
.bm-typography-control .bm-color-picker .bm-base-input input {
    min-width: auto;
}

.bm-typography-control .bm-row .bm-color-picker {
    padding: 0;
}

.bm-typography-control .bm-color-picker .bm-button-control {
    border-radius: var(--border-radius);
}
.bm-typography-control .bm-buttons {
    flex-wrap: wrap;
}
.bm-typography-control {
    margin: 4px 0 0 0;
    // padding: 0 5px;
    // margin: 4px 0 10px 0;
    .bm-text-decoration,
    .bm-text-align {
        padding-left: 4px;
    }

    
    &__font-image {
        display: flex;
    }

    &__fonts-list {
        margin: 4px 0;
        border: 1px solid rgba(53, 71, 90, 0.2);
        padding: 4px;
        border-radius: var(--border-radius);

        input[type="search"] {
            border: 1px solid rgba(53, 71, 90, 0.2);
            width: 100%;
            margin: 0 0 8px 0;
            font-size: 14px;
            line-height: normal;
            padding: 8px 12px;
        }
    }

    &__font-weight {
        display: flex;
        align-items: center;
        gap: 8px;

        &--font-loading {
            display: flex !important;
            align-items: center !important;
            gap: 8px !important;
        }
    }

    &__selected-font.bm-button-control {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin: 0 0 4px 0;
        padding: 5px 13px;
        width: 100%;
        min-height: auto;
        height: auto;
        background: transparent;
        border: none;
        margin: 4px 0;
        width: 100%;
        align-items: baseline;
        text-align: left;
        justify-content: left;
        padding: 6px 8px;
        background: var(--input-bg);
        margin: 0 0 4px 0;

        &:hover {
            border-color: var(--input-active-color);
        }

        img {
            height: 24px;
            text-align: center;
        }
    }

    &__fonts {
        height: 300px;
        overflow: auto;
    }

    &__font {
        width: 100%;

        &-weight {
            border: none;
            background: transparent;
            cursor: pointer;
            position: relative;
            display: flex;
            width: 100%;
            text-align: left;

            > svg {
                height: 1em;
                width: 1em;
                font-size: 16px;
            }

            .components-spinner {
                margin: 0;
                height: 12px;
                width: 12px;
            }

            &--varients {
                flex-direction: column;
                align-items: flex-start;
                gap: 0;

                .bm-typography-control__font-weight {
                    margin: 0 0 0 12px;
                }
            }
        }

        &-with-varient {
            display: flex;
            align-items: center;
            gap: 2px;
            align-self: baseline;
            svg {
                width: 1em;
                height: 1em;
                font-size: 16px;
            }
        }

        img {
            max-height: 25px;
        }
    }

    .bm-row {
        // padding: 2px 0;

        .bm-color-picker {
            margin: 0;
            background: var(--input-bg);
            border: none;
            padding: 0 0 0 5px;

            &__input {
                width: 50px;
                background: transparent;

                + .bm-base-input {
                    padding: 0 8px 0 0;
                }
            }
        }
    }

    &__row-1 > .bm-base-input,
    &__row-2 > .bm-base-input {
        padding: 0 12px 0 0;
        width: 80px;

        .bm-base-input__icon {
            margin: 0 4px 0 0;
        }
    }

    &__row-1,
    &__row-2,
    &__row-3,
    &__row-4 {
        margin: 0 0 4px 0;

        .bm-button-control.is-active svg path {
            fill: var(--input-active-color);
        }
    }
}

/**
 * Interactions
 */
.bm-interactions-list {
    display: flex;
    flex-direction: column;

    &__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 2px 4px;
        background: white;
        border: 1px solid lightgray;
        border-radius: 3px;
        margin: 0 0 3px 0;
    }

    .bm-interactions__add {
        background: #09f;
        color: #fff !important;
        margin: 8px 0 12px 0;
        padding: 4px 8px 4px 4px;
        
        svg {
            height: 1em;
            width: 1em;
            font-size: 20px;
        }

        &-form {
            border: 1px solid lightgray;
            border-radius: 4px;
            padding: 8px 12px;
        }
    }
}

/**
 * Radial
 */
.bm-radial-gradient-control {
    &__popover select {
        font-size: 12px;
        padding: 0 8px;
        height: auto;
        min-height: auto;

        .bm-row {
            padding: 0 8px;

            .bm-color-picker {
                margin: 0;
            }
        }
    }
}

/**
 * Image Picker
 */
.bm-background-image-picker {
    display: flex;
    align-items: center;
    gap: 4px;

    .bm-button-control {
        height: 17px;
        width: 17px;
        border: 1px solid lightgray;
    }

    &-control {
        &__popover {
            .components-popover__content {
                min-width: 300px;
            }

            select {
                min-height: auto;
                height: auto;
                font-size: 12px;
            }
        }
    }

    &__preview {
        >div {
            max-height: 16px !important;
            max-width: 16px !important;
            border-radius: var(--border-radius);
            overflow: hidden;
        }
    }
}

/**
 * Background control
 */
.bm-background {
    &-control {
        >div:nth-child(2) {
            margin: 4px 0 0 0;
        }

        .bm-background-types {
            margin: 4px 0 12px 0 !important;

            .bm-button-control svg {
                height: 1em;
                width: 1em;
                font-size: 16px;
            }
        }

        

        .bm-responsive {
            align-items: flex-start;
            padding: 0;
        }

        .bm-background-preview-box {
            display: flex;
            gap: 4px;
        }
    }

    // &-types .components-button {
    //     padding: 0;
    //     margin: 0;
    //     height: 24px;
    //     width: 24px;
    //     display: flex;
    //     align-items: center;
    //     justify-content: center;
    // }

    &-item {
        display: flex;
        align-items: center;
        margin: 0 0 4px 0;
        justify-content: space-between;
        margin: 2px 5px;
        width: 100%;

        &__background-image {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;

            .bm-color-picker .bm-base-input input {
                min-width: 20px;
            }
        }

        &__background-color {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;

            .bm-color-picker {
                &__preview {
                    box-shadow: var(--input-active-box-shadow);
                }

                .bm-base-input {
                    border: 1px solid transparent;

                    &:hover {
                        border-color: var(--input-active-color);
                    }
                }
            }
        }

        &__background-image {
            // .components-button {
            //     min-width: 20px;
            //     min-height: 20px;
            //     display: flex;
            //     align-items: center;
            //     justify-content: center;

            //     &.bm-background-preview {
            //         height: 16px;
            //         width: 16px;
            //     }
            // }

            .bm-color-picker {
                > .bm-button-control {
                    border: 1px solid lightgray;
                    width: 16px;
                    height: 16px;
                }

                .bm-base-input {
                    border: 1px solid transparent;

                    &:hover {
                        border-color: var(--input-active-color);
                    }
                }
            }
        }

        &__linear-gradient {
            display: flex;
            justify-content: space-between;
            width: 100%;

            >.bm-color-picker {
                width: 100%;
            }
        }

        &__remove {
            padding: 0;
            height: auto;
        }

        // .components-button {
        //     padding: 0;
        //     height: auto;

        //     &:hover,
        //     &:focus,
        //     &.is-active {
        //         box-shadow: 0 0 0 1px var(--input-active-color);
        //         color: var(--input-active-color);
        //     }
        // }

        &__control-actions {
            display: flex;
            align-items: center;
            width: 55px;
        }

        &__control {
            .bm-color-picker {
                margin: 0;
                border-color: transparent;

                &__input {
                    width: 100px;
                }
            }

            // &-actions .components-button {
            //     height: 25px;
            //     width: 25px;
            //     display: flex;
            //     align-items: center;
            //     justify-content: center;
            //     padding: 0;
            // }
        }

        &__linear-gradient .bm-color-picker .bm-base-input input {
            min-width: 20px;
        }

        &__control .bm-linear-gradient-control__repeat {
            height: 25px;
            width: 25px;
            display: flex;
            align-items: center;
        }

        &__control .bm-linear-gradient-control__repeat {
            height: 25px;
            width: 25px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        &__control .bm-color-picker:hover {
            border-color: transparent;
        }

        &__linear-gradient .bm-base-input:hover {
            border-color: #007cba;
        }

        &__linear-gradient .bm-base-input {
            border: 1px solid transparent;
        }

        &__linear-gradient .bm-color-picker__preview {
            height: 16px !important;
            width: 16px !important;
            border: 1px solid lightgray !important;
        }

        &__control {
            flex: 1;
        }

        .bm-linear-gradient-control__repeat,
        .bm-radial-gradient-control__repeat,
        .bm-angular-gradient-control__repeat {
            height: 24px;
            width: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
}

/**
 * Flex Box
 */
.bm-flex-control {
    &__gap {
        display: flex;
        gap: 8px;
    }

    .bm-button-control {
        svg {
            fill: var(--input-color);
            height: 1em;
            width: 1em;
            font-size: 16px;
        }

        &.is-active svg {
            fill: #09f;
        }
    }
    &__align-box .bm-button-control {
        svg {
            font-size: 24px;
            opacity: .5;
        }
        &.is-active svg {
            opacity: 1;
        }
    }
    
    &__align-box {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        > div {
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }

    &__display {
        background: var(--input-bg);
        display: inline-flex;
        gap: 4px;
        padding: 1px;
        border-radius: var(--border-radius);

        button {
            padding: 4px;
            margin: 0;
            line-height: normal;
            height: auto;
            width: 24px;
            min-height: auto;
            min-width: auto;
            display: flex;
            align-items: center;
            justify-content: center;

            &:hover,
            &:focus,
            &.is-active {
                box-shadow: 0 0 0 1px var(--input-active-color);
                color: var(--input-active-color);
            }
        }
    }
}

/**
 * Text Align
 */
.bm-text-transform,
.bm-text-decoration,
.bm-align-self,
.bm-text-align {
    display: flex;
    gap: 8px;

    // .components-button {
    //     height: 24px;
    //     width: 24px;
    //     padding: 0;
    //     line-height: normal;
    //     display: flex;
    //     align-items: center;
    //     justify-content: center;

    //     &:hover,
    //     &:focus {
    //         box-shadow: none;
    //         outline: none;
    //         color: inherit;
    //     }

    //     &.is-active,
    //     &.is-active:hover,
    //     &.is-active:focus {
    //         box-shadow: 0 0 0 1px var(--input-active-color);
    //         color: var(--input-active-color);
    //     }
    // }
}

/**
 * Gap control
 */
.bm-gap-control {

    // display: flex;
    // align-items: center;
    // justify-content: space-between;
    // margin: 4px 0;
    >.bm-inline-row {
        align-items: end;
    }

    .bm-base-input {
        input {
            min-width: 40px;
        }
    }

    &__label {
        color: gray;

        +.bm-base-input {
            border-color: transparent;

            &:hover {
                border-color: var(--input-active-color);
            }

            input {
                min-width: 30px;
                text-align: center;
            }

            .bm-base-input__unit {
                padding-right: 4px;
            }
        }
    }
}

/**
 * Rotate & Flip controls
 */
.bm-rotation-control {
    &__flip {
        display: inline-flex;
        gap: 4px;
    }

    .bm-base-input {
        border-color: transparent;

        &:hover {
            border-color: var(--input-active-color);
        }

        input {
            min-width: 40px;
        }
    }

    &__rotate {
        display: inline-flex;
        gap: 4px;

        // .components-button {
        //     height: 25px;
        //     width: 25px;
        //     border-color: transparent;

        //     &:hover {
        //         border-color: var(--input-active-color);
        //         color: var(--input-active-color);
        //     }
        // }
    }
}

/**
 * Width & Height Control
 */
.bm-width-and-height-control {
    .bm-row {
        margin: 0 0 4px 0;
    }
    .bm-base-input {
        input {
            min-width: 50px;
        }

        &__unit {
            padding: 0 6px 3px 0;
        }
    }
}


/**
 * Buttons
 */
.bm-buttons {
    background: var(--input-bg);
    color: var(--input-color);
    display: inline-flex;
    gap: 4px;
    padding: 1px;
    border-radius: var(--border-radius);

    // Override.
    .bm-button-control {
        height: auto;
        width: auto;
        border-radius: var(--border-radius);
    }

    &--md .bm-button-control {
        padding: 4px 8px;
    }
}

.bm-cubic-bezier-curve-button svg {
    height: 1em;
    width: 1em;
    font-size: 12px;
}

/**
 * Button Control
 */
.bm-button-control {
    padding: 0;
    margin: 0;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: var(--border-radius);
    color: var(--input-color);

    &,
    &:hover,
    &:focus {
        color: var(--input-color) !important;
        box-shadow: none !important;
    }

    &.is-active,
    &.is-active:focus {
        background: var(--input-active-bg) !important;
        color: var(--input-active-color) !important;
        box-shadow: var(--input-active-box-shadow) !important;
    }

    svg {
        // fill: transparent;
        height: 24px;
        width: 24px;
    }
}

/**
 * Image picker
 */
.bm-image-picker {
    &__upload {
        background: var(--input-bg);
        border: 1px dashed var(--input-color);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        padding: 16px;
        border-radius: var(--border-radius);
        color: var(--input-color);
        cursor: pointer;

        &:hover {
            background: #fff;
            border-color: #09f;
            color: #09f;
        }

        svg {
            margin: 0 0 4px 0;
            path {
                fill: #09f;
                opacity: .2;
            }
        }
    }
    &__preview {
        background: var(--input-bg);
        position: relative;
        border-radius: var(--border-radius);
        margin: 0 0 8px 0;

        .bm-button-control svg {
            color: #000;
        }
    }
    &__remove {
        position: absolute;
        right: 4px;
        top: 4px;
    }
    &__loading {
        padding: 20px;
        text-align: center;
        display: block;
        color: var(--input-color);
    }
}

/**
 * Panel Body
 */
.components-panel__body {
    // .bm-responsive {
    //     padding: 0 0 4px 0;
    // }

    // .bm-typography-control {
    //     padding: 4px 0 0 0;
    //     margin: 0;
    // }

    // Background Control.
    .bm-background-item {
        margin: 0;

        .bm-color-picker>.bm-row {
            width: 100%;
        }

        .bm-base-input {
            input {
                min-width: 40px;
            }

            .bm-base-input__unit {
                padding: 0 0 3px 0;
                margin: 0 4px 0 0;
            }
        }

        .bm-background-types {
            padding: 0 0 8px 0;
        }

        .bm-color-picker {
            padding: 0;
        }

        &__control {
            &-actions {
                justify-content: flex-end;
            }

            .bm-color-picker__input {
                width: 80px;
            }
        }

        &__background-image .bm-background-image-picker .bm-base-input input {
            min-width: 20px;
        }
    }
}

/**
 * zIndex and Opacity Control
 */
.bm-z-index-control,
.bm-opacity-control {

    // display: flex;
    // align-items: center;
    // justify-content: space-between;
    .bm-base-input {
        input {
            min-width: 40px;
        }

        .bm-base-input__unit {
            padding: 0 0 3px 0;
            margin: 0 4px 0 0;
        }
    }
}

/**
 * Radius Control
 */
.bm-radius-control {

    // display: flex;
    // align-items: center;
    // justify-content: space-between;
    >.bm-row {
        gap: 2px;
    }

    .bm-base-input {
        input {
            min-width: 40px;
        }

        .bm-base-input__unit {
            padding: 0 0 3px 0;
            margin: 0 4px 0 0;
        }
    }

    &__popover {
        .bm-row {
            min-width: 180px;

            input {
                min-width: 40px;
            }

            .bm-base-input__unit {
                padding: 0 0 3px 0;
                margin: 0 4px 0 0;
            }
        }

        .components-popover__content {
            padding: 4px 0;
        }
    }
}

.bm-radius-control__popover {
    padding: 4px 8px;

    .bm-button-control.bm-reset {
        padding: 0;
    }
}

/**
 * Settings
 */
.bm-settings__header {
    display: flex;
    justify-content: space-between;

    .bm-settings-copy svg {
        height: 1em;
        width: 1em;
        font-size: 12px;
        line-height: normal;
    }
}

/**
 * Popover
 */
.bm-popover {
    ul,
    li {
        margin: 0;
    }

    // Override.
    // .bm-button-control {
    //     height: auto;
    //     width: 100%;
    //     padding: 1px 8px;
    //     justify-content: flex-start;
    //     border-radius: 0;

    //     &:hover,
    //     &:focus {
    //         box-shadow: none !important;
    //         background: #09f !important;
    //         color: #fff !important;
    //     }
    // }
    .bm-button-control {
        justify-content: flex-start;
        text-align: left;
    }

    @include custom-scrollbar;

    &__header {
        display: flex;
        justify-content: space-between;
        padding: 0 0 8px 0;

        &-buttons {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4px;
        }
    }

    .bm-row {
        padding: 0 4px 0 0;
        margin: 0 0 4px 0;

        &:last-child {
            margin: 0;
        }
    }

    .components-popover__content {
        width: auto;
    }

    .bm-color-picker {
        margin: 0;
        padding: 0;
        border: none;

        &:hover {
            border-color: transparent;
        }

        .bm-base-input {
            border: 1px solid var(--border-color);

            &:hover {
                border-color: var(--input-active-color);
            }

            &__unit {
                padding: 0 0 3px 0;
                margin: 0 4px 0 0;
            }
        }
    }

    .components-popover__content {
        background: var(--white);
        border: none;
    }
    
    .bm-select-list {
        background: var(--input-bg);
        padding: 1px;
        
        svg {
            height: 1em;
            width: 1em;
            font-size: 20px;
        }
        
        button svg {
            margin: 0 2px 0 0;
        }

        .bm-select-item {
            .bm-button-control {
                padding: 0 8px 0 0;
            }
            &.is-active .bm-button-control {
                background: #fff !important;
                color: #09f !important;
                box-shadow: .5px .5px 1px rgba(0, 0, 0, .1) !important;
            }

            &.no-icon .bm-button-control {
                padding: 3px 3px 3px 5px;
            }
        }
    }

    /**
     * Default color picker
     */
    .react-colorful {
        &__saturation {
            margin-bottom: 8px;
        }
        &__hue {
            width: calc( -16px + 100% );
            margin: 0 0 4px 0;
        }
        &__alpha {
            width: calc( -16px + 100% );
            margin: 0 0 4px 0;
        }

        + div {
            padding: 0;

            > div {
                padding: 4px 8px;
                outline-color: transparent;

                .components-input-control__container {
                    background: var(--input-bg);
                    width: auto;

                    .components-input-control__backdrop {
                        height: auto;
                        border: none;
                        padding: 0;
                        min-height: 0;

                        input {
                            min-height: auto !important;
                            height: auto;
                        }
                    }
                }
            }
        }

        .components-color-picker {
            svg {
                color: var(--input-color);
            }
            .components-button svg {
                width: 1em !important;
                height: 1em;
                font-size: 20px;
                color: var(--input-color);
            }
            .components-select-control__input {
                background: var(--input-bg);
                color: var(--input-color);
                height: auto;
                min-height: auto;
                margin: 0 0 0 0;

                svg {
                    fill: var(--input-color);
                }

                &:focus {
                    outline: none !important;
                    box-shadow: none !important;
                    border: none !important;
                    background: #fff !important;
                    color: #09f !important;
                }
            }        
        }
    }

}

/**
 * Separator
 */
.bm-separator-control {
    position: relative;
    padding: 12px 0 0 0;
    margin: 12px 0 0 0;

    &:before {
        content: "";
        position: absolute;
        left: -16px;
        right: -16px;
        height: 1px;
        background: #e6e6e6;
        top: 0;
    }
}

/**
 * State Control
 */
.bm-state-control {
    .bm-button-control {
        gap: 2px;
        padding: 6px 4px;

        svg {
            height: 1em;
            width: 1em;
            font-size: 16px;
            fill: none;
        }
    }

    .bm-buttons .bm-buttons__label {
        padding: 0 4px 0 0;
        font-size: 11px;
        line-height: normal;
    }
}

/**
 * Box Shadow
 */
.bm-box-shadow-control {
    .bm-box-shadow-item__control {
        display: flex;
        align-items: center;

        &-actions {
            display: flex;
        }

        select {
            font-size: 12px;
            padding: 2px 8px;
            height: auto;
            min-height: auto;
            line-height: normal;
            border-color: var(--border-color);
        }
    }
}

/**
 * Global Styles
 */
// .bm-global-styles-modal table,
.bm-global-styles-modal th,
.bm-global-styles-modal td {
    border: 1px solid;
}

.bm-global-styles-modal__content {
    min-width: 600px;
}


/**
 * Sides control
 */
 .bm-position-control__sides {
    display: flex;
    gap: 4px;

    .bm-base-input {
        flex: 1;
    }
}

/**
 * Animations
 */
.bm-animation-control .bm-responsive__add-new svg {
    fill: transparent;
}

.bm-animation-names {
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
}
.bm-animation-replay,
.bm-animation-pause {
    height: auto;
    width: auto;
    margin: 2px 0 0 0;
}
.bm-animation-popover {
    width: 260px;
    padding: 8px;

    .bm-input {
        border-color: var(--border-color);
    }

    .bm-add-step {
        margin: 8px 0;
    }

    .bm-animation-step {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
    }

    .bm-animation-steps {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .bm-animation-offsets {
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 4px;
        cursor: pointer;
    }

    .bm-animation-step {
        padding: 4px;
    }

    .bm-animation-offset {
        background: rgb(0 0 0 / 10%);
        display: flex;
        border-radius: var(--border-radius);
    }

    .bm-animation-offset .bm-base-input {
        background: transparent;
        border: none;
        padding: 0 0 0 4px;
    }

    .bm-animation-offset>.components-button:hover {
        background: transparent !important;
    }
}

.bm-create-animation-modal {
    min-width: 600px;
    min-height: 200px;

    .bm-animation-step-details {
        display: flex;
        align-items: flex-start;
    }

    .bm-animation-steps {
        width: 100%;
    }

    .bm-animation-step {
        border: 1px solid lightgray;
        border-radius: var(--border-radius);
        padding: 8px;
    }

    .bm-animation-properties {
        flex: 1;
    }

    .bm-animation-preview {
        flex: 1;
        /* background: lightgray; */
        border-radius: var(--border-radius);
        /* padding: 8px 12px; */
        margin: 0 0 0 30px;
    }

    .bm-animation-preview {
        perspective: 800px;
    }
}

.bm-animation-preview-cube {
    position: relative;
    transform-style: preserve-3d;

    > div {
        position: absolute;
        width: inherit;
        height: inherit;
        border: 1px solid #ccc;
    }
}

body {
    .bm-add-new-animation-step {
        background: var(--input-bg);
        border: 1px solid;
        border-radius: var(--border-radius);
        display: flex;
        align-items: center;
        gap: 0;
        padding: 0 8px 0 0;
        color: var(--input-color);
        cursor: pointer;
    }
    
    .bm-add-new-animation-step:hover {
        color: var(--input-active-color);
        border-color: var(--input-active-color);
        background: #fff;
    }
    
    .bm-animation-step-actions > button {
        color: var(--input-color);
    }

    .bm-row.bm-animation-step-actions .bm-animation-step-add-offset svg path {
        height: 20px;
        width: 20px;
    }
    
    .bm-animation-properties .bm-row {
        gap: 4px;
    }
    
    .bm-animation-properties > .bm-row {
        margin: 12px 0;
    }

    .bm-create-animation-modal .bm-animation-properties {
        width: 50%;
    }
    
    .bm-create-animation-modal .bm-animation-preview {
        width: 50%;
        padding: 60px 0 0 20px;
    }
    .bm-animation-modal .components-modal__header .components-modal__header-heading {
        font-size: 18px;
    }
    
    .bm-animation-modal .bm-animation-library__back, .bm-animation-modal .bm-animation-library__add-new {
        color: var(--input-active-color);
        background: var(--input-bg);
        border: 1px solid transparent;
        padding: 0 8px 0 0;
        margin: 0;
        line-height: normal;
        width: auto;
        border-radius: var(--border-radius);
        height: auto;
        display: flex;
        align-items: center;
        position: absolute;
        top: 13px;
        left: 120px;
        cursor: pointer;
        z-index: 999;
    }

    .bm-animation-modal .bm-animation-library__back, .bm-animation-modal .bm-animation-library__add-new:hover {
        border-color: var(--input-active-color);
    }
    
    .bm-animation-modal .bm-animation-library__footer {
        padding: 8px 16px;
    }
    .bm-animation-modal .components-modal__header {
        border-bottom: 1px solid #ddd;
    }
    
    .bm-animation-modal .components-modal__content {
        padding: 20px 16px;
        margin: 50px 0px;
    }

    /* Temp */
    .bm-animation-player {
        width: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        padding: 70px 0 0 0;
    }
    
    .bm-animation-player h2 {
        position: absolute;
        top: 7px;
        left: 20px;
        margin: 0;
    }
    
    .bm-create-animation-modal > .bm-row {
        align-items: stretch;
        margin: 20px 0 0 0;
    }
    
   
    .bm-step-items h2 {
        margin: 0;
    }
    
    .bm-step-items {
        width: 50%;
    }
    
    .bm-animation-offset {
        display: flex;
        background: lightgray;
        border-radius: var(--border-radius);
    }
    
    .bm-animation-offset .bm-base-input {
        background: transparent;
    }
    
    .bm-step-items > .bm-row:first-child {
        margin: 0 0 8px 0;
    }
    
}

body .bm-animation-offset {
    background: var(--input-bg);
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    padding: 0 4px 0 4px;
}

body .bm-animation-offset:hover {
    border-color: #09f;
    background: white;
}

/**
 * Editor UX Improvements.
 */
// [class^="wp-block-bm-"] {
//     // &.is-highlighted:after {
//     //     outline: none !important;
//     // }
// }
// TEMPORARY
// body:not(.bm-controls--hover) {
//     .is-selected,
//     .is-hovered {
//         outline-color: #09f !important;
//         outline-width: 2px !important;
//         outline-style: solid !important;
//     }
//     // .is-hovered {
//     //     outline-width: 1px !important;
//     // }
// }

.bm-controls--hover {
    .block-list-appender,
    .block-editor-block-popover {
        opacity: 0;
        visibility: hidden;
    }
}

// Class start with .bm add before and after classes.
.scroll-indicator {
    position: fixed;
    background: #000;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    right: 0;
}
.scroll-indicator-line {
    position: fixed;
    height: 1px;
    width: 100%;
    background: #ff000047;
}
.scroll-indicator,
.scroll-indicator-line {
    display: none;
}
.bm-show-scroll-indicators .scroll-indicator,
.bm-show-scroll-indicators .scroll-indicator-line {
    display: block;
}
.scroll-indicator-0 { top: calc(0% + 11px) !important; }
.scroll-indicator-0 { top: calc(0% + 11px) !important; }
.scroll-indicator-100 { top: calc(100% - 11px) !important; }
.scroll-indicator-100 { top: calc(100% - 11px) !important; }
.scroll-indicator {
    transform: translate(0%, -50%);
    z-index: 11;
}
.scroll-indicator-line {
    transform: translate(0%, -50%);
}
.bm-scroll-positions {
    outline: 1px solid red !important;
    &:before {
        content: attr(data-before) !important;
        position: absolute !important;
        background-color: #000 !important;
        color: #fff !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        right: 0 !important;
        top: 0 !important;
        z-index: 1 !important;
        left: auto !important;
        bottom: auto !important;
    }
    &:after {
        content: attr(data-after) !important;
        position: absolute !important;
        background-color: #000 !important;
        color: #fff !important;
        padding: 2px 6px !important;
        border-radius: 4px !important;
        font-size: 12px !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 1 !important;
        left: auto !important;
        top: auto !important;
    }
}

.bm-interactions-list {
    &__icon {
        font-size: 10px;
    }
    &__item {
        flex-direction: column;

        .bm-interactions__add-form {
            width: 100%;
            margin: 4px 0 0 0;
        }

        &_data {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
    }

    &__trigger {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
    }
    &__actions {
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
    
        > button:first-child > svg {
            height: 1em;
            width: 1em;
            font-size: 14px;
        }
    }
}

.bm-inner-blocks {
    position: relative !important;

    > .block-list-appender .block-editor-button-block-appender {
        padding: 0;
        height: auto;
        opacity: 0;
        visibility: hidden;
        box-shadow: none;
    }
    &:hover > .block-list-appender .block-editor-button-block-appender {
        opacity: 1;
        visibility: visible;
    }
}

// .block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
//     margin: inherit !important;
// }
// .block-editor-block-list__layout .is-highlighted:after {
//     outline: none !important;
// }
// .wp-block-post-content.wp-block-post-content {
//     width: 100%;
// }
// .wp-block-bm-section,
// .wp-block-bm-ul,
// .wp-block-bm-ol,
// .wp-block-bm-li,
// .wp-block-bm-img,
// .wp-block-bm-a {
//      > .block-list-appender {
//         background: white;
//         border-radius: var(--border-radius);
//         overflow: hidden;
//         opacity: 0;
//         visibility: hidden;
//         .components-button {
//             padding: 0;
//             margin: 0;
//             height: auto;
//         }
//     }
//     &:hover > .block-list-appender {
//         opacity: 1;
//         visibility: visible;
//     }

//     .block-editor-inner-blocks,
//     .block-editor-block-list__layout {
//         all: unset;
//         display: inherit;
//         gap: inherit;
//         background: inherit;
//         border-radius: inherit;
//     }
//     .wp-block-heading {
//         font-size: inherit;
//         font-family: inherit;
//         line-height: inherit;
//     }
// }

/**
 * Section placeholder
 */
.bm-section-placeholder {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: var(--input-bg);
    border: 1px dashed #09f;
    border-radius: var(--border-radius);
    padding: 8px 16px;

    h3 {
        margin: 0;
        line-height: normal;
        font-size: 14px;
    }
    .bm-section-placeholder-number {
        line-height: normal;
        font-size: 10px;
        opacity: 0.5;
    }
    button {
        display: flex;
        gap: 2px;
        height: 52px;
        align-items: center;
        justify-content: space-between;
        width: 140px;
        border: 2px solid lightgray;
        padding: 0;
        cursor: pointer;
        &:hover {
            background: #e5f4ff;
            border-color: #2e93ea;
        }
        span {
            background: lightgray;
            height: 100%;
        }
    }
}

/** <ul> tag */
.wp-block-bm-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
/** <a> tag */
.wp-block-bm-a {
    text-decoration: none;
}
/**
 * Cart block
 */
.wp-block-bm-cart {
    position: relative;

    &:before {
        content: '';
        position: absolute;
        background: #FF7A00;
        height: 5px;
        width: 5px;
        border-radius: var(--border-radius);
        top: 8px;
        right: 8px;
    }
}

/**
 * Badge block
 */
.bm-animation-names__list {
    display: flex;
    flex-wrap: wrap;
    gap: 1px;
    background: var(--input-bg);
}

.bm-badge {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: var(--border-radius);
    padding: 4px 4px 4px 8px;
    justify-content: center;
    line-height: normal;
    border: none;

    &:hover {
        background: #fff;
        color: #09f;
        box-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.1);
    }
}

/**
 * Animation Library
 */
.bm-animation-names__popover {
    width: 200px;
    .components-button {
        color: var(--input-color);
        font-size: 12px;
        line-height: 1.7;
        font-weight: 500;
        padding: 2px 12px;
        border-radius: 0;
        
        &:hover {
            background: #09f !important;
            color: #fff !important;
        }    
    }
}

.bm-animation-modal {
    width: 900px;

    .components-modal__header {
        padding: 12px 16px;
        height: auto;

        &-heading-container {
            flex-grow: unset;
        }
    }

    .components-modal__content {
        margin: 48px 0 60px 0;
        padding: 12px 16px;
    }

    .bm-animation-library {
        &__back,
        &__add-new {
            // position: absolute;
            // top: 12px;
            // right: 48px;
            cursor: pointer;
            width: auto;
            margin-bottom: 12px;
            background: lightgray;
            height: auto;
            width: auto;
            padding: 8px 16px;
        }
    }
    .bm-animations-list {
        border: 1px solid lightgray;
        border-radius: var(--border-radius);
    }
    .bm-animation-item {
        border-bottom: 1px solid lightgray;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;

        &:last-child {
            border-bottom: none;
        }
    }

    .bm-animation-library__footer {
        position: absolute;
        border-top: 1px solid #ddd;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 12px 36px 12px 16px;
        display: flex;
        justify-content: end;
        background: white;
    }
    
    .bm-input {
        width: 100%;
        padding: 8px 16px;
    }
    
    > .bm-row:first-child {
        width: 100%;

        > .bm-inline-col {
            width: 100%;
        }
    }
}

.bm-cubic-bezier-curve-generator select {
    color: var(--input-color);
    border: 1px solid var(--input-color);

    &:hover {
        border-color: #09f;
        color: #09f;
    }
}

#bm-curve-box {
    position: relative;
    width: 200px;
    height: 200px;
    border: 1px solid #09f;
    margin: 12px auto;
    background-color: var(--input-bg);
    border-radius: var(--border-radius);
}
#bm-curve-svg {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
}
.bm-curve-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--input-active-color);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
}
.bm-curve-control-line {
    stroke: var(--input-color);
    stroke-width: 1;
    stroke-dasharray: 4;
}
.bm-curve-moving-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: green;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: moveAlongCurve 4s infinite linear;
}

/* Animation for the moving point along the cubic bezier curve */
@keyframes moveAlongCurve {
    0% {
        left: 0%;
        top: 100%;
    }
    100% {
        left: 100%;
        top: 0%;
    }
}

/* Preview outside the main box */
#bm-curve-preview-box {
    position: relative;
    border: 1px solid #d3d3d3;
    margin: 0;
    background-color: #f2f2f2;
    height: 20px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin: 12px 0;
}
.bm-curve-moving-square {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #09f;
    -webkit-animation: movePreview 2s infinite linear;
    animation: movePreview 2s infinite linear;
    top: 0px;
}

/* Animation for the moving square inside the preview box */
@keyframes movePreview {
    0% {
        left: 0%;
    }
    100% {
        left: 100%;
    }
}

.bm-cubic-bezier-curve-button {
    border: 1px solid transparent;
    background: var(--input-bg);
    color: var(--input-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    cursor: pointer;
}

.bm-cubic-bezier-curve-button:hover {
    border-color: #09f !important;
    background: #fff !important;
    color: #09f !important;
    -webkit-box-shadow: .5px .5px 1px rgba(0, 0, 0, .1) !important;
    box-shadow: .5px .5px 1px rgba(0, 0, 0, .1) !important;
}

.bm-cubic-bezier-curve-generator {
    padding: 12px;
}

.bm-cubic-bezier-curve-generator-button {
    background: #09f;
    border: none;
    color: #fff;
    height: auto;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    margin: 16px 0 0px 0;
    cursor: pointer;
}

.bm-animation-add-new-message {
    border: 1px dashed var(--input-color);
    border-radius: var(--border-radius);
    padding: 34px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 24px 0;

    p {
        margin: 0;
        font-size: 16px;
        color: var(--input-color);
    }

    .bm-animation-library__add-new {
        position: relative !important;
        left: auto !important;
        top: auto !important;
    }
}






.bm-selected svg {
    color: #999;
}

.bm-base-input svg {
    color: #999;
}

.bm-sides-control svg {
    fill: #999;
}

.bm-width-and-height-control svg {
    fill: #999;
}

.bm-radius-control svg {
    fill: #999;
}

.bm-typography-control svg {
    fill: #999;
}

.bm-opacity-control svg {
    fill: #999;
}

.bm-background-blur svg {
    fill: #999;
}