/* Общие стили */
.review_otzivy {
    flex-wrap: wrap;
  }
  
  .review__item {
  //  margin-top: 50px;
  }
  
  .nevidim_otziv {
    display: none;
  }
  
  .review__name--inner {
    position: relative;
  }
  
  .kolich_laikov,
  .kolich_laikovnet {
    position: relative;
    font-size: 2rem;
    padding: 2px 3px;
    border-radius: 5px;
    background-color: #00c0a0;
  }
  
  .kolich_laikovnet {
    padding: 0;
  }
  
  .blok_laikov {
    position: relative;
    width: 65px;
    display: flex;
    justify-content: space-between;
  }
  
  .otvet_na_otziv {
    position: relative;
    font-size: 2.2rem;
  }
  
  .review__text {
    margin-top: 4rem;
  }
  
  .text_zagolovokocenok {
    margin-top: 0;
    font-size: 28px;
  }
  
  .text_sredocenka {
    margin-top: 15px;
    font-size: 24px;
  }
  
  .text_sredocenka img {
    margin-left: 5px !important;
    width: auto !important;
    height: 24px !important;
  }
  
  .text_sredocenka span {
    padding-left: 50px;
  }
  
  .zagolovok_otveta {
    position: absolute;
    margin: 2rem;
  }
  
  .zagolovok_otveta h3 {
    padding: 0 !important;
  }
  
  .forma_vtablicu {
    flex-direction: column;
  }
  
  .forma_dopsto {
    max-width: 100%;
    width: 100%;
  }
  
  .forma_margtop {
    margin: 2rem 0 0 0;
  }
  
  .zagolovok_otveta h3 {
    font-size: 2em;
  }
  
  .imya_karma {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  
  .network__review--value--inner {
    display: flex;
  }
  
  .network__review--icon.da_hover,
  .network__review--icon_otziv {
    cursor: pointer;
  }
  
  .network__review--value--inner.da_hover:hover .network__review--value {
    color: #353331;
  }
  
  .network__review--icon.da_hover:hover,
  .network__review--icon_otziv:hover {
    background: url('/wp-content/themes/shops/comments/like-noaktiv.png');
    background-repeat: no-repeat;
  }
  
  .network__review--icon,
  .network__review--icon_otziv {
    position: relative;
    width: 30px;
    height: 30px;
    background: url('/wp-content/themes/shops/comments/like-green.png');
    background-repeat: no-repeat;
  }
  
  .flex_komment .contact {
    position: sticky;
    top: 10px;
    height: 100%;
    display: flex;
    background-color: white;
    max-width: 320px;
    margin-right: 10px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .odin_kommentariy .flex_magazin {
    flex-direction: column;
    max-width: 90% !important;
    width: 90%;
    margin-left: 5%;
  }
  
  .odin_kommentariy .flex_magazin img {
    height: auto;
    width: 40%;
    margin-left: 30%;
  }
  
  .odin_kommentariy .srednie_ocenki_magazina {
    margin-top: 40px;
    width: 100%;
  }
  
  .odin_kommentariy .container.flex_magazin {
    flex-direction: column;
    max-width: 90% !important;
    width: 90%;
    margin-left: 5%;
  }
  
  .address__content {
    margin-bottom: 20px;
  }
  
  .text_vizova {
    margin-right: 10px;
    cursor: pointer;
  }
  
  .odin_kommentariy .srednie_ocenki_magazina {
    margin-left: 10px;
  }
  
  .text_obslugocenka {
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
  }
  
  .text_obslugocenka img {
    margin-left: 5px !important;
    width: auto !important;
    height: 20px !important;
  }
  
  .text_chistotaocenka {
    margin-top: 5px;
    font-size: 20px;
    font-weight: bold;
  }
  
  .text_chistotaocenka img {
    margin-left: 5px !important;
    width: auto !important;
    height: 20px !important;
  }
  
  .text_cenaocenka {
    margin-top: 5px;
    font-size: 20px;
    font-weight: bold;
  }
  
  .text_cenaocenka img {
    margin-left: 5px !important;
    width: auto !important;
    height: 20px !important;
  }
  
  .form_buttom_otzyv:before {
    content: none;
  }
  
  form button:before {
    content: "\f179";
    font-family: Dashicons;
    font-size: 22px;
    color: #000;
  }
  
  .skrito_ocenka {
    display: none;
  }
  
  .srednie_ocenki_magazina {
    position: relative;
    width: calc(100% - 190px);
    margin-left: 40px;
    display: flex;
    flex-direction: column;
  }
  
  .review__content {
    width: 100%;
    margin-top: 5rem;
    display: flex;
  }
  
  .dobav_otzivov {
    position: relative;
    margin-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  
  .chitay_dalee {
    cursor: pointer;
    color: rgba(51, 53, 49, 0.6);
  }
  
  .chitay_dalee:hover {
    opacity: 0.6;
  }
  
  .review__like--icon,
  .link__arrow.otvet {
    cursor: pointer;
    font-size: 2.2rem;
  }
  
  .read__img.ocenka {
    margin-left: 0;
    margin-right: 1rem;
  }
  
  .link__arrow.ocenka:hover {
    opacity: 1;
  }
  
  .flex_komment {
    display: flex;
  }
  
  .flex_komment .contact {
    border-radius: 15px;
  }
  
  .flex_magazin {
    position: sticky;
    top: 10px;
    height: 100%;
    display: flex;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
  }
  
  .flex_magazin img {
    width: 150px;
  }
  
  .big_like {
    width: 30px !important;
  }
  
  .wrapper_odinotziv {
    flex-direction: column;
  }
  
  .odinotziv_ostav {
    max-width: 100%;
    width: 100%;
    margin: 20px 0;
  }
  
  .odinotziv_ostav input {
    margin-bottom: 10px;
  }
  
  .otzyvy_odnogo.contact__item {
    background: #f7f5f3;
    box-shadow: none;
  }
  
  .container.flex_magazin {
    margin-top: 40px;
  }
  
  .address__info--img {
    margin-top: 40px;
  }
  
  .data_otziva {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: rgba(51, 53, 49, 0.6);
  }
  

  
  
  
  .review__feedback--input {
    margin-bottom: 10px; 
  }
  
  .g-recaptcha {
    margin-top: 10px;
    margin-bottom: 10px; 
  }
  
  .fo_review__feedback--photo-upload {
    margin-top: 10px; 
    margin-bottom: 10px; 
  }
  
  .form_buttom_otzyv {
    margin-top: 10px; /* Отступ между последним элементом и кнопкой */
  }
  
  /* Медиа-запросы для адаптивности */
  
  @media (max-width: 998px) {
    .review__feedback--input,
    .g-recaptcha,
    .fo_review__feedback--photo-upload,
    .form_buttom_otzyv {
      margin-top: 10px; /* Единый отступ для мобильных устройств */
      margin-bottom: 10px;
    }
  }
  
  @media (max-width: 768px) {
    .review__feedback--input,
    .g-recaptcha,
    .fo_review__feedback--photo-upload,
    .form_buttom_otzyv {
      margin-top: 10px; /* Единый отступ для меньших экранов */
      margin-bottom: 10px;
    }
  }
  
  @media (max-width: 480px) {
    .review__feedback--input,
    .g-recaptcha,
    .fo_review__feedback--photo-upload,
    .form_buttom_otzyv {
      margin-top: 10px; /* Минимальный отступ для маленьких экранов */
      margin-bottom: 10px;
    }
  }


  /* Стили для кнопки "Поделиться мнением" */
.review__feedback--button {
    background-color: #25bfa0;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.review__feedback--button:hover {
    background-color: #1e9d87;
}

/* Стили для текста в модальном окне */
#fo_success_message {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}




/* Стили для модального окна */
.fo_modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.fo_modal_content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 400px;
    border-radius: 10px;
    position: relative;
}

.fo_close {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.fo_close:hover {
    color: #000;
}

.fo_switch_container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.fo_switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.fo_switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fo_slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.fo_slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .fo_slider {
    background-color: #25bfa0;
}

input:checked + .fo_slider:before {
    transform: translateX(20px);
}

.fo_review__feedback--photo-upload {
    margin-top: 10px;
     border-radius: 5px;
     font-size: 14px;
}




.fo_button {
    background-color: #25bfa0;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    display: inline-block;
}

.fo_button:hover {
    background-color: #20a88d;
}

#fo_switch_span {

    font-size: 14px; 
}

/* Стили для контейнера звёзд */
.review__feedback--stars {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

/* Стили для иконок звёзд */
.review__feedback--star-icons .dashicons {
  font-size: 24px;
  color: #ccc; /* Цвет пустых звёзд */
  cursor: pointer;
  transition: color 0.3s ease;
}

/* Стили для активных (заполненных) звёзд */
.review__feedback--star-icons .dashicons.active {
  color: #FFD700; /* Цвет заполненных звёзд */
}

/* Стили для наведения на звёзды */
.review__feedback--star-icons .dashicons:hover,
.review__feedback--star-icons .dashicons:hover ~ .dashicons {
  color: #FFD700;
}


@media (max-width: 768px) {

  #reytingi_magaz {margin-top:20px;}


  /* Перемещение блока otzyvy-chart.php вверх */
  .flex_komment {
      margin-top:40px;
      display: flex;
      flex-direction: column-reverse; /* Меняем порядок элементов */
  }

  /* Убедитесь, что блок otzyvy-chart.php отображается корректно */
  .contact {
      order: -1; /* Помещаем блок с диаграммой в начало */
      margin-bottom: 20px;
  }

  /* Адаптация текста и заголовков */
  .review__title {
      font-size: 24px;
      text-align: center;
  }

  .review__text {
      font-size: 14px;
      line-height: 1.5;
  }

  /* Адаптация изображений */
  .review__img {
      width: 50px;
      height: 50px;
      object-fit: cover;
  }

  /* Кнопки и ссылки */
  .link__arrow {
      font-size: 14px;
      text-align: center;
  }

  /* Блоки отзывов */
  .odnogo_posetitelya {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }

  .review__quality--inner {
      flex-direction: column;
      align-items: center;
  }

  .review__quality {
      margin-bottom: 10px;
  }

  /* Общие стили для контейнера */
  .container {
      padding: 0 15px;
  }
}

.chart_container {
  font-family: Arial, sans-serif;
  padding: 20px;
  
  border-radius: 8px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center; /* Выравнивание содержимого по центру */
}

.chart_image_container {
  margin-bottom: 15px; /* Отступ между изображением и заголовком */
}

.chart_image {
  width: 60px; /* Ширина изображения */
  height: auto; /* Сохранение пропорций */
  border-radius: 50%; /* Округление углов (если нужно круглое изображение) */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Добавление легкой тени */
}

.chart_title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 20px;
}

.chart_item {
  margin-bottom: 20px;
}

.chart_label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.chart_progress {
  display: flex;
  align-items: center;
  width: 100%;
}

.chart_bar {
  position: relative;
  flex-grow: 1;
  height: 20px; /* Высота бара */
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.chart_fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  transition: width 0.3s ease;
}

.chart_value {
  margin-left: 10px;
  font-weight: bold;
  color: #333;
}