/* WebRocket Cart — Long Châu inspired layout (aligned with checkout) */

body.woocommerce-cart {
	background: #f5f7fa;
}

body.woocommerce-cart .woocommerce-notices-wrapper {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.wrcf-cart-shell {
	--wrcf-cart-blue: #0055d4;
	--wrcf-cart-bg: #f5f7fa;
	--wrcf-cart-card: #fff;
	--wrcf-cart-text: #1a1a2e;
	--wrcf-cart-muted: #6b7280;
	--wrcf-cart-border: #eef1f5;
	--wrcf-cart-input-border: #c1c1c1;
	--wrcf-cart-radius: 12px;
	--wrcf-cart-orange: #f57c00;
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1rem 3rem;
	font-family: var(--wrcf-font, system-ui, sans-serif);
	color: var(--wrcf-cart-text);
}

/* Back link */
.wrcf-cart-back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 1.25rem;
	color: var(--wrcf-cart-text);
	text-decoration: none;
	font-weight: 500;
	font-size: 0.9375rem;
}
.wrcf-cart-back:hover {
	color: var(--wrcf-cart-blue);
}

/* Layout */
.wrcf-cart__layout {
	display: grid;
	gap: 1.25rem;
	align-items: start;
}
@media (min-width: 992px) {
	.wrcf-cart__layout {
		grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
		gap: 1.5rem;
	}
}

/* Section card */
.wrcf-cart-section {
	background: var(--wrcf-cart-card);
	border: 1px solid var(--wrcf-cart-border);
	border-radius: var(--wrcf-cart-radius);
	padding: 1rem 1.125rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.wrcf-cart-shipping-banner {
	background: #eef4ff;
	color: var(--wrcf-cart-blue);
	font-size: 0.8125rem;
	padding: 0.625rem 0.875rem;
	border-radius: 8px;
	margin-bottom: 0.875rem;
	text-align: center;
	line-height: 1.45;
}
.wrcf-cart-shipping-banner--active {
	background: #ecfdf5;
	color: #047857;
}

/* Table head */
.wrcf-cart-table-head {
	display: none;
	align-items: center;
	gap: 0.75rem;
	padding: 0.625rem 0 0.875rem;
	border-bottom: 1px solid var(--wrcf-cart-border);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wrcf-cart-muted);
}
@media (min-width: 768px) {
	.wrcf-cart-table-head {
		display: grid;
		grid-template-columns: auto 72px minmax(0, 1fr) 110px 120px 80px 36px;
	}
}
.wrcf-cart-select-all {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
	margin: 0;
	font-weight: 600;
	color: var(--wrcf-cart-text);
}
.wrcf-cart-select-all__input,
.wrcf-cart-product__checkbox {
	width: 18px;
	height: 18px;
	accent-color: var(--wrcf-cart-blue);
	cursor: pointer;
}
.wrcf-cart-table-head__price { grid-column: 4; text-align: right; }
.wrcf-cart-table-head__qty { grid-column: 5; text-align: center; }
.wrcf-cart-table-head__unit { grid-column: 6; text-align: center; }

/* Product list */
.wrcf-cart-products {
	list-style: none;
	margin: 0;
	padding: 0;
}
.wrcf-cart-product {
	display: grid;
	grid-template-columns: auto 72px minmax(0, 1fr);
	grid-template-areas:
		"select thumb info"
		"select price qty"
		"select unit remove";
	gap: 0.5rem 0.875rem;
	align-items: start;
	padding: 0.875rem 0;
	border-bottom: 1px solid var(--wrcf-cart-border);
}
.wrcf-cart-product:last-child {
	border-bottom: none;
}
.wrcf-cart-product__select { grid-area: select; align-self: center; }
.wrcf-cart-product__thumb { grid-area: thumb; align-self: start; }
.wrcf-cart-product__thumb img {
	width: 72px;
	height: 72px;
	object-fit: contain;
	border-radius: 8px;
	background: #fafafa;
	border: 1px solid var(--wrcf-cart-border);
}
.wrcf-cart-product__info { grid-area: info; min-width: 0; }
.wrcf-cart-product__name {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.25rem;
}
.wrcf-cart-product__name a {
	color: inherit;
	text-decoration: none;
}
.wrcf-cart-product__name a:hover {
	color: var(--wrcf-cart-blue);
}
.wrcf-cart-product__badges {
	margin-top: 0.125rem;
}
.wrcf-cart-product__promo-hint {
	margin-top: 0.375rem;
	padding: 0.5rem 0.625rem;
	background: #f3f4f6;
	border-radius: 8px;
	font-size: 0.75rem;
	line-height: 1.45;
	color: var(--wrcf-cart-muted);
}
.wrcf-cart-product__price-col { grid-area: price; }
.wrcf-cart-product__price {
	display: block;
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--wrcf-cart-blue);
	line-height: 1.3;
}
.wrcf-cart-product__price-regular {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.8125rem;
	color: var(--wrcf-cart-muted);
	text-decoration: line-through;
}
.wrcf-cart-product__qty-col { grid-area: qty; }
.wrcf-cart-product__unit-col { grid-area: unit; }
.wrcf-cart-product__unit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--wrcf-cart-border);
	border-radius: 999px;
	font-size: 0.8125rem;
	color: var(--wrcf-cart-text);
	background: #fff;
}
.wrcf-cart-product__unit--empty {
	color: var(--wrcf-cart-muted);
	border-color: transparent;
	background: transparent;
}
.wrcf-cart-product__remove {
	grid-area: remove;
	justify-self: end;
	align-self: center;
}
.woocommerce-cart-form a.remove.wrcf-cart-product__remove-link,
.wrcf-cart-product__remove-link.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	color: #94a3b8 !important;
	font-size: 0;
	line-height: 0;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s;
}

.woocommerce-cart-form a.remove.wrcf-cart-product__remove-link::before,
.wrcf-cart-product__remove-link.remove::before {
	content: none !important;
	display: none !important;
}
.wrcf-cart-product__remove-link svg {
	display: block;
	flex-shrink: 0;
}
.woocommerce-cart-form a.remove.wrcf-cart-product__remove-link:hover,
.woocommerce-cart-form a.remove.wrcf-cart-product__remove-link:focus-visible,
.wrcf-cart-product__remove-link.remove:hover,
.wrcf-cart-product__remove-link.remove:focus-visible {
	background: #fef2f2;
	color: #dc2626 !important;
	outline: none;
}

@media (min-width: 768px) {
	.wrcf-cart-product {
		grid-template-columns: auto 72px minmax(0, 1fr) 110px 120px 80px 36px;
		grid-template-areas: "select thumb info price qty unit remove";
		align-items: center;
	}
	.wrcf-cart-product__price-col,
	.wrcf-cart-product__qty-col,
	.wrcf-cart-product__unit-col,
	.wrcf-cart-product__remove {
		justify-self: unset;
		align-self: center;
	}
	.wrcf-cart-product__price-col { text-align: right; }
	.wrcf-cart-product__qty-col { justify-self: center; }
	.wrcf-cart-product__unit-col { justify-self: center; }
}

/* Quantity stepper (WRCF qty-control template) */
.woocommerce-cart-form .quantity.wrcf-qty-control,
.woocommerce-cart-form .wrcf-qty-control {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	max-width: 100%;
	margin: 0;
}

.woocommerce-cart-form .wrcf-qty-control__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #f3f4f6;
	color: #4b5563;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.woocommerce-cart-form .wrcf-qty-control__btn:hover:not(:disabled) {
	background: #e5e7eb;
	color: #111827;
}

.woocommerce-cart-form .wrcf-qty-control__btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.wrcf-cart-product .quantity .wrcf-qty-control__input,
.wrcf-cart-product .quantity input.qty {
	width: 2.5rem !important;
	min-width: 2.5rem;
	min-height: 36px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	text-align: center;
	font-weight: 600;
	font-size: 0.9375rem;
	background: transparent;
	box-shadow: none !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

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

/* Gifts block */
.wrcf-cart-product--gift-items {
	grid-template-columns: 1fr;
	grid-template-areas: "gifts";
	padding-top: 0.75rem;
	border-top: 1px dashed var(--wrcf-cart-border);
}
.wrcf-cart-product__gifts-label {
	margin: 0 0 0.375rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--wrcf-cart-muted);
}
.wrcf-cart-product__gifts .hotdeal-gift-line {
	margin-bottom: 0.5rem;
}
.wrcf-cart-product__gifts .hotdeal-gift-line:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.wrcf-cart-product__select {
		display: none;
	}
	.wrcf-cart-product {
		grid-template-columns: 56px minmax(0, 1fr);
		grid-template-areas:
			"thumb info"
			"price price"
			"qty unit"
			"remove remove";
	}
	.wrcf-cart-product__thumb img {
		width: 56px;
		height: 56px;
	}
	.wrcf-cart-product__remove {
		justify-self: start;
	}
}

/* Sidebar receipt */
.wrcf-cart__sidebar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
@media (min-width: 992px) {
	.wrcf-cart__sidebar {
		position: sticky;
		top: 1rem;
		align-self: start;
	}
}

.wrcf-cart-receipt {
	background: var(--wrcf-cart-card);
	border: 1px solid var(--wrcf-cart-border);
	border-radius: var(--wrcf-cart-radius) var(--wrcf-cart-radius) 0 0;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.wrcf-cart-receipt__edge {
	height: 14px;
	background-color: var(--wrcf-cart-card);
	background-image: radial-gradient(circle at 10px 14px, var(--wrcf-cart-bg) 10px, transparent 10.5px);
	background-size: 20px 14px;
	background-repeat: repeat-x;
}

/* Promo / coupon accordion */
.wrcf-cart-promo__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 1rem;
	border: none;
	background: #eef4ff;
	color: var(--wrcf-cart-blue);
	font-weight: 600;
	font-size: 0.875rem;
	cursor: pointer;
	text-align: left;
}
.wrcf-cart-promo__chevron {
	flex-shrink: 0;
	transition: transform 0.2s;
}
.wrcf-cart-promo.is-open .wrcf-cart-promo__chevron {
	transform: rotate(90deg);
}
.wrcf-cart-promo__panel {
	padding: 0 1rem 1rem;
	background: #eef4ff;
}
.wrcf-cart-coupon {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 0.5rem;
}
.wrcf-cart-coupon__input {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 44px;
	padding: 0.625rem 0.875rem;
	border: 1px solid var(--wrcf-cart-input-border) !important;
	border-radius: 999px !important;
	font-size: 0.9375rem;
}
.wrcf-cart-coupon__btn {
	flex: 0 0 auto;
	min-height: 44px;
	border-radius: 999px !important;
	padding-inline: 1.25rem;
	white-space: nowrap;
}

/* Totals */
.wrcf-cart-summary {
	padding: 0 1rem;
}
.wrcf-cart-totals__row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	padding: 0.5rem 0;
	font-size: 0.875rem;
}
.wrcf-cart-totals__label {
	color: var(--wrcf-cart-muted);
}
.wrcf-cart-totals__value {
	font-weight: 600;
	text-align: right;
}
.wrcf-cart-totals__value--discount,
.wrcf-cart-totals__value--saved {
	color: var(--wrcf-cart-orange);
}
.wrcf-cart-totals__row--grand {
	border-top: 1px dashed var(--wrcf-cart-border);
	margin-top: 0.5rem;
	padding-top: 0.875rem;
}
.wrcf-cart-totals__row--grand .wrcf-cart-totals__label {
	color: var(--wrcf-cart-text);
	font-weight: 700;
	font-size: 1rem;
}
.wrcf-cart-totals__value--grand {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.125rem;
	color: var(--wrcf-cart-blue);
	font-size: 1.25rem;
	font-weight: 800;
}
.wrcf-cart-totals__value-strike {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--wrcf-cart-muted);
	text-decoration: line-through;
}

/* Proceed */
.wrcf-cart-proceed {
	padding: 0.75rem 1rem 1rem;
}
.wrcf-cart-proceed__btn {
	display: block;
	width: 100%;
	min-height: 48px;
	border-radius: 999px !important;
	background: var(--wrcf-cart-blue) !important;
	border-color: var(--wrcf-cart-blue) !important;
	font-size: 1rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	line-height: 48px;
}
.wrcf-cart-proceed__legal {
	margin: 0.625rem 0 0;
	font-size: 0.6875rem;
	color: var(--wrcf-cart-muted);
	text-align: center;
	line-height: 1.45;
}

/* App banner */
.wrcf-cart-banner {
	overflow: hidden;
	border-radius: var(--wrcf-cart-radius);
}
.wrcf-cart-banner__link {
	display: block;
	line-height: 0;
}
.wrcf-cart-banner__image {
	display: block;
	width: 100%;
	height: auto;
}

/* Shipping estimator */
.wrcf-cart-shipping {
	margin-top: 1rem;
	padding: 1rem 1.125rem;
	background: var(--wrcf-cart-card);
	border: 1px solid var(--wrcf-cart-border);
	border-radius: var(--wrcf-cart-radius);
	font-size: 0.875rem;
}

/* Recommended */
.wrcf-cart-recommended {
	margin-top: 1rem;
	padding: 1rem 1.125rem;
	background: var(--wrcf-cart-card);
	border: 1px solid var(--wrcf-cart-border);
	border-radius: var(--wrcf-cart-radius);
}
.wrcf-cart-recommended h2 {
	margin: 0 0 1rem;
	font-size: 1.0625rem;
	font-weight: 700;
}

/* Empty cart */
.wrcf-cart-empty__card {
	background: var(--wrcf-cart-card);
	border: 1px solid var(--wrcf-cart-border);
	border-radius: var(--wrcf-cart-radius);
	padding: 2.5rem 1.5rem;
	text-align: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.wrcf-cart-empty__icon {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
	color: var(--wrcf-cart-muted);
}
.wrcf-cart-empty__message {
	margin: 0 0 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	color: var(--wrcf-cart-text);
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
}
.wrcf-cart-empty .wrcf-btn--primary {
	min-height: 48px;
	border-radius: 999px;
	padding-inline: 1.5rem;
}

/* Hide default WC cart table remnants */
.wrcf-cart .shop_table_responsive thead,
.wrcf-cart .cart-collaterals .cart_totals > h2 {
	display: none;
}

@media (max-width: 991px) {
	.wrcf-cart__sidebar {
		order: 2;
	}
	.wrcf-cart__main {
		order: 1;
	}
}

/* Mini cart popup */
.wrcf-mini-cart {
	position: absolute;
	top: calc(100% + 0.75rem);
	right: 0;
	z-index: 120;
	width: min(360px, calc(100vw - 2rem));
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(0.5rem);
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.wrcf-mini-cart.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.wrcf-mini-cart__panel {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1.25rem;
	border-radius: 1.25rem;
	background: #fff;
	box-shadow: 0 22px 48px rgba(18, 45, 74, 0.18);
}

.wrcf-mini-cart__header,
.wrcf-mini-cart__footer,
.wrcf-mini-cart__item {
	display: flex;
	align-items: center;
}

.wrcf-mini-cart__header,
.wrcf-mini-cart__footer {
	justify-content: space-between;
	gap: 1rem;
}

.wrcf-mini-cart__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
}

.wrcf-mini-cart__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #eef2f6;
	color: #49637f;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.wrcf-mini-cart__items {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.wrcf-mini-cart__item {
	align-items: flex-start;
	gap: 0.85rem;
}

.wrcf-mini-cart__thumb {
	flex: 0 0 3.25rem;
}

.wrcf-mini-cart__thumb img {
	display: block;
	width: 3.25rem;
	height: 3.25rem;
	object-fit: contain;
	border-radius: 0.875rem;
	border: 1px solid #e6edf5;
	background: #fff;
}

.wrcf-mini-cart__content {
	flex: 1 1 auto;
	min-width: 0;
}

.wrcf-mini-cart__name,
.wrcf-mini-cart__name a {
	color: #1d2b3a;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}

.wrcf-mini-cart__name a {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.wrcf-mini-cart__price {
	margin-top: 0.2rem;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
}

.wrcf-mini-cart__meta {
	margin-top: 0.15rem;
	font-size: 0.875rem;
	line-height: 1.35;
	color: #6b7280;
}

.wrcf-mini-cart__actions {
	flex: 0 0 auto;
	padding-top: 0.15rem;
}

.wrcf-mini-cart a.remove.wrcf-mini-cart__remove,
.wrcf-mini-cart__remove.remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 8px;
	color: #94a3b8 !important;
	font-size: 0;
	line-height: 0;
	text-decoration: none !important;
	transition: background 0.15s, color 0.15s;
}

.wrcf-mini-cart a.remove.wrcf-mini-cart__remove::before,
.wrcf-mini-cart__remove.remove::before {
	content: none !important;
	display: none !important;
}

.wrcf-mini-cart__remove svg {
	display: block;
	flex-shrink: 0;
}

.wrcf-mini-cart a.remove.wrcf-mini-cart__remove:hover,
.wrcf-mini-cart a.remove.wrcf-mini-cart__remove:focus-visible,
.wrcf-mini-cart__remove.remove:hover,
.wrcf-mini-cart__remove.remove:focus-visible {
	background: #fef2f2;
	color: #dc2626 !important;
	outline: none;
}

.wrcf-mini-cart__count {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #64748b;
}

.wrcf-mini-cart__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0 1.15rem;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.wrcf-mini-cart__empty {
	padding: 0.5rem 0 0.25rem;
}

.wrcf-mini-cart__empty-text {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #64748b;
}

@media (min-width: 768px) {
	.wrcf-mini-cart__close {
		display: none;
	}
}
