.wprm-manage-templates-type-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;

    margin: 20px -10px 0 -10px;

    &:nth-of-type(2) {
        margin-top: -10px;
    }

    .wprm-manage-templates-type {
        padding: 10px 20px;
        margin: 10px;
        border: 1px dashed #999;
        border-radius: 5px;

        max-width: 200px;
        text-align: center;
        cursor: pointer;

        &.wprm-manage-templates-type-selected,
        &:hover {
            border-style: solid;
            border-color: #444;
        }

        &.wprm-manage-templates-type-selected {
            background-color: #ddd;
        }

        .wprm-manage-templates-type-name {
            font-weight: bold;
            font-size: 1.2em;
            margin-bottom: 10px;
        }

        .wprm-manage-templates-type-description {
            font-style: italic;
            font-size: 0.9em;
        }
    }
}

.wprm-manage-templates-import {
    margin-top: 20px;
    width: 100%;
}

.wprm-manage-templates-template {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px dashed #999;
    border-radius: 5px;
    cursor: pointer;

    &.wprm-manage-templates-template-selected,
    &:hover {
        border-style: solid;
        border-color: #444;
    }

    &.wprm-manage-templates-template-selected {
        background-color: #ddd;
        font-weight: bold;
    }

    &.wprm-manage-templates-template-premium {
        color: darkred;
        border-color: darkred;
    }

    &.wprm-manage-templates-template-broken {
        border-color: darkred;
        background-color: darkred;
        color: white;

        .wprm-manage-templates-template-default-badge {
            border-color: rgba(255, 255, 255, 0.7);
            background-color: rgba(255, 255, 255, 0.15);
            color: white;
        }
    }

    .wprm-manage-templates-template-name {
        display: inline-block;
    }

    .wprm-manage-templates-template-default-badge {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 999px;
        border: 1px solid #777;
        background-color: #f0f0f0;
        font-size: 11px;
        font-weight: 600;
        line-height: 1.4;
        white-space: nowrap;
        cursor: help;
    }
}

.wprm-manage-templates-template-fields {
    text-align: center;
    margin: 10px 0;
}
.wprm-manage-templates-template-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;

    button {
        margin: 0 5px !important;
    }
}
