/*----------  Media Query min-width Structure   ----------*/
/*----------  Media Query max-width Structure   ----------*/
/*----------  Break-point min-width Structure   ----------*/
/*----------  Break-point max-width Structure   ----------*/
.woocommerce.ast-woo-two-step-checkout form .ast-two-step-checkout:after,
.woocommerce-page.ast-woo-two-step-checkout form .ast-two-step-checkout:after {
  clear: both;
  content: "";
  display: table;
}

.woocommerce.ast-woo-two-step-checkout form .ast-checkout-control-nav,
.woocommerce-page.ast-woo-two-step-checkout form .ast-checkout-control-nav {
  -js-display: flex;
  display: flex;
  list-style: none;
  margin-right: 0;
  padding: 1em 0 3.632em;
  margin-bottom: 2.618em;
}

.woocommerce.ast-woo-two-step-checkout form .ast-checkout-control-nav li,
.woocommerce-page.ast-woo-two-step-checkout form .ast-checkout-control-nav li {
  position: relative;
  flex: 1;
  text-align: center;
  line-height: 3;
}

.woocommerce.ast-woo-two-step-checkout form .ast-checkout-control-nav li a:before,
.woocommerce-page.ast-woo-two-step-checkout form .ast-checkout-control-nav li a:before {
  content: "";
  display: block;
  height: 4px;
  width: 50%;
  position: absolute;
  bottom: -1.1em;
  left: 0;
}

.woocommerce.ast-woo-two-step-checkout form .ast-checkout-control-nav li a:after,
.woocommerce-page.ast-woo-two-step-checkout form .ast-checkout-control-nav li a:after {
  display: block;
  content: "";
  width: 1em;
  height: 1em;
  position: absolute;
  bottom: -1.5em;
  right: 50%;
  margin-right: -.5em;
  box-sizing: border-box;
  background-color: #ffffff;
  border-width: 3px;
  border-style: solid;
  border-radius: 20px;
}

.woocommerce.ast-woo-two-step-checkout form .ast-checkout-control-nav li:nth-child(2) a:before,
.woocommerce-page.ast-woo-two-step-checkout form .ast-checkout-control-nav li:nth-child(2) a:before {
  right: 0;
  left: auto;
}

.woocommerce.ast-woo-two-step-checkout form .ast-two-step-checkout,
.woocommerce-page.ast-woo-two-step-checkout form .ast-two-step-checkout {
  margin-right: 0;
}

.woocommerce.ast-woo-two-step-checkout form #order_review_heading,
.woocommerce-page.ast-woo-two-step-checkout form #order_review_heading {
  display: none;
  padding: 20px 0 14px;
  margin: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--ast-border-color);
}

.woocommerce.ast-woo-two-step-checkout form .order-review #order_review_heading,
.woocommerce.ast-woo-two-step-checkout form .order-review .ast-checkout-addresses,
.woocommerce-page.ast-woo-two-step-checkout form .order-review #order_review_heading,
.woocommerce-page.ast-woo-two-step-checkout form .order-review .ast-checkout-addresses {
  display: block;
}

.woocommerce.ast-woo-two-step-checkout form .ast-checkout-addresses,
.woocommerce-page.ast-woo-two-step-checkout form .ast-checkout-addresses {
  display: none;
}

.woocommerce.ast-woo-two-step-checkout form .ast-two-step-checkout > li:not(.flex-active-slide),
.woocommerce-page.ast-woo-two-step-checkout form .ast-two-step-checkout > li:not(.flex-active-slide) {
  height: 0;
  display: none !important;
}

.woocommerce.ast-woo-two-step-checkout form #order_review,
.woocommerce-page.ast-woo-two-step-checkout form #order_review {
  padding: 0;
  border: 0;
}

.woocommerce.ast-woo-two-step-checkout form #payment #place_order,
.woocommerce-page.ast-woo-two-step-checkout form #payment #place_order {
  width: 100%;
  padding-top: 1em;
  font-size: 1.3em;
  padding-bottom: 1em;
}

.woocommerce.ast-woo-two-step-checkout form .form-row.woocommerce-validated select#billing_country,
.woocommerce.ast-woo-two-step-checkout form .form-row.woocommerce-validated select#billing_state,
.woocommerce-page.ast-woo-two-step-checkout form .form-row.woocommerce-validated select#billing_country,
.woocommerce-page.ast-woo-two-step-checkout form .form-row.woocommerce-validated select#billing_state {
  border-color: var(--ast-border-color);
  background: #ffffff;
}

.woocommerce.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav,
.woocommerce-page.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav {
  list-style: none;
  -js-display: flex;
  display: flex;
  margin-right: 0;
}

.woocommerce.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav > li,
.woocommerce-page.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav > li {
  flex: 1;
}

.woocommerce.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav > li:last-child,
.woocommerce-page.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav > li:last-child {
  text-align: left;
}

.woocommerce.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav a.flex-disabled,
.woocommerce-page.ast-woo-two-step-checkout .ast-checkout-slides .flex-direction-nav a.flex-disabled {
  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;
}
