.customize-control-ast-border {
  /* Unit Screen wrap */
}

.customize-control-ast-border .customize-control-title {
  display: inline-block;
}

.customize-control-ast-border .ast-border-outer-wrapper {
  display: flex;
  position: relative;
}

.customize-control-ast-border .ast-border-wrapper {
  display: flex;
}

.customize-control-ast-border .ast-border-btns {
  display: block;
  text-align: center;
  line-height: 2;
  border: 1px solid #dddddd;
  background-color: #ffffff;
  border-radius: 3px 0 0 3px;
}

.customize-control-ast-border .ast-border-btns > li {
  margin-bottom: 0;
  display: none;
  width: 35px;
  height: 26px;
}

.customize-control-ast-border .ast-border-btns > li.active {
  display: inline-block;
}

.customize-control-ast-border .ast-border-btns button[type="button"] {
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  opacity: .75;
  outline: none;
  width: 100%;
  height: 100%;
}

.customize-control-ast-border .ast-border-btns button[type="button"] > i {
  width: 15px;
  height: 15px;
  font-size: 15px;
  margin-top: 1px;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper {
  display: none;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper li {
  text-align: center;
  -webkit-box-flex: 1;
  -ms-flex: auto;
  flex: auto;
  margin: 0 2px;
}
.customize-control-ast-border .input-wrapper .ast-border-wrapper li:nth-child(1) {
  margin-right: 0px;
}
.customize-control-ast-border .input-wrapper .ast-border-wrapper li input.ast-border-input {
  text-align: center;
  display: block;
  font-size: 12px;
  padding: 15px 0;
  width: 100%;
  height: 28px;
  border: 1px solid var(--ast-customizer-color-7);
  border-radius: 3px;
  box-shadow: none;
  transition: all 0.3s;
  -moz-appearance: textfield;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper li .ast-border-connected {
  color: #ffffff;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper li:last-child input.ast-border-input {
  border-left-width: 1px;
  border-radius: 3px 0 0 3px;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper.active {
  display: flex;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper span.ast-border-title {
  text-transform: uppercase;
  font-size: 10px;
  color: var(--ast-customizer-color-6);
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper .ast-border-input-item-link .ast-border-connected {
  display: none;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper .ast-border-input-item-link.disconnected .ast-border-disconnected {
  display: none;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper .ast-border-input-item-link.disconnected .ast-border-connected {
  display: block;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper .ast-border-input-item-link span {
  width: 100%;
  height: 26px;
  line-height: 26px;
  font-size: 14px;
  background-color: transparent;
  border-radius: 3px;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper .ast-border-input-item-link span svg {
  pointer-events: none;
}

.customize-control-ast-border .input-wrapper .ast-border-wrapper .ast-border-input-item-link {
  margin-top: 4px;
}
.customize-control-ast-border .input-wrapper .ast-border-wrapper li input.ast-border-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.customize-control-ast-border .input-wrapper .ast-border-wrapper li input.ast-border-input:hover, .customize-control-ast-border .input-wrapper .ast-border-wrapper li input.ast-border-input:focus {
  border-color: var(--ast-customizer-color-2);
}
.customize-control-ast-border .input-wrapper .ast-border-wrapper li input.ast-border-input:focus {
  outline: none;
}
.customize-control-ast-border .input-wrapper.ast-border-wrapper {
  margin-bottom: 8px;
}
.customize-control-ast-border .ast-range-unit {
    position: absolute;
    left: 0;
    top: 0px;
    padding-left: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: normal;
    text-transform: uppercase;
    color: var(--ast-customizer-color-1);
}


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