.wprm-admin-modal-field-equipment,
.wprm-admin-modal-field-equipment-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    background-color: white;

    .wprm-admin-modal-field-equipment-handle {
        flex-shrink: 0;

        .wprm-admin-icon {
            margin: 0 5px;
            cursor: move;
        }
    }
}

.wprm-admin-modal-field-equipment-header-container {
    display: flex;
    align-items: center;
    margin: 0 26px 10px 26px;
    font-weight: bold;

    .wprm-admin-modal-field-equipment-header {
        display: none;

        .wprm-admin-modal-field-equipment-header-required {
            font-size: 0.8em;
            font-weight: normal;
            color: darkred;
        }
    }
}

.wprm-admin-modal-field-equipment {    
    .wprm-admin-modal-field-equipment-text-container {
        display: flex;
        flex: auto;
        flex-wrap: wrap;
        align-items: center;

        .wprm-admin-modal-field-richtext,
        .wprm-admin-modal-field-richtext-legacy {
            flex: 0 0 100%;
        }
    }
}

.wprm-admin-modal-field-equipment-after-container {
    .wprm-admin-modal-field-equipment-after-container-icons {
        flex-shrink: 0;
        margin: 5px;

        .wprm-admin-icon {
            margin-right: 5px;

            &:last-child {
                margin-right: 0;
            }
        }
    }
}

.wprm-admin-modal-field-equipment-actions {
    margin-left: 26px;
    margin-top: 10px;

    .button {
        margin-top: 5px;
        margin-right: 5px;
    }

    p {
        font-style: italic;
    }
}

@media screen and (min-width: 550px) {
    .wprm-admin-modal-field-equipment-header-container {
        .wprm-admin-modal-field-equipment-header {
            display: block;

            &:nth-of-type(1),
            &:nth-of-type(3) {
                flex: 0 0 25%;
            }

            &:nth-of-type(2) {
                flex: 0 0 50%;
            }
        }
    }

    .wprm-admin-modal-field-equipment {    
        .wprm-admin-modal-field-equipment-text-container {
            .wprm-admin-modal-field-richtext,
            .wprm-admin-modal-field-richtext-legacy {
                &:nth-of-type(1),
                &:nth-of-type(3) {
                    flex: 0 0 25%;
                }

                &:nth-of-type(2) {
                    flex: 0 0 50%;
                }
            }
        }
    }
}

@media screen and (min-width: 782px) {
    .wprm-admin-modal-field-equipment {
        margin-bottom: 5px;
    }

    .wprm-admin-modal-field-equipment-header-container {
        .wprm-admin-modal-field-equipment-header {
            &:nth-of-type(1) {
                flex: 0 0 75px;
                margin-right: 5px;
            }
            &:nth-of-type(2) {
                flex: 0 0 300px;
                margin-right: 5px;
            }
            &:nth-of-type(3) {
                flex: auto;
            }
        }
    }

    .wprm-admin-modal-field-equipment {
        display: flex;
        align-items: center;

        .wprm-admin-modal-field-equipment-text-container {
            flex-wrap: nowrap;

            .wprm-admin-modal-field-richtext,
            .wprm-admin-modal-field-richtext-legacy {
                &:nth-of-type(1) {
                    flex: 0 0 75px;
                    margin-right: 5px;
                }
                &:nth-of-type(2) {
                    flex: 0 0 300px;
                    margin-right: 5px;
                }
                &:nth-of-type(3) {
                    flex: auto;
                }
            }
        }
    }
}