/**
 * Brina — "Previously in your cart" (inc/brina-cart-recovery.php).
 * A quiet, secondary list under the active cart: smaller type, muted
 * surface, no totals. Actions are real buttons in forms (keyboard, no JS).
 */
/* The cart's WooCommerce wrapper is a grid (items | totals): the section
   spans every column, so it sits on its own row after the cart. */
.woocommerce > .brina-cr {
	grid-column: 1 / -1;
	min-width: 0;
}

/* Desktop cart layout places the items and totals explicitly on row 2. */
@media (min-width: 992px) {
	.woocommerce > .brina-cr { grid-row: 3; }
}

.brina-cr {
	box-sizing: border-box;
	margin: 28px 0 0;
	padding: 18px 20px;
	background: #F8F9FB;
	border: 1px solid #E3E7EF;
	border-radius: 12px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
	color: #172033;
}

.brina-cr .brina-cr__title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: #172033;
}

.brina-cr__intro {
	margin: 4px 0 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #5B6475;
}

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

.brina-cr__item {
	display: grid;
	grid-template-columns: 56px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	margin: 0;
	padding: 10px 12px;
	background: #FFFFFF;
	border: 1px solid #E7EAF0;
	border-radius: 10px;
}

.brina-cr__item.is-unavailable .brina-cr__media { opacity: .55; }

.brina-cr__media img,
.brina-cr__img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
	background: #F4F6F9;
	border-radius: 8px;
}

.brina-cr__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 13px;
	line-height: 1.4;
}

.brina-cr .brina-cr__name {
	overflow: hidden;
	font-size: 14px;
	font-weight: 600;
	color: #172033;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.brina-cr a.brina-cr__name:hover { text-decoration: underline; }

.brina-cr__meta { color: #5B6475; }

.brina-cr__price { font-weight: 600; }

.brina-cr__price del { margin-right: 4px; font-weight: 400; color: #6B7280; }

.brina-cr__price ins { text-decoration: none; }

.brina-cr__status.is-unavailable {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	color: #8A1C1C;
}

.brina-cr__status.is-unavailable::before {
	content: "";
	width: 8px;
	height: 8px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
}

.brina-cr__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.brina-cr__form { margin: 0; }

.brina-cr .brina-cr__add,
.brina-cr .brina-cr__remove {
	min-height: 36px;
	padding: 6px 14px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 8px;
	cursor: pointer;
}

.brina-cr .brina-cr__add {
	color: #FFFFFF;
	background: #101C3D;
	border: 1px solid #101C3D;
}

.brina-cr .brina-cr__add:hover { background: #1B2A55; }

.brina-cr .brina-cr__remove {
	color: #3A4458;
	background: transparent;
	border: 1px solid #CDD3E0;
}

.brina-cr .brina-cr__remove:hover { background: #F1F3F7; }

.brina-cr .brina-cr__add:focus-visible,
.brina-cr .brina-cr__remove:focus-visible,
.brina-cr a.brina-cr__name:focus-visible {
	outline: 2px solid #5B4CF0;
	outline-offset: 2px;
}

@media (max-width: 559.98px) {
	.brina-cr { padding: 16px 14px; }

	.brina-cr__item {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.brina-cr__media img,
	.brina-cr__img { width: 48px; height: 48px; }

	.brina-cr__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

/* ---- Empty cart (woocommerce/cart/cart-empty.php) ---------------------
   One centred, intentional empty state under the page header card, in the
   same border / radius language; spans the cart's two-column grid. */
.woocommerce > .brina-cart-empty {
	grid-column: 1 / -1;
}

.brina-cart-empty {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 20px 0 0;
	padding: 44px 24px 48px;
	text-align: center;
	background: #FFFFFF;
	border: 1px solid #E1E7EF;
	border-radius: 12px;
	font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.brina-cart-empty__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 6px;
	color: #4A3BD6;
	background: #F1EFFE;
	border-radius: 50%;
}

.brina-cart-empty .brina-cart-empty__title {
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #172033;
}

.brina-cart-empty__text {
	max-width: 420px;
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #5B6475;
}

.brina-cart-empty .brina-cart-empty__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin-top: 12px;
	padding: 0 26px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	color: #FFFFFF;
	text-decoration: none;
	background: #101C3D;
	border-radius: 10px;
	transition: background-color .15s ease;
}

.brina-cart-empty .brina-cart-empty__cta:hover { background: #1B2A55; color: #FFFFFF; }

.brina-cart-empty .brina-cart-empty__cta:focus-visible {
	outline: 2px solid #5B4CF0;
	outline-offset: 3px;
}

/* The header subline ("Review your items before proceeding to checkout.")
   does not apply to an empty cart. */
body.woocommerce-cart:has(.brina-cart-empty) .brina-cart-page .brxe-text-basic:not(:first-child) {
	display: none;
}

@media (max-width: 559.98px) {
	.brina-cart-empty { padding: 36px 18px 40px; }
	.brina-cart-empty .brina-cart-empty__title { font-size: 20px; }
}
