.field-layout-btn-add-after {
    position: absolute;
    display: none;
    width: 30px;
    height: 30px;
    background: var(--kiss-color-contrast);
    border: 1px var(--kiss-color-primary) solid;
    border-radius: 0px 50% 50% 50%;
    /* Angle at the top */
    transform: rotate(-45deg) translateX(-50%);

    bottom: -9px;
    right: -25px;

    color: inherit;
}

.field-layout-btn-add-after:hover {
    background: var(--kiss-color-primary);
    color: #fff;
}

.field-layout-btn-add-after::after {
    content: '+';
    line-height: 1;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    border-radius: 50% 50% 50% 50%;
    transform: rotate(45deg);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.field-layout-dragarea:not(.isDragging) .layout-component-container:not(.sortable-chosen) {

    &.isHovering > .layout-component {

        border-color: var(--kiss-color-primary);
        border-style: solid;
    }

    &.isHovering > .field-layout-btn-add-after {
        display: block;
        z-index: 5;
    }
}

.field-layout-dragarea:not(:empty) + .field-layout-dragarea-empty {
    display: none !important;
}

.layout-component-topbar {
    container-type: inline-size;

    --kiss-button-small-padding-horizontal: 1em;
    --kiss-button-small-line-height: 4em;
    --kiss-button-small-font-size: .4em;
}

.app-sortable-active app-actionbar {
    pointer-events: none;
}

.app-sortable-active [field="layout"] .sortable-chosen .field-layout-children,
.app-sortable-active [field="layout"] .sortable-chosen .field-layout-component-grid,
.app-sortable-active [field="layout"] .sortable-chosen .field-layout-component-row {
    display: none;
}

@container (max-width: 400px) {
    .layout-component-topbar .kiss-text-caption {
        display: none !important;
    }
}
