/**
 * Slide-out cart panel + the floating reopen bubble.
 * Buttons carry hard resets — theme/Elementor button styles reach in otherwise.
 */

.bcs-cart {
	position: fixed;
	inset: 0;
	z-index: 999990;
	font-family: var(--font-body, inherit);
	color: var(--fg-1, #1d1d1f);
}

.bcs-cart[hidden] { display: none !important; }
.bcs-cart * { box-sizing: border-box; }

.bcs-cart-veil {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .42);
	opacity: 0;
	transition: opacity .25s ease;
}

.bcs-cart.is-open .bcs-cart-veil { opacity: 1; }

.bcs-cart-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100%;
	width: min(420px, 100%);
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 34px rgba(17, 17, 17, .18);
	transform: translateX(100%);
	transition: transform .28s cubic-bezier(.32, .72, 0, 1);
}

.bcs-cart.is-open .bcs-cart-panel { transform: translateX(0); }

@media (prefers-reduced-motion: reduce) {
	.bcs-cart-veil,
	.bcs-cart-panel { transition: none; }
}

/* ---- header ---- */
.bcs-cart-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 20px;
	border-bottom: 1px solid #ececef;
}

.bcs-cart-head h2 {
	margin: 0;
	font-family: var(--font-display, inherit);
	font-weight: 900;
	font-size: 20px;
}

.bcs-cart .bcs-cart-x {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	padding: 0 !important;
	min-height: 0;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.bcs-cart-msg {
	margin: 0;
	padding: 10px 20px;
	background: #fef3f2;
	color: #b42318;
	font-size: 13.5px;
	border-bottom: 1px solid #fecdca;
}

.bcs-cart-msg[hidden] { display: none !important; }
.bcs-cart-msg.is-ok { background: #e6f4ea; color: #1a7f37; border-bottom-color: #b7e3c5; }

/* ---- items ---- */
.bcs-cart-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 8px 20px;
}

.bcs-cart-empty {
	padding: 40px 0;
	text-align: center;
	color: var(--fg-3, #6b6b70);
}

.bcs-cart-item {
	display: flex;
	gap: 13px;
	padding: 16px 0;
	border-bottom: 1px solid #f0f0f2;
}

.bcs-cart-thumb {
	flex: 0 0 auto;
	width: 68px;
	height: 68px;
	border-radius: 10px;
	overflow: hidden;
	background: #f2f2f4;
}

.bcs-cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bcs-cart-info { flex: 1 1 auto; min-width: 0; }

.bcs-cart-name {
	display: block;
	font-weight: 700;
	font-size: 14.5px;
	line-height: 1.3;
	color: inherit;
	text-decoration: none;
}

.bcs-cart-name:hover { text-decoration: underline; }

.bcs-cart-line { margin-top: 3px; font-size: 14px; color: var(--fg-2, #3a3a3f); }

.bcs-cart-qty { display: flex; align-items: center; gap: 8px; margin-top: 9px; }

.bcs-cart .bcs-cart-minus,
.bcs-cart .bcs-cart-plus {
	width: 26px;
	height: 26px;
	border: 1px solid #dcdce1 !important;
	border-radius: 6px !important;
	background: #fff !important;
	color: inherit !important;
	padding: 0 !important;
	min-height: 0;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
}

.bcs-cart .bcs-cart-minus:hover,
.bcs-cart .bcs-cart-plus:hover { background: #f5f5f7 !important; }

.bcs-cart-n { min-width: 20px; text-align: center; font-size: 14px; font-weight: 600; }

.bcs-cart .bcs-cart-del {
	margin-left: auto;
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #b42318 !important;
	padding: 0 !important;
	min-height: 0;
	font-size: 12.5px;
	text-decoration: underline;
	cursor: pointer;
}

/* ---- footer ---- */
.bcs-cart-foot {
	flex: 0 0 auto;
	padding: 16px 20px calc(18px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #ececef;
	background: #fff;
}

.bcs-cart-sub {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 15px;
	margin-bottom: 14px;
}

.bcs-cart-sub strong { font-size: 18px; }

.bcs-cart .bcs-cart-cta {
	display: block;
	text-align: center;
	background: var(--wf-blue, #0060ac);
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	padding: 14px;
	border-radius: var(--r-pill, 999px);
	text-decoration: none;
}

.bcs-cart .bcs-cart-cta:hover { background: var(--wf-blue-deep, #004c86); }

.bcs-cart .bcs-cart-view {
	display: block;
	text-align: center;
	margin-top: 10px;
	font-size: 13.5px;
	color: var(--fg-2, #3a3a3f);
	text-decoration: underline;
}

.bcs-cart-panel.is-busy { opacity: .6; pointer-events: none; }

/* ---- floating reopen bubble ---- */
.bcs-cart-fab {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 999980;
	width: 58px;
	height: 58px;
	border-radius: 50% !important;
	border: 0 !important;
	background: var(--wf-ink, #1d1d1f) !important;
	color: #fff !important;
	padding: 0 !important;
	min-height: 0;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(17, 17, 17, .34);
	display: flex;
	align-items: center;
	justify-content: center;
}

.bcs-cart-fab[hidden] { display: none !important; }
.bcs-cart-fab:hover { background: #000 !important; }
.bcs-cart-fab-ico { font-size: 24px; line-height: 1; }

.bcs-cart-fab-n {
	position: absolute;
	top: -3px;
	right: -3px;
	min-width: 23px;
	height: 23px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e6007e;
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	line-height: 23px;
	text-align: center;
}

/* ---- the card's add-to-cart button ---- */
.bcs-pr .bcs-pr-add {
	display: inline-block;
	margin: 0;
	background: var(--wf-ink, #1d1d1f) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: var(--r-pill, 999px) !important;
	padding: 9px 18px !important;
	min-height: 0;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.bcs-pr .bcs-pr-add:hover { background: #000 !important; }
.bcs-pr .bcs-pr-add[disabled] { opacity: .6; cursor: default; }

@media (max-width: 520px) {
	.bcs-cart-panel { width: 100%; }
	.bcs-cart-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
