.deer-pi-container,
.deer-pi-compare-page,
.deer-pi-matcher {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.deer-pi-section {
	clear: both;
	padding: 42px 0;
}

.deer-pi-section h2,
.deer-pi-matcher h1,
.deer-pi-compare-page h1 {
	margin: 0 0 8px;
}

.deer-pi-section-intro {
	margin: 0 0 22px;
	color: #74685f;
}

.deer-pi-product-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.deer-pi-product-card {
	overflow: hidden;
	border: 1px solid #eadfd4;
	border-radius: 14px;
	background: #fffdfb;
	box-shadow: 0 5px 18px rgba(65, 43, 28, .06);
}

.deer-pi-product-card__image {
	display: block;
	aspect-ratio: 1 / 1;
	background: #fff;
}

.deer-pi-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.deer-pi-product-card__body {
	padding: 14px;
}

.deer-pi-product-card h3 {
	display: -webkit-box;
	min-height: 2.8em;
	margin: 0 0 8px;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	font-size: 15px;
	line-height: 1.4;
	color: #2d221b;
}

.deer-pi-product-card__facts,
.deer-pi-match-reason {
	min-height: 2.6em;
	margin: 0 0 10px;
	font-size: 12px;
	line-height: 1.35;
	color: #74685f;
}

.deer-pi-match-reason {
	min-height: 0;
	color: #0a6a45;
	font-weight: 600;
}

.deer-pi-product-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.deer-pi-product-card .price {
	font-weight: 700;
	color: #f4511e;
}

.deer-pi-compare-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-height: 34px;
	margin: 6px 0 0;
	padding: 7px 11px;
	border: 1px solid #dfcabb;
	border-radius: 9px;
	background: #fff;
	color: #49382d;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.deer-pi-compare-button.is-selected {
	border-color: #0a6a45;
	background: #eef8f3;
	color: #0a6a45;
}

.deer-pi-single-compare {
	margin-top: 8px;
}

.deer-pi-compare-tray {
	position: fixed;
	right: 18px;
	bottom: 18px;
	left: 18px;
	z-index: 99990;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	max-width: 760px;
	margin: auto;
	padding: 12px 14px;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 14px;
	background: #27221f;
	box-shadow: 0 16px 40px rgba(0,0,0,.28);
	color: #fff;
}

.deer-pi-compare-tray strong,
.deer-pi-compare-tray span {
	display: block;
}

.deer-pi-compare-tray span {
	max-width: 470px;
	overflow: hidden;
	font-size: 12px;
	text-overflow: ellipsis;
	white-space: nowrap;
	opacity: .78;
}

.deer-pi-compare-tray__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.deer-pi-compare-tray button,
.deer-pi-compare-tray a,
.deer-pi-matcher-form button {
	min-height: 38px;
	padding: 9px 14px;
	border: 0;
	border-radius: 9px;
	font-weight: 700;
	cursor: pointer;
}

.deer-pi-compare-tray button {
	background: transparent;
	color: #fff;
}

.deer-pi-compare-tray a,
.deer-pi-matcher-form button {
	background: #ff5a1f;
	color: #fff;
}

.deer-pi-compare-page,
.deer-pi-matcher {
	padding-block: 34px 54px;
}

.deer-pi-compare-scroll {
	overflow-x: auto;
	border: 1px solid #eadfd4;
	border-radius: 14px;
}

.deer-pi-compare-table {
	width: 100%;
	min-width: 720px;
	margin: 0;
	border-collapse: collapse;
	background: #fff;
}

.deer-pi-compare-table th,
.deer-pi-compare-table td {
	min-width: 180px;
	padding: 14px;
	border-right: 1px solid #eee4da;
	border-bottom: 1px solid #eee4da;
	text-align: left;
	vertical-align: top;
}

.deer-pi-compare-table tr > :first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	min-width: 145px;
	background: #fff9f3;
}

.deer-pi-compare-table thead img {
	display: block;
	width: 130px;
	height: 130px;
	margin-bottom: 8px;
	object-fit: contain;
}

.deer-pi-matcher-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin: 24px 0 34px;
	padding: 22px;
	border: 1px solid #eadfd4;
	border-radius: 16px;
	background: #fffaf5;
}

.deer-pi-matcher-form label {
	display: grid;
	gap: 7px;
	font-weight: 700;
}

.deer-pi-matcher-form select {
	width: 100%;
	height: 44px;
	margin: 0;
	border: 1px solid #dccfc4;
	border-radius: 9px;
	background: #fff;
}

.deer-pi-matcher-checks {
	display: flex;
	align-items: center;
	gap: 22px;
}

.deer-pi-matcher-checks label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.deer-pi-matcher-form button {
	justify-self: end;
	min-width: 210px;
}

@media (max-width: 849px) {
	.deer-pi-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.deer-pi-product-card__body {
		padding: 10px;
	}

	.deer-pi-product-card h3 {
		font-size: 13px;
	}

	.deer-pi-product-card__footer {
		align-items: flex-start;
		flex-direction: column;
	}

	.deer-pi-compare-tray {
		right: 8px;
		bottom: 76px;
		left: 8px;
		align-items: stretch;
		flex-direction: column;
		gap: 8px;
	}

	.deer-pi-compare-tray__actions {
		justify-content: flex-end;
	}

	.deer-pi-matcher-form {
		grid-template-columns: 1fr;
		padding: 16px;
	}

	.deer-pi-matcher-form button {
		justify-self: stretch;
	}
}
