.customize-control-ast-selector .ast-alignment-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.customize-control-ast-selector .ast-alignment-inner-wrap,
.customize-control-ast-selector .ast-selector-responsive-wrap {
    display: none;
}

.customize-control-ast-selector .ast-alignment-wrapper .ast-alignment-inner-wrap.active {
    flex: 1 1 auto;
    display: flex;
}
.customize-control-ast-selector .components-button.has-icon {
    padding: 6px;
    min-width: 36px;
    justify-content: center;
}
.ast-alignment-inner-wrap .components-button {
    white-space: normal;
    color: var(--ast-customizer-color-5);
    text-decoration: none;
    text-shadow: none;
    outline: unset;
    border: 1px solid var(--ast-customizer-color-7);
    width: 100%;
    height: 100%;
    text-align: center;
    justify-content: center;
    border-radius: unset;
    transition: none;
    font-weight: normal;
}
.ast-alignment-inner-wrap.active .components-button.is-primary {
    color: var(--ast-customizer-color-10);
    background: var(--ast-customizer-color-1);
}
.customize-control-ast-selector .ast-alignment-wrapper .ast-alignment-inner-wrap.active .components-button:not(.is-primary):hover {
    color: var(--ast-customizer-color-5) !important;
}

.customize-control-ast-selector .components-button .ahfb-icon-set svg {
    width: 16px;
    height: 16px;
    fill: var(--ast-customizer-color-8);
}
.customize-control-ast-selector .components-button.is-primary .ahfb-icon-set svg,
.customize-control-ast-selector .components-button.is-primary .ahfb-icon-set svg circle,
.customize-control-ast-selector .components-button.is-primary .ahfb-icon-set svg path:not(.ast-hf-account-unfill) {
    fill: var(--ast-customizer-color-10);
}

.customize-control-ast-selector .ast-alignment-inner-wrap:first-child .components-button {
    border-radius: 3px 0px 0px 3px;
}
.customize-control-ast-selector .ast-alignment-inner-wrap:last-child .components-button {
    border-radius: 0px 3px 3px 0px;
}

.ast-alignment-wrapper .ast-alignment-inner-wrap:not(:first-child):not(:last-child) .components-button{
    border-right: none;
}

.customize-control-ast-selector .ast-alignment-inner-wrap .components-button {
    border-radius: unset;
    font-size: 12px;
    padding: 9px 4px 10px;
}
.customize-control-ast-selector .ast-selector-responsive-wrap.active {
    display: flex;
    flex: 1 1 0;
}
.customize-control-ast-selector .ast-responsive-btns {
    position: relative;
    left: 6px;
    top: 1px;
}
.customize-control-ast-selector .ast-alignment-inner-wrap .components-button:focus:not(:disabled) {
    box-shadow: none;
}
.customize-control-ast-selector .components-button .ahfb-icon-set {
    display: flex;
}
.customize-control-ast-selector {
    margin-bottom: 1px;
}

.ast-alignment-inner-wrap.active button.components-button.is-primary {
    border-color: var(--ast-customizer-color-3);
}


/* 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;
}
