form[data-op3-element-options-type="postlistitem"] {
    .op3-element-options-property[data-op3-element-options-property-name="postListItemBackgroundImageType"] {
        &[data-op3-element-options-property-value="featured"] {
            ~ .op3-element-options-property[data-op3-element-options-property-name="backgroundImageUrl"] {
                display: none;
            }

            ~ .op3-element-options-property-filter {
                display: block;
            }

            ~ .op3-element-options-property[data-op3-element-options-property-name="opacity100"],
            ~ .op3-element-options-property[data-op3-element-options-property-name="backgroundPosition"],
            ~ .op3-element-options-property[data-op3-element-options-property-name="backgroundAttachment"],
            ~ .op3-element-options-property[data-op3-element-options-property-name="backgroundRepeat"],
            ~ .op3-element-options-property[data-op3-element-options-property-name="backgroundSize"] {
                display: flex;
            }
        }

        &[data-op3-element-options-property-value="custom"] {
            ~ .op3-element-options-property[data-op3-element-options-property-name="--op3-fallback-image-src"] {
                display: none;
            }
        }
    }

    // No "remove image" option on fallback image.
    .op3-element-options-property[data-op3-element-options-property-name="--op3-fallback-image-src"] {
        .op3-image-url-preview-widget .op3-image-url-preview-clear {
            display: none !important;
        }
    }

    // Adjust label position so it will be aligned with the one in previous
    // and next tab (color picker label).
    .op3-element-options-property[data-op3-element-options-property-name="backgroundImageUrl"],
    .op3-element-options-property[data-op3-element-options-property-name="--op3-fallback-image-src"] {
        padding-top: 22px;

        #sidebar & {
            padding-top: 29px;
        }
    }

    // Rotate align items icons.
    .op3-element-options-property[data-op3-element-options-property-id="alignItems"],
    .op3-element-options-property[data-op3-element-options-property-id="alignItemsChildren"] {
        .jquery-select-buttons-widget .jquery-select-buttons-option-icon {
           transform: rotate(90deg);
        }
    }

    &:not([data-op3-parent-options-property-value-postListImageLocation="row"]) .op3-element-options-property[data-op3-element-options-property-id="alignItemsChildren"] {
        display: none;
    }

    &[data-op3-parent-options-property-value-postListImageLocation^="column"] {
        .op3-element-options-property[data-op3-element-options-property-id="columnGap"] {
            display: none;
        }
    }
}

form[data-op3-element-options-path*="/postlistitem/"] {
    &[data-op3-element-options-spec="postlisttitle"] {
        .op3-element-options-property[data-op3-element-options-property-id="tag"] {
            .op3-element-options-property-input option[value="div"] {
                display: block;
            }
        }
    }

    .op3-element-options-property[data-op3-element-options-property-id="marginTop"],
    .op3-element-options-property[data-op3-element-options-property-id="marginBottom"] {
        display: none;
    }

    .op3-boxmodel {
        .op3-boxmodel-margin-top,
        .op3-boxmodel-margin-bottom,
        .op3-boxmodel-margin-left,
        .op3-boxmodel-margin-right {
            pointer-events: none;
            opacity: 0.5;

            & + .op3-boxmodel-handler {
                display: none;
            }
        }
    }
}
