

/* Start:/local/templates/BBE_2024/components/bitrix/news.list/vote_template/style.css?17546656983340*/
.vote-wrapper {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.vote-item {
    flex-basis: 25%;
    padding: 2rem;
    border: .125rem solid hsl(0, 0%, 91%);
    border-radius: 1.5rem;
}
.vote-item .img-wrapper {
    margin: -2rem -2rem 2rem;
    position: relative;
    padding-bottom: 100%;
    height: 400px;
}
.vote-item .img-wrapper img {
    border-radius: 1.4rem 1.4em 0 0;
    object-fit: cover;
    width: 100%;
    object-position: 50% 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}
.vote-item .title {
    font-size: 1.5rem;
    font-weight: 500;
}
.vote-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}
.vote-count {
    margin: 15px 0;
}

.vote-item button {
    margin: 10px 0;
}

.vote-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.vote-count.highlight {
    display: inline-block;
    animation: pulse 0.5s ease;
    color: #2d6db5;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.vote-item .preview-text {
    min-height: 65px;
}

/* Стили модального окна Bitrix popup */
.popup-window {
    max-width: 600px; /* фиксированная ширина */
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    font-family: sans-serif;
    padding: 0;
}

.popup-window-content {
    padding: 2rem;
    background-color: #fff;
    border-radius: 0 0 1.5rem 1.5rem;
}

/* Кнопка закрытия */
.popup-window-close-icon {
    transition: all 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.7;
}
.popup-window-close-icon:hover {
    filter: none;
    opacity: 1;
    transform: scale(1.2);
}

/* Кнопка "Закрыть" внизу */
.popup-window-button-close {
    background-color: #2d6db5;
    color: white;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    border: none;
    transition: background 0.3s ease;
}
.popup-window-button-close:hover {
    background-color: #1f4d85;
}

/* Модификация заголовка и изображения в popup */
.popup-window .card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.popup-window .card img {
    width: 50%;
    margin: 0 auto;
    height: auto;
    border-radius: 1.5rem;
    object-fit: cover;
    display: block;
    margin-bottom: 1rem;
    max-height: 350px;
}

.popup-window .btn {
    width: 250px;
    margin: 15px auto 0;
    display: block;
}

.popup-window .job-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}
.text {
    font-family: "Onest", Helvetica, Arial, sans-serif !important;
}
 
/* .card .img-wrapper {
    margin: -2rem;
}
.card .img-wrapper img{
    border-radius: 1.4rem 1.4em 0 0;
    object-fit: cover;
    width: 100%;
    object-position: 50% 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
} */


@media screen and (max-width: 768px) {
    .vote-item {
        flex-basis: 100%;
    }
    .popup-window {
        width: 90%;
    }
}




/* End */
/* /local/templates/BBE_2024/components/bitrix/news.list/vote_template/style.css?17546656983340 */
