.rv-block {
	margin: 0 0 24px 0;
}

.rv-block__head {
	margin-bottom: 0.75rem;
}

.rv-block__title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.3;
}

.rv-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.rv-item {
	display: flex;
	align-items: stretch;
	min-height: 4.5rem;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 0.5rem;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.rv-item:hover {
	border-color: rgba(0, 0, 0, 0.16);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	color: inherit;
}

.rv-item__media {
	width: 4.5rem;
	flex-shrink: 0;
	align-self: stretch;
	height: 72px;
	padding-top: 10px;
	padding-left: 10px;
}

.rv-item__media img {
	display: block;
	width: 50px;
	height: 50px;
	object-fit: cover;
}

.rv-item__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
	padding: 0.5rem 0.75rem;
	min-width: 0;
	flex: 1;
}

.rv-item__name {
	font-size: 13px;
	font-weight: 500;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rv-item__price {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
}

.rv-item__old {
	font-weight: 400;
	color: #888;
	margin-right: 0.35rem;
	font-size: 0.75rem;
}

@media (min-width: 768px) {
	.rv-list {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.625rem;
	}
}

@media (min-width: 992px) {
	.rv-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (min-width: 1280px) {
	.rv-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.rv-cart {
	background: #fff;
	border: 1px solid #eceff3;
	border-radius: 16px;
	padding: 8px 16px 8px;
	margin: 28px 0 24px;
}

.rv-cart__tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	border-bottom: 1px solid #f0f2f5;
	margin: 0 -16px 4px;
	padding: 0 16px;
}

.rv-cart__tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: #8b93a7;
	font-size: 15px;
	font-weight: 600;
	padding: 14px 8px 12px;
	position: relative;
	cursor: pointer;
}

.rv-cart__tab svg {
	flex-shrink: 0;
}

.rv-cart__tab.is-active {
	color: #7b61ff;
}

.rv-cart__tab.is-active::after {
	content: "";
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: #7b61ff;
}

.rv-cart__panel[hidden] {
	display: none;
}

.rv-cart__grid {
	display: grid;
	grid-template-columns: 1fr;
}

.rv-cart-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid #f1f3f6;
	min-width: 0;
}

.rv-cart-item:last-child {
	border-bottom: 0;
}

.rv-cart-item__media {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	border-radius: 10px;
	overflow: hidden;
	background: #f7f8fa;
}

.rv-cart-item__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.rv-cart-item__body {
	min-width: 0;
	flex: 1;
}

.rv-cart-item__name {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #1f2430;
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	font-weight: 500;
}

.rv-cart-item__name:hover {
	color: #7b61ff;
}

.rv-cart-item__price {
	margin-top: 6px;
	font-size: 16px;
	font-weight: 700;
	color: #111827;
}

.rv-cart-item__btn {
	flex-shrink: 0;
	border: 1px solid #d9dee8;
	background: #fff;
	color: #1f2430;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
}

.rv-cart-item__btn:hover:not(:disabled) {
	border-color: #7b61ff;
	color: #7b61ff;
}

.rv-cart-item__btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.rv-cart__empty {
	margin: 0;
	padding: 24px 8px;
	color: #8b93a7;
	font-size: 14px;
	text-align: center;
}

@media (min-width: 768px) {
	.rv-cart__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rv-cart-item {
		padding: 16px 12px 16px 0;
	}

	.rv-cart-item:nth-child(odd) {
		padding-right: 16px;
		border-right: 1px solid #f1f3f6;
	}

	.rv-cart-item:nth-last-child(-n+2) {
		border-bottom: 0;
	}
}
