.wps_pgfw_setting_separate_border {
    margin-top: 35px;
    border: 0;
    box-shadow: 0 -20px 8px -18px rgb(0 0 0 / 10%);
    padding: 15px 0 0;
}

.wps-form-group {
    margin: 0 -15px 15px;
    flex-wrap: wrap;
}

.wps-form-select {
    display: flex;
    flex-wrap: wrap;
}

.wps-form-select label {
    padding-top: 10px;
    padding-left: 10px;
}

.wps-form-group__control .mdc-text-field-helper-line {
    padding: 10px;
}

.wps-form-group__label {
    color: #000000;
}

.wps-form-group__control {
    max-width: unset;
    flex: 1 0 0;
    width: 100%;
}

/*Upload and remove buttons ============START*/
#pgfw_header_image_upload,
#pgfw_header_image_remove,
#pgfw_poster_image_upload,
#pgfw_poster_image_remove,
#pgfw_pdf_single_download_icon,
#pgfw_single_pdf_icon_image_remove,
#pgfw_pdf_bulk_download_icon,
#wps_pgfw_pdf_bulk_download_icon,
#wps_bulk_pdf_icon_image_remove {
    border: none;
    padding: 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    background-color: #11aa33;
    color: #ffffff;
    min-width: 100px;
    margin: 5px;
}

#pgfw_header_image_remove,
#pgfw_poster_image_remove,
#pgfw_single_pdf_icon_image_remove,
#wps_bulk_pdf_icon_image_remove {
    background-color: #ff3d30;
}

#pgfw_header_image_upload:focus,
#pgfw_header_image_remove:focus,
#pgfw_poster_image_upload:focus,
#pgfw_poster_image_remove:focus,
#pgfw_pdf_single_download_icon:focus,
#pgfw_single_pdf_icon_image_remove:focus,
#pgfw_pdf_bulk_download_icon:focus,
#wps_pgfw_pdf_bulk_download_icon:focus,
#wps_bulk_pdf_icon_image_remove:focus {
    box-shadow: none;
    color: #ffffff;
    outline: none;
}

/*Upload and remove buttons ============END*/

.pgfw-upload-poster-notification {
    margin-bottom: 10px;
    background-color: #2196f324;
    padding: 10px;
    border-radius: 5px;
}

@media screen and (max-width: 580px) {
    .wps-header-title {
        max-width: unset;
    }

    .wps-form-group {
        flex-direction: column;
        flex-wrap: wrap;
    }

    .wps-header-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .wps-header-container span {
        display: none;
    }

    .wps-section {
        padding: 15px;
    }

    .wps-navbar {
        padding: 0 15px;
    }

    .wps-navbar__items li {
        padding: 10px;
        max-width: 150px;
        width: 100%;
        margin: 0;
    }

    .wps-navbar__items {
        justify-content: space-between;
    }

    .wps-navbar__items li a {
        padding: 0px 0;
    }
}

#pgfw_poster_shortcode_listing_table {
    border-collapse: collapse;
}

#pgfw_poster_shortcode_listing_table th,
#pgfw_poster_shortcode_listing_table td {
    border: 1px solid gray;
    padding: 5px 10px;
}

.pgfw-delete-poster-form-table {
    background-color: #ff3d30;
    ;
    border-radius: 5px;
    padding: 5px 10px;
}

.pgfw_advanced_reset_settings {
    border: none;
    padding: 8px;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
    background-color: #ff3d30;
    color: #ffffff;
    min-width: 100px;
    margin: 5px;
}

/* Pro tag styling Start */

.wps_pgfw_pro_tag_lable.wps-form-group .wps-form-group__label {
    position: relative;
    overflow: hidden;
    padding-left: 25px;
    padding-bottom: 15px;
}

.wps_pgfw_pro_tag_lable .wps-form-group__control,
.wps_pgfw_pro_tag_lable .wps-form-group__control input,
.wps_pgfw_pro_tag_lable .wps-form-group__control select,
.wps-main.wps_pgfw_pro_tag .wps-wpg-card__wrapper,
.wps-main.wps_pgfw_pro_tag .wpg-admin-notice-custom+.pgfw-secion-wrap {
    pointer-events: none;
}

.wps-main.wps_pgfw_pro_tag .wps-navbar,
.wpg-secion-wrap.wps_pgfw_pro_tag {
    position: relative;
    overflow: hidden;
}

.wps_pgfw_pro_tag_lable .wps-form-group__label:before,
.wps-main.wps_pgfw_pro_tag .wps-navbar:before,
.wpg-secion-wrap.wps_pgfw_pro_tag:before {
    align-items: center;
    background: #0aa000;
    bottom: 2px;
    -webkit-clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%);
    clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%);
    color: #fff;
    content: "PRO";
    display: inline-flex;
    font-size: 10px;
    justify-content: center;
    left: -18px;
    padding: 0;
    position: absolute;
    transform: rotate(45deg);
    width: 60px;
}

.wps_pgfw_pro_tag_lable .wps-form-group__label:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Pro tag styling end */

/* Issues on responsive fixing */
.wps-section .wps-form-group .wps-form-group__control .select2 {
    min-width: 200px;
}

.wpg-secion-wrap .tablenav {
    height: auto;
}

@media screen and (max-width:768px) {
    .wps-section .wps-form-group .wps-form-group__label {
        max-width: 100%;
    }

    .wps-section .wps-form-group .wps-form-group__control {
        max-width: 100%;
        margin: 10px 0 0;
    }

    .wps-section .wps-form-group .wps-form-group__control label.mdl-textfield__label,
    .wps-section .wps-form-group .wps-form-group__control .mdc-text-field-helper-line {
        padding-left: 0;
    }

    .wps-section .wps-section,
    .wps-section .wps-navbar {
        padding: 0;
    }

}

@media screen and (max-width:580px) {
    .wps-main .wps-navbar .wps-navbar__items li {
        margin-right: 10px;
    }

    .wps-main .wps-navbar .wps-navbar__items li a {
        padding: 5px 0;
    }

}

/*Pop Up For Pro Tag start */
.wps-pdf__popup-for-pro-shadow {
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99998;
    display: none;
}

span.wps-pdf__popup-for-pro-close {
    display: inline-block;
    line-height: 14px;
    font-size: 24px;
    font-weight: 400;
    transform: rotate(45deg);
    padding: 10px;
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
}

.wps-pdf__popup-for-pro {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    padding: 32px;
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 99999;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    max-width: 600px;
    opacity: 0;
    transition: transform 0.8s ease;
}

.wps-pdf__popup-for-pro.active-pro {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

h2.wps-pdf__popup-for-pro-title {
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 15px;
    text-align: center;
}

p.wps-pdf__popup-for-pro-content {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0 0 50px;
    text-align: center;
}

.wps-pdf__popup-for-pro-link-wrap {
    text-align: center;
}

a.wps-pdf__popup-for-pro-link {
    font-size: 16px;
    font-weight: 400;
    color: #fff;
    background: #0aa000;
    border: 1px solid #0aa000;
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.4s;
}

a.wps-pdf__popup-for-pro-link:hover {
    color: #0aa000;
    background: transparent;
}

/*Pro Tag end */
.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control {
    flex: 1 0 0;
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-text-field {
    align-items: center;
    display: inline-flex;
    flex: 0 1 320px;
    margin: 0;
    min-height: 56px;
    overflow: hidden;
    padding: 0;
    position: relative;
}

.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-notched-outline,
.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-notched-outline__leading,
.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-notched-outline__notch,
.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-notched-outline__trailing,
.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-floating-label {
    display: none !important;
}

.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-text-field__input {
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    outline: none;
    padding: 0 16px;
}

.wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-text-field-helper-line {
    flex: 1 1 220px;
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 782px) {
    .wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-text-field,
    .wps-form-group.pgfw_gallery_metafield_key .wps-form-group__control .mdc-text-field-helper-line {
        flex-basis: 100%;
    }
}
.wps-navbar .wps-navbar__items
 li.wps_pgfw_pro_tag_lable_main a {
    position: relative;
    overflow: hidden;
    padding-left: 25px;
    padding-bottom: 15px;
}
.wps-navbar .wps-navbar__items li.wps_pgfw_pro_tag_lable_main a:before {
    content: '';
    align-items: center;
    background: #0aa000;
    bottom: 2px;
    -webkit-clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%);
    clip-path: polygon(0 0, 100% 0, 66% 100%, 34% 100%);
    color: #fff;
    content: "PRO";
    display: inline-flex;
    font-size: 10px;
    justify-content: center;
    left: -18px;
    padding: 0;
    position: absolute;
    transform: rotate(45deg);
    width: 60px;
}
#pgfw_pdf_invoice_single_download_icon {
    background-color:#11aa33;
}
#pgfw_single_pdf_invoice_icon_image_remove {
    background-color: #ff3d30;
    color: #fff !important;
}

.pgfw-upload-card {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.pgfw-upload-card__preview {
    min-width: 0;
}

.pgfw-upload-card__preview-label {
    display: block;
    margin-bottom: 8px;
    color: #4f5f73;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pgfw-upload-card__preview-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pgfw-upload-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pgfw-upload-card__empty {
    color: #5f6c7b;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.pgfw-upload-card.is-filled .pgfw-upload-card__empty {
    display: none;
}

.pgfw-upload-card--icon-setting {
    width: 100%;
    padding: 18px 20px;
    border: 1px solid #d8e1ec;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    box-sizing: border-box;
}

.pgfw-upload-card--icon-setting .pgfw-upload-card__preview {
    min-width: 140px;
}

.pgfw-upload-card--icon-setting .pgfw-upload-card__preview-frame {
    width: 120px;
    height: 120px;
    border: 1px dashed #c2cfdd;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.pgfw-upload-card--icon-setting .pgfw-upload-card__preview-frame img {
    width: 56px !important;
    height: 56px !important;
    margin: 0 !important;
    object-fit: contain;
}

.pgfw-upload-card--icon-setting .pgfw-upload-card__actions {
    flex: 1 1 220px;
}

.pgfw-upload-card--icon-setting .mdc-button--raised {
    min-width: 145px;
    min-height: 40px;
    margin: 0 !important;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: none;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.pgfw-upload-card--icon-setting .mdc-button--raised:hover,
.pgfw-upload-card--icon-setting .mdc-button--raised:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(19, 61, 116, 0.12);
}

.pgfw-upload-card--icon-setting.is-empty .pgfw-upload-card__preview-frame {
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
}

.pgfw-upload-card--icon-setting.is-empty .pgfw-upload-card__preview-frame img {
    display: none !important;
}

.pgfw-upload-card--icon-setting.is-filled .pgfw-upload-card__preview-frame {
    border-style: solid;
    border-color: #bed5c2;
    background: linear-gradient(135deg, #fcfffc 0%, #f2fbf4 100%);
}

#pgfw_pdf_invoice_single_download_icon,
#pgfw_pdf_single_download_icon,
#pgfw_pdf_bulk_download_icon,
#wps_pgfw_pdf_bulk_download_icon {
    background: linear-gradient(135deg, #0f9f57 0%, #0a7f49 100%);
    color: #ffffff;
}

#pgfw_single_pdf_invoice_icon_image_remove,
#pgfw_single_pdf_icon_image_remove,
#wps_bulk_pdf_icon_image_remove {
    border: 1px solid #f1b5ad;
    background: #ffffff;
    color: #b42318 !important;
}

#pgfw_single_pdf_invoice_icon_image_remove:hover,
#pgfw_single_pdf_invoice_icon_image_remove:focus,
#pgfw_single_pdf_icon_image_remove:hover,
#pgfw_single_pdf_icon_image_remove:focus,
#wps_bulk_pdf_icon_image_remove:hover,
#wps_bulk_pdf_icon_image_remove:focus {
    background: #fff5f3;
    color: #991b13 !important;
}

@media screen and (max-width: 767px) {
    .pgfw-upload-card--icon-setting {
        padding: 16px;
    }

    .pgfw-upload-card--icon-setting .pgfw-upload-card__preview {
        width: 100%;
    }

    .pgfw-upload-card--icon-setting .pgfw-upload-card__preview-frame {
        width: 100%;
        max-width: 140px;
    }
}
