/* AutoTruckLab Accessibility v3.3 */

/* Skip link */
.atl-skip-link{
    position:fixed;
    left:12px;
    top:-100px;
    z-index:99999;
    background:#fff;
    color:#000;
    border:3px solid #000;
    padding:12px 16px;
    font-weight:800;
}
.atl-skip-link:focus{top:12px}

/* Keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible{
    outline:3px solid #ffbf00 !important;
    outline-offset:3px !important;
}

/* Touch/click target size */
button,
.btn,
.button,
input[type="submit"],
.woocommerce a.button{
    min-height:44px;
}

/* Forms */
.woocommerce form .form-row label,
form label{
    font-weight:700;
}
input,
select,
textarea{
    font-size:1rem;
}
.woocommerce-error,
.woocommerce-info,
.woocommerce-message{
    border-left-width:5px;
}

/* Accessibility launcher */
.atl-a11y-open{
    background:#111 !important;
    color:#fff !important;
    border:2px solid #fff !important;
    padding:10px 13px;
    border-radius:6px;
    cursor:pointer;
}

/* Accessibility panel */
.atl-a11y-panel{
    position:fixed;
    z-index:99998;
    right:20px;
    top:110px;
    width:min(390px,calc(100vw - 30px));
    background:#fff;
    color:#111;
    border:2px solid #111;
    border-radius:10px;
    box-shadow:0 16px 50px rgba(0,0,0,.28);
}
.atl-a11y-panel-inner{padding:18px}
.atl-a11y-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    border-bottom:1px solid #ddd;
    padding-bottom:12px;
}
.atl-a11y-head h2{font-size:1.2rem;margin:0}
.atl-a11y-close{
    background:#111 !important;
    color:#fff !important;
    min-width:44px;
    min-height:44px;
    font-size:1.5rem;
    line-height:1;
}
.atl-a11y-controls{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding-top:15px;
}
.atl-a11y-controls button{
    background:#f2f2f2 !important;
    color:#111 !important;
    border:2px solid #333 !important;
    text-align:left;
}
.atl-a11y-controls button[aria-pressed="true"]{
    background:#111 !important;
    color:#fff !important;
}
.atl-a11y-note{margin-bottom:0}
.atl-a11y-note a{text-decoration:underline}

/* User-selected modes */
html.atl-font-large{font-size:112.5%}
html.atl-font-xlarge{font-size:125%}

html.atl-high-contrast body,
html.atl-high-contrast .site-header,
html.atl-high-contrast .site-footer,
html.atl-high-contrast .section,
html.atl-high-contrast .card{
    background:#000 !important;
    color:#fff !important;
}
html.atl-high-contrast a{
    color:#ffeb3b !important;
}
html.atl-high-contrast input,
html.atl-high-contrast select,
html.atl-high-contrast textarea{
    background:#000 !important;
    color:#fff !important;
    border:2px solid #fff !important;
}
html.atl-high-contrast .atl-a11y-panel{
    background:#000 !important;
    color:#fff !important;
    border-color:#fff !important;
}

html.atl-underline-links a:not(.btn):not(.button){
    text-decoration:underline !important;
    text-decoration-thickness:2px !important;
    text-underline-offset:3px !important;
}

html.atl-grayscale{
    filter:grayscale(100%);
}

/* WooCommerce accessibility refinements */
.woocommerce table.shop_table th{
    font-weight:800;
}
.woocommerce-checkout #payment ul.payment_methods li{
    padding:.6rem 0;
}
.woocommerce-checkout #payment ul.payment_methods label{
    cursor:pointer;
    display:inline-block;
    padding:.35rem;
}
.woocommerce form .form-row .required{
    color:#b00020;
    font-weight:900;
}

/* Screen reader helper */
.screen-reader-text{
    border:0;
    clip:rect(1px,1px,1px,1px);
    -webkit-clip-path:inset(50%);
    clip-path:inset(50%);
    height:1px;
    margin:-1px;
    overflow:hidden;
    padding:0;
    position:absolute !important;
    width:1px;
    word-wrap:normal !important;
}

/* Respect OS motion preference */
@media (prefers-reduced-motion: reduce){
    *,
    *::before,
    *::after{
        animation-duration:.01ms !important;
        animation-iteration-count:1 !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }
}

@media(max-width:700px){
    .atl-a11y-panel{
        top:85px;
        right:15px;
    }
    .atl-a11y-controls{
        grid-template-columns:1fr;
    }
}
