// Header
.ecs-block-header {
    text-align: center;

    h3 {
        margin: 0;
    }
}

// Block Container
.ecs-block-edit {
    padding: 10px 15px;

    font-family: sans-serif;
    font-size: 18px;

    h4 {
        margin: 0;
    }
}

// FormTokenField fix
.ecs-setting-col {
    .components-form-token-field__label {
        display: none;
    }

    .components-form-token-field__remove-token.components-button {
        padding: 0 2px;
    }

    .components-form-token-field__suggestions-list {
        margin: 0;
        padding: 0;
    }
}

// Content Order
.ecs-contentorder-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 7px 0;
    padding: 2px 14px 2px 8px;
    width: fit-content;
    border: 1px solid #1e1e1e;
    border-radius: 3px;
    color: #1e1e1e;
    font-size: 13px;
    font-weight: bold;

    &.unchecked {
        background-color: #e5e5e5;
        color: #aaa;
    }
}

.ecs-contentorder-item-inner {
    margin-top: 3px;
    display: flex;
    align-items: center;
}

// Settings Row
.ecs-settings-row {
    display: flex;
    padding: 18px 0;
    border-bottom: 1px solid #e5e5e5;

    &.mobile {
        flex-direction: column;

        > * {
            margin-bottom: 8px;
        }

        .ecs-remove-col {
            align-self: center;
            margin-bottom: 0;
        }
    }

    > * {
        padding: 0 10px;
    }

    .ecs-selector-col {
        flex: 3;
        display: flex;
        align-items: center;
    }

    .ecs-setting-col {
        flex: 4;
    }

    .ecs-remove-col {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

// Setting Selector
.ecs-setting-add {
    display: flex;
    padding: 18px 10px;

    > .components-base-control {
        width: 100%;
    }

    > .ecs-select {
        flex: 3;
        padding: 0 10px;
    }

    > .ecs-flex-fill {
        flex: 5;
        padding: 0 10px;
    }

    &.mobile {
        > .ecs-flex-fill {
            display: none;
        }
    }
}

// General Setting Input Text
.ecs-setting-text-field {
    display: flex;
    flex-direction: column;

    label {
        font-size: 13px;
    }
}

.ecs-setting-help {
    line-height: 1.1;
    font-size: 16px;
    margin-top: 10px;
}

// Key Value Setting
.ecs-key-value {
    display: flex;

    :first-child {
        margin-right: 10px;
    }

    > div {
        flex: 1;
    }
}

// Month Setting
.ecs-settings-month {
    display: flex;
    flex-direction: column;

    .ecs-setting-year-month {
        display: flex;
        align-items: center;

        .ecs-setting-text-field input {
            width: 60px;
        }

        .ecs-month-divider {
            width: 10px;
            height: 19px;
            margin: 0 10px;
            border-bottom: 1px solid black;
        }
    }
}

// Thumbnail
.ecs-settings-thumb {
    display: flex;
    flex-direction: column;

    .ecs-settings-thumb-width-height {
        display: flex;
        align-items: center;

        .ecs-setting-text-field input {
            width: 60px;
        }

        .ecs-thumb-divider {
            width: 10px;
            height: 19px;
            margin: 0 10px;

            em {
                white-space: nowrap;
            }
        }
    }

    .ecs-settings-thumb-size {
        margin-top: 5px;
    }

    .ecs-setting-help {
        margin-top: 5px;
    }
}

