.vikfarm-ozon-reviews {
	--vikfarm-ink: #243a2b;
	--vikfarm-green: #46654a;
	--vikfarm-gold: #c6923e;
	--vikfarm-paper: #fbf8f1;
	color: var(--vikfarm-ink);
	font-size: 16px;
}

.vikfarm-ozon-reviews__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 22px;
	padding: 24px;
	border: 1px solid rgba(70, 101, 74, .2);
	border-radius: 18px;
	background: linear-gradient(135deg, var(--vikfarm-paper), #fff);
}

.vikfarm-ozon-reviews__eyebrow {
	margin: 0 0 5px;
	color: var(--vikfarm-green);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.vikfarm-ozon-reviews h2 {
	margin: 0;
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
}

.vikfarm-ozon-reviews__summary {
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	gap: 2px 10px;
	min-width: 150px;
}

.vikfarm-ozon-reviews__summary strong {
	grid-row: span 2;
	font-size: 36px;
	line-height: 1;
}

.vikfarm-ozon-reviews__summary small {
	color: #657267;
}

.vikfarm-ozon-reviews__stars {
	color: var(--vikfarm-gold);
	font-size: 18px;
	letter-spacing: .08em;
	white-space: nowrap;
}

.vikfarm-ozon-reviews__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.vikfarm-ozon-review {
	padding: 20px;
	border: 1px solid rgba(70, 101, 74, .16);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 7px 25px rgba(36, 58, 43, .06);
}

.vikfarm-ozon-review__meta {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 4px 12px;
	margin-bottom: 10px;
}

.vikfarm-ozon-review__meta time {
	grid-column: 1 / -1;
	color: #7b827c;
	font-size: 13px;
}

.vikfarm-ozon-review p {
	margin: 0;
	line-height: 1.55;
}

.vikfarm-ozon-reviews__footer {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid rgba(70, 101, 74, .16);
	color: #68716a;
	font-size: 13px;
}

.vikfarm-ozon-reviews__footer a {
	color: var(--vikfarm-green);
	font-weight: 700;
	white-space: nowrap;
}

.vikfarm-ozon-reviews__link-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	padding: clamp(20px, 3.5vw, 32px);
	border: 2px solid #005bff;
	border-radius: 18px;
	background: #fff;
	box-shadow: none;
}

.vikfarm-ozon-reviews__link-card p:not(.vikfarm-ozon-reviews__eyebrow) {
	max-width: 650px;
	margin: 12px 0 0;
	color: #5f6b62;
	line-height: 1.55;
}

.vikfarm-ozon-reviews__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 50px;
	padding: 13px 20px;
	border: 2px solid #005bff;
	border-radius: 999px;
	background: #dceaff;
	color: #f1117e !important;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform .2s ease, background-color .2s ease;
}

.vikfarm-ozon-reviews__button:hover,
.vikfarm-ozon-reviews__button:focus-visible {
	background: #c9ddff;
	color: #c80b68 !important;
	transform: translateY(-1px);
}

.vikfarm-ozon-reviews__source {
	margin: 10px 4px 0;
	color: #7b827c;
	font-size: 12px;
}

.vikfarm-ozon-summary-link {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 10px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.vikfarm-ozon-summary-link > img {
	display: block;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	object-fit: cover;
	flex: 0 0 48px;
}

.vikfarm-ozon-summary-link a {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 0;
	padding: 4px 0;
	border: 0;
	background: transparent;
	color: #005bff !important;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.25;
	text-decoration: none !important;
	transition: color .2s ease, transform .2s ease;
}

.vikfarm-ozon-summary-link a:hover,
.vikfarm-ozon-summary-link a:focus-visible {
	background: transparent;
	color: #f1117e !important;
	transform: translateY(-1px);
}

.vikfarm-ozon-summary-link__arrow {
	color: #f1117e;
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
}

/* Full-width, compact description below the gallery and purchase column. */
.single-product .vikfarm-full-description {
	clear: both;
	width: 100%;
	margin: 20px 0 16px;
	padding: 18px 0 0;
	border-top: 1px solid #dfe4d8;
	font-size: 17px;
	line-height: 1.38;
}

.single-product .vikfarm-full-description h2 {
	margin: 0 0 7px;
	font-size: 26px;
	line-height: 1.2;
}

.single-product .vikfarm-full-description h3 {
	margin: 13px 0 4px;
	font-size: 20px;
	line-height: 1.2;
}

.single-product .vikfarm-full-description p,
.single-product .vikfarm-full-description ul,
.single-product .vikfarm-full-description ol {
	margin-block: 0 8px;
}

.single-product .vikfarm-full-description ul,
.single-product .vikfarm-full-description ol {
	padding-left: 1.25em;
}

.single-product .vikfarm-full-description li {
	margin: 0 0 2px;
}

/* Diagonal sale stamp on the main product photo. */
.single-product .woocommerce-product-gallery,
.single-product .wp-block-woocommerce-product-image-gallery,
.single-product .wp-block-woocommerce-product-gallery,
.single-product .wc-block-product-gallery {
	position: relative !important;
	overflow: visible !important;
}

.single-product .vikfarm-main-sale-badge {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: absolute !important;
	top: var(--vikfarm-main-sale-top, 72%) !important;
	right: auto !important;
	bottom: auto !important;
	left: var(--vikfarm-main-sale-left, 72%) !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 8px 14px !important;
	border: 3px solid #fff !important;
	border-radius: 7px !important;
	background: #e32b1b !important;
	box-shadow: 0 0 0 2px #e32b1b !important;
	color: #fff !important;
	font-size: clamp(16px, 1.65vw, 23px) !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: .01em !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	transform: rotate(-45deg) !important;
	transform-origin: center !important;
	z-index: 12 !important;
}

.single-product .vikfarm-main-sale-badge > span {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font: inherit !important;
}

/* Keep the card frame unchanged while the complete label artwork fits inside it. */
.single-product .related.products ul.products li.product img,
.single-product .related.products .wc-block-grid__product-image img,
.single-product .wc-block-product-template .wc-block-components-product-image img,
.single-product .wp-block-woocommerce-related-products .wc-block-components-product-image img,
.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-image img,
.single-product .wc-block-related-products .wc-block-components-product-image img {
	display: block;
	width: 72% !important;
	max-width: 250px !important;
	height: 72% !important;
	max-height: 250px !important;
	margin-inline: auto !important;
	padding: 0 !important;
	border-radius: 14px;
	background: #fff;
	box-sizing: border-box;
	object-fit: contain !important;
	object-position: center !important;
}

.single-product .related.products ul.products li.product,
.single-product .related.products .wc-block-grid__product,
.single-product .related.products ul.products li.product > a,
.single-product .related.products .wc-block-grid__product-link,
.single-product .related.products .wc-block-components-product-image,
.single-product .wc-block-product-template .wc-block-product,
.single-product .wc-block-product-template .wc-block-components-product-image,
.single-product .wp-block-woocommerce-related-products .wc-block-components-product-image,
.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-image,
.single-product .wc-block-related-products .wc-block-components-product-image {
	position: relative !important;
}

.single-product .wp-block-woocommerce-related-products .wc-block-components-product-image,
.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-image,
.single-product .wc-block-product-template .wc-block-components-product-image,
.single-product .wc-block-related-products .wc-block-components-product-image {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: clamp(300px, 24vw, 340px) !important;
	min-height: 300px !important;
	background: #fff !important;
	box-sizing: border-box !important;
	overflow: visible !important;
}

.single-product .wp-block-woocommerce-related-products .wc-block-components-product-image > a,
.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-image > a,
.single-product .wc-block-product-template .wc-block-components-product-image > a,
.single-product .wc-block-related-products .wc-block-components-product-image > a {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	position: relative !important;
	overflow: visible !important;
}

.single-product .wc-block-product-template .wc-block-components-product-image__inner-container {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	overflow: visible !important;
	pointer-events: none !important;
	z-index: 8 !important;
}

.single-product .wc-block-product-template .wp-block-woocommerce-product-sale-badge {
	display: none !important;
}

body.woocommerce-shop .wc-block-product-template .wp-block-woocommerce-product-sale-badge {
	display: none !important;
}

body.woocommerce-shop .wc-block-product-template .wc-block-product,
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-image,
body.woocommerce-shop .wc-block-product-template .wc-block-components-product-image > a {
	position: relative !important;
	overflow: visible !important;
}

/* A deterministic badge for every sale item in the current WooCommerce product template. */
.single-product .wc-block-product-template .wc-block-product.sale .wc-block-components-product-image::after,
body.woocommerce-shop .wc-block-product-template .wc-block-product.sale .wc-block-components-product-image::after {
	content: "Распродажа";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: absolute;
	right: -4%;
	bottom: 20%;
	left: auto;
	width: auto;
	min-width: 0;
	min-height: 0;
	padding: 4px 6px;
	border: 2px solid #fff;
	border-radius: 3px;
	background: #e32b1b;
	box-shadow: 0 0 0 1px #e32b1b;
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: uppercase;
	white-space: nowrap;
	transform: rotate(-45deg);
	transform-origin: center;
	pointer-events: none;
	z-index: 12;
}

body.woocommerce-shop .wc-block-product-template .wc-block-product.sale .wc-block-components-product-image::after {
	right: 6%;
	bottom: 2%;
	padding: 6px 9px;
	font-size: clamp(10px, .8vw, 13px);
}

.single-product .related.products .vikfarm-related-sale-badge,
.single-product .wc-block-product-template .vikfarm-related-sale-badge,
.single-product .wp-block-woocommerce-related-products .vikfarm-related-sale-badge,
.single-product .wp-block-woocommerce-related-products .wc-block-components-product-sale-badge,
.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-sale-badge,
.single-product .wp-block-woocommerce-related-products .onsale,
.single-product .wc-block-related-products .vikfarm-related-sale-badge,
.single-product .wc-block-related-products .wc-block-components-product-sale-badge,
.single-product .wc-block-related-products .onsale {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	position: absolute !important;
	top: auto !important;
	right: -8% !important;
	bottom: 8% !important;
	left: auto !important;
	width: auto !important;
	max-width: 105px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 5px 7px !important;
	border: 2px solid #fff !important;
	border-radius: 3px !important;
	background: #e32b1b !important;
	box-shadow: 0 0 0 1px #e32b1b !important;
	color: #fff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	line-height: 1 !important;
	letter-spacing: .02em !important;
	text-transform: uppercase !important;
	white-space: nowrap !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	float: none !important;
	transform: rotate(-45deg) !important;
	transform-origin: center !important;
	z-index: 6 !important;
}

.single-product .wp-block-woocommerce-related-products .wc-block-components-product-sale-badge > span,
.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-sale-badge > span,
.single-product .wc-block-product-template .vikfarm-related-sale-badge > span:not(.screen-reader-text),
.single-product .wc-block-related-products .wc-block-components-product-sale-badge > span {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	color: inherit !important;
	font: inherit !important;
}

.single-product .related.products {
	margin-top: 18px !important;
	padding-top: 0 !important;
}

.single-product .related.products > h2 {
	margin: 0 0 14px !important;
}

.single-product .related.products ul.products {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

.single-product .related.products ul.products li.product,
.single-product .related.products .wc-block-grid__product {
	margin-bottom: 20px !important;
}

.single-product .related.products ul.products li.product .price,
.single-product .related.products .wc-block-grid__product-price {
	margin: 7px 0 !important;
}

.single-product .related.products ul.products li.product .button,
.single-product .related.products .wc-block-grid__product-add-to-cart {
	margin-top: 7px !important;
	margin-bottom: 0 !important;
}

@media (max-width: 700px) {
	.vikfarm-ozon-reviews__header,
	.vikfarm-ozon-reviews__footer,
	.vikfarm-ozon-reviews__link-card {
		align-items: flex-start;
		flex-direction: column;
	}

	.vikfarm-ozon-reviews__list {
		grid-template-columns: 1fr;
	}

	.vikfarm-ozon-reviews__button {
		width: 100%;
	}

	.single-product .vikfarm-full-description {
		margin-top: 16px;
		padding-top: 14px;
		font-size: 16px;
		line-height: 1.36;
	}

	.single-product .related.products ul.products li.product img,
	.single-product .related.products .wc-block-grid__product-image img,
	.single-product .wc-block-product-template .wc-block-components-product-image img,
	.single-product .wp-block-woocommerce-related-products .wc-block-components-product-image img,
	.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-image img,
	.single-product .wc-block-related-products .wc-block-components-product-image img {
		width: 72% !important;
		height: 72% !important;
		max-width: 240px !important;
		max-height: 240px !important;
	}

	.single-product .wp-block-woocommerce-related-products .wc-block-components-product-image,
	.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-image,
	.single-product .wc-block-product-template .wc-block-components-product-image,
	.single-product .wc-block-related-products .wc-block-components-product-image {
		height: min(88vw, 340px) !important;
		min-height: 280px !important;
	}

	.single-product .wc-block-product-template .wc-block-product.sale .wc-block-components-product-image::after {
		right: -3%;
		bottom: 19%;
		font-size: 8px;
	}

	body.woocommerce-shop .wc-block-product-template .wc-block-product.sale .wc-block-components-product-image::after {
		right: 5%;
		bottom: 3%;
		padding: 5px 7px;
		font-size: 9px;
	}

	.vikfarm-ozon-summary-link {
		gap: 10px;
	}

	.vikfarm-ozon-summary-link > img {
		width: 42px;
		height: 42px;
		border-radius: 10px;
		flex-basis: 42px;
	}

	.vikfarm-ozon-summary-link a {
		font-size: 16px;
	}

	.single-product .related.products .vikfarm-related-sale-badge,
	.single-product .wc-block-product-template .vikfarm-related-sale-badge,
	.single-product .wp-block-woocommerce-related-products .vikfarm-related-sale-badge,
	.single-product .wp-block-woocommerce-related-products .wc-block-components-product-sale-badge,
	.single-product .wp-block-woocommerce-related-products .wp-block-woocommerce-product-sale-badge,
	.single-product .wp-block-woocommerce-related-products .onsale,
	.single-product .wc-block-related-products .vikfarm-related-sale-badge,
	.single-product .wc-block-related-products .wc-block-components-product-sale-badge,
	.single-product .wc-block-related-products .onsale {
		right: -6% !important;
		bottom: 8% !important;
		left: auto !important;
		font-size: 9px !important;
	}

	.single-product .vikfarm-main-sale-badge {
		padding: 7px 11px !important;
		font-size: clamp(13px, 4.2vw, 19px) !important;
	}
}
