/* Meta Box Heading
------------------------------------------------------*/
#astra_advanced_headers_settings .inside{
	margin: 0;
}
#astra_advanced_headers_settings .nav-tab-wrapper ul{
	margin: 0;
}
#astra_advanced_headers_settings #ast-adv-headers-tab-page-header{
	margin-left: 0;
}
.astra-advanced-headers-meta-box-wrap{
	background: transparent;
	border: 0;
}
.astra-advanced-headers-meta-box-wrap .inside{
	margin: 0;
	padding: 0;
}
#astra_advanced_headers_settings .handlediv,
.astra-advanced-headers-meta-box-wrap h2.ui-sortable-handle,
.astra-advanced-headers-meta-box-wrap .postbox-header {
	display: none;
}

/* Meta Box Tables
------------------------------------------------------*/
#ast-advanced-haeders-design-bg-custom-size-top-padding,
#ast-advanced-haeders-design-bg-custom-size-bottom-padding{
	margin-top: 5px;
}

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

/* Meta Box Tabs
------------------------------------------------------*/
.ast-adv-headers-tabs-section{
    display:none;
}
 .ast-adv-headers-tabs-section.tab-active{
     display:block;
 }


/* Loading Overlay */
.spinner.ast-advanced-headers-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;
    left: 0;
    right: 0;
    height: initial;
    width: auto;
    margin: 0;
}


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

.ui-widget-content.ast-advanced-headers-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;
}

/* Tooltips Image */
.ast-advanced-headers-heading-img-help {
	cursor: help;
}

.ui-widget-content.ast-advanced-headers-ui-img-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: 175px;
	text-align: center;
	padding: 7px;
	text-rendering: optimizeLegibility;
	text-shadow: none;
	z-index: 9999;
}

/* Table */
.ast-advanced-headers-table {
	border: none;
	border-bottom: 5px solid #f0f0f0;
}
.ast-advanced-headers-table:last-of-type {
	border-bottom-width: 0;
}
.ast-advanced-headers-table.widefat{
	border-top: 0;
}
/* Rows */
.ast-advanced-headers-row td:before,
.ast-advanced-headers-row td:after {
	display: table;
	content: " ";
}
.ast-advanced-headers-row td:after {
	clear: both;
}
.ast-advanced-headers-row td {
	border-bottom: 1px solid #f0f0f0;
	zoom:1;
	vertical-align: middle;
}
.ast-advanced-headers-row td *{
	vertical-align: middle;
}
.ast-advanced-headers-row:last-child td {
	border-bottom: none;
}

/* Row Heading */
.ast-advanced-headers-row-heading {
	/*background: #F9F9F9;*/
	border-right: 1px solid #E1E1E1;
	padding: 15px;
	width: 30%;
	vertical-align: middle;
}

.ast-advanced-headers-row td.ast-advanced-headers-row-heading.title {
	padding-bottom: 0;
	border-bottom: 0;
}
.ast-advanced-headers-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-headers-row-sub-heading {
	/*background: #F9F9F9;*/
	border-right: 1px solid #E1E1E1;
	padding: 15px;
	width: 25%;
	vertical-align: middle;
}
.ast-advanced-headers-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-headers-heading-help {
	color: #b3b3b3;
	cursor: help;
	float: right;
    font-size: 18px;
}

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

/* Row Inputs */
.ast-advanced-headers-row-content select {
	width: 100%;
}


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

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

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

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


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

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

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

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

/* Color Picker */
.ast-advanced-headers-row .wp-picker-holder{
	position: absolute;
    z-index: 1;
    top:45px;
}

.ast-advanced-headers-table .ast-custom-menu-item-text-enabled textarea {
	width: 50%;
	min-height: 60px;
}

@media screen and ( max-width: 544px ) {
	.ast-advanced-headers-table .ast-custom-menu-item-text-enabled textarea {
		width: 100%;
	}
}

/* WP Beta 5.3 compatibility CSS - Start */

.wp-core-ui .ast-advanced-headers-row .button.button-small {
	margin-left: 4px;
	min-height: 30px;
}

/* WP Beta 5.3 compatibility CSS - Start */

.target_rule-specific-page-wrap {
	display: none;
}


/* Focus Management Styles - WCAG 2.1 Compliance */
/* Added for keyboard accessibility and screen reader support */

/* Button Focus Styles */
.hvac-button:focus,
.hvac-content .button:focus,
.hvac-content button:focus,
.hvac-content input[type="submit"]:focus,
.hvac-email-submit:focus,
.hvac-filter-submit:focus,
.hvac-certificate-actions button:focus,
.hvac-certificate-actions a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
    border-radius: 4px;
}

/* Input Focus Styles */
.hvac-form-input:focus,
.hvac-content input[type="text"]:focus,
.hvac-content input[type="email"]:focus,
.hvac-content input[type="password"]:focus,
.hvac-content input[type="url"]:focus,
.hvac-content textarea:focus,
.hvac-content select:focus,
.hvac-email-form-row input:focus,
.hvac-email-form-row textarea:focus,
.hvac-filter-group input:focus,
.hvac-filter-group select:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    border-color: #005fcc;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* Link Focus Styles */
.hvac-content a:focus,
.hvac-event-link:focus,
.hvac-certificate-link:focus,
.hvac-attendee-profile-icon:focus,
.hvac-dashboard-nav a:focus,
.hvac-email-navigation a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    text-decoration: underline;
    background-color: rgba(0, 95, 204, 0.1);
    border-radius: 2px;
}

/* Interactive Element Focus Styles */
.hvac-attendee-checkbox:focus,
.hvac-select-all-container input[type="checkbox"]:focus,
.hvac-modal-close:focus,
.hvac-certificate-table tr:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hvac-content *:focus {
        outline: 3px solid #000000;
        outline-offset: 2px;
        background-color: #ffff00;
        color: #000000;
    }
}

/* Focus-visible polyfill support */

/* Reset focus for mouse users while preserving keyboard accessibility */
.js-focus-visible :focus:not(.focus-visible) {
    outline: none;
    box-shadow: none;
}

/* Ensure focus is visible for keyboard users */
.js-focus-visible .focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}
