/* Row editor-only styles: preset picker, placeholder, helper UI. */

.wp-block-boldpost-layout-row {
    min-height: 60px;
}

.boldpo-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 12px;

    .boldpo-preset-btn {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 8px !important;
        height: auto !important;
        border: 1px solid #ddd !important;
        background: #fff;
        border-radius: 4px;
        cursor: pointer;
        text-align: center;
        transition: border-color 120ms ease, box-shadow 120ms ease;

        &:hover { border-color: #a216ff !important; }

        &.is-active {
            border-color: #a216ff !important;
            box-shadow: 0 0 0 1px #a216ff inset;
        }

        .boldpo-preset-btn__label {
            font-size: 11px;
            color: #555;
            line-height: 1;
        }
    }
}

.boldpo-preset-icon {
    display: flex;
    width: 100%;
    height: 22px;
    gap: 3px;

    .boldpo-preset-icon__col {
        display: block;
        background: #d8c7f0;
        border-radius: 2px;
    }
}

/* Empty Row — full layout picker (matches premium-builder UX). */
.boldpo-layout-row__layout-picker {
    width: 100%;
    padding: 32px 24px;
    border: 1px dashed #cfd2d6;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;

    &__title {
        text-align: center;
        font-size: 14px;
        font-weight: 500;
        color: #4a4a4a;
        margin-bottom: 24px;
    }

    &__grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    &__item {
        all: unset;
        width: 84px;
        height: 36px;
        padding: 6px;
        border: 1px solid #e2e4e7;
        border-radius: 3px;
        background: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        box-sizing: border-box;
        transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;

        &:hover {
            border-color: #a216ff;
            box-shadow: 0 0 0 1px #a216ff inset;
        }

        &:focus-visible {
            outline: 2px solid #a216ff;
            outline-offset: 2px;
        }

        .boldpo-preset-icon {
            width: 100%;
            height: 100%;
            gap: 4px;

            &__col {
                background: #c8ccd0;
                border-radius: 2px;
            }
        }

        &:hover .boldpo-preset-icon__col { background: #a216ff; }
    }
}
