/* ==========================================================================
   Floating cart (Screen 2 redesign)
   ========================================================================== */

.js-cart-sidebar.c-shop-sidebar--desktop-filter,
.js-cart-sidebar {
	--anak-fc-red: #d32f2f;
	--anak-fc-red-dark: #b71c1c;
	--anak-fc-green: #2e7d32;
	--anak-fc-green-bar: #43a047;
	--anak-fc-trust-bg: #e8f5e9;
	--anak-fc-install-bg: #e3f2fd;
	--anak-fc-border: #e5e7eb;
	--anak-fc-muted: #6b7280;
	--anak-fc-text: #1a1a1a;
}

@media (min-width: 1190px) {
	.js-cart-sidebar.c-shop-sidebar--desktop-filter {
		width: 400px;
	}
}

@media (max-width: 1189px) {
	.js-cart-sidebar {
		width: min(400px, 100%);
	}
}

.js-cart-sidebar .c-shop-sidebar__content--popup,
.js-cart-sidebar .c-shop-sidebar__content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-bottom: 0 !important;
	top: 0 !important;
	display: flex !important;
	flex-direction: column;
	overflow: hidden !important;
}

.js-cart-sidebar .h-close-button.js-cart-sidebar-close {
	z-index: 20;
	top: 14px;
}

.js-cart-sidebar .widget_shopping_cart_content {
	display: flex !important;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	overflow: hidden;
}

.anak-fc {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	height: 100%;
	color: var(--anak-fc-text);
	font-size: 14px;
	line-height: 1.45;
}

.anak-fc--busy {
	opacity: 0.65;
	pointer-events: none;
}

.anak-fc__header {
	flex: 0 0 auto;
	padding: 16px 48px 12px;
	text-align: center;
	border-bottom: 1px solid var(--anak-fc-border);
}

.anak-fc__title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--anak-fc-text);
}

.anak-fc__shipping {
	flex: 0 0 auto;
	padding: 14px 20px 12px;
	border-bottom: 1px solid var(--anak-fc-border);
	background: #fafafa;
}

.anak-fc__shipping-msg {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--anak-fc-text);
	margin-bottom: 8px;
}

.anak-fc__shipping-icon,
.anak-fc__installments-icon,
.anak-fc__delivery-icon,
.anak-fc__trust-icon,
.anak-fc__checkout-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	line-height: 0;
}

.anak-fc__shipping-icon {
	color: var(--anak-fc-green);
}

.anak-fc__shipping-icon svg,
.anak-fc__installments-icon svg,
.anak-fc__delivery-icon svg,
.anak-fc__trust-icon svg,
.anak-fc__checkout-icon svg,
.anak-fc__shipping-icon .anak-icon,
.anak-fc__installments-icon .anak-icon,
.anak-fc__delivery-icon .anak-icon,
.anak-fc__trust-icon .anak-icon,
.anak-fc__checkout-icon .anak-icon {
	width: 18px !important;
	height: 18px !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 1.5 !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
}

.anak-fc__shipping-icon svg *:not(text):not(g),
.anak-fc__installments-icon svg *:not(text):not(g),
.anak-fc__delivery-icon svg *:not(text):not(g),
.anak-fc__trust-icon svg *:not(text):not(g),
.anak-fc__checkout-icon svg *:not(text):not(g) {
	fill: none !important;
	stroke: currentColor !important;
}

.anak-fc__checkout-icon {
	width: 16px;
	height: 16px;
}

.anak-fc__checkout-icon svg,
.anak-fc__checkout-icon .anak-icon {
	width: 16px !important;
	height: 16px !important;
}

.anak-fc__shipping-bar {
	height: 8px;
	border-radius: 999px;
	background: #e5e7eb;
	overflow: hidden;
}

.anak-fc__shipping-bar-fill {
	display: block;
	height: 100%;
	border-radius: 999px;
	background: var(--anak-fc-green-bar);
	transition: width 0.35s ease;
}

.anak-fc__shipping-note {
	margin-top: 6px;
	font-size: 11px;
	color: var(--anak-fc-muted);
}

.anak-fc__list-area {
	position: relative;
	/* ~1.5 product rows — rest scrolls inside the list */
	flex: 0 0 auto;
	max-height: 168px;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.anak-fc__list {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 16px !important;
	flex: 1 1 auto;
	min-height: 0;
	max-height: 168px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.anak-fc__list-area.is-scrollable::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	/* Overlap footer seam so no hairline gap shows through the fade */
	bottom: -1px;
	height: 52px;
	pointer-events: none;
	background: linear-gradient(
		to top,
		#fff 0%,
		#fff 42%,
		rgba(255, 255, 255, 0.85) 62%,
		rgba(255, 255, 255, 0) 100%
	);
	z-index: 2;
}

.anak-fc__scroll-hint {
	display: none !important;
}

.anak-fc__item {
	position: relative;
	padding: 14px 0;
	border-bottom: 1px solid var(--anak-fc-border);
	margin: 0 !important;
}

.anak-fc__item:last-child {
	border-bottom: 0;
}

.anak-fc__remove {
	position: absolute;
	top: 12px;
	inset-inline-start: 0;
	width: 22px;
	height: 22px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: #9ca3af !important;
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
	left: auto;
	right: auto;
	z-index: 2;
	text-decoration: none !important;
}

.anak-fc__remove:hover {
	color: var(--anak-fc-red) !important;
}

.anak-fc__item-body {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-inline-start: 24px;
}

.anak-fc__item-info {
	flex: 1 1 auto;
	min-width: 0;
	text-align: start;
}

.anak-fc__item-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	margin-bottom: 4px;
}

.anak-fc__item-name a {
	color: inherit;
	text-decoration: none;
}

.anak-fc__item-name a:hover {
	color: var(--anak-fc-red);
}

.anak-fc__item-size {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	color: #9ca3af;
}

.anak-fc__item-size-label {
	font-weight: 700;
	margin-inline-end: 4px;
}

.anak-fc__item-size-value {
	font-weight: 700;
}

.anak-fc__item .variation {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 12px;
	color: var(--anak-fc-muted);
	text-transform: none;
}

.anak-fc__item .variation * {
	display: inline;
	margin: 0;
	padding: 0;
}

.anak-fc__item .variation dd:after {
	content: '\A';
	white-space: pre-line;
}

.anak-fc__item-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 8px;
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--anak-fc-text);
}

.anak-fc__item-price .amount {
	font-weight: 700;
}

.anak-fc__item-price--sale .anak-fc__price-sale {
	text-decoration: none;
	color: var(--anak-fc-text);
	font-weight: 800;
}

.anak-fc__item-price--sale .anak-fc__price-regular {
	position: relative;
	display: inline-flex;
	align-items: center;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	text-decoration: none !important;
	line-height: 1;
}

/* Red centered strike — same idea as product page / recommended cards */
.anak-fc__item-price--sale .anak-fc__price-regular::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 2px;
	background: #d90429;
	transform: translateY(-50%);
	pointer-events: none;
}

.anak-fc__item-price--sale .anak-fc__price-regular .woocommerce-Price-amount,
.anak-fc__item-price--sale .anak-fc__price-regular .amount,
.anak-fc__item-price--sale .anak-fc__price-regular bdi {
	text-decoration: none !important;
	font-weight: inherit;
	color: inherit !important;
}

.anak-fc__save-badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 7px;
	border-radius: 999px;
	background: #e8f5e9;
	color: var(--anak-fc-green);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.anak-fc__qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--anak-fc-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	height: 32px;
}

.anak-fc__qty-btn {
	width: 30px;
	height: 100%;
	border: 0;
	background: #f9fafb;
	color: var(--anak-fc-text);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}

.anak-fc__qty-btn:hover {
	background: #f3f4f6;
}

.anak-fc__qty-input {
	width: 36px;
	height: 100%;
	border: 0;
	border-inline: 1px solid var(--anak-fc-border);
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	appearance: textfield;
	-moz-appearance: textfield;
	background: #fff;
	color: var(--anak-fc-text);
	padding: 0;
	margin: 0;
}

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

.anak-fc__item-thumb {
	position: relative;
	flex: 0 0 84px;
	width: 84px;
	min-width: 84px;
	max-width: 84px;
	height: 84px;
	min-height: 84px;
	max-height: 84px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #eceef1;
	box-sizing: border-box;
	align-self: flex-start;
}

.anak-fc__item-thumb a {
	position: absolute;
	inset: 0;
	display: block;
	overflow: hidden;
	border-radius: 6px;
	line-height: 0;
}

/* Hard-lock every mini-cart image to the square: absolute fill + contain,
   the full product image is always visible inside the square (no crop, no overflow) */
.anak-fc__item-thumb img,
.anak-fc__item-thumb a img,
.anak-fc__thumb {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: contain !important;
	object-position: center !important;
	border-radius: 8px;
	display: block;
	background: #fff;
	margin: 0 !important;
	transform: none !important;
	padding: 2px;
	box-sizing: border-box;
}

.anak-fc__footer {
	/* Always pinned at bottom — summary through checkout CTA */
	flex: 0 0 auto;
	margin-top: auto;
	padding: 12px 20px 16px;
	border-top: 0;
	background: #fff;
	/* Soft lift without a hard seam under the list fade */
	box-shadow: 0 -10px 18px rgba(255, 255, 255, 0.95), 0 -1px 10px rgba(0, 0, 0, 0.04);
	max-height: none;
	overflow: visible;
	position: relative;
	z-index: 1;
}

@media (max-width: 767px) {
	.anak-fc__list-area,
	.anak-fc__list {
		max-height: 150px;
	}

	.anak-fc__footer {
		padding: 10px 16px 12px;
	}

	.anak-fc__installments,
	.anak-fc__delivery,
	.anak-fc__trust {
		margin-bottom: 8px;
	}
}

.anak-fc__summary {
	margin-bottom: 12px;
}

.anak-fc__summary-title {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.anak-fc__summary-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	margin-bottom: 6px;
	color: var(--anak-fc-muted);
}

.anak-fc__summary-row .amount {
	color: var(--anak-fc-text);
	font-weight: 600;
}

.anak-fc__summary-row--total {
	margin-top: 8px;
	padding-top: 10px;
	border-top: 1px solid var(--anak-fc-border);
	font-size: 15px;
	font-weight: 700;
	color: var(--anak-fc-text);
}

.anak-fc__total-amount,
.anak-fc__total-amount .amount {
	font-size: 18px;
	font-weight: 800;
	color: var(--anak-fc-text);
}

.anak-fc__free {
	color: var(--anak-fc-green) !important;
	font-weight: 700;
}

.anak-fc__installments {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--anak-fc-install-bg);
	color: #1565c0;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 10px;
	line-height: 1.4;
	text-align: center;
	/* Static fallback ring */
	box-shadow: 0 0 0 1px rgba(21, 101, 192, 0.22);
}

/* Same rotating border-beam as product-page installments */
.anak-fc__installments::before {
	content: '';
	position: absolute;
	inset: -1px;
	border-radius: inherit;
	padding: 2px;
	background: conic-gradient(
		from var(--anak-beam-angle, 0deg),
		transparent 0deg,
		transparent 250deg,
		rgba(21, 101, 192, 0.15) 280deg,
		#1565c0 310deg,
		#64b5f6 330deg,
		transparent 360deg
	);
	-webkit-mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	mask:
		linear-gradient(#fff 0 0) content-box,
		linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	animation: anak-beam-spin 2.8s linear infinite;
	pointer-events: none;
	z-index: 0;
}

.anak-fc__installments > * {
	position: relative;
	z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
	.anak-fc__installments::before {
		animation: none;
		opacity: 0;
	}
}

.anak-fc__installments-icon {
	display: inline-flex;
	flex: 0 0 auto;
	margin-top: 1px;
}

.anak-fc__delivery {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	font-size: 12px;
	color: var(--anak-fc-muted);
	margin-bottom: 10px;
	text-align: center;
}

.anak-fc__delivery-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--anak-fc-muted);
}

.anak-fc__trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 6px;
	background: var(--anak-fc-trust-bg);
	color: var(--anak-fc-green);
	font-size: 11px;
	font-weight: 600;
	margin-bottom: 12px;
	text-align: center;
}

.anak-fc__trust-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.anak-fc__checkout {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	height: 48px;
	border-radius: 8px;
	background: var(--anak-fc-red) !important;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none !important;
	border: 0;
	margin-bottom: 10px;
	transition: background 0.2s ease;
}

.anak-fc__checkout:hover {
	background: var(--anak-fc-red-dark) !important;
	color: #fff !important;
}

.anak-fc__checkout-icon {
	display: inline-flex;
	width: 20px;
	height: 20px;
	line-height: 0;
}

.anak-fc__checkout-icon .anak-icon,
.anak-fc__checkout-icon svg {
	width: 20px !important;
	height: 20px !important;
}

.anak-fc__card-logos {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px 8px;
	margin: 0 0 10px;
	padding: 0 4px;
}

.anak-fc__card-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 26px;
	padding: 2px 5px;
	border: 1px solid var(--anak-fc-border);
	border-radius: 5px;
	background: #fff;
	line-height: 0;
}

.anak-fc__card-logo img {
	display: block;
	height: 18px;
	width: auto;
	max-width: 38px;
	object-fit: contain;
}

.anak-fc__continue {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: auto;
	min-height: 0;
	border-radius: 0;
	border: 0;
	background: transparent;
	color: var(--anak-fc-muted);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	margin-bottom: 0;
	padding: 4px;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.anak-fc__continue:hover {
	background: transparent;
	color: var(--anak-fc-red);
}

.anak-fc__save-later,
.anak-fc__coupon {
	display: none !important;
}

.anak-fc__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 48px 24px;
	flex: 1 1 auto;
	gap: 8px;
}

.anak-fc__empty-title {
	font-size: 18px;
	font-weight: 700;
}

.anak-fc__empty p {
	margin: 0 0 16px;
	color: var(--anak-fc-muted);
}

.js-cart-sidebar .c-product-list-widget__total,
.js-cart-sidebar .c-product-list-widget__buttons,
.js-cart-sidebar .woocommerce-mini-cart__total,
.js-cart-sidebar .woocommerce-mini-cart__buttons {
	display: none !important;
}
