/**
 * Signal Pack Global Components — Cart (frontend only)
 * Uses existing brand CSS variables with safe fallbacks (same pattern
 * as the other components in this plugin). Depends on buttons.css for
 * .spgc-btn-* / .spgc-icon-btn / .spgc-quantity-selector / .spgc-badge.
 */

.spgc-drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(23, 22, 46, 0.5);
	z-index: 9200;
	display: none;
}
.spgc-drawer-overlay.spgc-is-open { display: block; }

.spgc-mini-cart {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 400px;
	max-width: 92vw;
	background: var(--paper, #ffffff);
	z-index: 9201;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	box-shadow: 0 18px 40px rgba(23, 22, 46, 0.14);
}
.spgc-mini-cart.spgc-is-open { transform: translateX(0); }

.spgc-mini-cart-head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 20px; border-bottom: 1px solid var(--line, rgba(23, 22, 46, 0.10));
}
.spgc-mini-cart-head h3 { font-size: 17px; margin: 0; }
.spgc-mini-cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.spgc-mini-cart-foot { padding: 20px; border-top: 1px solid var(--line, rgba(23, 22, 46, 0.10)); }

.spgc-cart-item {
	display: flex; gap: 14px; padding: 14px 0;
	border-bottom: 1px solid var(--line, rgba(23, 22, 46, 0.10));
	transition: opacity 0.2s ease, max-height 0.25s ease;
}
.spgc-cart-item:last-child { border-bottom: none; }
.spgc-cart-item.spgc-is-removed { opacity: 0; max-height: 0; overflow: hidden; padding: 0; }

.spgc-cart-item-info { flex: 1; min-width: 0; }
.spgc-cart-item-info h5 { font-size: 13.5px; margin: 0 0 3px; }
.spgc-cart-item-options { font-size: 11.5px; color: var(--grey-text, #55536b); margin-bottom: 8px; }
.spgc-cart-item-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.spgc-cart-item-price { font-weight: 700; color: var(--navy, #2C2A78); font-size: 13.5px; }
.spgc-cart-item-remove { font-size: 11.5px; color: var(--grey-text, #55536b); background: none; border: none; padding: 0; cursor: pointer; }
.spgc-cart-item-remove:hover { color: #c8151f; text-decoration: underline; }

.spgc-cart-subtotal-row {
	display: flex; justify-content: space-between; align-items: center;
	font-weight: 700; font-size: 16px; color: var(--ink, #17162e); margin-bottom: 16px;
}
.spgc-cart-shipping-note { font-size: 11.5px; color: var(--grey-text, #55536b); margin: 0 0 16px; }
.spgc-cart-cta-stack { display: flex; flex-direction: column; gap: 10px; }

.spgc-cart-empty { text-align: center; padding: 60px 20px; }
.spgc-cart-empty svg { width: 44px; height: 44px; stroke: var(--grey-text, #55536b); margin: 0 auto 14px; }
.spgc-cart-empty h4 { margin: 0 0 8px; }
.spgc-cart-empty p { color: var(--grey-text, #55536b); font-size: 13.5px; margin: 0 0 20px; }
