/* Bags and Cages — Cart drawer */

body.bcc-drawer-open { overflow: hidden; }

.bcc-scrim {
	position: fixed;
	inset: 0;
	background: rgba(22, 27, 46, .55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	z-index: var(--bcc-z);
	opacity: 0;
	transition: opacity .3s;
}
.bcc-scrim.is-open { opacity: 1; }
.bcc-scrim[hidden] { display: none; }

.bcc-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 472px;
	max-width: 100vw;
	background: #fff;
	z-index: calc(var(--bcc-z) + 1);
	display: flex;
	flex-direction: column;
	box-shadow: var(--bcc-shadow-xl);
	transform: translateX(102%);
	transition: transform .38s cubic-bezier(.32, .72, 0, 1);
	font-family: var(--bcc-sans);
	font-size: 15px;
	line-height: 1.5;
	color: var(--bcc-body);
	text-align: left;
	text-transform: none;
}
.bcc-drawer.is-open { transform: none; }
.bcc-drawer[aria-hidden="true"] { visibility: hidden; }
.bcc-drawer.is-open[aria-hidden="false"] { visibility: visible; }
.bcc-drawer:focus { outline: none; }
.bcc-drawer.is-busy .bcc-drawer__items,
.bcc-drawer.is-busy .bcc-drawer__foot { opacity: .55; pointer-events: none; }
.bcc-drawer * { box-sizing: border-box; }
.bcc-drawer img { max-width: 100%; height: auto; display: block; }

/* head */
.bcc-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 22px 26px 18px;
	border-bottom: 1px solid var(--bcc-line-soft);
}
.bcc-drawer__title {
	font-family: var(--bcc-disp);
	font-size: 26px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--bcc-navy);
	margin: 0;
	line-height: 1.1;
	display: flex;
	align-items: center;
	gap: 10px;
}
.bcc-drawer__count:not(:empty) {
	font-family: var(--bcc-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	background: var(--bcc-green);
	color: #fff;
	min-width: 24px;
	height: 24px;
	padding: 0 7px;
	border-radius: 999px;
	display: inline-grid;
	place-items: center;
}
.bcc-drawer__close {
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 0;
	background: none;
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: background .15s;
	padding: 0;
	margin: 0;
	box-shadow: none;
}
.bcc-drawer__close:hover { background: var(--bcc-ground); }
.bcc-drawer__close svg { width: 19px; height: 19px; stroke: var(--bcc-navy); fill: none; stroke-width: 2.3; }

/* free-freight meter (hidden until the Controller provides a threshold) */
.bcc-drawer__meter { padding: 15px 26px; background: var(--bcc-cyan-pale); border-bottom: 1px solid var(--bcc-line-soft); }
.bcc-drawer__meter[hidden] { display: none; }
.bcc-drawer__meter p { margin: 0 0 8px; font-size: 13.5px; color: var(--bcc-navy); }
.bcc-drawer__meter b { color: var(--bcc-green-dark); }
.bcc-meter__track { height: 6px; border-radius: 999px; background: #fff; overflow: hidden; }
.bcc-meter__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--bcc-cyan), var(--bcc-green)); width: 0; transition: width .45s cubic-bezier(.4, 0, .2, 1); }

/* body */
.bcc-drawer__body { flex: 1; overflow-y: auto; padding: 6px 26px; -webkit-overflow-scrolling: touch; }
.bcc-drawer__notice {
	margin: 12px 0 0;
	padding: 11px 14px;
	border-radius: 9px;
	background: var(--bcc-cyan-pale);
	color: var(--bcc-navy);
	font-size: 13.5px;
}
.bcc-drawer__notice.is-error { background: #FDECEA; color: var(--bcc-red); }
.bcc-drawer__notice[hidden] { display: none; }

.bcc-line {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 15px;
	padding: 20px 0;
	border-bottom: 1px solid var(--bcc-line-soft);
	transition: opacity .2s;
}
.bcc-line:last-child { border-bottom: 0; }
.bcc-line.is-removing { opacity: .35; }
.bcc-line__thumb {
	width: 78px;
	height: 78px;
	border: 1px solid var(--bcc-line);
	border-radius: 12px;
	background: #fff;
	display: grid;
	place-items: center;
	overflow: hidden;
	padding: 6px;
}
.bcc-line__thumb img { max-height: 100%; width: auto; object-fit: contain; }
.bcc-line__top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.bcc-line__name { font-size: 14px; font-weight: 600; color: var(--bcc-ink); line-height: 1.4; text-decoration: none; }
.bcc-line__name:hover { color: var(--bcc-cyan-dark); }
.bcc-line__price { font-family: var(--bcc-disp); font-size: 17px; font-weight: 600; color: var(--bcc-navy); white-space: nowrap; }
.bcc-line__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 7px; }
.bcc-line__vars { font-size: 12.5px; color: var(--bcc-muted); }
.bcc-line__bot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
.bcc-qty-static { font-size: 13px; color: var(--bcc-muted); }
.bcc-line__remove {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 0;
	background: none;
	display: grid;
	place-items: center;
	color: var(--bcc-muted);
	cursor: pointer;
	transition: background .15s, color .15s;
	padding: 0;
	margin: 0;
	box-shadow: none;
}
.bcc-line__remove:hover { background: #FDECEA; color: var(--bcc-red); }
.bcc-line__remove svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* empty */
.bcc-drawer__empty { padding: 70px 10px; text-align: center; color: var(--bcc-muted); }
.bcc-drawer__empty[hidden] { display: none; }
.bcc-drawer__empty svg { width: 44px; height: 44px; stroke: var(--bcc-line); fill: none; stroke-width: 1.6; margin: 0 auto 10px; }
.bcc-drawer__empty p { margin: 0 0 16px; }

/* cross-sells */
.bcc-drawer__xsell { border-top: 1px solid var(--bcc-line-soft); padding: 18px 0 8px; }
.bcc-drawer__xsell[hidden] { display: none; }
.bcc-drawer__xsell h3 {
	font-family: var(--bcc-disp);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--bcc-navy);
	margin: 0 0 13px;
}
.bcc-xrow { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; }
.bcc-xrow__thumb { width: 54px; height: 54px; border: 1px solid var(--bcc-line); border-radius: 12px; display: grid; place-items: center; overflow: hidden; padding: 4px; background: #fff; }
.bcc-xrow__thumb img { max-height: 100%; width: auto; object-fit: contain; }
.bcc-xrow__name { display: block; font-size: 13px; font-weight: 600; color: var(--bcc-ink); line-height: 1.35; text-decoration: none; }
.bcc-xrow__name:hover { color: var(--bcc-cyan-dark); }
.bcc-xrow__price { font-size: 12.5px; color: var(--bcc-muted); }
.bcc-xrow__add {
	border: 1.5px solid var(--bcc-line);
	border-radius: 999px;
	background: #fff;
	padding: 7px 14px;
	font: 700 12.5px var(--bcc-sans);
	color: var(--bcc-navy);
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
	margin: 0;
	box-shadow: none;
	text-transform: none;
}
.bcc-xrow__add:hover { border-color: var(--bcc-cyan); background: var(--bcc-cyan-pale); color: var(--bcc-cyan-dark); }
.bcc-xrow__add[disabled] { opacity: .6; cursor: default; }

/* foot */
.bcc-drawer__foot { border-top: 1px solid var(--bcc-line); padding: 20px 26px 22px; background: var(--bcc-ground); }
.bcc-drawer__foot[hidden] { display: none; }
.bcc-drawer__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 4px 0; }
.bcc-drawer__row strong { color: var(--bcc-ink); font-weight: 700; }
.bcc-drawer__row--discount span,
.bcc-drawer__row--discount strong { color: var(--bcc-green-dark); }
.bcc-drawer__row--discount[hidden] { display: none; }
.bcc-drawer__row:first-child { align-items: baseline; }
.bcc-drawer__row:first-child span { font-family: var(--bcc-disp); font-size: 20px; text-transform: uppercase; letter-spacing: .06em; color: var(--bcc-navy); }
.bcc-drawer__row:first-child strong { font-family: var(--bcc-disp); font-size: 29px; font-weight: 700; color: var(--bcc-navy); }
.bcc-drawer__note { font-size: 12.5px; color: var(--bcc-muted); margin: 2px 0 14px; }
.bcc-drawer__alt { display: flex; justify-content: center; gap: 18px; margin-top: 13px; }
.bcc-drawer__help { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--bcc-muted); }
.bcc-drawer__help a { color: var(--bcc-navy); font-weight: 700; text-decoration: none; }
.bcc-drawer__help a:hover { text-decoration: underline; }

@media (max-width: 700px) {
	.bcc-drawer { width: 100vw; }
	.bcc-drawer__head { padding: 18px 20px 14px; }
	.bcc-drawer__body { padding: 4px 20px; }
	.bcc-drawer__foot { padding: 16px 20px 20px; }
	.bcc-drawer__meter { padding: 12px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.bcc-drawer, .bcc-scrim, .bcc-meter__fill { transition: none; }
}

/* ---- Loading: header spinner + skeleton rows on a cold open ------------ */
.bcc-drawer__spinner {
	width: 18px;
	height: 18px;
	border-radius: 999px;
	border: 2.5px solid var(--bcc-line);
	border-top-color: var(--bcc-cyan);
	animation: bcc-spin .8s linear infinite;
	display: inline-block;
	flex: none;
}
.bcc-drawer__spinner[hidden] { display: none; }
@keyframes bcc-spin { to { transform: rotate(360deg); } }

.bcc-drawer__skeleton[hidden] { display: none; }
.bcc-skel {
	display: grid;
	grid-template-columns: 78px minmax(0, 1fr);
	gap: 15px;
	padding: 20px 0;
	border-bottom: 1px solid var(--bcc-line-soft);
}
.bcc-skel__thumb { width: 78px; height: 78px; border-radius: 12px; }
.bcc-skel__lines { display: grid; gap: 10px; align-content: start; padding-top: 4px; }
.bcc-skel__lines i { display: block; height: 14px; border-radius: 6px; }
.bcc-skel__lines i:nth-child(2) { width: 80%; }
.bcc-skel__lines i.bcc-skel__short { width: 45%; height: 30px; border-radius: 999px; margin-top: 6px; }
.bcc-skel__thumb,
.bcc-skel__lines i {
	background: linear-gradient(90deg, var(--bcc-line-soft) 0%, #fff 50%, var(--bcc-line-soft) 100%);
	background-size: 200% 100%;
	animation: bcc-shimmer 1.2s ease-in-out infinite;
}
@keyframes bcc-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---- Third-party floating widgets: step aside while the drawer is open --
 * Zoho SalesIQ pins its launcher and chat window bottom-right at z-index 2.2 billion,
 * which is the drawer's corner. On desktop, send them to the left edge instead. On
 * phones the drawer is full-width, so there is nowhere better to put them. */
@media (min-width: 701px) {
	body.bcc-drawer-open .zsiq_floatmain,
	body.bcc-drawer-open .siqembed.zls-sptwndw {
		right: auto !important;
		left: 16px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bcc-drawer__spinner, .bcc-skel__thumb, .bcc-skel__lines i { animation: none; }
}
