#prod-upsell {
	margin-bottom: 40px;
}

.upsell-products .grid-item-inner {
	border: none;
}

.up-section {
	border: 1px solid #e5e1d8;
	border-radius: 6px;
	margin-bottom: 12px;
	overflow: hidden;
	background: #fff;
}

.up-section-header {
	width: 100%;
	background: #f0f0f0;
	padding: 14px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	border: none;
	outline: none;
	cursor: pointer;
	transition: background 0.2s;
}

.up-section-header:hover {
	background: #e8e8e8;
}

.up-section-header:focus {
	outline: none;
	box-shadow: none;
	border: none;
}

.up-section-title {
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	color: #000;
	font-size: 18px;
}

.up-section-badge {
	font-size: 12px;
	font-weight: 700;
	color: #333;
	background: #e2e8f0;
	padding: 4px 10px;
	border-radius: 12px;
	margin-right: 8px;
}

.up-section-meta {
	display: flex;
	align-items: center;
	gap: 8px;
}

.up-section-arrow {
	width: 18px;
	height: 18px;
	transition: transform 0.3s;
	color: #c4a24e;
}

.up-section-arrow.collapsed {
	transform: rotate(-90deg);
}

.up-section-body {
	padding: 0 0 10px 0;
}

.up-sidebar {
	position: sticky;
	top: 24px;
}

.up-summary-card {
	background: #fff;
	border: 1px solid #e5e1d8;
	padding: 28px 24px;
	text-align: center;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.up-summary-img-wrap {
	width: 150px;
	height: 150px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.up-summary-img-wrap img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.up-summary-total-label {
	font-size: 10px;
	font-weight: 800;
	color: #a08c5a;
	text-transform: uppercase;
	letter-spacing: 2.5px;
	margin-bottom: 2px;
}

.up-summary-total {
	font-size: 34px;
	font-weight: 900;
	color: #2d2a1e;
	margin: 2px 0 4px;
	letter-spacing: -1px;
}

.up-summary-includes {
	font-size: 12px;
	color: #9a9480;
	font-style: italic;
	margin-bottom: 18px;
}

.up-add-btn {
	width: 100%;
	background: #d4a843;
	color: #fff;
	border: none;
	padding: 14px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 2px;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 2px 8px rgba(212, 168, 67, 0.3);
}

.up-add-btn:hover {
	background: #c49a3a;
	color: #fff;
	box-shadow: 0 4px 14px rgba(212, 168, 67, 0.4);
}

.up-add-btn:active {
	transform: scale(0.98);
}

.up-summary-list {
	text-align: left;
	padding-bottom: 5px;
}

.up-summary-checkout {
	border-top: 1px solid #ede9df;
	padding-top: 24px;
	margin-top: 16px;
}

.up-remove-item {
	color: #dc2626 !important;
	cursor: pointer;
	margin-left: 8px;
	font-size: 15px;
	font-weight: bold;
	line-height: 0.8;
	user-select: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transform: translateY(-1px);
}

.up-remove-item:hover {
	color: #991b1b !important;
}

.up-summary-line {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #333;
	padding: 5px 0;
	line-height: 1.4;
	border-bottom: 1px solid #f5f2ec;
}

.up-summary-line:last-child {
	border-bottom: none;
}

.up-summary-line span:first-child {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 12px;
}

.up-summary-line span:last-child {
	font-weight: 700;
	white-space: nowrap;
	color: #000;
}

.up-summary-price-with-remove {
	display: flex;
	align-items: center;
}

.up-summary-base {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 800;
	color: #333;
	font-style: italic;
	padding: 4px 0 10px 0;
	border-bottom: 1px solid #f5f2ec;
	margin-bottom: 5px;
}

.up-summary-base span:first-child {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-right: 12px;
}

.up-summary-base span:last-child {
	white-space: nowrap;
	color: #000;
}

#prod-upsell .upsell-item {
	position: relative;
}

#prod-upsell .upsell-item:last-child {
	margin-bottom: 0;
}

#prod-upsell .upsell-item:has(input[type="checkbox"]:checked) .grid-item-inner {
	border-color: #eeb819;
	box-shadow: 0 0 0 1px #eeb819;
	z-index: 2;
}

#prod-upsell .upsell-item .grid-item-inner {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 6px 20px;
	display: flex;
	align-items: center;
	margin: 10px 10px 0 10px;
	transition: all 0.2s;
}

#prod-upsell .upsell-item-image-wrap {
	width: 70px;
	height: 70px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5px;
	margin-right: 20px;
	flex-shrink: 0;
	position: relative;
	overflow: visible;
}

#prod-upsell .upsell-item-image-wrap a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

#prod-upsell .upsell-item-image-wrap img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain;
	mix-blend-mode: multiply;
}

#prod-upsell .upsell-item-stock-wrap {
	position: absolute;
	top: -8px;
	left: -8px;
	z-index: 2;
}

#prod-upsell .upsell-item-name-wrap {
	text-align: left;
	flex: 1;
	padding: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

#prod-upsell .upsell-item-name-wrap .upsell-product-name {
	text-align: left;
	display: block;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-size: 14px;
}

#prod-upsell .upsell-view-details {
	font-size: 13px;
	text-decoration: underline;
	margin-top: 4px;
	display: inline-block;
}

#prod-upsell .upsell-view-details:hover {
	text-decoration: none;
}

#prod-upsell .upsell-item-sku {
	font-size: 12px;
}

#prod-upsell .upsell-item-desc {
	font-size: 11px;
	color: #94a3b8;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#prod-upsell .upsell-item-price-wrap {
	text-align: left;
	font-weight: 600;
	font-size: 15px;
	margin-top: 4px;
}

#prod-upsell .upsell-item-checkbox-wrap {
	width: auto;
	padding-left: 15px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

#prod-upsell .upsell-item-checkbox-wrap input[type="checkbox"] {
	width: 24px;
	height: 24px;
	cursor: pointer;
	accent-color: #eeb819;
}

@media (max-width: 991px) {
	.up-sidebar {
		position: static !important;
		margin-top: 20px;
	}
}

@media (max-width: 575px) {
	#prod-upsell {
		margin-right: 0;
		margin-left: 0;
		margin-bottom: 28px;
	}

	#prod-upsell > .col-md-8 {
		padding-right: 0;
		padding-left: 0;
	}

	.up-section {
		margin-bottom: 10px;
	}

	.up-section-header {
		gap: 12px;
		padding: 12px 14px;
		text-align: left;
	}

	.up-section-title {
		flex: 1;
		font-size: 15px;
		line-height: 1.35;
		letter-spacing: 1.4px;
	}

	.up-section-meta {
		flex-shrink: 0;
		gap: 4px;
	}

	.up-section-badge {
		margin-right: 0;
		padding: 4px 8px;
	}

	.up-section-body {
		padding: 2px 0 8px;
	}

	#prod-upsell .upsell-item-row {
		margin-right: 0;
		margin-left: 0;
	}

	#prod-upsell .upsell-item {
		flex: 0 0 100%;
		max-width: 100%;
		padding: 0 8px;
	}

	#prod-upsell .upsell-item .grid-item-inner {
		display: grid;
		grid-template-columns: 92px minmax(0, 1fr) 36px;
		column-gap: 12px;
		min-height: 112px;
		margin: 8px 0 0;
		padding: 10px 12px;
		align-items: center;
	}

	#prod-upsell .upsell-item-image-wrap.grid-item-image-wrap {
		width: 92px !important;
		min-width: 92px !important;
		max-width: 92px !important;
		height: 92px !important;
		min-height: 92px !important;
		margin: 0;
		padding: 5px;
	}

	#prod-upsell .upsell-item-image-wrap.grid-item-image-wrap img {
		width: 100% !important;
		max-width: 100%;
		max-height: 100%;
	}

	#prod-upsell .upsell-item-name-wrap {
		width: auto;
		height: auto;
		font-size: 13px;
		line-height: 1.35;
	}

	#prod-upsell .upsell-item-name-wrap .upsell-product-name {
		white-space: normal;
		overflow: visible;
		text-overflow: clip;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
	}

	#prod-upsell .upsell-item-checkbox-wrap {
		position: static;
		width: 36px;
		height: 44px;
		padding: 0;
		align-self: center;
		justify-content: center;
	}

	#prod-upsell .upsell-item-checkbox-wrap input[type="checkbox"] {
		position: static;
		left: auto;
		width: 24px;
		height: 24px;
		margin: 0;
	}
}
