/* Flyout Cart — CMYK / education brand palette
 * Navy   #234191  | Blue    #006cfa
 * Green  #488c00  | Green-d #2e5c00
 * Magenta #a8007e
 */
.flyout-cart {
	position: fixed;
	top: 0;
	left: 0;
	width: 380px;
	max-width: calc(100vw - 30px);
	background: #fff;
	box-shadow: 0 14px 40px rgba(35, 65, 145, 0.18);
	border-radius: 14px;
	border: 1px solid rgba(35, 65, 145, 0.08);
	z-index: 99999;
	font-family: 'Lexend Deca', 'Noto Sans Marchen', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: #234191;
	overflow: visible;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-12px);
	transition: opacity 0.25s ease,
	            transform 0.25s ease,
	            visibility 0s linear 0.25s;
}

.flyout-cart.is-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.25s ease,
	            transform 0.25s ease,
	            visibility 0s linear 0s;
}

.flyout-cart__arrow {
	position: absolute;
	top: -7px;
	right: 24px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-top: 1px solid rgba(35, 65, 145, 0.08);
	border-left: 1px solid rgba(35, 65, 145, 0.08);
	transform: rotate(45deg);
	pointer-events: none;
}

/* CMYK gradient stripe at the very top of the panel */
.flyout-cart__stripe {
	height: 4px;
	background: linear-gradient(90deg,
		#488c00 0%,
		#006cfa 50%,
		#a8007e 100%);
	border-radius: 14px 14px 0 0;
}

/* HEADER */
.flyout-cart__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px 12px;
	background: #fff;
	position: relative;
	z-index: 1;
}

.flyout-cart__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #f0f9e4;
	color: #2e5c00;
	font-weight: 700;
	font-size: 11px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	padding: 6px 14px 6px 12px;
	border-radius: 999px;
	line-height: 1;
}

.flyout-cart__title-dot {
	width: 7px;
	height: 7px;
	background: #488c00;
	border-radius: 50%;
	display: inline-block;
}

.flyout-cart__close {
	background: transparent;
	border: 0;
	color: #9aa3bd;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.15s;
}

.flyout-cart__close:hover {
	color: #a8007e;
}

/* BODY / ITEM LIST */
.flyout-cart__body {
	max-height: 360px;
	overflow-y: auto;
	background: #fff;
	border-top: 1px solid #f0f2f7;
}

.flyout-cart__empty {
	padding: 32px 16px;
	text-align: center;
	color: #6b7290;
	font-size: 13px;
	font-weight: 500;
}

.flyout-cart__item {
	display: flex;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #f0f2f7;
	align-items: flex-start;
	transition: background 0.18s, opacity 0.15s;
	position: relative;
}

.flyout-cart__item:last-child {
	border-bottom: 0;
}

.flyout-cart__item:hover {
	background: #f7faff;
}

.flyout-cart__item.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.flyout-cart__item-img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid #e8eaf2;
	flex-shrink: 0;
	background: #fff;
}

.flyout-cart__item-content {
	flex: 1;
	min-width: 0;
}

.flyout-cart__item-name {
	font-size: 13px;
	font-weight: 600;
	color: #234191;
	margin: 0 0 2px;
	line-height: 1.35;
	word-wrap: break-word;
	padding-right: 22px;
}

.flyout-cart__item-variation {
	font-size: 11px;
	color: #6b7290;
	margin: 0 0 8px;
	line-height: 1.3;
	font-weight: 500;
}

.flyout-cart__item-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 6px;
}

.flyout-cart__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d8dcec;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

.flyout-cart__qty-btn {
	background: #fff;
	border: 0;
	width: 28px;
	height: 28px;
	cursor: pointer;
	color: #234191;
	font-size: 15px;
	line-height: 1;
	font-weight: 700;
	padding: 0;
	transition: background 0.15s, color 0.15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.flyout-cart__qty-btn:hover {
	background: #006cfa;
	color: #fff;
}

.flyout-cart__qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
	background: #fff;
	color: #234191;
}

.flyout-cart__qty-value {
	min-width: 30px;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #234191;
	border-left: 1px solid #d8dcec;
	border-right: 1px solid #d8dcec;
	height: 28px;
	line-height: 28px;
	padding: 0 4px;
	font-family: inherit;
}

.flyout-cart__item-price {
	font-weight: 700;
	color: #234191;
	font-size: 14px;
	white-space: nowrap;
}

.flyout-cart__remove {
	position: absolute;
	top: 12px;
	right: 14px;
	background: transparent;
	border: 0;
	padding: 5px;
	color: #b0b6c8;
	cursor: pointer;
	transition: color 0.15s, background 0.15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	line-height: 1;
}

.flyout-cart__remove:hover {
	color: #a8007e;
	background: #fce5f3;
}

.flyout-cart__remove svg {
	width: 14px;
	height: 14px;
	display: block;
}

/* FOOTER */
.flyout-cart__footer {
	padding: 14px 18px 16px;
	background: #fafbff;
	border-top: 1px solid #e8eaf2;
	border-radius: 0 0 14px 14px;
}

.flyout-cart__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 12px;
}

.flyout-cart__subtotal-label {
	color: #234191;
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 1.2px;
}

.flyout-cart__subtotal-value {
	color: #234191;
	font-weight: 800;
	font-size: 18px;
	letter-spacing: -0.2px;
}

.flyout-cart__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.flyout-cart__btn {
	display: block;
	text-align: center;
	padding: 12px 14px;
	border-radius: 10px;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.1s;
	box-shadow: none;
	border: 0;
	cursor: pointer;
	line-height: 1.3;
	font-family: inherit;
}

.flyout-cart__btn:hover {
	text-decoration: none !important;
}

.flyout-cart__btn:active {
	transform: translateY(1px);
}

.flyout-cart__btn--secondary {
	background: #fff;
	color: #234191 !important;
	border: 1.5px solid #d8dcec;
}

.flyout-cart__btn--secondary:hover {
	background: #f0f4ff;
	border-color: #234191;
	color: #234191 !important;
}

.flyout-cart__btn--primary {
	background: #006cfa;
	color: #fff !important;
	border: 1.5px solid #006cfa;
	box-shadow: 0 4px 12px rgba(0, 108, 250, 0.25);
}

.flyout-cart__btn--primary:hover {
	background: #234191;
	border-color: #234191;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(35, 65, 145, 0.35);
}

/* MOBILE — full-width drawer, larger touch targets */
@media (max-width: 600px) {
	.flyout-cart {
		left: 10px !important;
		right: 10px !important;
		width: auto !important;
		max-width: none;
		border-radius: 12px;
	}

	.flyout-cart__arrow {
		display: none;
	}

	.flyout-cart__stripe {
		border-radius: 12px 12px 0 0;
	}

	.flyout-cart__header {
		padding: 16px 18px 14px;
	}

	.flyout-cart__title {
		font-size: 12px;
		padding: 7px 14px 7px 12px;
	}

	.flyout-cart__close {
		font-size: 30px;
		padding: 0 8px;
		min-width: 36px;
		min-height: 36px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.flyout-cart__body {
		max-height: 50vh;
	}

	.flyout-cart__item {
		padding: 16px 18px;
	}

	.flyout-cart__item-img {
		width: 60px;
		height: 60px;
	}

	.flyout-cart__item-name {
		font-size: 14px;
	}

	.flyout-cart__item-variation {
		font-size: 12px;
	}

	.flyout-cart__qty-btn {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	.flyout-cart__qty-value {
		min-width: 36px;
		height: 36px;
		line-height: 36px;
		font-size: 14px;
	}

	.flyout-cart__item-price {
		font-size: 15px;
	}

	.flyout-cart__remove {
		padding: 8px;
		top: 12px;
		right: 12px;
	}

	.flyout-cart__remove svg {
		width: 16px;
		height: 16px;
	}

	.flyout-cart__footer {
		padding: 16px 18px 18px;
		border-radius: 0 0 12px 12px;
	}

	.flyout-cart__subtotal-value {
		font-size: 20px;
	}

	.flyout-cart__btn {
		padding: 14px 14px;
		font-size: 13px;
	}
}
