/* Стили для плагина File Download Block */

.wp-block-file {
    border: 1px solid #ddd;
    padding: 15px;
    margin: 10px 0;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wp-block-file:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Стили для блока файла */
.wp-block-file a {
    text-decoration: none;
    color: #333;
}

.wp-block-file a:hover {
    color: #007cba;
}

/* Кнопка скачивания */
.wp-block-file__button {
    background: #007cba !important;
    color: white !important;
    border: none !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.wp-block-file__button:hover {
    background: #005a87 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* Tooltip стили */
.su-tooltip-button {
    cursor: help;
    border-bottom: 1px dotted #666;
    margin: 0 2px;
}

.su-tooltip {
    position: absolute;
    padding: 8px 12px;
    background: #ddd;
    color: #000;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 320px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}


/* Адаптивность */
@media (max-width: 768px) {
    .wp-block-file {
        flex-direction: column;
        align-items: flex-start;
    }

    .wp-block-file__button {
        margin-top: 10px;
        align-self: flex-start;
    }
}

/* Иконки файлов */
.wp-block-file img {
    max-width: 40px;
    height: auto;
    border-radius: 2px;
}

/* Скрываем tooltip по умолчанию */
.su-tooltip {
    display: none;
}

/* Показываем tooltip при наведении */
.su-tooltip-button:hover+.su-tooltip,
.su-tooltip:hover {
    display: block !important;
}