/**
 * Lost Naturals independent cart drawer.
 * Isolated from Elementor menu-cart and theme button styles.
 */

#ln-cd {
	--ln-cd-brown: #7e4129;
	--ln-cd-text: #1a1a1a;
	--ln-cd-muted: #6b6b6b;
	--ln-cd-line: #e6e1db;
	--ln-cd-bg: #fff;
	--ln-cd-font: "ABCRepro-Regular", "ABC_Repro", Kanit, sans-serif;
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100040;
	font-family: var(--ln-cd-font);
	font-size: 13px;
	line-height: 1.35;
	color: var(--ln-cd-text);
	font-weight: 400;
}

#ln-cd,
#ln-cd * {
	font-family: var(--ln-cd-font);
}

body.ln-cd-open {
	overflow: hidden;
}

body.ln-cd-open #ln-cd {
	display: block;
}

/* Hide Elementor's own cart panel — we replace it. */
body.ln-cd-enabled .elementor-menu-cart__container {
	display: none !important;
}

/* Keep floating chat behind the open drawer. */
body.ln-cd-open iframe[src*="whatsapp"],
body.ln-cd-open [class*="whatsapp" i],
body.ln-cd-open [id*="whatsapp" i],
body.ln-cd-open .joinchat,
body.ln-cd-open #gb-widget,
body.ln-cd-open .eapps-widget,
body.ln-cd-open .wa-chat-btn {
	visibility: hidden;
}

.ln-cd__overlay {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 14, 0.35);
}

.ln-cd__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 450px;
	max-width: 100%;
	background: var(--ln-cd-bg);
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	min-height: 0;
}

/* Reset theme buttons/links inside the drawer only. */
#ln-cd button,
#ln-cd input {
	font: inherit;
	font-family: var(--ln-cd-font);
	color: inherit;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	border-radius: 0;
	min-height: 0;
	line-height: inherit;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0;
	border: 0;
}

#ln-cd a {
	color: inherit;
	text-decoration: none;
	box-shadow: none;
	font-family: var(--ln-cd-font);
}

.ln-cd__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--ln-cd-line);
	flex: 0 0 auto;
}

.ln-cd__title {
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.elementor-kit-5 #ln-cd button.ln-cd__close,
#ln-cd .ln-cd__close {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	margin: -8px -10px -8px 0;
	padding: 0 !important;
	cursor: pointer;
	color: #111 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-size: 28px !important;
	line-height: 1 !important;
	font-weight: 300;
	transition: opacity 0.15s ease;
}

#ln-cd .ln-cd__close svg {
	display: block;
	width: 26px !important;
	height: 26px !important;
	fill: currentColor;
}

#ln-cd .ln-cd__close span {
	display: block;
	font-size: 32px !important;
	line-height: 1 !important;
	font-weight: 300;
	color: inherit;
}

body.elementor-kit-5 #ln-cd button.ln-cd__close:hover,
#ln-cd .ln-cd__close:hover {
	opacity: 0.65;
	background: transparent !important;
	color: #111 !important;
}

@media (hover: none) {
	body.elementor-kit-5 #ln-cd button.ln-cd__close:hover,
	#ln-cd .ln-cd__close:hover {
		opacity: 1;
	}
}

.ln-cd__close:focus-visible,
.ln-cd__apply:focus-visible,
.ln-cd__qty-btn:focus-visible,
.ln-cd__checkout:focus-visible,
.ln-cd__add:focus-visible,
.ln-cd__remove:focus-visible {
	outline: 2px solid var(--ln-cd-brown);
	outline-offset: 2px;
}

.ln-cd__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0 16px 12px;
	scrollbar-width: thin;
	scrollbar-color: rgba(126, 65, 41, 0.38) transparent;
}

#ln-cd .ln-cd__body::-webkit-scrollbar {
	width: 4px;
}

#ln-cd .ln-cd__body::-webkit-scrollbar-track {
	background: transparent;
}

#ln-cd .ln-cd__body::-webkit-scrollbar-thumb {
	background: rgba(126, 65, 41, 0.38);
	border-radius: 4px;
}

.ln-cd__foot {
	flex: 0 0 auto;
	padding: 12px 16px 16px;
	border-top: 1px solid var(--ln-cd-line);
	background: var(--ln-cd-bg);
}

.ln-cd__ship {
	position: relative;
	padding: 12px 0;
	border-bottom: 1px solid var(--ln-cd-line);
	overflow: visible;
}

.ln-cd__ship-msg {
	margin: 0 0 8px;
	font-family: "ABCRepro-Regular", "ABC_Repro", Kanit, sans-serif;
	font-size: 13px;
	letter-spacing: 0.04em;
	line-height: 1.45;
}

.ln-cd__ship.is-unlocked .ln-cd__ship-msg {
	color: var(--ln-cd-brown);
	font-weight: 600;
	letter-spacing: 0.05em;
}

/* Celebration canvases — never block clicks. */
.ln-fs-confetti,
.ln-fs-celebrate {
	pointer-events: none !important;
	z-index: 100050;
}

.ln-fs-celebrate--page {
	position: fixed !important;
	inset: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	pointer-events: none !important;
	z-index: 100050 !important;
}

.ln-fs-celebrate--drawer {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	pointer-events: none !important;
	z-index: 50 !important;
}

#ln-cd .ln-cd__panel.is-ln-fs-celebrating {
	position: absolute;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	/* Keep celebration visible but shorter — do not hide the canvas entirely. */
	.ln-fs-celebrate {
		opacity: 0.92;
	}
}

@keyframes ln-fs-hurray-attention {
	/* 4 gentle jumps + soft highlight over 6s, then rest. */
	0%,
	100% {
		transform: translateY(0);
		filter: none;
	}
	4% {
		transform: translateY(-5px);
	}
	8% {
		transform: translateY(0);
	}
	22% {
		transform: translateY(-5px);
	}
	26% {
		transform: translateY(0);
	}
	42% {
		transform: translateY(-4px);
	}
	46% {
		transform: translateY(0);
	}
	62% {
		transform: translateY(-4px);
	}
	66% {
		transform: translateY(0);
	}
}

@keyframes ln-fs-free-bounce {
	/* 4 gentle emphasis jumps over 5s. */
	0%,
	100% {
		transform: translateY(0);
	}
	5% {
		transform: translateY(-6px);
	}
	10% {
		transform: translateY(0);
	}
	28% {
		transform: translateY(-5px);
	}
	33% {
		transform: translateY(0);
	}
	52% {
		transform: translateY(-5px);
	}
	57% {
		transform: translateY(0);
	}
	74% {
		transform: translateY(-4px);
	}
	79% {
		transform: translateY(0);
	}
}

.ln-cd__ship.is-unlocked .ln-cd__ship-msg.is-ln-fs-pulse {
	display: inline-block;
	animation: ln-fs-hurray-attention 6s cubic-bezier(0.34, 1.15, 0.64, 1) 1;
	transform-origin: left center;
	will-change: transform;
}

.ln-cd__ship-value.is-free {
	color: var(--ln-cd-brown, #7e4129);
}

.ln-cd__ship-value.is-free.is-ln-fs-bounce {
	display: inline-block;
	font-weight: 700;
	animation: ln-fs-free-bounce 5s cubic-bezier(0.34, 1.15, 0.64, 1) 1;
	will-change: transform;
}

.ln-cd__sum-row--shipping.is-ln-fs-row-glow .ln-cd__ship-value.is-free {
	color: var(--ln-cd-brown, #7e4129);
}

@media (prefers-reduced-motion: reduce) {
	.ln-cd__ship.is-unlocked .ln-cd__ship-msg.is-ln-fs-pulse,
	.ln-cd__ship-value.is-free.is-ln-fs-bounce {
		animation: none;
	}

	.ln-cd__ship-value.is-free.is-ln-fs-bounce {
		font-weight: 700;
	}
}

.ln-cd__bar {
	position: relative;
	height: 2px;
	background: var(--ln-cd-line);
	margin: 16px 9px 18px;
}

.ln-cd__bar-fill {
	display: block;
	height: 100%;
	background: var(--ln-cd-brown);
}

/* Favicon marker — ~1.5× prior size; centered on the fill edge. */
.ln-cd__bar-dot {
	position: absolute;
	top: 50%;
	left: 0;
	display: block;
	box-sizing: border-box;
	width: 30px;
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	overflow: hidden;
	pointer-events: none;
	line-height: 0;
	transform: translate(-50%, -50%);
}

.ln-cd__bar-dot-icon {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.ln-cd__ship-meta {
	display: flex;
	justify-content: space-between;
	margin: 0;
	font-size: 12px;
	color: var(--ln-cd-muted);
}

.ln-cd__items {
	padding: 0;
}

.ln-cd__item {
	display: flex;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ln-cd-line);
}

.ln-cd__thumb {
	flex: 0 0 72px;
	width: 72px;
}

.ln-cd__thumb img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
}

.ln-cd__item-main {
	flex: 1 1 auto;
	min-width: 0;
}

.ln-cd__name {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
}

.ln-cd__name a:hover {
	text-decoration: underline;
}

.ln-cd__item-main .variation {
	margin: 2px 0 0;
	font-size: 12px;
	color: var(--ln-cd-muted);
}

.ln-cd__price {
	margin: 4px 0 0;
	font-size: 13px;
}

.ln-cd__row-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	gap: 8px;
}

#ln-cd .ln-cd__qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #d8d4cf;
	border-radius: 0;
	overflow: hidden;
	height: 28px;
	background: #fff;
}

#ln-cd .ln-cd__qty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	cursor: pointer;
	background: #fff;
	color: #111;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	border-radius: 0;
}

#ln-cd .ln-cd__qty-btn:hover:not(:disabled) {
	color: var(--ln-cd-brown);
	background: #fff;
}

#ln-cd .ln-cd__qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

#ln-cd .ln-cd__qty-input {
	width: 28px;
	height: 28px;
	border: 0;
	border-left: 0;
	border-right: 0;
	text-align: center;
	font-size: 13px;
	font-weight: 400;
	color: #111;
	background: #fff;
	-moz-appearance: textfield;
	appearance: textfield;
}

#ln-cd .ln-cd__qty-input::-webkit-outer-spin-button,
#ln-cd .ln-cd__qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

#ln-cd .ln-cd__remove {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	padding: 4px 0;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ln-cd-brown);
	text-decoration: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	line-height: 1;
	transition: color 0.15s ease, opacity 0.15s ease;
}

#ln-cd .ln-cd__remove:hover,
#ln-cd .ln-cd__remove:focus {
	color: #4d2c22;
	text-decoration: none;
	background: transparent;
}

@media (hover: none) {
	#ln-cd .ln-cd__remove:hover {
		color: var(--ln-cd-brown);
	}
}

#ln-cd .ln-cd__trash {
	display: block;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.ln-cd__section-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.ln-cd__offers {
	padding: 12px 0;
	border-bottom: 1px solid var(--ln-cd-line);
}

.ln-cd__offer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 0;
	border-bottom: 1px solid var(--ln-cd-line);
}

.ln-cd__offer:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.ln-cd__offer-title {
	display: block;
	font-size: 13px;
	font-weight: 600;
}

.ln-cd__offer-sub {
	display: block;
	font-size: 12px;
	color: var(--ln-cd-muted);
	font-weight: 400;
}

.ln-cd__apply {
	flex: 0 0 auto;
	padding: 5px 10px;
	border: 1px solid var(--ln-cd-line);
	background: #fff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	border-radius: 3px;
}

.ln-cd__apply:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ln-cd__offer-status {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--ln-cd-brown);
}

.ln-cd__more {
	padding: 12px 0 4px;
}

.ln-cd__track {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 2px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.ln-cd__track::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.ln-cd__card {
	flex: 0 0 168px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--ln-cd-line);
	background: #fff;
}

.ln-cd__card-img {
	display: block;
	width: 100%;
}

.ln-cd__card-img img {
	display: block;
	width: 100%;
	aspect-ratio: 1;
	height: auto;
	object-fit: cover;
}

.ln-cd__card-body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ln-cd__card-name {
	font-size: 12px;
	font-weight: 500;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.7em;
}

.ln-cd__card-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.ln-cd__card-price {
	font-size: 12px;
}

.ln-cd__add {
	flex: 0 0 auto;
	padding: 4px 8px;
	border: 1px solid var(--ln-cd-brown);
	background: #fff;
	color: var(--ln-cd-brown);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	cursor: pointer;
	border-radius: 3px;
}

.ln-cd__sum {
	margin: 0 0 10px;
}

.ln-cd__sum-row {
	display: grid;
	grid-template-columns: 1fr max-content;
	gap: 12px;
	padding: 4px 0;
	font-size: 13px;
}

.ln-cd__sum-row span:last-child {
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.ln-cd__sum-row--total {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px solid var(--ln-cd-line);
	font-weight: 600;
	font-size: 14px;
}

.ln-cd__saved {
	margin: 10px 0 0;
	padding: 8px 10px;
	font-size: 12px;
	text-align: center;
	background: #f6f1ec;
	color: var(--ln-cd-brown);
	border-radius: 3px;
}

.ln-cd__saved.is-zero {
	opacity: 0.55;
}

.ln-cd__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ln-cd__view {
	display: block;
	text-align: center;
	padding: 6px 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ln-cd-muted);
	background: transparent;
}

#ln-cd a.ln-cd__checkout,
#ln-cd a.ln-cd__continue {
	display: block;
	width: 100%;
	box-sizing: border-box;
	text-align: center;
	padding: 12px 14px;
	background: var(--ln-cd-brown);
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	border-radius: 3px;
}

#ln-cd a.ln-cd__checkout:hover,
#ln-cd a.ln-cd__continue:hover {
	color: #fff;
	opacity: 0.94;
}

.ln-cd__empty {
	padding: 32px 16px;
	text-align: center;
}

.ln-cd__empty-msg {
	margin: 0 0 16px;
	font-size: 14px;
}

#ln-cd a.ln-cd__continue {
	display: inline-block;
	width: auto;
	padding: 10px 16px;
}

@media (max-width: 767px) {
	.ln-cd__panel {
		width: 100%;
	}

	.ln-cd__bar {
		margin-left: 8px;
		margin-right: 8px;
	}

	.ln-cd__bar-dot {
		width: 27px;
		height: 27px;
	}

	.ln-cd__foot {
		padding-bottom: max(14px, env(safe-area-inset-bottom));
	}

	#ln-cd .ln-cd__row-actions {
		flex-wrap: wrap;
		gap: 8px 10px;
	}

	.ln-cd__card {
		flex-basis: 148px;
	}
}
