#metafic-accessibility-widget {
    position: fixed;
    bottom: 20px;
    left: 160px;
    z-index: 999999;
}

.metafic-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #2c3e50;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metafic-fab:hover {
    background-color: #34495e;
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.metafic-fab:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

.metafic-fab svg {
    width: 24px;
    height: 24px;
}

.metafic-panel {
    position: fixed;
    bottom: 90px;
    left: 20px;
    width: 400px;
    max-height: 600px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    overflow: hidden;
}

.metafic-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.metafic-panel-header {
    background: #2c3e50;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metafic-panel-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.metafic-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.metafic-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.metafic-close-btn:focus {
    outline: 2px solid #3498db;
    outline-offset: -2px;
}

.metafic-panel-content {
    padding: 20px;
    max-height: 500px;
    overflow-y: auto;
}

.metafic-option {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.metafic-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    flex: 1;
}

.metafic-option-icon {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

.metafic-option input[type="range"] {
    flex: 1;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
}

.metafic-option input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.metafic-option input[type="range"]::-webkit-slider-thumb:hover {
    background: #2980b9;
}

.metafic-option input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
}

.metafic-option input[type="range"]::-moz-range-thumb:hover {
    background: #2980b9;
}

.metafic-value {
    min-width: 50px;
    text-align: right;
    font-size: 12px;
    color: #7f8c8d;
}

.metafic-option input[type="checkbox"] {
    display: none;
}

.metafic-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    background-color: #e0e0e0;
    border-radius: 12px;
    transition: background-color 0.3s ease;
    margin-left: auto;
}

.metafic-toggle::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.metafic-option input[type="checkbox"]:checked + .metafic-toggle {
    background-color: #3498db;
}

.metafic-option input[type="checkbox"]:checked + .metafic-toggle::after {
    transform: translateX(20px);
}

.metafic-reset-button {
    transition: background-color 0.3s ease;
    margin-top: 10px;
    width: 100%;
}

.metafic-reset-button:hover {
    background-color: #c0392b;
}

.metafic-reset-button:focus {
    outline: 3px solid #e74c3c;
    outline-offset: 2px;
}

body.metafic-dyslexic {
    font-family: 'Open-Dyslexic', sans-serif;
}

body.metafic-dyslexic * {
    font-family: inherit !important;
}

body.metafic-big-cursor,
body.metafic-big-cursor * {
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path fill="%23000" stroke="%23fff" stroke-width="2" d="M8 8 L8 30 L16 24 L22 36 L28 32 L22 20 L32 20 Z"/></svg>') 0 0, auto !important;
}

@media (max-width: 768px) {
    #metafic-accessibility-widget {
        bottom: 80px;
        left: 20px;
    }
    
    .metafic-panel {
        left: 10px;
        right: 10px;
        width: auto;
        max-height: 80vh;
        bottom: 80px;
    }
    
    .metafic-fab {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .metafic-fab,
    .metafic-panel,
    .metafic-toggle::after,
    .metafic-option input[type="range"]::-webkit-slider-thumb,
    .metafic-option input[type="range"]::-moz-range-thumb {
        transition: none !important;
    }
}