#rtx-product-templates h2 {
    color: #1d2327 !important;
    padding: 13px 20px;
    min-height: auto;
    font-weight: 600;
    font-size: 22px;
    line-height: 25px !important;
    margin: 1em 0;
}

#rtx-product-templates>p {
    margin: 10px;
    font-size: 13px;
}

#rtx-product-templates #rtx-template-loop {
    margin: 0 20px 20px;
    max-width: 850px;
}

#rtx-product-templates #rtx-template-loop-ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#rtx-product-templates .rtx-template-loop-item {
    width: calc(33.33% - 10px);
    background: #f0f0f1;
    padding: 15px;
    box-sizing: border-box;
    cursor: pointer;
    margin-bottom: 15px;
}

#rtx-product-templates .rtx-template-item-thumbnail {
    overflow: hidden;
    text-align: center;
}

#rtx-product-templates .rtx-template-item-thumbnail img {
    height: 170px;
}

#rtx-product-templates .rtx-template-item-info h2 {
    color: #1d2327 !important;
    padding: 0;
    min-height: auto;
    font-weight: 600;
    font-size: 22px;
    line-height: 25px !important;
    margin: 1em 0;
}

#rtx-product-templates .rtx-template-item-info p {
    padding: 0;
}


#rtx-product-templates .rtx-template-item-popup {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    width: 1278px;
    height: 745px;
    background: #fff;
    border-radius: 27px;
    margin: auto;
    cursor: auto;
    z-index: 9999;
    max-width: 95%;
    max-height: 85%;
    box-sizing: border-box;
}


#rtx-product-templates .rtx-template-item-popup .item-popup-arrow {
    content: "";
    position: absolute;
    right: 14px;
    font-family: "dashicons";
    color: #9e9e9e;
    font-size: 60px;
    top: 0;
    bottom: 0;
    margin: auto;
    width: auto;
    height: 60px;
    cursor: pointer;
    opacity: .3;
}

#rtx-product-templates .rtx-template-item-popup .item-popup-arrow.left {
    content: "";
    right: auto;
    left: 14px;
}

#rtx-product-templates .close-rtx-template-popup {
    font-size: 35px;
    position: absolute;
    right: 10px;
    top: -15px;
    color: #6d7277;
    cursor: pointer;
}

#rtx-product-templates .close-rtx-template-popup:before {
    background: #d9d9d9;
    border-radius: 50%;
    padding: 5px;
}

#rtx-product-templates .rtx-template-item-popup-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 20px 50px 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

#rtx-product-templates .rtx-template-item-popup-content {
    padding-right: 10px;
    box-sizing: border-box;
}

#rtx-product-templates .rtx-template-item-popup-content>* {
    padding: 0;
}

#rtx-product-templates .rtx-template-item-popup-inner>div {
    width: 50%;
}


#rtx-product-templates .rtx-wc-use-templates.button-primary,
.rtx-wc-preview-templates {
    padding: 5px 30px !important;
    margin: 25px 0 !important;
}

#rtx-product-templates .rtx-wc-use-templates span.dashicons {
    display: none;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#rtx-product-templates span.dashicons.dashicons-update.spin {
    display: inline-block;
    margin-top: 4px;
    animation: spin 1s linear infinite;
}


.rtx-popup-bg-overlay {
    position: fixed;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #00000057;
    z-index: 9998;
}