.fcwc-floating-cart {
	--fcwc-icon-color: #ffffff;
	--fcwc-panel-bg: #111827;
	--fcwc-title-color: #ffffff;
	--fcwc-view-cart-bg: #e5e7eb;
	--fcwc-view-cart-color: #111827;
	--fcwc-checkout-bg: #111827;
	--fcwc-checkout-color: #ffffff;
	--fcwc-panel-width: 360px;
	--fcwc-offset-top: 24px;
	--fcwc-offset-right: 24px;
	--fcwc-offset-bottom: 24px;
	--fcwc-offset-left: 24px;
	--fcwc-z-overlay: 2147483000;
	--fcwc-z-panel: 2147483001;
	--fcwc-z-toggle: 2147483002;
	position: fixed;
	z-index: var(--fcwc-z-toggle);
	font-family: inherit;
}

.fcwc-position-bottom-right {
	right: var(--fcwc-offset-right);
	bottom: var(--fcwc-offset-bottom);
	top: auto;
	left: auto;
}

.fcwc-position-bottom-left {
	left: var(--fcwc-offset-left);
	bottom: var(--fcwc-offset-bottom);
	top: auto;
	right: auto;
}

.fcwc-position-top-right {
	right: var(--fcwc-offset-right);
	top: var(--fcwc-offset-top);
	bottom: auto;
	left: auto;
}

.fcwc-position-top-left {
	left: var(--fcwc-offset-left);
	top: var(--fcwc-offset-top);
	bottom: auto;
	right: auto;
}

.fcwc-toggle {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 0;
	border-radius: 999px;
	background: var(--fcwc-panel-bg);
	color: var(--fcwc-icon-color);
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fcwc-toggle:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.fcwc-toggle-icon {
	display: inline-block;
	width: 14px;
	height: 12px;
	position: relative;
	border: 2px solid currentColor;
	border-radius: 2px;
}

.fcwc-toggle-icon-custom {
	width: 18px;
	height: 18px;
	border: 0;
}

.fcwc-toggle-icon-custom::before {
	display: none;
}

.fcwc-toggle-icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
	stroke: currentColor;
}

.fcwc-toggle-icon::before {
	content: "";
	position: absolute;
	left: 1px;
	right: 1px;
	top: -7px;
	height: 4px;
	border: 2px solid currentColor;
	border-bottom: 0;
	border-radius: 4px 4px 0 0;
}

.fcwc-button-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #ef4444;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
}

.fcwc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.3);
	z-index: var(--fcwc-z-overlay);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.fcwc-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	width: min(var(--fcwc-panel-width), 92vw);
	background: #ffffff;
	color: #111827;
	z-index: var(--fcwc-z-panel);
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	box-shadow: 0 0 25px rgba(0, 0, 0, 0.18);
	opacity: 0;
	will-change: transform, opacity;
	transition: transform 0.28s ease, opacity 0.22s ease;
}

.fcwc-position-bottom-right .fcwc-panel {
	right: 0;
	transform: translateX(100%);
}

.fcwc-position-bottom-left .fcwc-panel {
	left: 0;
	transform: translateX(-100%);
}

.fcwc-position-top-right .fcwc-panel {
	right: 0;
	transform: translateX(100%);
}

.fcwc-position-top-left .fcwc-panel {
	left: 0;
	transform: translateX(-100%);
}

.fcwc-open .fcwc-panel {
	transform: translateX(0);
	opacity: 1;
}

.fcwc-open .fcwc-overlay {
	opacity: 1;
}

.fcwc-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px;
	background: var(--fcwc-panel-bg);
	color: var(--fcwc-icon-color);
}

.fcwc-panel-title {
	margin: 0;
	font-size: 18px;
	color: var(--fcwc-title-color);
}

.fcwc-close-panel {
	background: transparent;
	border: 0;
	color: currentColor;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

.fcwc-panel-content {
	padding: 16px;
	transition: opacity 0.2s ease;
}

.fcwc-panel-content.fcwc-loading {
	opacity: 0.55;
	pointer-events: none;
}

.fcwc-cart-items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 14px;
}

.fcwc-cart-item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e5e7eb;
	animation: fcwc-item-in 0.24s ease both;
}

.fcwc-cart-item:nth-child(2) {
	animation-delay: 0.02s;
}

.fcwc-cart-item:nth-child(3) {
	animation-delay: 0.04s;
}

.fcwc-cart-item:nth-child(4) {
	animation-delay: 0.06s;
}

.fcwc-cart-item-media img {
	max-width: 64px;
	height: auto;
	border-radius: 6px;
}

.fcwc-cart-item-title {
	margin: 0 0 2px;
	font-size: 14px;
	font-weight: 600;
}

.fcwc-cart-item-title a {
	text-decoration: none;
	color: inherit;
}

.fcwc-cart-item-price {
	margin: 0 0 6px;
	font-size: 13px;
	color: #6b7280;
}

.fcwc-cart-item-controls {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fcwc-qty-box {
	display: inline-flex;
	align-items: center;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	overflow: hidden;
}

.fcwc-qty-btn {
	width: 28px;
	height: 28px;
	border: 0;
	background: #f3f4f6;
	color: #111827;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.fcwc-qty-btn:hover {
	background: #e5e7eb;
}

.fcwc-qty-input {
	width: 40px;
	height: 28px;
	border: 0;
	border-left: 1px solid #d1d5db;
	border-right: 1px solid #d1d5db;
	text-align: center;
	padding: 0;
	-moz-appearance: textfield;
}

.fcwc-qty-input::-webkit-outer-spin-button,
.fcwc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fcwc-remove-item {
	background: transparent;
	border: 0;
	color: #dc2626;
	padding: 0;
	cursor: pointer;
	font-size: 12px;
}

.fcwc-cart-item-subtotal {
	font-weight: 600;
	font-size: 13px;
	white-space: nowrap;
}

.fcwc-summary {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #d1d5db;
	display: grid;
	gap: 8px;
}

.fcwc-summary-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.fcwc-summary-row-total {
	font-size: 15px;
	font-weight: 700;
}

.fcwc-summary-row-points {
	font-size: 13px;
	color: #047857;
	font-weight: 600;
}

.fcwc-free-shipping-progress {
	display: grid;
	gap: 8px;
	margin-bottom: 14px;
	padding: 10px;
	border-radius: 8px;
}

.fcwc-free-shipping-text {
	margin: 0;
	font-size: 12px;
}

.fcwc-free-shipping-track {
	height: 8px;
	width: 100%;
	border-radius: 999px;
	overflow: hidden;
}

.fcwc-free-shipping-bar {
	display: block;
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #22c55e, #16a34a);
	transition: width 0.35s ease;
}

.fcwc-free-shipping-progress.is-complete {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
}

.fcwc-free-shipping-progress.is-complete .fcwc-free-shipping-text {
	color: #166534;
}

.fcwc-free-shipping-progress.is-complete .fcwc-free-shipping-track {
	background: #dcfce7;
}

.fcwc-free-shipping-progress.is-pending {
	background: #fff1f2;
	border: 1px solid #fecdd3;
}

.fcwc-free-shipping-progress.is-pending .fcwc-free-shipping-text {
	color: #9f1239;
}

.fcwc-free-shipping-progress.is-pending .fcwc-free-shipping-track {
	background: #ffe4e6;
}

.fcwc-panel-actions {
	margin-top: 16px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.fcwc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	padding: 10px 12px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
}

.fcwc-button-primary {
	background: var(--fcwc-checkout-bg);
	color: var(--fcwc-checkout-color);
}

.fcwc-button-secondary {
	background: var(--fcwc-view-cart-bg);
	color: var(--fcwc-view-cart-color);
}

.fcwc-empty-state {
	display: grid;
	gap: 10px;
	text-align: center;
}

.fcwc-error-message {
	margin: 0;
	padding: 8px 16px;
	background: #fee2e2;
	color: #991b1b;
	font-size: 13px;
}

.fcwc-button-count.fcwc-count-bump {
	animation: fcwc-count-bump 0.34s ease;
}

.fcwc-floating-cart.fcwc-attention .fcwc-toggle {
	animation: fcwc-toggle-bounce 0.46s ease;
}

@keyframes fcwc-item-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fcwc-count-bump {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

@keyframes fcwc-toggle-bounce {
	0% {
		transform: translateY(0);
	}
	30% {
		transform: translateY(-5px);
	}
	70% {
		transform: translateY(1px);
	}
	100% {
		transform: translateY(0);
	}
}

@media (max-width: 767px) {
	.fcwc-toggle-label {
		display: none;
	}
}

