.color-group-item .components-tooltip .components-popover__content {
  border-radius: 3px;
}

.color-group-item .components-tooltip .components-popover__content > div {
  padding: 5px 10px;
  line-height: 1;
}

.customize-control.customize-control-ast-color-group {
  display: flex;
  flex-wrap: wrap;
}

.customize-control.customize-control-ast-color-group .ast-toggle-desc-wrap {
  flex: 1 1 auto;
  align-self: center;
}

.customize-control.customize-control-ast-color-group .customize-control-title {
  margin-bottom: 5px;
}

.customize-control.customize-control-ast-color-group .ast-field-color-group-wrap {
  justify-content: flex-end;
  display: flex;
  max-height: 28px;
}

.customize-control.customize-control-ast-color-group .color-button-wrap {
  position: inherit;
}

.customize-control.customize-control-ast-color-group .color-group-item:not(:last-child) {
  margin-left: 8px;
}

.customize-control.customize-control-ast-color-group .ast-color-group-reset {
  left: 72px;
  top: 6px;
  cursor: pointer;
}

.customize-control.customize-control-ast-color-group .ast-color-group-responsive-wrap {
  display: none;
}

.customize-control.customize-control-ast-color-group .ast-color-group-responsive-wrap.active {
  justify-content: flex-end;
  display: flex;
}

.customize-control.customize-control-ast-color-group .ast-responsive-btns {
  position: relative;
  left: -5px;
  top: 3px;
}

.customize-control.customize-control-ast-color-group .ast-bg-img-remove.components-button.is-link {
  width: 100%;
  border: 1px dashed #b4b9be;
  box-sizing: border-box;
  box-shadow: unset;
  padding: 9px 0;
  line-height: 1.6;
  margin-top: 10px;
  text-decoration: none;
}

.customize-control.customize-control-ast-color-group .more-settings {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  padding: 5px 0 5px 0;
  cursor: pointer;
  float: none;
  text-decoration: none;
}

.customize-control-ast-color-group .ast-color-multiple-group-reset.ast-color-group-reset {
  left: 110px;
}

.customize-control-ast-color-group .ast-color-multiple-group-reset.ast-color-group-reset.ast-single-color-group-set {
  left: 112px;
}

#customize-control-astra-settings-woo-single-page-color-group .ast-color-group-reset {
  left: 145px;
}

.ast-top-divider.customize-control-ast-color-group .ast-control-wrap .ast-color-btn-reset-wrap {
  top: 30px;
}

.ast-top-divider.customize-control-ast-color-group .ast-divider-title + .ast-control-wrap .ast-color-btn-reset-wrap {
  top: 75px;
}

.ast-top-dotted-divider.customize-control-ast-color-group .ast-control-wrap .ast-color-btn-reset-wrap {
  top: 30px;
}

.ast-top-dotted-divider.customize-control-ast-color-group .ast-divider-title + .ast-control-wrap .ast-color-btn-reset-wrap {
  top: 75px;
}

.customize-control-ast-color-group .ast-control-wrap {
  display: inline-flex;
  width: 100%;
}

.customize-control-ast-color-group .ast-divider-title + .ast-control-wrap .ast-color-group-reset {
  top: 47px;
}

.customize-control-ast-color-group .ast-divider-title + .ast-control-wrap .astra-color-picker-wrap {
  top: 73px;
}

.astra-color-picker-wrap.picker-open + span {
  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;
}
