/* Meta Box Heading
------------------------------------------------------*/
#advanced-hook-settings .inside{
	margin: 0;
	padding: 0
}
#advanced-hook-settings .nav-tab-wrapper{
	border-bottom: 0;
}
#advanced-hook-settings .nav-tab-wrapper ul{
	margin: 0;
}
#advanced-hook-settings #ast-advanced-hook-tab-page-header{
	margin-right: 0;
}
.advanced-hook-meta-box-wrap .inside{
	margin: 0;
	padding: 0;
}

/* Radio Button Images*/
.ast-advanced-hook-layout-radio-button-wrap input[type='radio'] {
    display: none;
}
.ast-advanced-hook-layout-radio-button-wrap label[checked="checked"] img,
.ast-advanced-hook-layout-radio-button-wrap label img:hover{
    border-color: transparent;
}
.ast-advanced-hook-layout-radio-button-wrap label {
    display: inline-block;
    cursor: pointer;
}
.ast-advanced-hook-layout-radio-button-wrap label img{
    border-width: 2px;
    border-style: solid;
}

.ast-advanced-hook-php-content {
	height: 300px;
	z-index: auto;
	position: relative;
	transition: none;
	background: transparent !important;
}

/* Loading Overlay */
.spinner.ast-advanced-hook-loading {
    visibility: visible;
    background-color: rgba(255,255,255,0.9);
    background-position: center center;
    background-repeat: no-repeat;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: initial;
    width: auto;
    margin: 0;
}


/* Tooltips */
.ast-advanced-hook-heading-help {
	cursor: help;
}

.ui-widget-content.ast-advanced-hook-ui-tooltip {
    background: #333;
    border-width: 1px;
	border-color: #333;
	border-radius: 3px;
	box-shadow: -1px 0px 2px 0px rgba(214,214,214,0.5);
	color: #dedede;
	max-width: 250px;
	text-align: center;
	padding: 7px;
	text-rendering: optimizeLegibility;
	text-shadow: none;
	z-index: 9999;
}

/* Table */
.ast-advanced-hook-table {
	border: none;
	border-bottom: 5px solid #f0f0f0;
}
.ast-advanced-hook-table:last-of-type {
	border-bottom-width: 0;
}
.ast-advanced-hook-table.widefat{
	border-width: 0;
}
/* Rows */
.ast-advanced-hook-row td:before,
.ast-advanced-hook-row td:after {
	display: table;
	content: " ";
}
.ast-advanced-hook-row td:after {
	clear: both;
}
.ast-advanced-hook-row td {
	padding-right: 12px;
	padding-left: 12px;
	border-bottom: 1px solid #f0f0f0;
	zoom:1;
	vertical-align: middle;
}
.ast-advanced-hook-row td *:not(.select2-selection__choice__remove){
	vertical-align: middle;
}
.ast-advanced-hook-row:last-child td {
	border-bottom: none;
}

/* Row Heading */
.ast-advanced-hook-row-heading {
	border-left: 1px solid #E1E1E1;
	padding: 15px;
	width: 25%;
	vertical-align: middle;
}

.ast-advanced-hook-row td.ast-advanced-hook-row-heading.title {
	padding-bottom: 0;
	border-bottom: 0;
}
.ast-advanced-hook-row-heading label {
	display: inline-block;
	font-size: 13px;
	line-height: 1.4em;
	font-weight: bold;
	padding: 0;
	margin: 0 0 3px;
	color: #333;
}
.ast-advanced-hook-row-sub-heading {
	border-left: 1px solid #E1E1E1;
	padding: 15px;
	width: 25%;
	vertical-align: middle;
}
.ast-advanced-hook-row-sub-heading label{
	display: inline-block;
	font-size: 13px;
	line-height: 1.4em;
	font-weight: normal;
	padding: 0;
	margin: 0 0 3px;
	color: #333;
}
.ast-advanced-hook-heading-help {
	color: #b3b3b3;
	cursor: help;
	float: left;
    font-size: 18px;
}

/* Row Content */
.ast-advanced-hook-table  .ast-advanced-hook-row-content {
	padding: 15px 10px;
	position: relative;
	width: 75%;
}
.ast-advanced-hook-row-content p:last-child {
	margin-bottom: 0;
}

.ast-advanced-hook-padding {
	width: 110px;
}
.ast-advanced-hook-padding-bottom-wrap {
	margin-top: 5px;
}

/* Row Inputs */
.ast-advanced-hook-row-content select {
	width: 100%;
}
.ast-advanced-hook-row-content .ast-advanced-hook-action-desc.ast-no-desc {
	margin-top: 0;
}

.ast-advanced-hook-row-content .ast-advanced-hook-action-desc {
	margin-top: 10px;
}

/* Settings Meta Box
------------------------------------------------------*/

#ast-advanced-hook-settings .inside {
	margin: 0;
	padding: 0;
}

/* Builder Buttons Meta Box
------------------------------------------------------*/

#ast-advanced-hook-buttons .inside {
	margin: 0;
	padding: 15px;
}
#ast-advanced-hook-buttons .button {
	margin-left: 5px;
}


/* Rule Settings
------------------------------------------------------*/

/* Rule Forms */
.ast-advanced-hook-saved-rule {
    -js-display: flex;
    display: flex;
    padding: 0 0 8px 0;
}
.ast-advanced-hook-saved-rule-select {
	width: 100%;
}
.ast-advanced-hook-rule-objects {
	display: none;
}
.ast-advanced-hook-rule-objects-visible {
	-js-display: flex;
	display: flex;
}
.ast-advanced-hook-row-content .ast-advanced-hook-rule-objects-visible select {
	width: 50%;
}
.ast-advanced-hook-rule-objects-visible .ast-advanced-hook-rule-objects {
	display: inline;
	margin-right: 7px;
}
.ast-advanced-hook-remove-rule-button {
	display: none;
    margin-top: 5px;
    text-align: left;
	width: 33px;
}
.ast-advanced-hook-remove-rule{
	color: #000;
	cursor: pointer;
	opacity: 0.2;
}
.ast-advanced-hook-remove-rule:hover {
	color: #d54e21;
	opacity: 1;
}
.ast-advanced-hook-add-rule {
	float: right;
	margin-left: 8px;
    min-width: 150px;
}
.ast-advanced-hook-add-rule .button {
    text-align: center;
	width: 100%;
}

/* Location Rules */
.ast-advanced-hook-locations-form {
	display: none;
}

/* Exclusion Rules */
.ast-advanced-hook-exclusion-rules {
	display: none;
}

/* Color Picker */
.ast-advanced-hook-row .wp-picker-holder{
	position: absolute;
    z-index: 1;
}
.ast-advanced-hook-row .iris-border .iris-picker-inner{
	left: 0;
}

/* Dependency */
.astra-php-editor-container {
	visibility: hidden;
	height: 0;
}

.astra-php-snippt-enabled .astra-php-editor-container {
	margin-top: 20px;
	visibility: visible;
	height: auto;
}

.astra-php-snippt-enabled .composer-switch,
.astra-php-snippt-enabled .fl-builder-admin,
.astra-php-snippt-enabled #postdivrich,
.astra-php-snippt-enabled #elementor-switch-mode,
.astra-php-snippt-enabled.elementor-editor-active #elementor-editor,
.astra-php-snippt-enabled #elementor-editor {
	display: none;
}
.astra-php-snippt-enabled #wpb_visual_composer {
	display: none !important;
}

.ast-advanced-hook-enable-php-btn i {
    font-size: 1.2em;
    line-height: 1.8;
    height: auto;
}
.ast-advanced-hook-enable-php-wrapper {
	margin: 0;
	order: 2;
}
.widefat td .ast-inside-content-notice {
	display: none;
	margin-top: 10px;
}
.widefat td .ast-inside-content-blocks-notice,
.widefat td .ast-inside-content-heading-notice{
	margin-top: 10px;
}
.ast-advanced-hook-inline-label{
	font-size: 14px;
	color: #2c3338;
}
.ast-inside-content-number-field{
	width: 60px;
}
.ast-advanced-hook-wrap {
	margin-bottom: 5px;
}
input.readonly, input[readonly], .ast-advanced-date-time-input {
	width: 190px;
	background: white;
}
.ast-advanced-time-duration-wrap {
	display: grid;
	grid-template-columns: 10em 25em 25em 10em;
	height: 50px;
	align-items: center;
}
.ast-advanced-device-display-wrap {
	display: grid;
	grid-template-columns: 7em 7em 7em;
}
.ast-popup-svg-icons {
    width: 150px;
	height: 150px;
	fill: black;
	margin-bottom: 25px;
}
.ast-select-wrap {
	-js-display: flex;
	display: flex;
	margin-top: 12px;
}
.ast-alignment-inner-wrap {
	text-align: center;
}
.ast-alignment-inner-wrap button {
	height: 118px;
	padding: 12px 20px 8px 21px;
	display: inline-block;
}
.ast-alignment-inner-wrap {
	-js-display: flex;
	display: flex;
	flex-direction: column;
}
.ast-hooks-modal .components-modal__header {
	margin-bottom: 12px;
}
.ahfb-icon-set > svg {
	opacity: 0.5;
}
.ast-alignment-inner-wrap .components-button svg {
	fill: none;
}
.ast-alignment-inner-wrap .components-button.is-primary:hover:not(:disabled) {
    background: none;
}
.ast-alignment-inner-wrap .components-button.is-primary {
    background: #ffffff;
}
.ast-toggle-sticky-popup-btn {
	margin: 50px 20px 50px 50px;
}
.ast-create-custom-hook-btn {
	-js-display: flex;
	display: flex;
	justify-content: center;
	margin-top: 20px;
	margin-bottom: 20px;
}
.ast-custom-layout-meta-wrap .ast-advanced-hook-heading-help {
    float: none;
}
.ast-custom-layout-meta-wrap .components-input-control__container select.components-select-control__input,
.ast-display-rule .components-input-control__container select.components-select-control__input {
    line-height: 17px;
}
.ast-display-rule {
	-js-display: flex;
	display: flex;
	justify-content: space-between;
}
.target_rule-condition-delete {
    cursor: pointer;
}
.ast-display-rule-buttons {
   -js-display: flex;
   display: flex;
   column-gap: 7px;
   margin-top: 12px;
}
.ast-tab-panel .components-tab-panel__tabs-item.active-tab {
   box-shadow : inset 0 var(--wp-admin-border-width-focus) var(--wp-admin-theme-color)
}
.ast-tab-panel .components-tab-panel__tabs {
   background-color: #f2e0e0;
}
.ast-select-control {
    margin-bottom: 5px;
    width: 100%;
}
.ast-meta-select .ast__control {
    margin-top: 10px;
    margin-bottom: 7px;
    cursor: pointer;
}
.ast-meta-select .ast__control:hover{
    border-color: #2271b1;
}
.ast-meta-select .css-1pahdxg-control {
    box-shadow: 0 0 0 1px #2271b1;
}
.ast-display-rule .target_rule-condition-delete{
    margin: 5px 9px 0px 6px;
}
.ast-meta-select .ast__input input {
    border: 0;
    box-shadow: none;
}
.ast-select-control .ast-custom-select {
    font-size: inherit;
    font-family: inherit;
    max-width: 100%;
}

.ast-layout-settings-modal {
    width: 760px;
    max-height: 600px;
    top: 45%;
}
.ast-layout-settings-modal .components-modal__content {
    -js-display: flex;
    display: flex;
    flex-direction: column;
    padding: 0;
}
.ast-layout-settings-modal .components-modal__header {
    margin: 0;
}
.ast-cl-settings-content {
    overflow-y: auto;
    margin: 0;
    padding: 0;
}
.ast-cl-settings-content .ast-advanced-hook-table {
    padding: 7px 20px 0px 20px;
}
.ast-custom-layout-panel .components-button {
    padding-left: 15px;
}
.ast-button-container {
    -js-display: flex;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    padding: 14px 14px 14px 38px;
}
.ast-sticky-control {
    margin-top: 15px;
}
.ast-cl-footer-container {
    position: sticky;
    bottom: 0;
    background: #ffffff;
}
.ast-title-container {
    -js-display: flex;
    display: flex;
   flex-grow: 1;
}
.ast-cl-popup-notice{
    margin: 5px 0px 13px 20px;
}
.ast-disabled-close {
    opacity: 0.5;
    pointer-events: none;
}
.ast-cl-priority {
    -js-display: flex;
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    margin-bottom: 5px;
    align-items: center;
}
.ast-content-number-field{
	width: 170px;
	font-size: 13px;
}
.ast-spacing-settings {
    -js-display: flex;
    display: flex;
    flex-direction: row;
    column-gap: 15px;
}

.ast-cl-settings-divider:before {
    width: auto;
    margin: 1px -16px;
}
.ast-cl-settings-divider {
    padding-top: 15px;
    padding-bottom: 12px;
}
.ast-cl-settings-divider:before {
    content: '';
    display: block;
    height: 1px;
    background: #e2e4e7;
}
.ast-custom-layout-meta-wrap .components-toggle-control {
    margin-top: 12px;
}
.ast-cl-settings-content .ast-advanced-hook-row-content	{
    padding: 20px 20px 16px 0px;
}
.ast-cl-settings-content .ast-advanced-hook-row td {
    border-bottom: 1px solid #e1e1e1;
}
/* Time Duration */
.ast-datepicker-wrapper .components-datetime__timezone{
	display: none !important;
}
.ast-timezone{
	border: none;
	margin-top: 10px;
}
.components-text-control__input.ast-datepicker-input{
	width: 87%;
	display: inline-block;
}
.ast-datepicker-input-icon{
	display: inline-block;
	font-size: 25px;
	margin-top: 5px;
}
.ast-schedule-date-time .components-button {
    background: rgba(244,230,230,0);
    border-top-width: 2px;
    border-bottom-width: 2px;
    border-right-width: 2px;
    border-left-width: 2px;
    border-style: solid;
	text-decoration: none;
	border-color: var(--wp-admin-theme-color);
}
.components-modal__header .components-button {
    right: 30px;
    bottom: 10px;
}
.ast-date-time-notice {
	margin: 10px 0px 0px 0px;
}
.ast-datepicker-fields {
	margin-top: 20px;
	margin-bottom: 20px;
}
.ast-cl-settings-content .ast-advanced-hook-row:last-child td {
    border-bottom: none;
}
