/* =====================================================================
   Brina Cart Lifecycle — "Back in Stock" / "Unavailable Items" sections
   and the partial-shortage hint. Cart page only. Scoped to .brina-lc*,
   so the existing cart layout (desktop, tablet 2-column, phone) is not
   touched: the sections render inside the cart column, under the items.
   ===================================================================== */

.brina-lc {
	--lc-ink: #172033;
	--lc-ink-2: #3B4556;
	--lc-muted: #6B7688;
	--lc-line: #E6EAF0;
	--lc-navy: #101C3D;
	--lc-accent: #5B4CF0;
	display: grid;
	gap: 22px;
	margin: 26px 0 4px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--lc-ink);
}

.brina-lc__section {
	padding: 18px 18px 6px;
	background: #FFFFFF;
	border: 1px solid var(--lc-line);
	border-radius: 12px;
}

.brina-lc__title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lc-ink);
}

.brina-lc__intro {
	margin: 4px 0 0;
	font-size: 13.5px;
	line-height: 1.45;
	color: var(--lc-muted);
}

/* Informative, not alarming. */
.brina-lc__note {
	margin: 12px 0 0;
	padding: 9px 12px;
	font-size: 13.5px;
	line-height: 1.45;
	color: #1E3A8A;
	background: #F3F6FE;
	border: 1px solid #DCE4FB;
	border-radius: 9px;
}

.brina-lc__note strong {
	font-weight: 600;
}

.brina-lc__list {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.brina-lc__item {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 16px;
	align-items: start;
	padding: 14px 0;
	border-top: 1px solid var(--lc-line);
}

.brina-lc__list > .brina-lc__item:first-child {
	border-top: 0;
}

.brina-lc__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	padding: 6px;
	background: #FFFFFF;
	border: 1px solid #EEF1F5;
	border-radius: 10px;
	box-sizing: border-box;
	overflow: hidden;
}

.brina-lc__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

.brina-lc__item.is-unavailable .brina-lc__img {
	opacity: 0.6;
	filter: grayscale(0.35);
}

.brina-lc__body {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.brina-lc__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.brina-lc__name {
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--lc-ink);
	text-decoration: none;
}

a.brina-lc__name:hover {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.brina-lc__item.is-unavailable .brina-lc__name {
	color: var(--lc-ink-2);
}

.brina-lc__price {
	flex: none;
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
	color: var(--lc-ink);
}

.brina-lc__status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
	font-size: 13px;
}

.brina-lc__badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	border-radius: 999px;
}

.brina-lc__badge.is-out {
	color: #8F1D1D;
	background: #FDECEC;
}

.brina-lc__badge.is-back {
	color: #14532D;
	background: #E6F6EC;
}

.brina-lc__avail {
	font-weight: 500;
	color: #15803D;
}

.brina-lc__qtynote {
	flex-basis: 100%;
	color: #9A3412;
}

.brina-lc__selection {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: var(--lc-ink-2);
}

.brina-lc__sel {
	white-space: nowrap;
}

.brina-lc__sel-label,
.brina-lc__sep {
	color: var(--lc-muted);
}

.brina-lc__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 14px;
	margin-top: 2px;
}

.brina-lc__qty {
	font-size: 13px;
	color: var(--lc-muted);
}

.brina-lc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
}

#brxe-fugmvg .brina-lc button.brina-lc__move,
.brina-lc button.brina-lc__move {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	height: auto;
	margin: 0;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	color: #FFFFFF;
	background: var(--lc-navy);
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	transform: none;
}

#brxe-fugmvg .brina-lc button.brina-lc__move:hover,
.brina-lc button.brina-lc__move:hover {
	color: #FFFFFF;
	background: #1B2A55;
	transform: none;
}

#brxe-fugmvg .brina-lc button.brina-lc__remove,
.brina-lc button.brina-lc__remove {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	height: auto;
	margin: 0;
	padding: 0 6px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--lc-ink);
	text-decoration: underline;
	text-decoration-color: rgba(23, 32, 51, 0.35);
	text-underline-offset: 3px;
	background: none;
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transform: none;
}

#brxe-fugmvg .brina-lc button.brina-lc__remove:hover,
.brina-lc button.brina-lc__remove:hover {
	color: #B91C1C;
	background: #FEF2F2;
	transform: none;
}

.brina-lc button:focus-visible {
	outline: 2px solid var(--lc-accent);
	outline-offset: 2px;
}

/* Partial shortage hint inside an active cart row. */
.brina-lc-shortage {
	margin: 6px 0 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	color: #9A3412;
}

/* Empty cart (every active item moved out): same column width as its content. */
.cart-empty ~ .brina-lc,
.brina-cart-empty .brina-lc {
	max-width: 820px;
}

@media (max-width: 599.98px) {
	.brina-lc__section {
		padding: 16px 14px 4px;
	}

	.brina-lc__item {
		grid-template-columns: 72px minmax(0, 1fr);
		gap: 12px;
	}

	.brina-lc__media {
		width: 72px;
		height: 72px;
	}

	.brina-lc__head {
		flex-direction: column;
		gap: 2px;
	}
}
