/* Основной контейнер */
#verkiu-a11y-container {
    position: fixed;
    z-index: 999999;
    display: flex;
    align-items: flex-start;
}

/* Кнопка открытия (синяя) */
#verkiu-a11y-toggle {
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#verkiu-a11y-toggle:hover {
    transform: scale(1.05);
}

/* Сама панель */
#verkiu-a11y-panel {
    position: absolute;
    top: 0;
    width: max-content; /* Автоматически подстраивается под ширину текста */
    min-width: 230px; /* Минимальная ширина для аккуратности */
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: inherit !important;
}

#verkiu-a11y-panel.active {
    opacity: 1;
    visibility: visible;
}

/* Шапка панели (Идеальное выравнивание) */
.a11y-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid #eee !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1 !important;
}

/* Кнопка закрытия (SVG крестик) */
#verkiu-a11y-close {
    background: transparent !important;
    border: none !important;
    color: #777 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
}

#verkiu-a11y-close svg {
    display: block !important;
}

#verkiu-a11y-close:hover {
    color: #000 !important;
    transform: scale(1.1) !important;
}

/* Список кнопок */
.a11y-tools {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 0 !important;
}

.a11y-tools li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Кнопки внутри панели */
.a11y-tools button {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    padding: 10px 20px !important;
    font-size: 15px !important;
    color: #444 !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 400 !important;
    white-space: nowrap !important; /* Запрещаем перенос текста на новую строку */
}

.a11y-tools button:hover {
    background: #f5f5f5 !important;
    color: #000 !important;
}

/* Иконки внутри кнопок */
.a11y-tools button i {
    width: 20px !important;
    text-align: center !important;
    font-size: 16px !important;
}

/* Отделение кнопки Reset */
.a11y-reset-li {
    border-top: 1px solid #eee !important;
    margin-top: 5px !important;
    padding-top: 5px !important;
}
