body.checkout-cart .warning,
body.checkout-cart .success {
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid #E5EBF2;
	border-radius: 14px;
	background: #fff;
	color: #223047;
	font-size: 14px;
}
body.checkout-cart .warning { border-color: #FDE68A; background: #FFFBEB; color: #92400E; }
body.checkout-cart .success { border-color: #BBF7D0; background: #F0FDF4; color: #166534; }
body.checkout-cart .warning .close,
body.checkout-cart .success .close { color: inherit; }

.bx-cartpage-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}
.bx-cartpage-lead {
	margin: 0;
	color: #5d7084;
	font-size: 14px;
}
.bx-cartpage-clear,
.bx-cartpage-clearbox button {
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid #E5EBF2;
	border-radius: 12px;
	background: #fff;
	color: #17395E;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}
.bx-cartpage-clear:hover { border-color: #fecaca; color: #b91c1c; }
.bx-cartpage-clearbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	padding: 12px 14px;
	border: 1px solid #FDE68A;
	border-radius: 14px;
	background: #FFFBEB;
}
.bx-cartpage-clearbox[hidden] { display: none; }
.bx-cartpage-clearbox p {
	flex: 1;
	margin: 0;
	color: #92400E;
	font-size: 14px;
	font-weight: 650;
}
#bx-cart-clear-yes {
	border-color: #b91c1c;
	background: #b91c1c;
	color: #fff;
}

.bx-cartpage-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 18px;
	align-items: start;
}

.bx-cartpage-item {
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr) auto;
	gap: 14px;
	align-items: center;
	margin-bottom: 12px;
	padding: 14px;
	border: 1px solid #E5EBF2;
	border-radius: 16px;
	background: #fff;
}

.bx-cartpage-thumb,
.bx-cartpage-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 92px;
	height: 92px;
	border-radius: 14px;
	background: #F6F9FC;
	overflow: hidden;
}
.bx-cartpage-thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.bx-cartpage-name {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #17395E;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}
.bx-cartpage-name a { color: inherit; text-decoration: none; }
.bx-cartpage-name a:hover { color: #0788DF; }
.bx-cartpage-model,
.bx-cartpage-option {
	margin: 4px 0 0;
	color: #5d7084;
	font-size: 12.5px;
	line-height: 1.35;
}
.bx-cartpage-stock {
	margin: 6px 0 0;
	color: #B45309;
	font-size: 12px;
	font-weight: 700;
}
.bx-cartpage-qty {
	display: inline-flex;
	align-items: center;
	height: 44px;
	margin-top: 10px;
	border: 1px solid #E5EBF2;
	border-radius: 12px;
	background: #fff;
}
.bx-cartpage-qty button,
.bx-cartpage-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	color: #17395E;
	font-size: 18px;
	cursor: pointer;
}
.bx-cartpage-qty button:disabled { color: #b7c3d1; cursor: not-allowed; }
.bx-cartpage-qty-input {
	flex: 0 0 56px;
	width: 56px !important;
	min-width: 56px;
	height: 42px !important;
	margin: 0 !important;
	padding: 0 2px !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: #17395E !important;
	font-size: 15px !important;
	font-weight: 750;
	line-height: 42px !important;
	text-align: center;
	box-shadow: none !important;
}
.bx-cartpage-side { text-align: right; }
.bx-cartpage-unit {
	margin: 0;
	color: #5d7084;
	font-size: 13px;
}
.bx-cartpage-line {
	margin: 2px 0 0;
	color: #17395E;
	font-size: 16px;
	font-weight: 750;
}
.bx-cartpage-remove {
	margin-top: 8px;
	padding: 0 8px;
	border: 1px solid #E5EBF2;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 700;
}
.bx-cartpage-remove:hover { border-color: #fecaca; color: #b91c1c; }

.bx-cartpage-summary {
	position: sticky;
	top: calc(var(--bx-header-h, 120px) + 16px);
	padding: 18px;
	border: 1px solid #E5EBF2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(23, 57, 94, 0.06);
}
.bx-cartpage-summary h2 {
	margin: 0 0 12px;
	color: #17395E;
	font-size: 18px;
	font-weight: 750;
}
.bx-cartpage-total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid #EEF3F8;
	color: #5d7084;
	font-size: 14px;
}
.bx-cartpage-total strong { color: #223047; }
.bx-cartpage-total:last-child {
	border-bottom: 0;
	color: #17395E;
	font-size: 16px;
	font-weight: 750;
}
.bx-cartpage-total:last-child strong { color: #17395E; }
.bx-cartpage-hint,
.bx-cartpage-note {
	margin: 12px 0;
	padding: 10px 12px;
	border-radius: 12px;
	background: #EAF5FF;
	color: #17395E;
	font-size: 13px;
	line-height: 1.45;
}
.bx-cartpage-note { margin: 0 0 14px; }
.bx-cartpage-note a { color: #0788DF; }
.bx-cartpage-primary,
.bx-cartpage-secondary,
.bx-cartpage-empty a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin-top: 8px;
	padding: 10px 14px;
	border-radius: 14px;
	font-size: 14px;
	font-weight: 750;
	text-decoration: none;
}
.bx-cartpage-primary,
.bx-cartpage-empty a {
	background: #17395E;
	color: #fff;
}
.bx-cartpage-primary:hover,
.bx-cartpage-empty a:hover { background: #0788DF; color: #fff; }
.bx-cartpage-secondary {
	border: 1px solid #E5EBF2;
	background: #EAF5FF;
	color: #17395E;
}
.bx-cartpage-secondary:hover { border-color: #0788DF; color: #0788DF; }

.bx-cartpage-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 460px;
	margin: 12px auto 28px;
	padding: 36px 22px;
	border: 1px solid #E5EBF2;
	border-radius: 16px;
	background: #fff;
	text-align: center;
}
.bx-cartpage-empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin-bottom: 14px;
	border-radius: 20px;
	background: #EAF5FF;
	color: #17395E;
}
.bx-cartpage-empty h2 {
	margin: 0 0 8px;
	color: #17395E;
	font-size: 22px;
	font-weight: 750;
}
.bx-cartpage-empty p {
	margin: 0 0 8px;
	color: #5d7084;
	font-size: 14px;
}
.bx-cartpage-empty a { min-width: 220px; }

.bx-cartpage button:focus-visible,
.bx-cartpage a:focus-visible,
.bx-cartpage-empty a:focus-visible {
	outline: 2px solid #0788DF;
	outline-offset: 2px;
}

@media (max-width: 991px) {
	.bx-cartpage-layout { grid-template-columns: 1fr; }
	.bx-cartpage-summary { position: static; }
}
@media (max-width: 640px) {
	.bx-cartpage-head { align-items: flex-start; }
	.bx-cartpage-clearbox { flex-wrap: wrap; }
	.bx-cartpage-item {
		grid-template-columns: 84px minmax(0, 1fr);
	}
	.bx-cartpage-thumb,
	.bx-cartpage-ph { width: 84px; height: 84px; }
	.bx-cartpage-side {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		text-align: left;
	}
	.bx-cartpage-unit,
	.bx-cartpage-line { grid-column: 1; }
	.bx-cartpage-remove {
		grid-column: 2;
		grid-row: 1 / span 2;
		margin-top: 0;
		justify-self: end;
	}
}
