/* Exactide Cart Popup — brand palette: Copper #CA886F, Cream #F6EEE6, Deep Brown #3B2A30, Ivory #FBF7F2, Warm Taupe #8B5E5A */
#exd-atc {
	--exd-copper: #CA886F;
	--exd-cream: #F6EEE6;
	--exd-brown: #3B2A30;
	--exd-ivory: #FBF7F2;
	--exd-taupe: #8B5E5A;
	--exd-line: rgba(59, 42, 48, 0.14);

	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	color: var(--exd-brown);
	line-height: 1.4;
	box-sizing: border-box;
}
#exd-atc[hidden] { display: none !important; }
#exd-atc *, #exd-atc *::before, #exd-atc *::after { box-sizing: border-box; }

#exd-atc .exd-atc__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 20, 24, 0.55);
	opacity: 0;
	transition: opacity 0.2s ease;
}

#exd-atc .exd-atc__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: var(--exd-ivory);
	border: 1px solid var(--exd-line);
	border-radius: 16px;
	padding: 28px 24px 20px;
	box-shadow: 0 24px 60px rgba(30, 20, 24, 0.28);
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.2s ease, transform 0.2s ease;
	outline: none;
}

#exd-atc.is-open .exd-atc__overlay { opacity: 1; }
#exd-atc.is-open .exd-atc__dialog { opacity: 1; transform: none; }

#exd-atc .exd-atc__x {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--exd-taupe);
	cursor: pointer;
	box-shadow: none;
}
#exd-atc .exd-atc__x:hover { background: var(--exd-cream); color: var(--exd-brown); }

#exd-atc .exd-atc__head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 32px 18px 0;
}
#exd-atc .exd-atc__check {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--exd-copper);
	color: var(--exd-brown);
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
#exd-atc .exd-atc__title {
	margin: 0;
	padding: 0;
	font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	font-size: 26px;
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: 0;
	text-transform: none;
	color: var(--exd-brown);
}

#exd-atc .exd-atc__item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px;
	background: var(--exd-cream);
	border-radius: 12px;
}
#exd-atc .exd-atc__thumb {
	flex: none;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
#exd-atc .exd-atc__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}
#exd-atc .exd-atc__info { min-width: 0; }
#exd-atc .exd-atc__name {
	margin: 0 0 4px;
	font-size: 16px;
	font-weight: 500;
	color: var(--exd-brown);
	overflow-wrap: anywhere;
}
#exd-atc .exd-atc__meta {
	margin: 0;
	font-size: 14px;
	color: var(--exd-taupe);
}
#exd-atc .exd-atc__meta .amount { color: var(--exd-brown); }

#exd-atc .exd-atc__totals {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 12px;
	margin: 14px 2px 0;
	font-size: 14px;
	color: var(--exd-taupe);
}
#exd-atc .exd-atc__totals strong { color: var(--exd-brown); font-weight: 600; }

#exd-atc .exd-atc__actions {
	display: grid;
	gap: 10px;
	margin-top: 20px;
}
#exd-atc .exd-atc__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 0;
	padding: 12px 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	box-shadow: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
#exd-atc .exd-atc__btn--primary {
	background: var(--exd-brown);
	border: 1px solid var(--exd-brown);
	color: var(--exd-ivory);
}
#exd-atc .exd-atc__btn--primary:hover { background: #2a1e22; color: var(--exd-ivory); }
#exd-atc .exd-atc__btn--secondary {
	background: transparent;
	border: 1px solid var(--exd-copper);
	color: var(--exd-brown);
}
#exd-atc .exd-atc__btn--secondary:hover { background: var(--exd-cream); color: var(--exd-brown); }
#exd-atc .exd-atc__btn--link {
	min-height: 40px;
	background: transparent;
	border: 0;
	color: var(--exd-taupe);
	text-decoration: underline;
	text-underline-offset: 3px;
}
#exd-atc .exd-atc__btn--link:hover { color: var(--exd-brown); background: transparent; }

#exd-atc .exd-atc__btn:focus-visible,
#exd-atc .exd-atc__x:focus-visible {
	outline: 2px solid var(--exd-copper);
	outline-offset: 2px;
}

html.exd-atc-lock { overflow: hidden; }

/* Phones: slide up from the bottom */
@media (max-width: 600px) {
	#exd-atc { align-items: flex-end; padding: 0; }
	#exd-atc .exd-atc__dialog {
		max-width: none;
		border-radius: 18px 18px 0 0;
		border-bottom: 0;
		padding: 24px 16px calc(16px + env(safe-area-inset-bottom));
		transform: translateY(100%);
	}
	#exd-atc .exd-atc__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	#exd-atc .exd-atc__overlay,
	#exd-atc .exd-atc__dialog { transition: none; }
}

/* Free shipping progress */
#exd-atc .exd-atc__ship {
	margin: 14px 0 0;
	padding: 12px 14px;
	border: 1px solid var(--exd-line);
	border-radius: 12px;
	background: #fff;
}
#exd-atc .exd-atc__ship-text {
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--exd-brown);
}
#exd-atc .exd-atc__ship-text strong { font-weight: 600; }
#exd-atc .exd-atc__bar {
	height: 6px;
	border-radius: 999px;
	background: var(--exd-cream);
	overflow: hidden;
}
#exd-atc .exd-atc__bar span {
	display: block;
	height: 100%;
	min-width: 6px;
	border-radius: inherit;
	background: var(--exd-copper);
	transition: width 0.4s ease;
}
#exd-atc .exd-atc__ship-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--exd-taupe);
}
#exd-atc .exd-atc__ship.is-unlocked .exd-atc__bar span { background: var(--exd-brown); }
