.v_revs {
	position: relative;
	margin-top: 45px;
	padding-bottom: 100px;
}
.v_revs h3 {
	font-size: 36px;
}
.v_rev_open {
	text-decoration: underline !important;
}
.v_revs_item_p p {
	margin: 0 0 10px 0;
}
.v_revs_buttons {
	display: block;
	margin-bottom: 20px;
}
.v_revs_btn {
	display: inline-flex;
	padding: 8px 15px;
	background: #333;
	color: white;
	text-decoration: none;
	border-radius: 6px;
}
.v_revs_totals {
	display: flex;
	align-items: center;
}
.v_revs_total {
	font-size: 36px;
	font-weight: 700;
	line-height: 36px;
	color: #333;
}
.v_revs_rate ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
}
.v_revs_rate ul li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 12px;
}
.v_revs_rate ul li:first-child:after {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(0, 0, 0, .2);
	margin: 0 6px;
}

/* */
.v_revs_gallery {
	display: flex;
	margin-top: 15px;
}
.v_revs_gallery_item {
	width: 70px;
	height: 70px;
	border-radius: 6px;
	background-repeat: no-repeat;
	background-size: 60%;
	background-position: 50%;
	background-color: #ffffff;
	border: 1px solid #e7e7e7;
	margin-right: 5px;
}
.v_attach {
	overflow: hidden;
}
.v_attach img {
	width: 70%;
}

/* */
.v_revs_list {
	padding: 0 0;
	margin: 20px 0 20px 0;
}
.v_revs_item {
	display: flex;
	flex-direction: column;
	border-top: 1px solid #cdcdcd;
	padding: 20px 0;
	cursor: pointer;
}
.v_revs_popup .v_revs_item {
	padding-top: 0;
}
.v_revs_popup .v_revs_author {
	margin-bottom: 15px;
}
.v_revs_author {
	display: flex;
	align-items: center;
}
.v_revs_author_avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #a0cbdb;
	background: linear-gradient(180deg,rgba(160, 203, 219, 1) 0%, rgba(100, 202, 227, 1) 50%););
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.v_revs_author_avatar p {
	font-size: 20px;
	font-weight: bold;
	color: white;
	margin: 0;
}
.v_revs_author_info {
	position: relative;
	margin-left: 10px;
}
.v_revs_author_meta ul {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
}
.v_revs_author_meta ul li {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	font-size: 12px;
}
.v_revs_author_meta ul li:first-child:after {
	content: '';
	display: block;
	width: 6px;
	height: 6px;
	border-radius: 3px;
	background: rgba(0, 0, 0, .2);
	margin: 0 6px;
}
.v_revs_item_data {
	margin-top: 10px;
}
.v_revs_item_data p {
	font-size: 14px;
	line-height: 21px;
	margin: 5px 0;
	padding: 0;
	color: #333;
}

/* */
.v_revs_total_stars {
	margin-left: 10px;
}
.v_revs_stars {
	display: flex;
	align-items: center;
}
.v_revs_star {
	width: 20px;
	height: 20px;
	background: url('../img/star.svg') 50% no-repeat;
	background-size: 20px;
	margin-right: 1px;
}
.v_revs_star.v_revs_star_empty {
	background: url('../img/star-empty.svg') 50% no-repeat;
}

/* */
.v_revs_fade {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 99998 !important;
	background: rgba(0, 0, 0, .3);
	width: 100vw;
	min-height: 100vh;
	display: none;
}
.v_revs_popup {
	position: fixed;
	width: 600px;
	left: 50%;
	margin-left: -300px;
	top: 50px;
	z-index: 99999 !important;
	background: white;
	border-radius: 12px;
	display: none;
}
.v_revs_popup.v_revs_more {
	top: 180px !important;
}
#v_revs_close {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #e7e7e7;
	position: absolute;
	top: 20px;
	right: 20px;
}
.v_revs_form_attaches {
	display: flex;
	margin-bottom: 15px;
}
.v_revs_form_attaches .v_revs_photo {
	width: 70px;
	height: 70px;
	border-radius: 6px;
	background-repeat: no-repeat;
	background-size: 50%;
	background-position: 50%;
	background-color: #f1f1f1;
	background-image: url('../img/add-ph.svg');
	margin-right: 5px;
	cursor: pointer;
}
.v_revs_content {
	padding: 30px 30px;
}
.v_revs_form_stars {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 15px;
	margin-bottom: 15px;
}
.v_revs_form_stars p {
	margin: 0;
}
.v_revs_form_stars_c {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}
.v_revs_form_stars_c .v_revs_star {
	width: 24px;
	height: 24px;
	background-size: 22px;
}
.v_revs_group {
	display: flex;
	flex-direction: column;
	margin-bottom: 15px;
}
.v_revs_group label {
	display: block;
	font-size: 14px;
	margin-bottom: 5px;
}
.v_revs_submit {

}
.v_revs_submit .v_revs_btn {
	width: 100%;
	display: flex;
	justify-content: center;
}
.v_revs_input {
	width: 100%;
	height: 40px;
	background: white;
	border: 1px solid #cdcdcd !important;
	border-radius: 4px;
}
textarea.v_revs_input {
	min-height: 80px;
	height: 80px;
}

.v_revs_popup .v_revs_item {
	border: none;
}
.v_revs_popup .v_revs_gallery {
	margin-bottom: 15px;
}

.v_container {
	margin: 30px 15px;
	background: white;
	padding: 10px;
}
.v_table {
	width: 100%;
	border-collapse: collapse;
}
.v_table thead th {
	height: 40px;
	vertical-align: middle;
	background: #333;
	color: white;
	text-align: left;
	padding-left: 10px;
}
.v_table tbody td {
	min-height: 40px;
	padding: 10px;
	color: #333;
	background: white;
}
.v_table tbody tr:nth-child(even) td {
	background: #f3f3f3;
	border-top: 1px solid #e7e7e7;
}

.v_badge {
	font-size: 12px;
	color: #333;
	padding: 3px 5px;
	background: #e2e2e2;
	border-radius: 4px;
	text-decoration: none;
}
.v_badge.v_enabled {
	background: #80b87b;
	color: white;
}
.v_badge.v_disabled {
	background: #a83832;
	color: white;
}
#v_revs_more {
	
}

@media (max-width: 1000px) {
	
	.v_revs {
		padding: 15px;
	}
	.v_revs h3 {
		font-size: 24px;
	}
	.v_revs_popup {
		width: 100vw;
		height: 100vh;
		border-radius: 0;
		margin: 0 !important;
		left: 0 !important;
		top: 0 !important;
	}
	
}
/* ===== КНОПКА "СМОТРЕТЬ ВСЕ" - ФОН НА ВСЮ ШИРИНУ ===== */
#v_revs_more.v_revs_btn {
    /* Фон на всю ширину родителя */
    display: block;
    width: 100%;
    height: 52.87px;
    background: #F3F3F3;
    border-radius: 15px;
    
    /* Контент центрирован и ограничен */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 0 20px;
    box-sizing: border-box;
    
    /* Текст */
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    border: none;
    text-transform: lowercase;
}

/* Первая буква заглавная */
#v_revs_more.v_revs_btn::first-letter {
    text-transform: uppercase;
}

/* Стрелка вниз */
#v_revs_more.v_revs_btn::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231D1B20' d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Hover эффект */
#v_revs_more.v_revs_btn:hover {
    background: #E8E8E8;
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */

/* Планшеты и мобильные */
@media (max-width: 768px) {
    #v_revs_more.v_revs_btn {
        height: 48px;
        border-radius: 14px;
        font-size: 13px;
        margin: 16px 0;
        padding: 0 16px;
    }
    
    #v_revs_more.v_revs_btn::after {
        width: 24px;
        height: 24px;
        margin-left: 6px;
    }
}

/* Маленькие мобильные */
@media (max-width: 480px) {
    #v_revs_more.v_revs_btn {
        height: 44px;
        border-radius: 12px;
        font-size: 12px;
        margin: 12px 0;
        padding: 0 12px;
    }
    
    #v_revs_more.v_revs_btn::after {
        width: 22px;
        height: 22px;
        margin-left: 4px;
    }
}
/* ===== КНОПКА "ДОБАВИТЬ ОТЗЫВ" СО СТРЕЛКОЙ ВПРАВО ===== */
a.v_revs_btn.v_revs_add {
    /* Основной контейнер */
    position: relative;
    width: 172px;
    height: 53.18px;
    background: #F3F3F3;
    border-radius: 15px;
    
    /* Flex для содержимого */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0;
    
    /* Текст */
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    color: #000000;
    text-decoration: none;
    cursor: pointer;
    gap: 10px;
}

/* Текст "Добавить отзыв" */
a.v_revs_btn.v_revs_add span {
    width: 106.92px;
    height: 17.73px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стрелка вправо (иконка) */
a.v_revs_btn.v_revs_add::after {
    content: '';
    display: block;
    width: 27px;
    height: 27px;
    
    /* SVG стрелка вправо */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231D1B20' d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Hover эффект */
a.v_revs_btn.v_revs_add:hover {
    background: #E8E8E8;
}

/* Для адаптивности */
@media (max-width: 768px) {
    a.v_revs_btn.v_revs_add {
        width: 160px;
        height: 48px;
        border-radius: 14px;
        font-size: 12px;
        gap: 8px;
    }
    
    a.v_revs_btn.v_revs_add::after {
        width: 24px;
        height: 24px;
    }
}
/* ===== ОБЩИЙ СТИЛЬ ДЛЯ ВСЕХ КНОПОК "СМОТРЕТЬ ЕЩЕ" ===== */
button.v_revs_more_btn,
#v_revs_brand_more,
.v_revs_brand_btn {
    display: block;
    width: 100%;
    height: 52.87px;
    background: #F3F3F3;
    border-radius: 15px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    padding: 0 20px;
    box-sizing: border-box;
    
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #000000;
    cursor: pointer;
    border: none;
    text-transform: lowercase;
}

button.v_revs_more_btn::first-letter,
#v_revs_brand_more::first-letter,
.v_revs_brand_btn::first-letter {
    text-transform: uppercase;
}

button.v_revs_more_btn::after,
#v_revs_brand_more::after,
.v_revs_brand_btn::after {
    content: '';
    display: inline-block;
    width: 26px;
    height: 26px;
    margin-left: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231D1B20' d='M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

button.v_revs_more_btn:hover,
#v_revs_brand_more:hover,
.v_revs_brand_btn:hover {
    background: #E8E8E8;
}
/* ===== АДАПТИВНАЯ ГАЛЕРЕЯ С КНОПКОЙ "ЕЩЕ ФОТО" ===== */
.v_revs_gallery {
    display: flex;
    flex-wrap: nowrap; /* Не переносим на новую строку */
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    overflow-x: auto; /* Горизонтальный скролл если не помещается */
    overflow-y: hidden;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

/* Скрываем скроллбар но оставляем функциональность */
.v_revs_gallery::-webkit-scrollbar {
    height: 4px;
}

.v_revs_gallery::-webkit-scrollbar-track {
    background: transparent;
}

.v_revs_gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.v_revs_gallery_item {
    flex: 0 0 auto; /* Не сжимать */
    width: 70px;
    height: 70px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    border: 1px solid #e7e7e7;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
}

.v_revs_gallery_item:hover {
    transform: scale(1.05);
    border-color: #007AFF;
}

/* Иконка "еще фото" */
.v_revs_gallery_more {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 6px;
    background: #f5f5f7;
    border: 1px dashed #d2d2d7;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1d1d1f;
    font-size: 11px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.v_revs_gallery_more:hover {
    background: #e8e8ed;
    border-color: #a2a2a8;
}

.v_revs_gallery_more_icon {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 4px;
    color: #007AFF;
}

.v_revs_gallery_more_count {
    font-weight: 500;
}

/* ===== ПОПАП ДЛЯ ВСЕХ ФОТО ===== */
.v_revs_gallery_popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.v_revs_gallery_popup.active {
    display: flex;
}

.v_revs_gallery_popup_content {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    overflow-y: auto;
    padding: 20px;
    justify-content: center;
}

.v_revs_gallery_popup_item {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.v_revs_gallery_popup_item:hover {
    transform: scale(1.05);
}

.v_revs_gallery_popup_close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    border: none;
}

/* ===== АДАПТИВ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    .v_revs_gallery {
        gap: 8px;
    }
    
    .v_revs_gallery_item,
    .v_revs_gallery_more {
        width: 60px;
        height: 60px;
    }
    
    .v_revs_gallery_popup_item {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .v_revs_gallery {
        gap: 6px;
    }
    
    .v_revs_gallery_item,
    .v_revs_gallery_more {
        width: 50px;
        height: 50px;
    }
    
    .v_revs_gallery_more {
        font-size: 10px;
    }
    
    .v_revs_gallery_more_icon {
        font-size: 16px;
    }
    
    .v_revs_gallery_popup_item {
        width: 100px;
        height: 100px;
    }
}
/* =========================================== */
/* УВЕДОМЛЕНИЯ ОБ УСПЕШНОЙ ОТПРАВКЕ */
/* =========================================== */

/* Оверлей для затемнения фона */
#v_revs_notification_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
    display: none;
    animation: fadeIn 0.3s ease;
}

/* Основное уведомление */
#v_revs_success_notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    width: 420px;
    max-width: 90%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: none;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.v_revs_notification_content {
    padding: 40px 30px;
    text-align: center;
    position: relative;
}

.v_revs_notification_close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
}

.v_revs_notification_close:hover {
    background: #f5f5f5;
    color: #333;
}

.v_revs_success_icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v_revs_emoji {
    font-size: 70px;
    line-height: 1;
    animation: bounce 1s ease infinite;
    display: inline-block;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.v_revs_notification_text h4 {
    margin: 0 0 15px 0;
    color: #2E7D32;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.v_revs_notification_text p {
    margin: 0;
    color: #666;
    font-size: 17px;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

/* Адаптивность */
@media (max-width: 480px) {
    #v_revs_success_notification {
        width: 90%;
    }
    
    .v_revs_notification_content {
        padding: 30px 20px;
    }
    
    .v_revs_notification_text h4 {
        font-size: 22px;
    }
    
    .v_revs_notification_text p {
        font-size: 15px;
    }
    
    .v_revs_success_icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }
    
    .v_revs_emoji {
        font-size: 60px;
    }
}

/* Для темной темы */
@media (prefers-color-scheme: dark) {
    #v_revs_success_notification {
        background: #2d2d2d;
        color: #fff;
    }
    
    .v_revs_notification_text h4 {
        color: #4CAF50;
    }
    
    .v_revs_notification_text p {
        color: #ccc;
    }
    
    .v_revs_notification_close {
        color: #aaa;
    }
    
    .v_revs_notification_close:hover {
        background: #444;
        color: #fff;
    }
}
/* ФИКС для уведомления - убеждаемся, что оно поверх всего */
#v_revs_success_notification {
    z-index: 99999 !important; /* Поверх всего */
}

#v_revs_notification_overlay {
    z-index: 99998 !important; /* Под уведомлением, но над всем остальным */
}

/* ФИКС: Убираем возможные конфликты с другими попапами */
.v_revs_notification {
    /* Убеждаемся, что это не конфликтует с другими .v_revs_popup */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 420px !important;
    max-width: 90% !important;
    background: white !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    display: none !important;
    animation: popIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

/* ФИКС: Делаем показ через JS плавным */
#v_revs_success_notification.show {
    display: block !important;
}

/* ФИКС: Улучшаем анимацию появления */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    70% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ФИКС: Убираем возможное влияние других классов */
#v_revs_success_notification.v_revs_popup {
    /* Переопределяем стили .v_revs_popup если они применяются */
    width: 420px !important;
    margin-left: 0 !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    border-radius: 20px !important;
}
.v_revs_author_meta {
    display: flex;
    flex-direction: column; /* Выстраиваем элементы вертикально */
    gap: 4px; /* Отступ между строками */
}

.v_revs_product_title {
    font-size: 11px;
    color: #666; /* Делаем текст товара чуть бледнее */
    line-height: 1.3;
}

/* Убеждаемся, что список автора не имеет лишних отступов */
.v_revs_author_meta ul {
    margin: 0;
    padding: 0;
}