.shop-cart-page {
	padding-top: 26px;
	padding-bottom: 42px;
}

.shop-cart-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 16px;
}

.shop-cart-title {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	color: #0f172a;
}

.shop-cart-summary {
	margin: 0;
	color: #64748b;
	font-size: 14px;
}

.shop-cart-summary strong {
	position: relative;
	color: #0f172a;
}

.shop-cart-estimate {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
	padding: 13px 14px;
	margin-bottom: 10px;
	display: grid;
	gap: 7px;
}

.shop-cart-estimate-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
	color: #64748b;
}

.shop-cart-estimate-label {
	font-weight: 600;
}

.shop-cart-estimate-value {
	color: #0f172a;
	font-weight: 700;
}

.shop-cart-estimate-payable {
	font-size: 14px;
	color: #0f172a;
}

.shop-cart-estimate-reward {
	color: #166534;
}

.shop-cart-bulk {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #f8fafc;
}

.shop-cart-bulk-select-all {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13px;
	color: #334155;
	font-weight: 700;
	cursor: pointer;
}

.shop-cart-bulk-selected {
	margin-left: auto;
	font-size: 13px;
	color: #64748b;
}

.shop-cart-bulk-selected strong {
	color: #0f172a;
}

.shop-cart-bulk-actions {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.shop-cart-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.shop-cart-list.is-loading {
	opacity: 0.68;
	transition: opacity 0.16s ease;
}

.shop-cart-list.is-loading .shop-cart-action-btn,
.shop-cart-list.is-loading .shop-cart-qty-input {
	cursor: progress;
}

.shop-main {
	position: relative;
	min-height: 220px;
}

.shop-main.shop-cart-loading::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.55);
	z-index: 30;
	pointer-events: none;
}

.shop-main.shop-cart-loading::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	width: 36px;
	height: 36px;
	margin: 0;
	border-radius: 50%;
	border: 3px solid rgba(15, 23, 42, 0.16);
	border-top-color: #334155;
	transform: translate(-50%, -50%);
	animation: shopMainSpinner 0.7s linear infinite;
	z-index: 31;
	pointer-events: none;
}

.shop-cart-action-btn:disabled,
.shop-cart-qty-input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

@keyframes shopMainSpinner {
	from {
		transform: translate(-50%, -50%) rotate(0deg);
	}
	to {
		transform: translate(-50%, -50%) rotate(360deg);
	}
}

.shop-cart-item {
	display: grid;
	grid-template-columns: 34px 92px 1fr;
	gap: 12px;
	padding: 10px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #ffffff;
}

.shop-cart-item-select {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding-top: 6px;
}

.shop-cart-item-select-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.shop-cart-item-select-text {
	font-size: 12px;
	color: #6a7898;
}

.shop-cart-item-thumb-link {
	display: block;
	width: 92px;
	height: 92px;
	border-radius: 10px;
	overflow: hidden;
	background: #f8fafc;
}

.shop-cart-item-thumb,
.shop-cart-item-thumb-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.shop-cart-item-thumb {
	object-fit: cover;
}

.shop-cart-item-thumb-placeholder i {
	font-size: 22px;
	color: #94a3b8;
}

.shop-cart-item-info {
	min-width: 0;
	display: grid;
	gap: 6px;
}

.shop-cart-item-title {
	display: inline-block;
	color: #0f172a;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
}

.shop-cart-item-option {
	margin: 0;
	color: #64748b;
	font-size: 13px;
}

.shop-cart-item-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	font-size: 13px;
	color: #64748b;
}

.shop-cart-item-meta strong {
	color: #0f172a;
}

.shop-cart-item-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.shop-cart-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	min-width: 30px;
	padding: 0 10px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.shop-cart-action-btn:hover {
	background: #f1f5f9;
}

.shop-cart-action-btn:focus-visible,
.shop-cart-qty-input:focus-visible,
.shop-cart-empty-link:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.shop-cart-action-btn-danger {
	border-color: #fecaca;
	background: #fff7f7;
	color: #b91c1c;
}

.shop-cart-action-btn-danger:hover {
	background: #fee2e2;
}

.shop-cart-action-btn-primary {
	border-color: #2563eb;
	background: #2563eb;
	color: #ffffff;
}

.shop-cart-action-btn-primary:hover {
	background: #1d4ed8;
}

.shop-cart-qty-input {
	width: 64px;
	height: 30px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 0 8px;
	font-size: 13px;
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
	color: #0f172a;
	background: #ffffff;
}

.shop-cart-qty-input::-webkit-outer-spin-button,
.shop-cart-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.shop-cart-empty {
	padding: 50px 20px;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	text-align: center;
	color: #64748b;
}

.shop-cart-empty i {
	font-size: 28px;
	margin-bottom: 10px;
	display: inline-block;
}

.shop-cart-empty p {
	margin: 0 0 12px;
}

.shop-cart-empty-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 14px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #334155;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
}

.shop-cart-empty-link:hover {
	background: #f1f5f9;
}

@media (max-width: 720px) {
	.shop-cart-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.shop-cart-bulk {
		flex-wrap: wrap;
		gap: 8px;
		padding: 8px 10px;
	}

	.shop-cart-bulk-select-all,
	.shop-cart-bulk-selected {
		font-size: 12px;
	}

	.shop-cart-bulk-actions {
		gap: 4px;
		flex-wrap: wrap;
	}

	.shop-cart-bulk-actions .shop-cart-action-btn {
		height: 28px;
		min-width: 28px;
		padding: 0 8px;
		border-radius: 7px;
		font-size: 12px;
	}

	.shop-cart-bulk-selected {
		order: 3;
		width: 100%;
		margin-left: 0;
	}

	.shop-cart-item {
		grid-template-columns: 28px 74px 1fr;
	}

	.shop-cart-item-thumb-link {
		width: 74px;
		height: 74px;
	}

	.shop-cart-item-actions {
		gap: 4px;
	}

	.shop-cart-item-actions .shop-cart-action-btn,
	.shop-cart-qty-input {
		height: 28px;
		font-size: 12px;
	}

	.shop-cart-item-actions .shop-cart-action-btn {
		min-width: 28px;
		padding: 0 8px;
	}

	.shop-cart-qty-input {
		width: 56px;
		padding: 0 6px;
	}
}
