/**
 * AmigoVet, перенесено з plugins/customer-reviews-woocommerce/css/frontend.css 2026-09-04,
 * база CusRev 5.119.0.
 *
 * Що це. Усі наші правила, які раніше жили всередині вендорського frontend.css
 * (діф 5.70.0 → жива тека: +1051 рядок, 152 правила). Файл вантажиться ПІСЛЯ
 * cr-frontend-css хендлом amg-cusrev-css (mu-plugins/amg-cusrev-bridge.php),
 * тому специфічності вистачає навіть там, де вендор дублює той самий селектор.
 *
 * Перейменовані селектори 5.70.0 → 5.119.0 (каталог §4.3). Скрізь лишено ОБИДВА
 * варіанти через кому, щоб файл працював і на 5.70.0, і на 5.119.0:
 *   .comment-text      → .cr-comment-text        (cr-review.php:59)
 *   .product-thumbnail → .cr-product-thumbnail   (reviews-grid.php:301). Наших
 *     правил на цей клас не було жодного: усі чотири рядки у frontend.css
 *     (4261-4267) вендорські, і 5.119.0 їх уже перейменував сам.
 *   .crstar-rating     → .crstar-rating-svg      (зірки стали inline SVG)
 *
 * Викинуто як непрацездатне:
 *   .crstar-rating{font-size:14px!important}: SVG не масштабується від font-size.
 *   Порожнє правило .woocommerce-review__author:has(+ .woocommerce-review__verified)
 *   (frontend.css:1716-1720): у живому файлі воно закривало вендорське правило на
 *   рядок раніше і гасило `text-indent:0`. Це був баг вставки, не фіча.
 *
 * Замінено кольори станів (CLAUDE.md: жовтий = лише дія, бренд, зірки):
 *   .cr-tab-btn.cr-tab-active   border+ring #ffba00, фон #fff → #1c49c2 / #f0f6fc, текст #143795
 *   .cr-toggle-replies          текст #d4a000 → #1c49c2, hover #ffba00 → #143795
 *   .cr-read-more-btn           текст #d4a000 → #1c49c2, hover #ffba00 → #143795
 *   .cr-qna-ans-button:hover    border+текст #ffba00/#d4a000 → #1c49c2
 *   .cr-qna-ask-button          градієнт → плаский #ffba00 з текстом #190a03, hover #ffc832
 *   ul.children > li            фон #fffbeb (Tailwind-amber) → нейтральна плашка #f5f5f5
 *   мінуси (ivf-custom-question-p:nth-of-type(2))  фон #FFF3E0/#FFE0B2 і бордер #FF9800
 *                               → нейтральна плашка #f5f5f5 плюс значок #e8762d
 *   CTA «Залишити відгук»       градієнт #FFB800→#FF8C00 з білим текстом
 *                               → #ffba00 з текстом #190a03, hover #ffc832, press #d99c00
 * Лишено як є: жовті іконки Q&A (fill/stroke #d4a000), це перефарбування
 * вендорських зелених значків у брендовий колір, не стан і не текст.
 *
 * Розмітки cr-cta-enhanced у 5.119.0 немає (фільтра поруч теж), тож іконка CTA
 * тепер малюється через ::before на вендорських класах .cr-all-reviews-add-review
 * і .cr-ajax-reviews-add-review (каталог §8.4).
 *
 * Вимикач: опція amg_cusrev_bridge = 0.
 */

/* --- мініатюри фото і відео у відгуку (перекриття вендорських правил) --- */
.iv-comment-image {
	margin-right: 8px;
	margin-bottom: 8px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.iv-comment-image:hover {
	transform: scale(1.03);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	filter: none;
}
.cr-comment-image-top {
	position: relative;
}
.cr-comment-video {
	margin-right: 8px;
	margin-bottom: 8px;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cr-comment-video:hover {
	transform: scale(1.03);
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
	filter: none;
}
.cr-comment-video video.cr-video-a {
	width: 96px;
	height: 96px;
}
.cr-comment-videoicon {
	height: 32px;
	object-fit: contain;
	max-width: 50%;
	max-height: 50%;
}
#reviews div.iv-comment-image img,
div.iv-comment-image img {
	width: 96px;
	height: 96px;
	max-width: 96px;
	max-height: 96px;
	object-fit: cover;
}

/* --- taby, Q&A, futer vidhuku, zghornuti vidpovidi (frontend.css 1148-1420) --- */
/* ============================================
   ROZETKA-STYLE TABS - Reviews / Q&A
   ============================================ */
.cr-reviews-qna-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e5e7eb;
}
.cr-reviews-qna-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
}
.cr-reviews-qna-tabs {
	display: flex;
	gap: 8px;
}
.cr-tab-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.2s;
}
.cr-tab-btn:hover {
	color: #374151;
	background: #e5e7eb;
}
.cr-tab-btn.cr-tab-active {
	color: #143795;
	background: #f0f6fc;
	border-color: #1c49c2;
	box-shadow: 0 0 0 1px #1c49c2;
}
/* Tab content */
.cr-tab-content {
	display: none;
}
.cr-tab-content.cr-tab-visible {
	display: block;
}
/* Hide original Q&A tab in product tabs when using inline tabs */
.cr_qna_tab {
	display: none !important;
}
/* Q&A block styling inside reviews */
.cr-tab-qna .cr-qna-block {
	margin: 0;
	padding: 0;
}

/* ===== Q&A Block Improvements ===== */

/* 1. Brand color scheme - change green to #ffba00 */
.cr-qna-block .cr-qna-search-block .cr-qna-ask-button {
	background: #ffba00 !important;
	color: #190a03 !important;
	border-radius: 8px !important;
	font-weight: 500 !important;
}
.cr-qna-block .cr-qna-search-block .cr-qna-ask-button:hover {
	background: #ffc832 !important;
	color: #190a03 !important;
}
.cr-qna-block .cr-ajax-qna-search .cr-qna-search-icon {
	fill: #d4a000 !important;
}
.cr-qna-block .cr-ajax-qna-search .cr-clear-input svg {
	fill: #d4a000 !important;
}
/* Question/Answer icons - brand colors */
.cr-qna-list-q-icon circle {
	stroke: #d4a000 !important;
}
.cr-qna-list-q-icon path[fill="#31856C"],
.cr-qna-list-q-icon path[fill="#276A56"] {
	fill: #d4a000 !important;
}
.cr-qna-list-q-icon rect[fill="#31856C"] {
	fill: #d4a000 !important;
}
.cr-qna-list-q-a-l .cr-qna-list-q-icon path {
	fill: #d4a000 !important;
	stroke: #d4a000 !important;
}
/* Store manager and verified icons */
.cr-qna-list-q-author-verified svg path {
	fill: #d4a000 !important;
	stroke: #d4a000 !important;
}

/* 5. Compactness - reduce spacing */
.cr-qna-block .cr-qna-list-q-cont {
	padding: 12px 0 !important;
}
.cr-qna-block .cr-qna-list-q-q {
	margin-bottom: 8px !important;
}
.cr-qna-block .cr-qna-list-q-a {
	margin-bottom: 8px !important;
}
.cr-qna-block .cr-qna-list-q-b {
	padding-top: 8px !important;
}
.cr-qna-block .cr-qna-list-answer {
	padding: 8px 0 !important;
}
.cr-qna-block .cr-qna-list-question {
	font-size: 15px !important;
	line-height: 1.4 !important;
}
.cr-qna-block .cr-qna-list-answer-s {
	font-size: 14px !important;
	line-height: 1.4 !important;
}
.cr-qna-block .cr-qna-list-q-author {
	font-size: 12px !important;
	margin-top: 4px !important;
}
/* Answer button - simpler style */
.cr-qna-block .cr-qna-ans-button {
	background: none !important;
	border: 1px solid #e5e7eb !important;
	color: #555 !important;
	font-size: 13px !important;
	padding: 6px 12px !important;
	border-radius: 6px !important;
}
.cr-qna-block .cr-qna-ans-button:hover {
	border-color: #1c49c2 !important;
	color: #1c49c2 !important;
}

/* 6. Hide duplicate header inside Q&A block */
.cr-qna-block > h2 {
	display: none !important;
}

/* Date separator styling */
.cr-qna-date-sep {
	margin: 0 4px;
	color: #999;
}
/* Mobile responsive */
@media (max-width: 480px) {
	.cr-reviews-qna-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.cr-reviews-qna-tabs {
		width: 100%;
	}
	.cr-tab-btn {
		flex: 1;
		justify-content: center;
		padding: 8px 12px;
		font-size: 13px;
	}
}

/* ============================================
   REVIEW FOOTER - Voting
   ============================================ */
.cr-review-footer {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	margin-top: 10px;
	border-top: 1px solid #f0f0f0;
}

/* Voting container */
.cr-voting-cont {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	padding: 0;
	margin: 0;
	border: none;
}
.cr-voting-cont::before {
	content: "";
	display: none;
}
.cr-voting-cont img, .cr-voting-cont-uni svg {
	margin-left: 0px;
	margin-right: 7px;
	margin-top: 0px;
	margin-bottom: 0px;
	width: 16px;
	height: 18px;
	cursor: pointer;
	pointer-events: auto;
	transition: transform 0.2s ease;
}
.cr-voting-cont img:hover, .cr-voting-cont-uni svg:hover {
	transform: scale(1.2);
}


/* ============================================
   COLLAPSED REPLIES - "Дивитись N відповідей"
   ============================================ */
.commentlist > li > ul.children {
	display: none;
	margin-top: 12px;
	padding-left: 0;
	border: none;
}
.commentlist > li.cr-replies-expanded > ul.children {
	display: block;
}
.cr-toggle-replies {
	display: block !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #1c49c2 !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	padding: 0 !important;
	margin: 12px 0 0 0 !important;
	cursor: pointer !important;
	outline: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}
.cr-toggle-replies:hover {
	color: #143795 !important;
	text-decoration: underline !important;
	background: none !important;
}
.cr-toggle-replies:focus {
	outline: none !important;
	box-shadow: none !important;
}
.cr-toggle-replies svg {
	display: none !important;
}
/* Reply styling - more compact */
.commentlist > li > ul.children > li {
	padding: 12px 16px;
	margin-bottom: 8px;
	background: #f5f5f5;
	border-radius: 8px;
	border: none !important;
}
.commentlist > li > ul.children > li:last-child {
	margin-bottom: 0;
}
.commentlist > li > ul.children .comment-text,
.commentlist > li > ul.children .cr-comment-text {
	font-size: 13px;
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.commentlist > li > ul.children .woocommerce-review__author {
	font-size: 14px !important;
}

/* --- tekst vidhuku: rozmiry (frontend.css 1609-1621) --- */
.cr-all-reviews-shortcode ol.commentlist li .comment-text p,
.cr-all-reviews-shortcode ol.commentlist li .cr-comment-text p,
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .comment-text p,
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .cr-comment-text p {
	margin: 0.6em 0;
	text-align: left;
	font-size: 14px;
	line-height: 1.5;
}
.cr-all-reviews-shortcode ol.commentlist li .comment-text .meta,
.cr-all-reviews-shortcode ol.commentlist li .cr-comment-text .meta {
	font-size: 14px;
}
.cr-all-reviews-shortcode ol.commentlist li .comment-text .meta time,
.cr-all-reviews-shortcode ol.commentlist li .cr-comment-text .meta time {
	font-style: normal;
}

/* --- kompaktna kartka i vidnosna data (frontend.css 1623-1689) --- */
/* ============================================
   COMPACT REVIEW CARD STYLING (Rozetka-like)
   ============================================ */
/* Tighter spacing */
.commentlist > li {
	padding: 16px 0 !important;
	margin: 0 !important;
}
.commentlist > li .comment_container {
	padding: 0;
}
/* Compact header */
.cr-meta-author-featured-date {
	gap: 12px !important;
}
.woocommerce-review__author {
	font-size: 14px !important;
	font-weight: 600 !important;
}
.woocommerce-review__verified {
	font-size: 12px !important;
	color: #888 !important;
}
/* AmigoVet 2026-09-04: pravylo `.crstar-rating{font-size:14px}` vydaleno.
   U 5.119.0 zirky ce inline SVG (.crstar-rating-svg), font-size na nykh
   ne diie. Rozmir zadaietsia rozmirom ikonky u vendorskomu CSS. */
/* Smaller avatar */
.commentlist .avatar {
	width: 40px !important;
	height: 40px !important;
}
.comment-text,
.cr-comment-text {
	margin-left: 52px !important;
}
.cr-all-reviews-shortcode ol.commentlist li .comment-text .meta .cr-meta-author-featured-date,
.cr-all-reviews-shortcode ol.commentlist li .cr-comment-text .meta .cr-meta-author-featured-date,
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .comment-text .meta .cr-meta-author-featured-date,
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .cr-comment-text .meta .cr-meta-author-featured-date {
	display: flex;
	flex-direction: row;
	column-gap: 20px;
	align-items: baseline;
}
/* Relative time styling for recent reviews - subtle */
.woocommerce-review__relative-date {
	display: inline-block;
	background: #f3f4f6;
	color: #6b7280;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 8px;
	border-radius: 4px;
	margin-right: 8px;
	text-transform: lowercase;
	white-space: nowrap;
}
/* Date with year - subtle gray styling */
.woocommerce-review__published-date {
	color: #9ca3af !important;
	font-size: 13px !important;
	font-style: normal !important;
	font-weight: 400 !important;
}
/* When relative date is shown, make full date smaller */
.woocommerce-review__relative-date + .woocommerce-review__published-date {
	color: #b0b0b0 !important;
	font-size: 12px !important;
}

/* --- vlasnyi laitboks (frontend.css 2167-2313) --- */

/* ============================================
   CUSTOM REVIEW IMAGE LIGHTBOX
   ============================================ */
.cr-lightbox-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cr-lightbox-overlay.cr-lightbox-active {
	visibility: visible;
	opacity: 1;
}
.cr-lightbox-backdrop {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	cursor: pointer;
}
.cr-lightbox-content {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 90vw;
	max-height: 85vh;
	padding: 0;
}
.cr-lightbox-img {
	max-width: 90vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
	transition: opacity 0.2s ease;
	user-select: none;
	-webkit-user-drag: none;
}
.cr-lightbox-close {
	position: absolute;
	top: 16px;
	right: 20px;
	z-index: 3;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	font-size: 32px;
	line-height: 1;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.cr-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.25);
}
.cr-lightbox-prev,
.cr-lightbox-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	background: rgba(255, 255, 255, 0.12);
	border: none;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, transform 0.2s ease;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}
.cr-lightbox-prev { left: 16px; }
.cr-lightbox-next { right: 16px; }
.cr-lightbox-prev:hover,
.cr-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.25);
}
.cr-lightbox-counter {
	position: absolute;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	color: rgba(255, 255, 255, 0.8);
	font-size: 14px;
	font-weight: 500;
	background: rgba(0, 0, 0, 0.4);
	padding: 6px 16px;
	border-radius: 20px;
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	letter-spacing: 1px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
	.cr-lightbox-img {
		max-width: 96vw;
		max-height: 80vh;
		border-radius: 4px;
	}
	.cr-lightbox-close {
		top: 10px;
		right: 10px;
		width: 38px;
		height: 38px;
		font-size: 28px;
	}
	.cr-lightbox-prev,
	.cr-lightbox-next {
		width: 40px;
		height: 40px;
		font-size: 30px;
	}
	.cr-lightbox-prev { left: 6px; }
	.cr-lightbox-next { right: 6px; }
	.cr-lightbox-counter {
		bottom: 12px;
		font-size: 13px;
	}
}

/* --- restrukturovana kartka, chytaty dali, plusy i minusy, kartka uliublentsia (frontend.css 2366-2681) --- */
/* ============================================
   RESTRUCTURED REVIEW CARD STYLES
   ============================================ */

/* Main review content - emphasized */
.cr-review-main-content {
	margin: 0.8em 0;
}
.cr-review-main-content p {
	font-size: 14px;
	line-height: 1.5;
	color: #1a1a1a;
	margin: 0;
}

/* ============================================
   "ЧИТАТИ ДАЛІ" - Expandable review text
   ============================================ */
.cr-review-text-wrapper {
	position: relative;
}
.cr-review-text-wrapper.cr-text-collapsed .cr-review-main-content {
	max-height: 120px; /* ~5-6 lines */
	overflow: hidden;
	position: relative;
}
.cr-review-text-wrapper.cr-text-collapsed .cr-review-main-content::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 1.5em;
	background: linear-gradient(transparent, #fff);
}
.cr-read-more-btn {
	display: inline !important;
	background: none !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	color: #1c49c2 !important;
	font-size: inherit !important;
	font-weight: 500 !important;
	padding: 0 !important;
	margin: 0 !important;
	cursor: pointer !important;
	outline: none !important;
	text-decoration: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
}
.cr-read-more-btn:hover {
	color: #143795 !important;
	text-decoration: underline !important;
	background: none !important;
}
.cr-read-more-btn:focus {
	outline: none !important;
	box-shadow: none !important;
}
.cr-read-more-btn::before,
.cr-read-more-btn::after {
	display: none !important;
	content: none !important;
}
.cr-review-text-wrapper.cr-text-expanded .cr-review-main-content {
	max-height: none;
	-webkit-mask-image: none;
	mask-image: none;
}
.cr-review-text-wrapper.cr-text-expanded .cr-review-main-content::after {
	display: none;
}

/* ============================================
   RATING + DATE ROW - Stars and date side by side
   ============================================ */
.cr-review-rating-date {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0 12px 0;
	flex-wrap: wrap;
}
.cr-review-rating-date .crstar-rating,
.cr-review-rating-date .crstar-rating-svg {
	margin: 0 !important;
}
.cr-review-rating-date .woocommerce-review__published-date {
	margin: 0;
}
.cr-review-rating-date .woocommerce-review__relative-date {
	margin: 0;
}

/* Proper meta block spacing */
.comment-text > .meta,
.cr-comment-text > .meta {
	margin-bottom: 0;
}

/* Review text spacing */
.cr-review-text-wrapper {
	margin-bottom: 4px;
}

/* Pros/Cons wrapper - horizontal layout */
.cr-review-pros-cons-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 1em 0;
}
.cr-review-pros-cons-wrapper hr.ivf-custom-question-hr {
	display: none;
}
.cr-review-pros-cons-wrapper p.ivf-custom-question-p {
	display: inline-flex;
	align-items: flex-start;
	gap: 6px;
	margin: 0;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.4;
	flex: 1 1 auto;
	min-width: 140px;
	max-width: calc(50% - 6px);
	box-sizing: border-box;
}
/* Pros styling - green theme */
.cr-review-pros-cons-wrapper p.ivf-custom-question-p:first-of-type {
	background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
	border-left: 3px solid #4CAF50;
}
.cr-review-pros-cons-wrapper p.ivf-custom-question-p:first-of-type span.ivf-custom-question-radio::before {
	content: "✓ ";
	color: #4CAF50;
	font-weight: bold;
}
/* Minusy: neitralna plashka plius znachok poperedzhennia */
.cr-review-pros-cons-wrapper p.ivf-custom-question-p:nth-of-type(2) {
	background: #f5f5f5;
	border-left: 3px solid #e8762d;
}
.cr-review-pros-cons-wrapper p.ivf-custom-question-p:nth-of-type(2) span.ivf-custom-question-radio::before {
	content: "✗ ";
	color: #e8762d;
	font-weight: bold;
}
.cr-review-pros-cons-wrapper span.ivf-custom-question-radio {
	font-weight: 600;
	color: #555;
	white-space: nowrap;
}

/* Mobile responsive */
@media (max-width: 600px) {
	.cr-review-pros-cons-wrapper {
		flex-direction: column;
	}
	.cr-review-pros-cons-wrapper p.ivf-custom-question-p {
		max-width: 100%;
	}
}

/* ============================================
   AMIGO PET CARD - COMPACT INLINE STYLES
   ============================================ */

/* 1. COMPACT PET CARD - Block display to prevent voting overlap */
.amigo-review-pet {
	display: flex !important;
	align-items: center !important;
	flex-wrap: wrap !important;
	gap: 10px !important;
	padding: 8px 14px !important;
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
	border-radius: 12px !important;
	margin: 10px 0 !important;
	border: none !important;
	font-size: 13px !important;
	width: fit-content !important;
	max-width: 100% !important;
}
.amigo-review-pet-h {
	display: flex !important;
	align-items: center !important;
	gap: 8px !important;
}
.amigo-review-pet-ph {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	border-radius: 50% !important;
	background: #fff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	font-size: 16px !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}
.amigo-review-pet-ph img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	border-radius: 50% !important;
}
.amigo-review-pet-h > div:last-child {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
}
.amigo-review-pet-h strong {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #1e293b !important;
	line-height: 1.2 !important;
}
.amigo-review-pet-meta {
	font-size: 11px !important;
	color: #64748b !important;
	line-height: 1.2 !important;
}

/* Mobile responsive for pet card and reviews */
@media (max-width: 480px) {
	/* Force all review containers to fit screen */
	#reviews,
	.cr-reviews-ajax-reviews,
	.cr-ajax-reviews-list,
	.commentlist,
	.comment_container,
	.comment-text,
	.cr-comment-text {
		max-width: 100% !important;
		overflow-x: hidden !important;
		box-sizing: border-box !important;
	}

	.amigo-review-pet {
		max-width: 100% !important;
		display: flex !important;
		flex-wrap: wrap !important;
	}

	/* Fix review card overflow on mobile */
	#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .comment-text,
	#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .comment_container .cr-comment-text,
	.cr-all-reviews-shortcode ol.commentlist li .comment-text,
	.cr-all-reviews-shortcode ol.commentlist li .cr-comment-text,
	.comment-text,
	.cr-comment-text {
		margin-left: 0 !important;
		width: 100% !important;
	}

	/* Hide avatars on mobile to save space */
	.commentlist .avatar,
	.cr-ajax-reviews-list .avatar {
		display: none !important;
	}

	.cr-all-reviews-shortcode ol.commentlist ul.children,
	#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list ul.children {
		margin-inline-start: 8px !important;
		margin-left: 8px !important;
	}
	/* Prevent horizontal overflow */
	.commentlist > li,
	.cr-ajax-reviews-list > li {
		overflow-x: hidden !important;
		max-width: 100% !important;
		word-wrap: break-word !important;
		overflow-wrap: break-word !important;
	}
	/* Make pros/cons stack vertically */
	.cr-review-pros-cons-wrapper {
		flex-direction: column !important;
	}
	.cr-review-pros-cons-wrapper p.ivf-custom-question-p {
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}

	/* Pet card other pets */
	.amigo-review-other {
		word-wrap: break-word !important;
	}
}

/* 2. "Друзі" - other pets styling (inline, subtle) */
.amigo-review-friends {
	display: inline-block !important;
	font-size: 11px !important;
	color: #94a3b8 !important;
	margin-left: 8px !important;
}
.amigo-review-friends .amigo-friends-label {
	color: #94a3b8 !important;
	font-weight: 400 !important;
}

/* 3. "Друзі" - pet friends styling */
.amigo-review-friends {
	font-size: 12px;
	color: #64748b;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e2e8f0;
}
.amigo-friends-label {
	font-weight: 500;
}
.amigo-friends-list {
	color: #94a3b8;
	border-radius: 12px !important;
	margin-left: 4px !important;
}


/* --- halereia foto pokuptsiv (frontend.css 3143-3260) --- */
/* ============================================
   CUSTOMER PHOTOS GALLERY - Chewy-style
   ============================================ */
.cr-cus-images-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div .cr-ajax-reviews-cus-images-title,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div .cr-ajax-reviews-cus-images-title {
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	color: #1a1a1a;
}
.cr-see-all-photos {
	color: #1a73e8;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
}
.cr-see-all-photos:hover {
	text-decoration: underline;
	color: #1557b0;
}
/* Hide extra images */
.cr-comment-image-top.cr-image-hidden {
	display: none !important;
}
/* "See More" overlay on last visible image */
.cr-comment-image-top.cr-image-last-visible {
	position: relative;
	cursor: pointer;
}
.cr-see-more-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	transition: background 0.2s;
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
}
.cr-comment-image-top.cr-image-last-visible:hover .cr-see-more-overlay {
	background: rgba(0, 0, 0, 0.7);
}
.cr-see-more-text {
	font-size: 30px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
	text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.cr-see-more-label {
	font-size: 12px;
	color: rgba(255,255,255,0.9);
	margin-top: 4px;
	font-weight: 500;
}
/* Customer photos grid styling */
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	white-space: nowrap;
	padding-bottom: 4px;
	/* Hide scrollbar but keep functionality */
	scrollbar-width: none; /* Firefox */
	-ms-overflow-style: none; /* IE/Edge */
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2::-webkit-scrollbar,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2::-webkit-scrollbar {
	display: none; /* Chrome/Safari */
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top {
	flex-shrink: 0;
	width: 130px;
	height: 130px;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	border: 1px solid rgba(0, 0, 0, 0.06);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top:hover,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top:hover {
	transform: scale(1.04);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top .cr-comment-videoicon,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top .cr-comment-videoicon {
	width: 44px;
	height: 44px;
	margin-top: -22px;
	margin-left: -22px;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top img,
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top video,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top img,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- modalka halerei (frontend.css 3261-3381) --- */
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal-cont,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal-cont {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	z-index: 100001;
	display: none;
	opacity: 0;
	transition: opacity 0.25s ease;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal-cont.cr-mask-active,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal-cont.cr-mask-active {
	visibility: visible;
	opacity: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal {
	visibility: visible;
	position: relative;
	max-width: 96vw;
	width: 780px;
	background: #fff;
	z-index: 100001;
	display: block;
	border-radius: 16px;
	opacity: 1;
	max-height: 96vh;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal div.cr-ajax-reviews-cus-images-hdr,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal div.cr-ajax-reviews-cus-images-hdr {
	height: 48px;
	background: #fff;
	box-shadow: none;
	position: relative;
	border-bottom: 1px solid #f0f0f0;
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal button.cr-ajax-reviews-cus-images-close,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal button.cr-ajax-reviews-cus-images-close {
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f5f5f5;
	border: none;
	padding: 0;
	position: absolute;
	top: 50%;
	right: 12px;
	margin: -16px 0 0;
	line-height: 0;
	min-height: auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal button.cr-ajax-reviews-cus-images-close:hover,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal button.cr-ajax-reviews-cus-images-close:hover {
	background-color: #e8e8e8;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal button.cr-ajax-reviews-cus-images-close svg,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal button.cr-ajax-reviews-cus-images-close svg {
	opacity: 0.7;
	width: 18px;
	height: 18px;
	font-size: 18px;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-close .cr-no-icon,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-close .cr-no-icon {
	fill: #333333;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-slide-main-flex,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-slide-main-flex {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 24px;
	padding: 20px 24px;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav {
	width: 85%;
	margin: 0 auto 24px auto;
	background-color: #fafafa;
	border-radius: 8px;
	padding: 6px 0;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav .cr-ajax-reviews-slide-nav img,
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav .cr-ajax-reviews-slide-nav video,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav .cr-ajax-reviews-slide-nav img,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav .cr-ajax-reviews-slide-nav video {
	max-height: 80px;
	margin: 0 auto;
	width: auto;
	border-radius: 6px;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav .cr-ajax-reviews-slide-nav,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-nav .cr-ajax-reviews-slide-nav {
	padding: 0px;
	line-height: 0;
	text-align: center;
	position: relative;
}
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main img,
#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main video,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main img,
.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-cus-images-slider-main .cr-ajax-reviews-slide-main video {
	max-width: 440px;
	max-height: 440px;
	width: auto;
	border-radius: 8px;
}

/* --- ramka sitky (frontend.css 3852-3858) --- */
.cr-reviews-grid {
	padding: 20px 0 10px 0;
	border: none;
	display: block;
	margin: 0;
	width: 100%;
}


/* --- CTA «Залишити відгук»: іконка через ::before замість розмітки cr-cta-enhanced --- */
/* Каталог §8.4: у 5.119.0 кнопку будує один $output .= у class-cr-all-reviews.php:943
   і class-cr-reviews-grid.php, фільтра поруч немає. Клас cr-cta-enhanced лишено в
   селекторах, щоб правило працювало і на живій 5.70.0. */
.cr-all-reviews-shortcode .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review,
.cr-reviews-grid .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review,
.cr-ajax-reviews-add-review,
.cr-cta-enhanced {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: #ffba00 !important;
	background-color: #ffba00 !important;
	color: #190a03 !important;
	border: none !important;
	border-radius: 25px !important;
	padding: 12px 28px !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	height: auto !important;
	line-height: 1.4 !important;
	box-shadow: 0 2px 8px rgba(25, 10, 3, 0.12) !important;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
	cursor: pointer;
	text-transform: none;
	text-decoration: none;
}
.cr-all-reviews-shortcode .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review:hover,
.cr-reviews-grid .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review:hover,
.cr-ajax-reviews-add-review:hover,
.cr-cta-enhanced:hover {
	background: #ffc832 !important;
	background-color: #ffc832 !important;
	color: #190a03 !important;
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 16px rgba(25, 10, 3, 0.16) !important;
	text-decoration: none;
}
.cr-all-reviews-shortcode .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review:active,
.cr-reviews-grid .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review:active,
.cr-ajax-reviews-add-review:active,
.cr-cta-enhanced:active {
	background: #d99c00 !important;
	background-color: #d99c00 !important;
	transform: translateY(0) !important;
	box-shadow: 0 2px 6px rgba(25, 10, 3, 0.12) !important;
}
/* Іконка «плюс у колі», inline SVG як data-URI (stroke currentColor неможливий
   у background-image, тому колір зашитий у #190a03, той самий, що й текст). */
.cr-all-reviews-shortcode .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review::before,
.cr-reviews-grid .cr-summaryBox-wrap .cr-add-review-wrap .cr-all-reviews-add-review::before,
.cr-ajax-reviews-add-review::before {
	content: "";
	display: inline-block;
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23190a03' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='16'/%3E%3Cline x1='8' y1='12' x2='16' y2='12'/%3E%3C/svg%3E");
}
.cr-cta-enhanced svg {
	flex-shrink: 0;
}
.cr-cta-enhanced span {
	white-space: nowrap;
}
.cr-ajax-reviews-add-review.cr-cta-enhanced {
	margin-top: 10px;
}
/* Якщо вендор усе ж намалював власну SVG усередині кнопки, псевдоіконку глушимо. */
.cr-ajax-reviews-add-review:has(> svg)::before,
.cr-all-reviews-add-review:has(> svg)::before {
	content: none;
}

/* --- медіа-запити галереї (frontend.css 4778-4836) --- */
@media all and (max-width: 700px) {
	#reviews.cr-reviews-ajax-reviews div.cr-ajax-reviews-cus-images-modal div.cr-ajax-reviews-slide-main-flex,
	.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-modal .cr-ajax-reviews-slide-main-flex {
		padding: 16px;
		gap: 16px;
	}
	#reviews.cr-reviews-ajax-reviews div.cr-ajax-reviews-cus-images-modal {
		border-radius: 12px;
	}
	/* Slightly smaller gallery thumbnails on tablet */
	#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top,
	.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top {
		width: 110px;
		height: 110px;
	}
}
@media all and (max-width: 600px) {
	#reviews.cr-reviews-ajax-reviews div.cr-ajax-reviews-cus-images-modal {
		border-radius: 0;
	}
	/* Mobile gallery thumbnails */
	#reviews.cr-reviews-ajax-reviews .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top,
	.cr-all-reviews-shortcode .cr-ajax-reviews-cus-images-div2 .cr-comment-image-top {
		width: 100px;
		height: 100px;
		border-radius: 10px;
	}
	/* Mobile review thumbnails */
	#reviews div.iv-comment-image img,
	div.iv-comment-image img {
		width: 80px;
		height: 80px;
		max-width: 80px;
		max-height: 80px;
	}
	.cr-comment-video video.cr-video-a {
		width: 80px;
		height: 80px;
	}
}

/* =========================================================================
   Дублікати правил із Customizer additional CSS (#wp-custom-css) 2026-09-04
   -------------------------------------------------------------------------
   Сам #wp-custom-css НЕ редагувався. Там три правила прив'язані до
   .comment-text, який у CusRev 5.119.0 перейменовано на .cr-comment-text
   (templates/cr-review.php:59). Оригінали лишаються в Customizer і працюють
   на 5.70.0; тут лежать їхні копії з новим селектором, щоб після оновлення
   картка відгуку не втратила рамку, жирне ім'я автора і колір мітки покупця.
   Порядок каскаду: #wp-custom-css друкується на wp_head пріоритет 101, тобто
   ПІСЛЯ цього файлу. Під 5.119.0 його .comment-text-правила не матчаться
   взагалі, тож конфлікту немає.
   ========================================================================= */
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .review .cr-comment-text {
	border-radius: 0.8rem;
	border: 0.1rem solid #e3dfdf;
	padding: 1.2rem 1.2rem 0.7rem;
}
#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .cr-comment-text .meta .woocommerce-review__author {
	font-weight: 700;
}
@media (max-width: 768px) {
	.cr-all-reviews-shortcode ol.commentlist li .cr-comment-text .meta .woocommerce-review__verified,
	#reviews.cr-reviews-ajax-reviews #comments.cr-reviews-ajax-comments .cr-ajax-reviews-list .cr-comment-text .meta .woocommerce-review__verified {
		color: #78a17f;
		font-size: 11px;
		font-weight: 400;
	}
}
