/*Switcher CSS for archive & single page post type
===============================================*/
.tpgp-switch-wrapper {
    /* Rounded sliders */
}

.tpgp-switch-wrapper .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.tpgp-switch-wrapper .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.tpgp-switch-wrapper .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.tpgp-switch-wrapper .slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 5px;
    bottom: 0;
    top: 0;
    background-color: white;
    transition: 0.4s;
    margin: auto;
}

.tpgp-switch-wrapper input:checked + .slider {
    background-color: #2196f3;
}

.tpgp-switch-wrapper input:focus + .slider {
    box-shadow: 0 0 1px #2196f3;
}

.tpgp-switch-wrapper input:checked + .slider:before {
    -webkit-transform: translateX(17px);
    -ms-transform: translateX(17px);
    transform: translateX(17px);
}

.tpgp-switch-wrapper .slider.round {
    border-radius: 34px;
}

.tpgp-switch-wrapper .slider.round:before {
    border-radius: 50%;
}


/*Popup CSS*/
.templeate-builder-popups.tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-body {
    padding: 1rem 1rem 1.4rem 1rem;
    min-height: 260px;
    box-sizing: border-box;
}

.templeate-builder-popups.tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-close {
    padding: 0.7rem;
    font-size: 1.2rem;
}

.templeate-builder-popups.tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-close:hover {
    color: red;
    opacity: 1;
}

.templeate-builder-popups .tpgp-tb-field-wraper, .templeate-builder-popups .tpgp-tb-modal-wrapper {
    gap: 15px;
    display: flex;
    flex-direction: column;
}

.templeate-builder-popups .tpgp-tb-field-wraper {
    gap: 10px;
}

.templeate-builder-popups .tpgp-tb-field-wraper label {
    font-size: 14px;
    display: block;
    font-weight: 600;
}

.templeate-builder-popups .tpgp-tb-field-wraper .tpgp-field {
    width: 100%;
    max-width: 100%;
    height: 45px;
    padding: 0 15px;
}

.templeate-builder-popups .tpgp-template-setdefaults {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 5px;
    font-weight: 600;
}

.templeate-builder-popups .tpgp-template-setdefaults input {
    margin: 0;
}

.templeate-builder-popups .tpgp-tb-button-wrapper a, .templeate-builder-popups .tpgp-tb-button-wrapper button {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
    text-decoration: none;
    text-shadow: none;
    display: inline-flex;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
    text-transform: capitalize;
    font-weight: 600;
    border: 0;
    cursor: pointer;
}

.templeate-builder-popups .tpgp-tb-button-wrapper a:hover, .templeate-builder-popups .tpgp-tb-button-wrapper button:hover {
    background: #135e96;
    border-color: #135e96;
}

.templeate-builder-popups .tpgp-tb-button-wrapper.save-button {
    flex: 1;
}

.templeate-builder-popups .tpgp-tb-button-wrapper.tpgp-tb-edit-button-wrapper a {
    opacity: 0;
    visibility: hidden;
}

body .tpgp-ui-modal {
    opacity: 0;
    visibility: hidden;
}

body .tpgp-tb-button-wrapper {
    display: flex;
}

body.tpgp-modal-open button:disabled {
    opacity: 0.2;
    pointer-events: none;
}

body.tpgp-modal-open .tpgp-ui-modal {
    visibility: visible;
    opacity: 1;
}

body.tpgp-modal-open .tpgp-template-footer {
    display: flex;
}

body.tpgp-modal-open .templeate-builder-popups.saved-template .tpgp-tb-edit-button-wrapper a {
    opacity: 1;
    visibility: visible;
}

.tpgp-tb-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 40px;
    height: 40px;
}

.tpgp-tb-loader .tpgp-tb-spinner {
    -webkit-animation: rotate 2s linear infinite;
    animation: rotate 2s linear infinite;
    width: 20px;
    height: 20px;
}

.tpgp-tb-loader .tpgp-tb-spinner .path {
    stroke: #135e96;
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}
/* Modal */

.modal {
    font-size: 12px;
}
.modal > .header {
    width: 100%;
    border-bottom: 1px solid gray;
    font-size: 18px;
    text-align: center;
    padding: 5px;
}
.modal > .content {
    width: 100%;
    padding: 10px 5px;
}
.modal > .actions {
    width: 100%;
    padding: 10px 5px;
    margin: auto;
    text-align: center;
}
.modal > .close {
    cursor: pointer;
    position: absolute;
    display: block;
    padding: 2px 5px;
    line-height: 20px;
    right: -10px;
    top: -10px;
    font-size: 24px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #cfcece;
}

/* Modal */
/* ============== Tpgp Modal START ============== */
.tpgp-ui-modal {
    width: 100%;
    z-index: 2000;
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    -webkit-transition: transform 0.4s ease, opacity 0.4s ease, width 0.4s ease;
    transition: opacity 0.15s linear;
}
.tpgp-ui-modal .tpgp-modal-wrapper {
    width: auto;
    height: 100%;
    margin: 0.5rem;
    position: relative;
    z-index: 2003;
    max-height: calc(100% - 1rem);
    min-height: calc(100% - 1rem);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 0.3rem;
    outline: 0;
    max-height: none;
    overflow: hidden;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: start;
    align-items: flex-start;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: calc(.3rem - 1px);
    border-top-right-radius: calc(.3rem - 1px);
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-title * {
    margin: 0;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-body {
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-close {
    cursor: pointer;
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    background-color: transparent;
    border: 0;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-footer {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    border-bottom-right-radius: calc(.3rem - 1px);
    border-bottom-left-radius: calc(.3rem - 1px);
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap {
    position: relative;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap h4 {
    font-size: 17px;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap h4 span:before {
    font-family: 'tpgp', serif;
    content: '\f105';
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-select-action {
    position: absolute;
    top: 0;
    right: 0;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-select-action .go-back {
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-select-action .go-back:before {
    font-family: 'tpgp', serif;
    content: '\f104';
    margin-right: 5px;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-ui-select-list ul li {
    border-top: solid 1px #d4ded9;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-ui-select-list ul li a {
    padding: 8px 0;
    display: block;
    position: relative;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-ui-select-list ul li a .icon {
    margin: 0 5px;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-ui-select-list ul li a .icon .tcl-cat-icon:before {
    margin-left: 0;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-ui-select-list ul li a .icon img {
    max-width: 15px;
    max-height: 15px;
    margin-right: 0.2rem;
    display: inline-block;
}
.tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-ui-select-list ul li.has-sub a:after {
    display: inline-block;
    font: normal normal normal 14px/1 'tpgp';
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    content: "\f105";
    -moz-osx-font-smoothing: grayscale;
    float: right;
}
.tpgp-ui-modal .tpgp-modal-wrapper.no-heading .tpgp-modal-header {
    padding: 0;
    border: 0;
}
.tpgp-ui-modal .tpgp-modal-wrapper.no-heading .tpgp-modal-title {
    display: none;
}
.tpgp-ui-modal .tpgp-modal-wrapper.no-heading .tpgp-modal-content {
    overflow: initial;
}
.tpgp-ui-modal .tpgp-modal-wrapper.no-heading .tpgp-modal-close {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 50%;
    background: #000;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tpgp-ui-modal .tpgp-modal-wrapper.no-heading .tpgp-modal-close i {
    color: #fff;
}
.tpgp-ui-modal .tpgp-mask-wrapper {
    position: fixed;
    opacity: 0;
    top: 0;
    left: 0;
    z-index: 2001;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    transition: opacity 0.15s linear;
}
html[dir='rtl'] .tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-modal-close {
    margin-left: -1rem;
}
body.tpgp-modal-open {
    overflow: hidden;
    min-width: 100%;
}
body.tpgp-modal-open .tpgp-ui-modal {
    overflow: auto;
    display: block;
}
body.tpgp-modal-open .tpgp-ui-modal .tpgp-mask-wrapper {
    opacity: 0.5;
}
/* ============== Tpgp Modal END ================ */
/************************** RTL START **************************/
html[dir="rtl"] .tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap h4 span:before {
    content: "\f104";
}
html[dir="rtl"] .tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-select-action {
    right: inherit;
    left: 0;
}
html[dir="rtl"] .tpgp-ui-modal .tpgp-modal-wrapper .tpgp-modal-content .tpgp-ui-select-list-wrap .tpgp-ui-select-list ul li.has-sub a::after {
    float: left;
    content: "\f104";
}
/* ============== Media query responsive ============== */
@media only screen and (min-width: 576px) {
    .tpgp-ui-modal .tpgp-modal-wrapper {
        min-height: calc(100% - 3.5rem);
        max-height: calc(100% - 3.5rem);
        max-width: 500px;
        margin: 1.75rem auto;
    }
}
@media only screen and (max-width: 600px) {
    .tpgp-ui-modal .tpgp-modal-content .sub-wrapper.is-active {
        padding-left: 0;
        padding-right: 10px;
    }
}






