.pp-admin-settings-wrap,
.pp-admin-settings-topbar,
.pp-admin-settings-header h3 {
	margin: 0;
}
.pp-admin-settings-topbar:before,
.pp-admin-settings-topbar:after,
.pp-admin-settings-header:before,
.pp-admin-settings-header:after {
	content: "";
	display: table;
}
.pp-admin-settings-topbar:before,
.pp-admin-settings-header:after {
	clear: both;
}
.pp-admin-settings-topbar {
	height: 45px;
	padding: 0 20px;
    background: #264b79;
}
.pp-admin-settings-topbar-nav {
	float: right;
	margin: 0;
    padding-top: 22px;
}
.pp-admin-settings-topbar-nav-item {
	display: inline-block;
	margin-right: 0;
	margin-bottom: 0;
}
.pp-admin-settings-topbar-nav-item:last-of-type {
    margin-right: 0;
}
.pp-admin-settings-topbar-nav-item a {
	text-decoration: none;
	padding: 7px 10px;
    border-radius: 50px;
	background: transparent;
	color: #2a73aa;
    transition-duration: 0.2s;
}
.pp-admin-settings-topbar-nav-item a:hover {
    background: #ecf8ff;
}
.pp-admin-settings-header h3 {
	font-size: 18px;
	font-weight: 400;
	margin-top: 5px;
}
.pp-admin-settings-header {
	background: #fff;
	padding: 20px;
	padding-bottom: 0;
	box-shadow: 0 0 5px 0 rgba(0,0,0,.1);
}
.pp-admin-settings-tabs {
	margin: 0;
    padding-top: 18px;
    padding-bottom: 0;
    line-height: inherit;
    float: left;
}
.pp-admin-settings-tabs .nav-tab {
	border: 0;
	border-bottom: 2px solid transparent;
    background: none;
    font-weight: 400;
	margin-left: 0;
	margin-right: 35px;
	padding: 5px 0;
	color: #797979;
	box-shadow: none !important;
}
.pp-admin-settings-tabs .nav-tab.nav-tab-active {
	border-bottom: 2px solid #3085ba;
	color: #333;
}
.pp-admin-settings-tabs .nav-tab:hover {
	color: #333;
}
.pp-admin-settings-wrap form {
	background: #fff;
    padding: 20px 50px;
    box-shadow: 0 0 5px 0 rgba(0,0,0,.1);
}
.pp-admin-settings-wrap .pp-admin-settings-templates form {
	padding: 0;
}
.pp-admin-settings-wrap .pp-admin-settings-content {
	padding: 20px;
}
.pp-admin-settings-wrap form .pp-template-filter {
	margin: 0;
}
.pp-admin-settings-wrap .pp-admin-settings-templates .pp-template-filter {
	box-shadow: none;
    border: 0;
    border-bottom: 1px solid #ddd;
}
.pp-admin-settings-wrap .pp-admin-settings-templates .pp-page-templates-grid {
	padding: 20px;
	background: #f7f7f7;
}
.pp-admin-settings-wrap .form-table th {
	width: 300px;
}
.pp-admin-settings-wrap .form-table th .description {
	font-weight: 400;
    font-style: normal;
	max-width: 260px;
}
.pp-admin-settings-wrap .form-table td {
	vertical-align: top;
}
.pp-notices-target {
	margin: 0;
}

/* Toggle */
.pp-admin-field-toggle {
	position: relative;
    display: inline-block;
    width: 42px;
    height: 18px;
}
.pp-admin-field-toggle .pp-admin-field-toggle-slider {
	position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	background-color: #fff;
	border: 1px solid #ccc;
	border-radius: 34px;
    -webkit-transition: .4s;
    transition: .4s;
}
.pp-admin-field-toggle .pp-admin-field-toggle-slider:before {
	border-radius: 50%;
	position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
.pp-admin-field-toggle input {
	opacity: 0;
    width: 0;
    height: 0;
}
.pp-admin-field-toggle input:checked + .pp-admin-field-toggle-slider:before {
	background-color: #0073aa;
	-webkit-transform: translateX(24px);
    -ms-transform: translateX(24px);
    transform: translateX(24px);
}
.pp-admin-field-toggle input:checked + .pp-admin-field-toggle-slider {
	background-color: #cfe4ef;
	border-color: #7bb6d3;
	border-color: transparent;
}
.pp-admin-settings-wrap input[type=checkbox],
.pp-admin-settings-wrap input[type=email],
.pp-admin-settings-wrap input[type=number],
.pp-admin-settings-wrap input[type=password],
.pp-admin-settings-wrap input[type=search],
.pp-admin-settings-wrap input[type=text],
.pp-admin-settings-wrap input[type=url],
.pp-admin-settings-wrap select,
.pp-admin-settings-wrap textarea {
	box-shadow: none !important;
    border-radius: 5px;
	min-height: 32px;
	padding: 8px 10px;
	font-size: 13px;
}
.pp-admin-settings-wrap input[type=checkbox] {
	min-height: inherit;
    border-radius: 3px;
}
.pp-admin-settings-wrap label {
	font-weight: 500;
}
.pp-admin-settings-wrap label + .description {
    margin-top: 8px;
}

.pp-admin-settings-wrap .pp-flex-table {
	max-width: 800px;
}
.pp-admin-settings-wrap .pp-flex-table tbody {
	display: flex;
    flex-wrap: wrap;
}
.pp-admin-settings-wrap .pp-flex-table tr {
	max-width: 360px;
    margin-right: 50px;
}
.pp-admin-settings-wrap .pp-flex-table tr:nth-of-type(2n) {
    margin-right: 0;
}
.pp-admin-settings-wrap .pp-flex-table th {
	padding-top: 15px;
}

.pp-nav-tab-wrapper .pp-count {
    top: 0;
    margin-left: 5px;
    margin-right: 0;
    font-size: 12px;
    display: none;
}
.pp-page-templates-grid {
    clear: both;
}
.pp-page-templates-grid .pp-template {
    float: left;
    margin: 0 2% 2% 0;
    position: relative;
	width: 31.95%;
	-webkit-box-shadow: 0 0 13px 0 rgba(0,0,0,0.1);
	box-shadow: 0 0 13px 0 rgba(0,0,0,0.1);
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: all 0.3s ease-in-out;
	-moz-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
}
.pp-page-templates-grid .pp-template.is-visible:nth-of-type(3n) {
    margin-right: 0;
}
.pp-page-templates-grid .pp-template:hover {
	-webkit-box-shadow: 0 0 18px 0 rgba(0,0,0,0.3);
	box-shadow: 0 0 18px 0 rgba(0,0,0,0.3);
	-webkit-transform: scale(1.04);
	transform: scale(1.04);
}
.pp-page-templates-grid .pp-template.pp-preview-enabled {
    cursor: pointer;
}
.pp-page-templates-grid.overlay-active .pp-template:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 2;
    transition: all 0.3s ease-in-out;
}
.pp-page-templates-grid .pp-template .pp-template-screenshot {
    display: block;
    overflow: hidden;
    position: relative;
    -webkit-backface-visibility: hidden;
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
}
.pp-page-templates-grid .pp-template .pp-template-screenshot:after {
    content: "";
    display: block;
    padding-top: 66.66666%;
}
.pp-page-templates-grid .pp-template .pp-template-screenshot img {
    height: auto;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    -webkit-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
}
.pp-page-templates-grid .pp-template:focus .pp-template-screenshot,
.pp-page-templates-grid .pp-template:hover .pp-template-screenshot {
    background: #fff;
}
.pp-page-templates-grid .pp-template.pp-preview-enabled:focus .pp-template-screenshot img,
.pp-page-templates-grid .pp-template.pp-preview-enabled:hover .pp-template-screenshot img {
    opacity: .7;
}
.pp-page-templates-grid .pp-template .pp-template-preview {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    opacity: 0;
    position: absolute;
    top: 35%;
    right: 20%;
    left: 20%;
    background: #23282d;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 15px;
    text-shadow: 0 1px 0 rgba(0,0,0,.6);
    -webkit-font-smoothing: antialiased;
    font-weight: 600;
    padding: 15px 12px;
    text-align: center;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: opacity .1s ease-in-out;
    transition: opacity .1s ease-in-out;
}
.pp-page-templates-grid .pp-template:focus .pp-template-preview,
.pp-page-templates-grid .pp-template:hover .pp-template-preview {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
    opacity: 1;
}
.pp-page-templates-grid .pp-template .pp-template-category {
    font-size: 15px;
    font-weight: 600;
    height: 18px;
    margin: 0;
    padding: 15px;
    -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
    box-shadow: inset 0 1px 0 rgba(0,0,0,.1);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    background: #fff;
    background: rgba(255,255,255,.65);
}
.pp-page-templates-grid .pp-template.active .pp-template-category {
    background: #23282d;
    color: #fff;
    padding-right: 110px;
    font-weight: 300;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.5);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.5);
}
.pp-page-templates-grid .pp-template.active .pp-template-category span {
    font-weight: 600;
}
.pp-page-templates-grid .pp-template .pp-template-actions {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 38px;
    padding: 9px 10px 0;
    background: rgba(244,244,244,.7);
    border-left: 1px solid rgba(0,0,0,.05);
}
.pp-page-templates-grid .pp-template.active .pp-template-actions {
    background: rgba(49,49,49,.7);
    border-left: none;
    opacity: 1;
}
.pp-page-templates-grid .pp-template .pp-template-actions .ajax-spinner {
    margin: 5px 0;
    display: none;
}
.pp-page-templates-grid .pp-template .pp-template-actions .pp-deactivate-template,
.pp-page-templates-grid .pp-template.activating .pp-template-actions .pp-activate-template,
.pp-page-templates-grid .pp-template.active .pp-template-actions .pp-activate-template {
    display: none;
}
.pp-page-templates-grid .pp-template.activating .pp-template-actions .ajax-spinner,
.pp-page-templates-grid .pp-template.active .pp-template-actions .pp-deactivate-template {
    display: inline-block;
}
.pp-page-templates-grid .pp-template .pp-template-actions .button {
    margin-right: 3px;
}
.pp-page-templates-grid .pp-template.active .pp-template-actions .button {
    margin-right: 0;
}

/* Overlay */
.pp-template-overlay .pp-template-backdrop {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #f1f1f1;
    background: rgba(238,238,238,.9);
    z-index: 10000;
}
.pp-template-overlay .pp-template-actions,
.pp-template-overlay .pp-template-wrap {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
}
.pp-template-overlay {
    display: none;
}
.pp-template-overlay .pp-template-wrap {
    clear: both;
    position: fixed;
    top: 6%;
    left: 20px;
    right: 20px;
    bottom: 3%;
    background: #fff;
    -webkit-box-shadow: 0 1px 20px 5px rgba(0,0,0,.1);
    box-shadow: 0 1px 20px 5px rgba(0,0,0,.1);
    z-index: 10000;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}
.pp-template-overlay .pp-template-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    border-bottom: 1px solid #ddd;
}
.pp-template-overlay .pp-template-header button {
    padding: 0;
    outline: 0;
}
.pp-template-overlay .pp-template-header .left,
.pp-template-overlay .pp-template-header .right {
    display: none;
    cursor: pointer;
    color: #72777c;
    background-color: transparent;
    height: 48px;
    width: 54px;
    float: left;
    text-align: center;
    border: 0;
    border-right: 1px solid #ddd;
    -webkit-transition: color .1s ease-in-out,background .1s ease-in-out;
    transition: color .1s ease-in-out,background .1s ease-in-out;
}
.pp-template-overlay .pp-template-header .left:focus,
.pp-template-overlay .pp-template-header .left:hover,
.pp-template-overlay .pp-template-header .right:focus,
.pp-template-overlay .pp-template-header .right:hover,
.pp-template-overlay .pp-template-header .close:focus,
.pp-template-overlay .pp-template-header .close:hover {
    background: #ddd;
    border-color: #ccc;
    color: #000;
}
.pp-template-overlay .pp-template-header .left.disabled,
.pp-template-overlay .pp-template-header .left.disabled:hover,
.pp-template-overlay .pp-template-header .right.disabled,
.pp-template-overlay .pp-template-header .right.disabled:hover {
    color: #ccc;
    background: inherit;
    cursor: inherit;
}
.pp-template-overlay .pp-template-header .left:before,
.pp-template-overlay .pp-template-header .right:before {
    font: 400 20px/50px dashicons!important;
    display: inline;
    font-weight: 300;
}
.pp-template-overlay .pp-template-header .left:before {
    content: "\f341";
}
.pp-template-overlay .pp-template-header .right:before {
    content: "\f345";
}
.pp-template-overlay .pp-template-header .close {
    cursor: pointer;
    height: 48px;
    width: 50px;
    text-align: center;
    float: right;
    border: 0;
    border-left: 1px solid #ddd;
    background-color: transparent;
    -webkit-transition: color .1s ease-in-out,background .1s ease-in-out;
    transition: color .1s ease-in-out,background .1s ease-in-out;
}
.pp-template-overlay .pp-template-header .close:before {
    font: 400 22px/50px dashicons!important;
    color: #72777c;
    display: inline-block;
    content: "\f335";
    font-weight: 300;
}
.pp-template-overlay .pp-template-info {
    position: absolute;
    top: 49px;
    bottom: 57px;
    left: 0;
    right: 0;
    overflow: auto;
    padding: 0;
}
.pp-template-overlay .pp-template-info .pp-template-preview-frame {
    width: 100%;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
}
.pp-template-overlay .pp-template-info .ajax-spinner {
    display: block;
    text-align: center;
    padding: 40px;
    position: relative;
    z-index: 0;
}
.pp-template-overlay .pp-template-actions {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 25px 5px;
    background: #f3f3f3;
    z-index: 30;
    box-sizing: border-box;
    border-top: 1px solid #eee;
}
.pp-template-overlay .pp-template-actions a,
.pp-template-overlay .pp-template-actions .ajax-spinner {
    margin-right: 5px;
    margin-bottom: 5px;
}
.pp-template-overlay .pp-template-actions .ajax-spinner,
.pp-template-overlay .pp-template-actions .pp-deactivate-template,
.pp-template-overlay.active .pp-template-actions .pp-activate-template,
.pp-template-overlay.activating .pp-template-actions .button {
    display: none;
}
.pp-template-overlay.active .pp-template-actions .pp-deactivate-template {
    display: inline-block;
}
.pp-template-overlay.activating .pp-template-actions .ajax-spinner {
    display: inline-block;
    margin-top: 5px;
}

/* Filter */
.pp-template-filter .search-form {
    margin-left: 20px;
}
.pp-template-filter .search-form input[type=search] {
	width: 200px !important;
	box-shadow: none;
    font-size: 14px;
    padding: 4px 8px;
}

.pp-template-filter .filter-sublinks {
    float: right;
}
.pp-template-filter .filter-sublinks li {
    display: inline-block;
    margin-bottom: 0;
}
.pp-template-filter .filter-sublinks li a {
    display: inline-block;
    line-height: 2;
    padding: 0 10px;
    box-shadow: none;
}
.pp-template-filter .filter-sublinks li.current a {
    font-weight: bold;
}
.pp-template-filter .filter-sublinks li span {
    color: #bdbdbd;
}
.pp-template-filter .filter-sublinks li label {
    line-height: 2;
    padding: 0 10px;
}
.pp-template-filter .filter-sublinks {
	min-width: 200px;
    margin: 10px;
}
.pp-template-filter .filter-sublinks > label {
	display: inline-block;
    vertical-align: -webkit-baseline-middle;
    font-weight: 500;
}
.pp-template-filter .filter-sublinks .filter-dropdown {
    border: 1px solid #ddd;
    width: 70%;
	float: right;
	margin-left: 5px;
    padding: 6px 8px;
	position: relative;
	cursor: pointer;
}
.pp-template-filter .filter-sublinks .filter-dropdown:after {
    content: "▼";
    float: right;
    font-size: 10px;
}
.pp-template-filter .filter-sublinks .filter-dropdown * {
	user-select: none;
}
.pp-template-filter .filter-sublinks .filter-dropdown ul.filter-page-templates {
	position: absolute;
    background: #fff;
    z-index: 2;
    top: 30px;
    left: -1px;
    margin: 0;
    border: 1px solid #ddd;
	width: 100%;
	opacity: 0;
	visibility: hidden;
}
.pp-template-filter .filter-sublinks .filter-dropdown ul.filter-page-templates.is-active {
	opacity: 1;
	visibility: visible;
}
.pp-template-filter .filter-sublinks .filter-dropdown li {
	display: block;
}
.pp-template-filter .filter-sublinks .filter-dropdown li a {
	display: block;
	line-height: 1.2;
    padding: 8px 10px;
    box-shadow: none;
}
.pp-template-filter .filter-sublinks .filter-dropdown li a:hover {
	background: #fafafa;
}
.pp-template-filter .filter-sublinks .filter-dropdown .filter-label {
	display: none;
}
.pp-template-filter .pp-refresh-panel {
    float: right;
    margin: 12px 30px;
}

@media only screen and (min-width: 1640px) {
    .pp-page-templates-grid .pp-template {
        width: 23.5%;
        margin: 0 2% 2% 0;
    }
    .pp-page-templates-grid .pp-template.is-visible:nth-of-type(3n) {
        margin-right: 2% !important;
    }
    .pp-page-templates-grid .pp-template.is-visible:nth-of-type(4n) {
        margin-right: 0 !important;
    }
}

@media only screen and (max-width: 1280px) {
    .pp-template-filter .pp-refresh-panel {
        margin: 12px 10px;
    }
    .pp-template-filter .search-form {
        margin-left: 5px;
    }
}
