/* ==========================================================================
   A. STRUKTURA PANELU WCAG (NIEZALEŻNA OD NAZWY WTYCZKI)
   ========================================================================== */
.wcag-panel {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-align: left;
    color: var(--text);
    background: var(--bg-panel);
    max-width: 100%;
}

.wcag-panel-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text);
    margin: 0 0 16px 0;
    padding: 0;
}

/* Wiersz opcji */
.wcag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.wcag-row:last-child {
    border-bottom: none;
}

.wcag-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    pointer-events: none;
}

.wcag-icon {
    width: 22px;
    height: 22px;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wcag-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

/* --- PRZEŁĄCZNIK SWITCH (JAK NA MAKIECIE) --- */
.wcag-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: var(--text);
    border-radius: 999px;
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    pointer-events: none;
}

.wcag-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: var(--bg-panel);
    border-radius: 50%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Stan aktywny switcha */
.wcag-row[aria-pressed="true"] .wcag-switch {
    background-color: var(--primary);
}

.wcag-row[aria-pressed="true"] .wcag-switch::after {
    transform: translateX(18px);
}

.wcag-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--bg-panel);
}
.wcag-reset-btn {
    background: transparent;
    border: none;
    color: var(--secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 0;
    width: 100%;
    text-align: center;
}

/* ==========================================================================
   B. GLOBALNE KLASY REAKCJI WCAG NA STRONIE
   ========================================================================== */
body.wcag-high-contrast { background: #000000 !important; color: #ffffff !important; }
body.wcag-high-contrast a, body.wcag-high-contrast h1, body.wcag-high-contrast h2 { color: #ffff00 !important; }
body.wcag-grayscale { filter: grayscale(100%) !important; }
body.wcag-large-text p, body.wcag-large-text span, body.wcag-large-text li, body.wcag-large-text a { font-size: 1.25em !important; }
@import url('https://fonts.googleapis.com/css2?family=Open+Dyslexic&display=swap');
body.wcag-dyslexic, body.wcag-dyslexic * { font-family: 'OpenDyslexic', sans-serif !important; }
body.wcag-no-animations * { animation: none !important; transition: none !important; }
body.wcag-links-underline a { text-decoration: underline !important; font-weight: 700 !important; }