@font-face {
    font-family: 'GoogleFont';
    src: url('/anticinema/widget/font.ttf') format('truetype');
  }

#review-popup, #review-widget {
    font-family: 'GoogleFont' !important;
}

.popup-header .header-left .header-title h2 {
    font-family: 'GoogleFont' !important;
}

/* Стили для виджета */
#review-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 4px;
}

#review-widget .widget-icon img.main-icon {
  height: 32px;
}

.widget-rating {
    display: flex;
    align-items: center;
    margin-right: -2px;
}

.widget-rating span {
    font-size: 24px;
    font-weight: 700;
    color: rgb(17, 17, 17);
    margin-right: 8px;
}

.widget-rating .stars {
    display: flex;
    align-items: center;
}

/* Стили для всплывающего окна */
#review-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    overflow-y: auto;
    z-index: 1000;
}

@media (min-width: 768px) {
    #review-popup {
        width: 512px;
        box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }
}

.popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #ccc;
    background-color: #f9f9f9;
}

.popup-header .header-left {
    display: flex;
    align-items: center;
}

.popup-header .header-left .widget-icon {
    position: relative;
    width: 32px;
  height: 32px;
}

.popup-header .header-left .widget-icon img.main-icon {
    width: 32px;
  height: 32px;
}

.popup-header .header-left .widget-icon img.overlay-icon {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
}

.popup-header .header-left .header-title {
    margin-left: 12px;
    display: flex;
    align-items: center;
    margin-top: 2px
}

.popup-header .header-left .header-title h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: rgb(17, 17, 17);
    margin-right: 8px;
}

.popup-header .header-left .header-title .header-count {
    font-size: 14px;
    color: #888;
}

.popup-rating {
    display: flex;
    align-items: center;
    margin-top: -4px;

}

.popup-rating span {
    font-size: 28px;
  margin-right: 8px;
  margin-top: 4px;
}

.close-button {
    font-size: 24px;
    cursor: pointer;
}

/* Контейнер отзывов */
#reviews-container {
    padding: 20px;
}

/* Элемент отзыва */
.review-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    background: #f1f1f1;
  padding: 24px;
  border-radius: 8px;
}

.review-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.review-header .user-icon {
    position: relative;
    width: 42px;
    height: 42px;
    background-color: #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    margin-right: 12px;
}

.review-header .user-icon img.overlay-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
}

.review-header .user-details {
    display: flex;
    align-items: center;
    margin-top: -18px;
}

.review-header .user-details .user-name {
    font-weight: bold;
    margin-right: 5px;
    color: #101010;
}

.review-header .user-details .approved-icon {
    width: 16px;
    height: 16px;
}

.review-date {
    font-size: 12px;
    color: #666666;
    margin-left: 54px;
  flex-basis: 100%;
  margin-top: -18px;
}

.review-stars {
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.review-stars .stars {
    display: flex;
    align-items: center;
    padding-top: 8px;
}

.review-text {
    margin-top: 5px;
    position: relative;
    color: #2E2E2E;
}
  /* Стили для кнопки закрытия */
  #close-review-widget {
    position: absolute; /* Абсолютное позиционирование внутри виджета */
    top: 5px;           /* Отступ сверху */
    right: 5px;         /* Отступ справа */
    background: transparent; /* Прозрачный фон */
    border: none;             /* Без границы */
    font-size: 20px;          /* Размер шрифта (крестика) */
    font-weight: bold;        /* Жирный шрифт */
    color: #333;              /* Цвет крестика */
    cursor: pointer;          /* Курсор при наведении */
    line-height: 1;
  }
  
  /* Изменение цвета крестика при наведении */
  #close-review-widget:hover {
    color: #ff0000; /* Красный цвет при наведении */
  }
  

.read-more, .hide-text {
    color: #007BFF;
    cursor: pointer;
    margin-left: 5px;
    font-size: 18px;
}

.read-more:hover, .hide-text:hover {
    text-decoration: underline;
}

/* Кнопка "Load more" */
#load-more {
    display: block;
    margin: 0 auto 20px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
}

#load-more:hover {
    background-color: #0056b3;
}

.star-icon {
    width: 18px;
    height: 18px;
    margin-right: 2px;
}