/* ==========================================================================
   Floating button + total price bar (single card, docked to right edge)
   ========================================================================== */
.fck-floating-cart-wrap {
	position: fixed;
	right: 0;
	top: var(--fck-top, 50%);
	transform: translateY(-50%);
	z-index: 99998;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: var(--fck-bg, #1e1e1e);
	box-shadow: -3px 0 12px rgba(0, 0, 0, 0.25);
	border-radius: var(--fck-radius, 10px) 0 0 var(--fck-radius, 10px);
	/* No overflow:hidden here on purpose - it would clip the count badge,
	   which needs to poke slightly outside the card's top-left corner. */
	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fck-floating-cart-wrap:hover {
	transform: translateY(-50%) translateX(-3px);
	box-shadow: -5px 0 16px rgba(0, 0, 0, 0.3);
}

.fck-floating-cart-wrap.fck-hidden {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) translateX(20px);
}

.fck-floating-cart {
	position: relative;
	width: var(--fck-size, 56px);
	background: transparent;
	color: var(--fck-icon, #fff);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 10px 0 2px;
	flex-shrink: 0;
	border-radius: var(--fck-radius, 10px) 0 0 0;
}

.fck-floating-cart .fck-icon {
	color: var(--fck-icon, #fff);
	display: flex;
	align-items: center;
	justify-content: center;
}

.fck-floating-cart .fck-count {
	position: absolute;
	top: -6px;
	left: 6px;
	min-width: 20px;
	height: 20px;
	padding: 0 4px;
	border-radius: 10px;
	background: var(--fck-badge, #e53935);
	color: #fff;
	font-size: 11px;
	line-height: 20px;
	text-align: center;
	font-weight: 600;
	box-shadow: 0 0 0 2px var(--fck-bg, #1e1e1e);
	z-index: 1;
}

.fck-floating-cart .fck-count:empty,
.fck-floating-cart .fck-count[data-zero="1"] {
	display: none;
}

.fck-floating-total {
	background: transparent;
	color: var(--fck-icon, #fff);
	font-size: 11.5px;
	font-weight: 700;
	text-align: center;
	padding: 0 10px 10px;
	white-space: nowrap;
	border-radius: 0 0 0 var(--fck-radius, 10px);
	cursor: pointer;
}

.fck-floating-total .amount,
.fck-floating-total .woocommerce-Price-amount {
	color: var(--fck-icon, #fff);
}

@media (max-width: 600px) {
	.fck-floating-cart {
		width: calc(var(--fck-size, 56px) - 8px);
	}
	.fck-floating-total {
		font-size: 10.5px;
		padding: 0 6px 8px;
	}
}


/* ==========================================================================
   Drawer shell
   ========================================================================== */
.fck-drawer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	visibility: hidden;
	pointer-events: none;
}

.fck-drawer.fck-drawer-open {
	visibility: visible;
	pointer-events: auto;
}

.fck-drawer-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.5);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.fck-drawer.fck-drawer-open .fck-drawer-overlay {
	opacity: 1;
}

.fck-drawer-panel {
	position: absolute;
	top: 0;
	right: 0;
	height: 100vh;
	height: 100dvh;
	width: 420px;
	max-width: 92vw;
	background: var(--fck-drawer-bg, #ffffff);
	color: var(--fck-drawer-text, #111111);
	display: flex;
	flex-direction: column;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
	transform: translateX(100%);
	transition: transform 0.3s ease;
	font-family: inherit;
}

.fck-drawer.fck-drawer-open .fck-drawer-panel {
	transform: translateX(0);
}

body.fck-drawer-lock {
	overflow: hidden;
}

.fck-drawer-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
}

#fck-drawer-content {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

.fck-spinner {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 3px solid rgba(26, 86, 219, 0.15);
	border-top-color: var(--fck-accent, #1a56db);
	animation: fck-spin 0.7s linear infinite;
}

@keyframes fck-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Header
   ========================================================================== */
.fck-drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 20px;
	border-bottom: 1px solid #eceff3;
	flex-shrink: 0;
}

.fck-drawer-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: var(--fck-drawer-text, #111111);
}

.fck-close {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: var(--fck-drawer-text, #111111);
	padding: 4px;
}

/* ==========================================================================
   Body / scroll area
   ========================================================================== */
.fck-drawer-body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 12px 20px 20px;
}

.fck-drawer-sticky-bottom {
	flex-shrink: 0;
	padding: 0 20px 14px;
	border-top: 1px solid #f0f1f3;
}

.fck-empty {
	text-align: center;
	color: #6b7280;
	padding: 40px 0;
}

/* ==========================================================================
   Cart items
   ========================================================================== */
.fck-items {
	display: flex;
	flex-direction: column;
}

.fck-item {
	position: relative;
	display: flex;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f1f3;
}

.fck-item:last-child {
	border-bottom: none;
}

.fck-item-remove {
	position: absolute;
	top: 10px;
	left: 0;
	width: 18px;
	height: 18px;
	line-height: 16px;
	border-radius: 50%;
	border: 1px solid #d7dbe0;
	background: #fff;
	color: #6b7280;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transform: translate(-4px, -4px);
}

.fck-item-remove:hover {
	color: #d33;
	border-color: #d33;
}

.fck-item-thumb {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #f7f8fa;
	margin-left: 16px;
}

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

.fck-item-info {
	flex: 1 1 auto;
	min-width: 0;
}

.fck-item-name {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: var(--fck-drawer-text, #111111);
	text-decoration: none;
	line-height: 1.35;
	margin-bottom: 4px;
}

.fck-item-name:hover {
	color: var(--fck-accent, #1a56db);
}

.fck-item-price {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13px;
	margin-bottom: 8px;
}

.fck-price-regular del {
	color: #9aa1ab;
	font-weight: 400;
}

.fck-price-sale {
	color: var(--fck-drawer-text, #111111);
	font-weight: 700;
}

.fck-price-save {
	color: #16a34a;
	font-weight: 600;
	font-size: 12px;
}

.fck-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid #e0e3e8;
	border-radius: 22px;
	overflow: hidden;
	width: fit-content;
}

.fck-qty-btn {
	width: 32px;
	height: 32px;
	min-width: 32px;
	border: none;
	background: #f7f8fa;
	color: var(--fck-drawer-text, #111111);
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.fck-qty-btn:hover {
	background: var(--fck-accent, #1a56db);
	color: #fff;
}

.fck-qty-value {
	width: 38px;
	min-width: 38px;
	height: 32px;
	text-align: center;
	font-size: 14px;
	font-weight: 600;
	color: var(--fck-drawer-text, #111111);
	border: none;
	border-left: 1px solid #e0e3e8;
	border-right: 1px solid #e0e3e8;
	background: #fff;
	padding: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}

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

.fck-qty-value:focus {
	outline: none;
	background: #f4f8ff;
}

/* ==========================================================================
   Free shipping progress
   ========================================================================== */
.fck-shipping {
	margin: 14px 0 18px;
	padding: 12px 14px;
	border-radius: 10px;
	background: #f4f8ff;
}

.fck-shipping-unlocked {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 700;
	color: #15803d;
	background: #eefdf3;
}

.fck-shipping-text {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fck-drawer-text, #111111);
}

.fck-shipping-bar {
	width: 100%;
	height: 8px;
	border-radius: 6px;
	background: #e3e8f2;
	overflow: hidden;
}

.fck-shipping-bar-fill {
	height: 100%;
	background: var(--fck-accent, #1a56db);
	border-radius: 6px;
	transition: width 0.3s ease;
}

/* ==========================================================================
   You May Also Like
   ========================================================================== */
.fck-suggestions {
	margin-top: 6px;
	padding-top: 16px;
	border-top: 1px solid #f0f1f3;
}

.fck-suggestions-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.fck-suggestions-head h3 {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--fck-drawer-text, #111111);
	position: relative;
	padding-bottom: 6px;
}

.fck-suggestions-head h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 26px;
	height: 2px;
	background: var(--fck-accent, #1a56db);
}

.fck-suggestions-nav {
	display: flex;
	gap: 6px;
}

.fck-sugg-prev,
.fck-sugg-next {
	width: 24px;
	height: 24px;
	min-width: 24px;
	min-height: 24px;
	max-width: 24px;
	max-height: 24px;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	flex-shrink: 0;
	border-radius: 50%;
	border: 1px solid #e0e3e8;
	background: #fff;
	color: var(--fck-drawer-text, #111111);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	appearance: none;
	-webkit-appearance: none;
}

.fck-sugg-prev:hover,
.fck-sugg-next:hover {
	background: var(--fck-accent, #1a56db);
	color: #fff;
	border-color: var(--fck-accent, #1a56db);
}

.fck-suggestions-viewport {
	overflow: hidden;
}

.fck-suggestions-track {
	display: flex;
	transition: transform 0.35s ease;
}

.fck-suggestion-item {
	flex: 0 0 100%;
	max-width: 100%;
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f9fafb;
	border-radius: 10px;
	padding: 10px;
}

.fck-sugg-thumb {
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}

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

.fck-sugg-info {
	flex: 1 1 auto;
	min-width: 0;
}

.fck-sugg-name {
	font-size: 13px;
	font-weight: 600;
	color: var(--fck-drawer-text, #111111);
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fck-sugg-price {
	font-size: 12.5px;
	color: #4b5563;
	margin-bottom: 6px;
}

.fck-sugg-price ins {
	text-decoration: none;
	font-weight: 700;
	color: var(--fck-drawer-text, #111111);
}

.fck-sugg-price del {
	color: #9aa1ab;
}

.fck-sugg-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fck-sugg-view {
	font-size: 12px;
	font-weight: 600;
	color: var(--fck-accent, #1a56db);
	border: 1px solid var(--fck-accent, #1a56db);
	border-radius: 16px;
	padding: 5px 12px;
	text-decoration: none;
	background: #fff;
}

.fck-sugg-view:hover {
	background: var(--fck-accent, #1a56db);
	color: #fff;
}

.fck-sugg-add {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: var(--fck-accent, #1a56db);
	border: 1px solid var(--fck-accent, #1a56db);
	border-radius: 16px;
	padding: 5px 12px;
	cursor: pointer;
}

.fck-sugg-add:hover {
	opacity: 0.9;
}

.fck-sugg-add:disabled {
	opacity: 0.6;
	cursor: default;
}

.fck-loading {
	opacity: 0.6;
	pointer-events: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.fck-drawer-footer {
	flex-shrink: 0;
	padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid #eceff3;
	background: var(--fck-drawer-bg, #ffffff);
}

.fck-subtotal-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 15px;
	font-weight: 700;
	color: var(--fck-drawer-text, #111111);
	margin-bottom: 12px;
}

.fck-footer-buttons {
	display: flex;
	gap: 10px;
}

.fck-viewcart-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 14px;
	border-radius: 8px;
	background: #111111;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
	white-space: nowrap;
}

.fck-viewcart-btn:hover {
	opacity: 0.85;
	color: #fff;
}

.fck-checkout-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1;
	padding: 14px;
	border-radius: 8px;
	background: var(--fck-accent, #1a56db);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.3px;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s ease;
	white-space: nowrap;
}

.fck-checkout-btn:hover {
	opacity: 0.92;
	color: #fff;
}

@media (max-width: 480px) {
	.fck-drawer-panel {
		width: 85%;
		max-width: 85vw;
	}

	/* Keep shipping bar + "You May Also Like" + checkout as compact as
	   possible on mobile, so the scrollable product list above gets most
	   of the drawer's height. */
	.fck-drawer-sticky-bottom {
		padding: 0 14px 6px;
	}

	.fck-shipping {
		margin: 5px 0;
		padding: 8px 10px;
	}

	.fck-shipping-text {
		margin-bottom: 5px;
	}

	.fck-suggestions {
		margin-top: 0;
		padding-top: 6px;
	}

	.fck-suggestions-head {
		margin-bottom: 5px;
	}

	.fck-suggestion-item {
		padding: 7px;
		gap: 8px;
	}

	.fck-sugg-thumb {
		width: 44px;
		height: 44px;
	}

	.fck-sugg-actions {
		gap: 5px;
	}

	.fck-drawer-footer {
		/* No top margin/padding - sits right after the sticky-bottom block.
		   env() alone mostly covers iOS notch devices; Android's 3-button/
		   gesture nav bar isn't reported there, so add a flat safety margin
		   at the bottom too. */
		padding-top: 0;
		padding-left: 14px;
		padding-right: 14px;
		padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
		border-top: none;
	}

	.fck-subtotal-row {
		margin-bottom: 8px;
	}

	.fck-viewcart-btn {
		flex: 2 1 0%;
		padding: 11px;
		font-size: 15px;
	}

	.fck-checkout-btn {
		flex: 3 1 0%;
		padding: 11px;
		font-size: 15px;
	}
}

