/* Общие стили */
.review_otzivy {
    flex-wrap: wrap;
  }

  .review__img--inner {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .review__img--inner a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .review__img {
    object-fit: contain;
    object-position: center center;
  }
  
  .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;
    max-width: calc(100% - 40px);
    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;
  flex-wrap: nowrap;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}

.review__feedback--star-icons {
  display: flex;
  flex-wrap: nowrap;
}

/* Стили для иконок звёзд */
.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; /* Отступ между изображением и заголовком */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.chart_store_name {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

.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;
}

/* ==========================================================================
   Редизайн-слой (v2): аккордеон формы, сводка рейтинга, карточки, адаптив
   ========================================================================== */

/* Кнопка-триггер "Написать отзыв" */
.fo_toggle_form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 30px auto 0;
  padding: 14px 24px;
  background-color: #25bfa0;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

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

.fo_toggle_form:active {
  transform: scale(0.98);
}

.fo_toggle_form--icon {
  font-size: 18px;
}

/* Форма свёрнута по умолчанию, раскрывается по клику/через :target */
#comment_form.fo_v2 {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  margin-top: 0;
}

#comment_form.fo_v2.fo_open,
#comment_form.fo_v2:target {
  max-height: none;
  opacity: 1;
  margin-top: 20px;
}

/* Карточка формы — тот же принцип контраста, что и у карточек отзывов, иначе форма
   сливается с фоном страницы (#f7f5f3). */
.otzyva_forma {
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(28, 28, 26, 0.08), 0 1px 3px rgba(28, 28, 26, 0.05);
  padding: 24px;
}

/* Шаг 2 формы (имя/e-mail/фото/капча/согласие/кнопка) свёрнут до фокуса на тексте отзыва */
.fo_step2 {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

.fo_step2.fo_step2--open {
  max-height: 1200px;
  opacity: 1;
}

/* Fallback: если JS не отработал (капча/файлы уже введены) - шаг 2 всё равно доступен */
.fo_step2:focus-within,
.fo_step2:has(input:checked),
.fo_step2:has(input[type="text"]:not(:placeholder-shown)) {
  max-height: 1200px;
  opacity: 1;
}

/* Сводка рейтинга (шапка блока отзывов) */
.fo_rating_summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 20px;
  margin: 16px 0 30px;
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(28, 28, 26, 0.06);
}

.fo_rating_summary--score {
  font-size: 28px;
  font-weight: 700;
  color: #1c1c1c;
}

.fo_rating_summary--stars {
  --fo-fill: 0%;
  position: relative;
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 2px;
  color: #ddd;
}

.fo_rating_summary--stars::before {
  content: "\2605\2605\2605\2605\2605";
  position: absolute;
  top: 0;
  left: 0;
  width: var(--fo-fill);
  overflow: hidden;
  white-space: nowrap;
  color: #ffb400;
}

.fo_rating_summary--count {
  color: rgba(51, 53, 49, 0.7);
  font-size: 15px;
}

.fo_rating_summary--cta {
  margin-left: auto;
  padding: 10px 18px;
  background-color: #25bfa0;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.fo_rating_summary--cta:hover {
  background-color: #1e9d87;
}

/* Карточки отзывов — читаемость и мобильная адаптивность.
   Базовая тема кладёт аватар абсолютным позиционированием (top:-35px;left:25px;150x150)
   поверх карточки и компенсирует это большим padding-left на .review__name--inner —
   при узкой одноколоночной карточке и словах длиннее пары букв (word-break:break-all)
   этот хак либо разваливал имя по буквам, либо (на мобильном размере аватара) не
   давал достаточного отступа и текст наезжал на аватар. Вместо патча значений отступа
   под конкретные размеры переводим шапку карточки на обычный flex-ряд: аватар — обычный
   элемент потока фиксированной ширины, контент рядом — так наложения невозможны
   ни на одной ширине экрана. */
.review__item {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 16px;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(28, 28, 26, 0.08);
  box-shadow: 0 4px 16px rgba(28, 28, 26, 0.08), 0 1px 3px rgba(28, 28, 26, 0.05);
  margin-bottom: 16px;
}

/* Ссылка на товар/магазин и строка "Ответить на отзыв" — формально ещё двое прямых
   детей .review__item помимо аватара и .review__wrapper; flex-basis:100% переносит
   их на новую строку вместо наложения на аватар/текст в общем ряду. */
.review__item > .href_rew,
.review__item .review__read--inner {
  flex-basis: 100%;
  margin-top: 4px;
}

.review__content.review_otzivy,
.reviewstore__block {
  flex-direction: column;
}

.review__item .review__img--inner {
  position: static;
  top: auto;
  left: auto;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.review__item .review__wrapper {
  flex: 1;
  min-width: 0;
}

.review__name--inner {
  padding-left: 0;
  flex-wrap: wrap;
}

.review__name {
  font-size: 1.9rem;
  word-break: normal;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .review__item {
    gap: 12px;
  }

  .review__item .review__img--inner {
    width: 48px;
    height: 48px;
  }
}

/* Визуальная вложенность ответов: отступ + соединительная линия от родительской карточки,
   чтобы было явно видно, что это ответ, а не отдельный отзыв того же уровня. */
.review__item.fo_reply {
  position: relative;
  width: calc(100% - 40px);
  margin-left: 40px;
  background: #fbfdfc;
  box-shadow: 0 2px 8px rgba(28, 28, 26, 0.05);
  border: 1px solid #e3e8e7;
  border-left: 3px solid #25bfa0;
}

.otvet_na_otziv {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  font-size: 1.3rem;
  line-height: 1.4;
  color: #1e9d87;
  background: rgba(37, 191, 160, 0.12);
  border-radius: 20px;
}

@media (max-width: 480px) {
  .review__item.fo_reply {
    width: calc(100% - 20px);
    margin-left: 20px;
  }
}

/* Скрытый блок звёзд-критериев для комментариев к статьям (поля есть, отображение не нужно) */
.fo_hide_quality {
  display: none;
}

/* Превью загруженного фото в форме */
.fo_photo_preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.fo_photo_preview--item {
  position: relative;
  width: 72px;
  height: 72px;
}

.fo_photo_preview--item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.fo_photo_preview--remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #e0453c;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

/* Бейдж AI-комментария */
.ai-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7a5cff;
  background: rgba(122, 92, 255, 0.12);
  border-radius: 6px;
  vertical-align: middle;
}

/* Touch-friendly звёзды и элементы формы на мобильном */
@media (max-width: 768px) {
  .review__feedback--star-icons .dashicons {
    font-size: 32px;
    padding: 4px;
  }

  .fo_rating_summary {
    padding: 14px;
    gap: 10px;
  }

  .fo_rating_summary--cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }

  .fo_toggle_form {
    width: 100%;
    justify-content: center;
    margin: 20px 0 0;
  }

  .review__item {
    padding: 16px;
    margin-bottom: 24px;
  }

  /* .otzyva_forma — всегда flex-row (2 колонки: текст отзыва | шаг 2), в вертикальную
     раскладку её переводил класс forma_vtablicu, который навешивается только на
     отдельной странице одного отзыва (page-comment.php) — на обычных страницах товара/
     статьи/компании форма оставалась двухколоночной и на телефоне. */
  .otzyva_forma.review__feedback,
  .review__feedback--content {
    flex-direction: column;
  }

  .review__feedback--quality {
    flex-direction: column;
  }

  body {
    padding-bottom: 0;
  }
}

@media (max-width: 480px) {
  .fo_rating_summary--score {
    font-size: 22px;
  }

  .fo_rating_summary--stars {
    font-size: 18px;
  }
}

/* ==========================================================================
   Вход через VK для отзывов
   ========================================================================== */
.fo_vk { margin-bottom: 18px; }
.fo_vk_gate,
.fo_vk_me {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f4f8ff;
  border: 1px solid rgba(0, 119, 255, 0.18);
}
.fo_vk_gate[hidden], .fo_vk_me[hidden], .fo_vk_error[hidden] { display: none; }
.fo_vk_gate--icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0077ff;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}
.fo_vk_gate--text { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fo_vk_gate--text strong { font-size: 16px; color: #1c1c1a; }
.fo_vk_gate--text span { font-size: 13px; line-height: 1.4; color: #6b6b66; }
.fo_vk_btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  background: #0077ff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.fo_vk_btn:hover { background: #0063d6; color: #fff; }
.fo_vk_btn:active { transform: scale(0.98); }

.fo_vk_me { background: #f1faf7; border-color: rgba(37, 191, 160, 0.3); }
.fo_vk_me--ava {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0077ff, #25bfa0);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
}
.fo_vk_me--who { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.fo_vk_me--hint { font-size: 12px; color: #6b6b66; }
.fo_vk_me--who strong { font-size: 16px; color: #1c1c1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo_vk_me--out { flex: 0 0 auto; font-size: 13px; color: #6b6b66; text-decoration: underline; }
.fo_vk_me--out:hover { color: #1c1c1a; }
.fo_vk_error { margin: 8px 0 0; font-size: 13px; color: #c0392b; }

/* Обязательный вход: до авторизации поля формы скрыты, видна только карточка входа */
#comment_form.fo_vk_req:not(.fo_vk_in) .fo_vk_hide { display: none !important; }
/* Вошли — имя и капча не нужны */
#comment_form.fo_vk_in .fo_vk_hide_in { display: none !important; }

/* Бейдж «VK» у отзыва */
.fo_vk_badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #0077ff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .fo_vk_gate { flex-wrap: wrap; }
  .fo_vk_gate--text { flex-basis: calc(100% - 60px); }
  .fo_vk_btn { width: 100%; }
}
