/**
 * Plugin layout-stability compatibility layer.
 *
 * This file is inlined conditionally by inc/compatibility/plugin-layout-stability.php.
 * Keep it structural: dimensions, display modes, spacing, and intrinsic media boxes.
 */

/* Customywear Photo Editor legacy product shortcodes. */
.customywear-photo-editor-old-product,
.customywear-photo-editor-shortcode-tshirt-box {
	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: 680px;
	margin: 12px 0;
}

.customywear-photo-editor-old-product *,
.customywear-photo-editor-old-product *::before,
.customywear-photo-editor-old-product *::after,
.customywear-photo-editor-shortcode-tshirt-box *,
.customywear-photo-editor-shortcode-tshirt-box *::before,
.customywear-photo-editor-shortcode-tshirt-box *::after {
	box-sizing: border-box;
}

.customywear-photo-editor-old-product[hidden],
.customywear-photo-editor-old-product [hidden],
.customywear-photo-editor-old-product-modal[hidden],
.customywear-photo-editor-old-product-size-guide-modal[hidden] {
	display: none !important;
}

.customywear-photo-editor-old-product.customywear-photo-editor-tshirt-option,
.customywear-photo-editor-shortcode-tshirt-box.customywear-photo-editor-tshirt-option {
	overflow: hidden;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	background: #fff;
}

.customywear-photo-editor-old-product.is-active,
.customywear-photo-editor-shortcode-tshirt-box.is-active {
	border-color: #0f172a;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.customywear-photo-editor-old-product-body,
.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-body {
	display: grid;
	gap: 16px;
	padding: 12px 14px 14px;
}

.customywear-photo-editor-old-product-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-block-size: 42px;
}

.customywear-photo-editor-old-product-selection-summary,
.customywear-photo-editor-shortcode-selection-summary {
	min-width: 0;
	margin: 0;
	color: #334155;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.customywear-photo-editor-old-product-size-guide-trigger,
.customywear-photo-editor-size-guide-trigger {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-block-size: 38px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #fff;
	color: #0f172a;
	padding: 8px 12px;
	font-weight: 800;
	line-height: 1.2;
}

.customywear-photo-editor-old-product-size-guide-icon {
	display: inline-flex;
	inline-size: 18px;
	block-size: 18px;
	align-items: center;
	justify-content: center;
}

.customywear-photo-editor-old-product-size-guide-icon svg {
	display: block;
	inline-size: 18px;
	block-size: 18px;
	fill: currentColor;
}

.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-option-group,
.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-group {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	align-items: center;
	gap: 10px;
}

.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-option-label,
.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-label {
	color: #1e293b;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.25;
}

.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-option-choices,
.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-choices,
.customywear-photo-editor-shortcode-buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-choice,
.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice,
.customywear-photo-editor-shortcode-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-inline-size: 42px;
	min-block-size: 36px;
	border: 1px solid #cbd5e1;
	border-radius: 999px;
	background: #fff;
	color: #0f172a;
	padding: 7px 12px;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
}

.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-choice--size,
.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice--size {
	min-inline-size: 34px;
	padding-inline: 9px;
}

.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-choice--color,
.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice--color {
	display: inline-grid;
	inline-size: 36px;
	min-inline-size: 36px;
	block-size: 36px;
	min-block-size: 36px;
	padding: 0;
	place-items: center;
}

.customywear-photo-editor-tshirt-color-dot,
.customywear-photo-editor-shortcode-color-swatch {
	display: inline-block;
	inline-size: 24px;
	block-size: 24px;
	border: 1px solid rgba(15, 23, 42, 0.18);
	border-radius: 999px;
	background: var(--cwpe-tshirt-choice-color, var(--cwpe-option-color, #111827));
}

.customywear-photo-editor-old-product-text {
	inline-size: 100%;
	min-block-size: 46px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #fff;
	padding: 10px 12px;
	font: inherit;
}

.customywear-photo-editor-old-product-upload-group {
	align-items: start;
}

.customywear-photo-editor-old-product-upload-slot {
	display: grid;
	gap: 10px;
	inline-size: 100%;
	min-width: 0;
}

.customywear-photo-editor-old-product-upload-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	inline-size: 100%;
	min-block-size: 58px;
	border: 1.5px dashed rgba(37, 99, 235, 0.35);
	border-radius: 16px;
	background: rgba(37, 99, 235, 0.06);
	color: #111827;
	padding: 14px 16px;
	font-weight: 800;
	line-height: 1.2;
}

.customywear-photo-editor-old-product-upload-icon {
	display: inline-flex;
	inline-size: 28px;
	block-size: 28px;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #111827;
	color: #fff;
}

.customywear-photo-editor-old-product-upload-icon svg {
	display: block;
	inline-size: 20px;
	block-size: 20px;
	fill: currentColor;
}

.customywear-photo-editor-old-product-summary {
	inline-size: 100%;
	min-block-size: 0;
}

.customywear-photo-editor-old-product-single-thumb {
	position: relative;
	inline-size: min(180px, 100%);
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 18px;
	background: #f3f4f6;
}

.customywear-photo-editor-old-product-thumb-grid,
.customywear-photo-editor-old-product-photo-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
	inline-size: 100%;
	max-inline-size: 360px;
}

.customywear-photo-editor-old-product-thumb,
.customywear-photo-editor-old-product-photo-item,
.customywear-photo-editor-old-product-photo-trigger {
	min-width: 0;
}

.customywear-photo-editor-old-product-thumb,
.customywear-photo-editor-old-product-photo-trigger {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 12px;
	background: #f3f4f6;
}

.customywear-photo-editor-old-product-photo-trigger {
	position: relative;
	inline-size: 100%;
	border: 0;
	padding: 0;
}

.customywear-photo-editor-old-product-single-thumb img,
.customywear-photo-editor-old-product-thumb img,
.customywear-photo-editor-old-product-family-thumb img,
.customywear-photo-editor-old-product-photo-trigger img {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.customywear-photo-editor-old-product-update-button {
	inline-size: 100%;
	min-block-size: 42px;
	margin-top: 10px;
}

.customywear-photo-editor-old-product-status {
	min-block-size: 18px;
	margin: 8px 0 0;
	color: #2563eb;
	font-size: 13px;
	line-height: 1.35;
}

.customywear-photo-editor-old-product-status:not(.is-visible) {
	display: none;
}

.customywear-photo-editor-old-product-modal,
.customywear-photo-editor-old-product-size-guide-modal {
	position: fixed;
	inset: 0;
	z-index: 99998;
}

.customywear-photo-editor-old-product-dialog,
.customywear-photo-editor-old-product-size-guide-dialog {
	position: relative;
	inline-size: min(94vw, 680px);
	max-block-size: 92vh;
	margin: 4vh auto;
	overflow: auto;
	border-radius: 22px;
	background: #fff;
}

.customywear-photo-editor-old-product-cropper,
.customywear-photo-editor-old-product-family-panel {
	display: grid;
	gap: 12px;
	padding: 18px;
}

.customywear-photo-editor-crop-canvas {
	display: block;
	inline-size: min(100%, 512px);
	aspect-ratio: 1 / 1;
	block-size: auto;
	margin-inline: auto;
	background: #f3f4f6;
}

/* CW Review summaries, photo strips, cards, and sliders. */
.cwr-wrap,
.cwr-photo-review-slider {
	box-sizing: border-box;
	max-inline-size: 100%;
	margin: 32px 0;
	color: var(--cwr-black, #202020);
	font-family: inherit;
}

.cwr-wrap *,
.cwr-wrap *::before,
.cwr-wrap *::after,
.cwr-photo-review-slider *,
.cwr-photo-review-slider *::before,
.cwr-photo-review-slider *::after,
.cwr-modal,
.cwr-modal *,
.cwr-modal *::before,
.cwr-modal *::after {
	box-sizing: border-box;
}

.cwr-wrap img,
.cwr-wrap video,
.cwr-photo-review-slider img,
.cwr-photo-review-slider video,
.cwr-modal img,
.cwr-modal video {
	max-inline-size: 100%;
	block-size: auto;
}

body.single-product #tab-cwr_reviews.cwr-is-forced-open,
body.single-product .woocommerce-tabs #tab-cwr_reviews.cwr-is-forced-open,
body.single-product .wc-tabs-wrapper #tab-cwr_reviews.cwr-is-forced-open {
	display: block !important;
	visibility: visible !important;
	block-size: auto !important;
	max-block-size: none !important;
	opacity: 1 !important;
}

.cwr-hero {
	margin-bottom: 18px;
	border: 1px solid #e6eef7;
	border-radius: 22px;
	background: #fff;
	padding: 22px;
}

.cwr-widget-title {
	min-block-size: 1.15em;
	margin: 0 0 18px;
	color: var(--cwr-second, #1e3b66);
	font-size: clamp(24px, 3vw, 34px);
	line-height: 1.15;
	text-align: center;
}

.cwr-summary {
	display: grid;
	grid-template-columns: minmax(170px, 1fr) auto minmax(280px, 2fr) auto minmax(170px, 1fr);
	align-items: center;
	gap: 18px;
}

.cwr-summary-score {
	display: flex;
	inline-size: 100%;
	min-block-size: 190px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid #e6eef7;
	border-radius: 18px;
	background: #fff;
	padding: 22px 16px;
	text-align: center;
}

.cwr-summary-score strong {
	display: block;
	min-block-size: 1em;
	color: var(--cwr-second, #1e3b66);
	font-size: 48px;
	line-height: 1;
}

.cwr-summary-count {
	display: block;
	min-block-size: 1.35em;
	margin-top: 9px;
	color: #5c6c7e;
	font-size: 13px;
	line-height: 1.35;
}

.cwr-stars {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	line-height: 1;
}

.cwr-star {
	position: relative;
	display: inline-block;
	inline-size: 1em !important;
	min-inline-size: 1em !important;
	max-inline-size: 1em !important;
	block-size: 1em !important;
	flex: 0 0 1em !important;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	line-height: 1;
	vertical-align: -0.12em;
}

.cwr-star::before,
.cwr-star::after {
	content: "";
	position: absolute;
	inset: 0;
	display: block;
	inline-size: 100% !important;
	block-size: 100% !important;
	background-color: var(--cwr-star-empty, #d5dee8);
}

.cwr-star::after {
	background-color: var(--cwr-main, #239add);
	clip-path: inset(0 calc(100% - var(--cwr-star-fill, 0%)) 0 0);
}

.cwr-summary-photos {
	min-width: 0;
}

.cwr-photo-title {
	min-block-size: 1.3em;
	margin: 0 0 9px;
	color: #52657a;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.cwr-photo-strip {
	display: grid;
	grid-template-columns: repeat(4, minmax(58px, 1fr));
	align-items: center;
	justify-content: stretch;
	gap: 8px;
	margin: 0;
}

.cwr-strip-thumb,
.cwr-strip-view-all {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border: 0;
	border-radius: 14px;
	background: #e8eef5;
	padding: 0;
}

.cwr-strip-view-all {
	display: grid;
	place-items: center;
	color: #fff;
	font-weight: 800;
	line-height: 1.15;
	text-align: center;
}

.cwr-strip-thumb img,
.cwr-strip-thumb video,
.cwr-strip-view-all-bg {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.cwr-strip-view-all-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	opacity: 0.3;
}

.cwr-strip-view-all strong {
	position: relative;
	z-index: 2;
	padding: 0 5px;
	font-size: 12px;
}

.cwr-summary-action {
	display: flex;
	inline-size: 100%;
	align-items: center;
	justify-content: flex-end;
}

.cwr-button,
.cwr-tab,
.cwr-page,
.cwr-vote {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1.2;
}

.cwr-button {
	min-block-size: 42px;
	border: 1px solid #d5e2ef;
	border-radius: 999px;
	background: #fff;
	color: var(--cwr-second, #1e3b66);
	padding: 11px 17px;
	font-weight: 700;
}

.cwr-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 16px 0 10px;
}

.cwr-tabs {
	display: flex;
	gap: 8px;
	min-width: 0;
	overflow: auto;
	padding-bottom: 2px;
}

.cwr-tab {
	min-block-size: 42px;
	border: 1px solid #dbe7f1;
	border-radius: 999px;
	background: #fff;
	color: var(--cwr-second, #1e3b66);
	padding: 12px 18px;
	font-weight: 800;
	white-space: nowrap;
}

.cwr-filter-row {
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	margin: 0;
}

.cwr-filter-wrap {
	position: relative;
	display: inline-flex;
	min-inline-size: 178px;
	align-items: center;
}

.cwr-filter {
	inline-size: 178px;
	min-inline-size: 0;
	block-size: 42px;
	border: 1px solid #dbe7f1;
	border-radius: 999px;
	background: #fff;
	padding: 0 42px 0 16px;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	line-height: 40px;
}

.cwr-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: 14px;
	min-block-size: 100px;
}

.cwr-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #e1ebf5;
	border-radius: 18px;
	background: #fff;
	content-visibility: auto;
	contain-intrinsic-size: 1px 430px;
}

.cwr-card-media {
	position: relative;
	aspect-ratio: 1.1 / 1;
	overflow: hidden;
	background: #edf4fb;
}

.cwr-media-open,
.cwr-video-thumb {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	border: 0;
	background: transparent;
	padding: 0;
}

.cwr-card-media img,
.cwr-card-media video {
	display: block;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.cwr-media-count {
	position: absolute;
	right: 10px;
	bottom: 10px;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.64);
	color: #fff;
	padding: 5px 9px;
	font-size: 12px;
	font-weight: 700;
}

.cwr-card-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 14px;
}

.cwr-reviewer-row {
	--cwr-avatar-size: 36px;
	--cwr-avatar-font-size: 14px;
	display: flex;
	align-items: center;
	gap: 8px;
	min-block-size: var(--cwr-avatar-size);
}

.cwr-avatar {
	display: inline-grid;
	inline-size: var(--cwr-avatar-size);
	block-size: var(--cwr-avatar-size);
	flex: 0 0 var(--cwr-avatar-size);
	border-radius: 50%;
	place-items: center;
	font-size: var(--cwr-avatar-font-size);
	font-weight: 900;
	line-height: 1;
}

.cwr-reviewer {
	display: grid;
	min-width: 0;
	max-block-size: var(--cwr-avatar-size);
	align-content: center;
	overflow: hidden;
	line-height: 1;
}

.cwr-rating-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-block-size: 20px;
}

.cwr-review-content {
	--cwr-review-line-height: 1.45em;
	--cwr-review-visible-lines: 4;
	min-block-size: calc(var(--cwr-review-line-height) * var(--cwr-review-visible-lines));
	overflow-wrap: anywhere;
	line-height: 1.45;
}

.cwr-votes {
	display: flex;
	gap: 8px;
	min-block-size: 34px;
	margin-top: auto;
}

.cwr-product-mini a {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.cwr-product-mini img {
	display: block;
	inline-size: 48px;
	min-inline-size: 48px;
	max-inline-size: 48px;
	block-size: 48px;
	flex: 0 0 48px;
	object-fit: cover;
}

.cwr-product-mini-title {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.cwr-pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	min-block-size: 42px;
	margin-top: 18px;
}

.cwr-photo-review-slider {
	--cwr-photo-slider-gap: 14px;
}

.cwr-photo-slider-header {
	position: relative;
	margin-bottom: 24px;
	text-align: center;
}

.cwr-photo-slider-title {
	min-block-size: 1.9em;
	margin: 0;
	color: var(--cwr-second, #1e3b66);
	font-size: clamp(30px, 5vw, 58px);
	letter-spacing: -0.045em;
	line-height: 0.98;
}

.cwr-photo-slider-title-line {
	display: block;
}

.cwr-photo-slider-shell {
	position: relative;
}

.cwr-photo-slider-viewport {
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 2px;
}

.cwr-photo-slider-track {
	display: flex;
	align-items: stretch;
	gap: var(--cwr-photo-slider-gap);
}

.cwr-photo-slider-slide {
	display: flex;
	min-width: 0;
	flex: 0 0 calc((100% - (3 * var(--cwr-photo-slider-gap))) / 4);
	scroll-snap-align: start;
}

.cwr-photo-review-slider .cwr-card {
	inline-size: 100%;
}

.cwr-photo-slider-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	display: inline-flex;
	inline-size: 38px;
	block-size: 38px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(219, 231, 241, 0.95);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.96);
	color: var(--cwr-second, #1e3b66);
	font-size: 32px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}

.cwr-photo-slider-prev {
	left: -52px;
}

.cwr-photo-slider-next {
	right: -52px;
}

.cwr-photo-slider-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 18px;
	margin-top: 16px;
	overflow: hidden;
}

@media (max-width: 900px) {
	.customywear-photo-editor-old-product,
	.customywear-photo-editor-shortcode-tshirt-box {
		max-inline-size: 100%;
	}

	.cwr-summary {
		display: flex;
		flex-wrap: wrap;
	}

	.cwr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.cwr-photo-strip {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.cwr-photo-strip .cwr-strip-thumb:nth-of-type(n+8) {
		display: none;
	}

	.cwr-photo-review-slider {
		--cwr-photo-slider-gap: 10px;
		padding-bottom: 42px;
	}

	.cwr-photo-slider-slide {
		flex-basis: calc((100% - var(--cwr-photo-slider-gap)) / 2);
	}

	.cwr-photo-slider-arrow {
		top: auto;
		bottom: -56px;
		transform: none;
	}

	.cwr-photo-slider-prev {
		left: max(10px, calc(50% - 157px));
	}

	.cwr-photo-slider-next {
		right: max(10px, calc(50% - 157px));
	}

	.cwr-photo-slider-dots {
		inline-size: min(210px, 45vw);
		min-block-size: 38px;
		margin: 18px auto 0;
	}
}

@media (max-width: 767px) {
	.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-option-group,
	.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-group {
		grid-template-columns: 66px minmax(0, 1fr);
	}

	.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-choice,
	.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice {
		min-inline-size: 32px;
		min-block-size: 30px;
		padding: 5px 8px;
		font-size: 12px;
	}

	.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-choice--color,
	.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-choice--color {
		inline-size: 32px;
		min-inline-size: 32px;
		block-size: 32px;
		min-block-size: 32px;
		padding: 0;
	}

	.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-color-dot,
	.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-color-dot {
		inline-size: 22px;
		block-size: 22px;
	}
}

@media (max-width: 640px) {
	.cwr-wrap,
	.cwr-photo-review-slider {
		margin: 24px 0;
	}

	.cwr-hero {
		border-radius: 18px;
		padding: 14px;
	}

	.cwr-widget-title {
		margin-bottom: 14px;
		font-size: 24px;
	}

	.cwr-summary {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.cwr-summary-separator {
		display: none;
	}

	.cwr-summary-score {
		min-block-size: auto;
		padding: 14px 12px;
	}

	.cwr-summary-photos,
	.cwr-summary-action {
		inline-size: 100%;
	}

	.cwr-controls {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.cwr-tabs {
		inline-size: 100%;
	}

	.cwr-filter-row,
	.cwr-filter-wrap,
	.cwr-filter {
		inline-size: 100%;
	}

	.cwr-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cwr-card-body {
		padding: 10px;
	}

	.cwr-reviewer-row {
		--cwr-avatar-size: 32px;
		--cwr-avatar-font-size: 13px;
	}

	.cwr-rating-row {
		gap: 4px;
		font-size: 12px;
	}

	.cwr-product-mini img {
		inline-size: 42px;
		min-inline-size: 42px;
		max-inline-size: 42px;
		block-size: 42px;
		flex-basis: 42px;
	}

	.cwr-photo-review-slider {
		--cwr-photo-slider-gap: 10px;
		margin: 28px 0;
	}

	.cwr-photo-slider-title {
		min-block-size: 2em;
		font-size: clamp(28px, 11vw, 42px);
		line-height: 1.02;
	}
}

@media (max-width: 380px) {
	.customywear-photo-editor-old-product .customywear-photo-editor-tshirt-option-group,
	.customywear-photo-editor-shortcode-tshirt-box .customywear-photo-editor-tshirt-option-group {
		grid-template-columns: 1fr;
	}

	.cwr-filter-wrap,
	.cwr-filter {
		min-inline-size: 144px;
	}
}
