/**
 * Стили для кнопок шеринга EEAT Share
 * Изоляция стилей для избежания конфликтов с EEAT WP
 */

/* Контейнер кнопок с независимой стилизацией */
.eeat-share-independent-block {
    display: block;
    width: 100%;
    clear: both;
    margin-bottom: 30px;
    margin-top: 20px;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 1.5;
}

.eeat-share-independent-block * {
    box-sizing: border-box;
}

.eeat-share-buttons-wrapper-isolated {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
    width: 100%;
}

/* Основной контейнер кнопок */
.eeat-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
    padding: 0;
    justify-content: flex-start;
    width: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    border: none;
    position: static;
}

/* Общие стили для кнопок с изоляцией */
.eeat-share-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    position: relative !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    background-color: #333 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.eeat-share-button:hover {
    transform: translateY(-3px) !important;
    opacity: 0.9 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
    background-color: #333 !important;
}

/* Иконки кнопок с изоляцией */
.eeat-share-icon {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Счетчики с изоляцией */
.eeat-share-count {
    position: absolute !important;
    top: -12px !important;
    right: -12px !important;
    background-color: #fff !important;
    color: #333 !important;
    border-radius: 12px !important;
    padding: 0 8px !important;
    font-size: 12px !important;
    line-height: 20px !important;
    font-weight: bold !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important;
    min-width: 24px !important;
    text-align: center !important;
    z-index: 5 !important;
}

/* Цвета и иконки для сервисов */
.eeat-share-facebook {
    background-color: #1877F2 !important;
}

.eeat-share-icon-facebook {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'%3E%3Cpath fill='white' d='M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z'%3E%3C/path%3E%3C/svg%3E") !important;
}

.eeat-share-x {
    background-color: #000000 !important;
}

.eeat-share-icon-x {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M18.901 1.153h3.68l-8.04 9.19L24 22.846h-7.406l-5.8-7.584-6.638 7.584H.474l8.6-9.83L0 1.154h7.594l5.243 6.932ZM17.61 20.644h2.039L6.486 3.24H4.298Z'%3E%3C/path%3E%3C/svg%3E") !important;
}

.eeat-share-pinterest {
    background-color: #E60023 !important;
}

.eeat-share-icon-pinterest {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath fill='white' d='M496 256c0 137-111 248-248 248-25.6 0-50.2-3.9-73.4-11.1 10.1-16.5 25.2-43.5 30.8-65 3-11.6 15.4-59 15.4-59 8.1 15.4 31.7 28.5 56.8 28.5 74.8 0 128.7-68.8 128.7-154.3 0-81.9-66.9-143.2-152.9-143.2-107 0-163.9 71.8-163.9 150.1 0 36.4 19.4 81.7 50.3 96.1 4.7 2.2 7.2 1.2 8.3-3.3.8-3.4 5-20.3 6.9-28.1.6-2.5.3-4.7-1.7-7.1-10.1-12.5-18.3-35.3-18.3-56.6 0-54.7 41.4-107.6 112-107.6 60.9 0 103.6 41.5 103.6 100.9 0 67.1-33.9 113.6-78 113.6-24.3 0-42.6-20.1-36.7-44.8 7-29.5 20.5-61.3 20.5-82.6 0-19-10.2-34.9-31.4-34.9-24.9 0-44.9 25.7-44.9 60.2 0 22 7.4 36.8 7.4 36.8s-24.5 103.8-29 123.2c-5 21.4-3 51.6-.9 71.2C65.4 450.9 0 361.1 0 256 0 119 111 8 248 8s248 111 248 248z'%3E%3C/path%3E%3C/svg%3E") !important;
}

.eeat-share-telegram {
    background-color: #0088cc !important;
}

.eeat-share-icon-telegram {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 496 512'%3E%3Cpath fill='white' d='M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm121.8 169.9l-40.7 191.8c-3 13.6-11.1 16.9-22.4 10.5l-62-45.7-29.9 28.8c-3.3 3.3-6.1 6.1-12.5 6.1l4.4-63.1 114.9-103.8c5-4.4-1.1-6.9-7.7-2.5l-142 89.4-61.2-19.1c-13.3-4.2-13.6-13.3 2.8-19.7l239.1-92.2c11.1-4 20.8 2.7 17.2 19.5z'%3E%3C/path%3E%3C/svg%3E") !important;
}

.eeat-share-whatsapp {
    background-color: #25D366 !important;
}

.eeat-share-icon-whatsapp {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'%3E%3C/path%3E%3C/svg%3E") !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .eeat-share-buttons-wrapper-isolated {
        gap: 12px;
    }
    
    .eeat-share-button {
        width: 36px !important;
        height: 36px !important;
    }
    
    .eeat-share-icon {
        width: 18px !important;
        height: 18px !important;
    }
    
    .eeat-share-count {
        font-size: 11px !important;
        line-height: 18px !important;
        padding: 0 6px !important;
        min-width: 18px !important;
    }
}

@media (max-width: 480px) {
    .eeat-share-buttons-wrapper-isolated {
        justify-content: flex-start;
        gap: 15px;
    }
    
    .eeat-share-count {
        top: -10px !important;
        right: -10px !important;
        border-radius: 10px !important;
        min-width: 16px !important;
        padding: 0 5px !important;
    }
} 