.wprm-template-property {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.wprm-template-property {
    padding: 4px 0;
    border-bottom: 1px solid #ddd;

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

    .wprm-template-property-header {
        width: 100%;
        text-align: center;
        font-size: 1.2em;
        font-weight: 200;
        margin-top: 30px;
    }

    .wprm-template-property-label {
        font-weight: bold;
        padding: 4px 0;
    }

    // Open dropdown menus to top to prevent scroll/overflow issues.
    .Select-menu-outer {
        position: absolute !important;
        top: auto !important;
        bottom: calc(100% - 1px) !important;
        border-bottom-left-radius: 0px !important;
        border-bottom-right-radius: 0px !important;
        border-top-left-radius: 5px !important;
        border-top-right-radius: 5px !important;
    }
    
    .is-open .Select-control {
        border-top-right-radius: 0 !important;
        border-top-left-radius: 0 !important;
        border-bottom-right-radius: 5px !important;
        border-bottom-left-radius: 5px !important;
    }
    
    .wprm-template-property-value {
        &.wprm-template-property-value-font {
            width: 100%;

            input {
                width: 100%;
            }
            .wprm-template-property-input {
                margin-top: 5px;
            }
        }
        &.wprm-template-property-value-text {
            width: 100%;

            input {
                width: 100%;
            }
        }

        &.wprm-template-property-value-align,
        &.wprm-template-property-value-border,
        &.wprm-template-property-value-float,
        &.wprm-template-property-value-dropdown {
            width: 100%;
        }

        &.wprm-template-property-value-icon {
            a {
                font-size: 0.9em;
            }

            .wprm-template-property-icon-select {
                max-width: 16px;
                max-height: 16px;
            }

            .wprm-template-property-icon-selected-container {
                display: flex;

                .wprm-template-property-icon-select {
                    display: flex;
                    margin-right: 5px;
                }
            }

            .wprm-template-property-icon-select-container {
                width: 100%;

                .wprm-template-property-icon-select-container-icons {
                    margin-top: 5px;
                }
                
                .wprm-template-property-icon-select {
                    display: inline-block;
                    cursor: pointer;
                    margin: 2px;
                }
            }
        }

        &.wprm-template-property-value-color,
        &.wprm-template-property-value-toggle {
            .wprm-template-property-input {
                display: flex;
                align-items: center;
            }
        }

        &.wprm-template-property-value-font_size,
        &.wprm-template-property-value-size {
            display: flex;
            align-items: center;

            input {
                width: 60px;
            }

            .wprm-template-property-value-size-unit {
                margin-left: 5px;
                cursor: pointer;
                color: #999;

                &.wprm-template-property-value-size-unit-selected {
                    color: #444;
                    text-decoration: underline;
                }
            }
        }

        &.wprm-template-property-value-percentage {
            display: flex;
            align-items: center;

            input {
                width: 60px;
            }

            .wprm-template-property-number-suffix {
                margin-left: 5px;
            }
        }

        &.wprm-template-property-value-image_size {
            width: 100%;

            label {
                font-size: 0.8em;
                font-style: italic;
                margin-bottom: 3px;
            }

            .Select-menu-outer {
                position: relative;
            }

            .wprm-template-property-input-width-height {
                display: flex;
                justify-content: flex-start;
                align-items: center;

                input {
                    width: 40%;
                    max-width: 75px;

                    &:first-child {
                        margin-right: 5px;
                    }
                    &:last-child {
                        margin-left: 5px;
                    }
                }
            }
        }
    }
}

