/**
 * Anani Science — v2.3.0 Feature Styles
 *
 * Age gate · Checkout compliance · Newsletter popup · Side cart · Purchase toasts
 *
 * Uses existing theme CSS vars:
 *   --teal-dark: #0f3b39; --gold: #c9973b; --cream: #FEFCF8;
 *   --charcoal: #1a1a1a; --font-sans; --font-serif; --radius
 */

/* ──────────────────────────────────────────────────────────
   1. AGE GATE MODAL
   ────────────────────────────────────────────────────────── */
.anani-age-gate {
	position: fixed;
	inset: 0;
	background: rgba( 15, 59, 57, 0.95 );
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.3s ease;
	color-scheme: light;
}
.anani-age-gate.is-open {
	display: flex;
	opacity: 1;
}
.anani-age-gate__card {
	background: #fff;
	color: var( --charcoal, #1a1a1a );
	border-radius: var( --radius, 14px );
	max-width: 480px;
	width: 100%;
	padding: 44px 36px 32px;
	text-align: center;
	box-shadow: 0 30px 80px rgba( 0, 0, 0, 0.35 );
	animation: ananiAgeGateIn 0.4s cubic-bezier( 0.2, 0.9, 0.3, 1 );
	outline: none;
}
@keyframes ananiAgeGateIn {
	from { opacity: 0; transform: translateY( 14px ) scale( 0.97 ); }
	to   { opacity: 1; transform: translateY( 0 ) scale( 1 ); }
}
.anani-age-gate__mark {
	display: inline-block;
	background: var( --teal-dark, #0f3b39 );
	color: #fff;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: 2px;
	padding: 6px 16px;
	border-radius: 999px;
	margin-bottom: 18px;
}
.anani-age-gate__title {
	font-family: var( --font-serif, 'Cormorant Garamond', serif );
	font-size: 2rem;
	font-weight: 600;
	margin: 0 0 12px;
	color: var( --teal-dark, #0f3b39 );
	line-height: 1.15;
}
.anani-age-gate__text {
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.95rem;
	line-height: 1.6;
	color: #444;
	margin: 0 0 26px;
}
.anani-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.anani-age-gate__btn {
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.95rem;
	font-weight: 600;
	padding: 14px 22px;
	border-radius: 999px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.18s ease;
	letter-spacing: 0.2px;
}
.anani-age-gate__btn--primary {
	background: var( --teal-dark, #0f3b39 );
	color: #fff;
	border-color: var( --teal-dark, #0f3b39 );
}
.anani-age-gate__btn--primary:hover {
	background: #0c302e;
	border-color: #0c302e;
}
.anani-age-gate__btn--outline {
	background: transparent;
	color: var( --teal-dark, #0f3b39 );
	border-color: var( --teal-dark, #0f3b39 );
}
.anani-age-gate__btn--outline:hover {
	background: var( --teal-dark, #0f3b39 );
	color: #fff;
}
.anani-age-gate__fineprint {
	margin: 22px 0 0;
	font-size: 0.72rem;
	color: #888;
	line-height: 1.5;
	letter-spacing: 0.3px;
}
@media ( min-width: 640px ) {
	.anani-age-gate__actions {
		flex-direction: row;
		justify-content: center;
	}
	.anani-age-gate__btn { flex: 1; }
}

/* ──────────────────────────────────────────────────────────
   2. CHECKOUT COMPLIANCE CHECKBOXES
   ────────────────────────────────────────────────────────── */
.anani-checkout-compliance {
	margin: 24px 0;
	padding: 20px 22px;
	background: #fbf6ec;
	border: 1px solid rgba( 15, 59, 57, 0.12 );
	border-left: 4px solid var( --gold, #c9973b );
	border-radius: var( --radius, 14px );
}
.anani-checkout-compliance__title {
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var( --teal-dark, #0f3b39 );
	margin: 0 0 14px;
}
.anani-checkout-compliance__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.88rem;
	line-height: 1.55;
	color: #333;
	cursor: pointer;
}
.anani-checkout-compliance__item:last-child { margin-bottom: 0; }
.anani-checkout-compliance__item input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var( --teal-dark, #0f3b39 );
	cursor: pointer;
}
.anani-checkout-compliance__item .req {
	color: #b91c1c;
	font-weight: 700;
	margin-left: 2px;
}
.anani-checkout-compliance.has-error {
	border-left-color: #b91c1c;
	background: #fdf3f3;
}

/* ──────────────────────────────────────────────────────────
   3. NEWSLETTER POPUP
   ────────────────────────────────────────────────────────── */
.anani-nl {
	position: fixed;
	inset: 0;
	background: rgba( 15, 59, 57, 0.78 );
	z-index: 99990;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	opacity: 0;
	transition: opacity 0.28s ease;
}
.anani-nl.is-open {
	display: flex;
	opacity: 1;
}
.anani-nl__card {
	position: relative;
	background: var( --cream, #FEFCF8 );
	border-radius: var( --radius, 14px );
	max-width: 440px;
	width: 100%;
	padding: 44px 32px 36px;
	text-align: center;
	box-shadow: 0 30px 80px rgba( 0, 0, 0, 0.35 );
	animation: ananiNlIn 0.35s cubic-bezier( 0.2, 0.9, 0.3, 1 );
}
@keyframes ananiNlIn {
	from { opacity: 0; transform: translateY( 16px ) scale( 0.96 ); }
	to   { opacity: 1; transform: translateY( 0 ) scale( 1 ); }
}
.anani-nl__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	color: #777;
	cursor: pointer;
	border-radius: 50%;
	transition: background 0.15s ease;
}
.anani-nl__close:hover { background: rgba( 0, 0, 0, 0.06 ); color: #111; }
.anani-nl__tag {
	display: inline-block;
	background: var( --gold, #c9973b );
	color: #fff;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}
.anani-nl__title {
	font-family: var( --font-serif, 'Cormorant Garamond', serif );
	font-size: 2.1rem;
	font-weight: 600;
	color: var( --teal-dark, #0f3b39 );
	margin: 0 0 10px;
	line-height: 1.1;
}
.anani-nl__sub {
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.95rem;
	color: #555;
	line-height: 1.55;
	margin: 0 0 22px;
}
.anani-nl__form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.anani-nl__input {
	width: 100%;
	padding: 14px 16px;
	border: 1.5px solid #d9cfba;
	border-radius: 999px;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.95rem;
	background: #fff;
	outline: none;
	transition: border-color 0.15s ease;
	box-sizing: border-box;
}
.anani-nl__input:focus { border-color: var( --teal-dark, #0f3b39 ); }
.anani-nl__btn {
	background: var( --teal-dark, #0f3b39 );
	color: #fff;
	border: none;
	padding: 14px 22px;
	border-radius: 999px;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.95rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease;
}
.anani-nl__btn:hover { background: #0c302e; }
.anani-nl__btn[disabled] { opacity: 0.6; cursor: default; }
.anani-nl__error {
	color: #b91c1c;
	font-size: 0.82rem;
	margin: 8px 0 0;
	min-height: 1em;
}
.anani-nl__success {
	display: none;
	text-align: center;
}
.anani-nl__success.is-visible { display: block; }
.anani-nl__code {
	display: inline-block;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-weight: 700;
	letter-spacing: 4px;
	font-size: 2rem;
	color: var( --teal-dark, #0f3b39 );
	background: #fff;
	border: 2px dashed var( --gold, #c9973b );
	padding: 14px 22px;
	border-radius: 12px;
	margin: 16px 0 12px;
}
.anani-nl__success-msg {
	font-family: var( --font-sans, 'Outfit', sans-serif );
	color: #555;
	font-size: 0.92rem;
	margin: 0;
}
.anani-nl__disclaimer {
	font-size: 0.7rem;
	color: #999;
	line-height: 1.5;
	margin: 16px 0 0;
}

/* ──────────────────────────────────────────────────────────
   4. SLIDE-OUT SIDE CART
   ────────────────────────────────────────────────────────── */
.anani-sc-backdrop {
	position: fixed;
	inset: 0;
	background: rgba( 15, 59, 57, 0.5 );
	z-index: 99980;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}
.anani-sc-backdrop.is-open {
	opacity: 1;
	visibility: visible;
}
.anani-sc {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 400px;
	max-width: 100%;
	background: var( --cream, #FEFCF8 );
	z-index: 99985;
	transform: translateX( 100% );
	transition: transform 0.32s cubic-bezier( 0.2, 0.9, 0.3, 1 );
	display: flex;
	flex-direction: column;
	box-shadow: -10px 0 40px rgba( 0, 0, 0, 0.18 );
}
.anani-sc.is-open { transform: translateX( 0 ); }
.anani-sc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
}
.anani-sc__title {
	font-family: var( --font-serif, 'Cormorant Garamond', serif );
	font-size: 1.5rem;
	font-weight: 600;
	color: var( --teal-dark, #0f3b39 );
	margin: 0;
}
.anani-sc__close {
	border: none;
	background: transparent;
	font-size: 1.4rem;
	cursor: pointer;
	padding: 6px 10px;
	color: #555;
	border-radius: 50%;
	line-height: 1;
}
.anani-sc__close:hover { background: rgba( 0, 0, 0, 0.06 ); color: #111; }
.anani-sc__body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 22px;
}
.anani-sc__empty {
	text-align: center;
	padding: 40px 10px;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	color: #666;
}
.anani-sc__item {
	display: grid;
	grid-template-columns: 64px 1fr auto;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.06 );
}
.anani-sc__item:last-child { border-bottom: none; }
.anani-sc__thumb {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	background: #f1ebdf;
	overflow: hidden;
	flex-shrink: 0;
}
.anani-sc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anani-sc__info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.anani-sc__name {
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-weight: 600;
	color: var( --charcoal, #1a1a1a );
	font-size: 0.92rem;
	line-height: 1.3;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.anani-sc__name a { color: inherit; text-decoration: none; }
.anani-sc__qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #fff;
	border: 1px solid rgba( 0, 0, 0, 0.12 );
	border-radius: 999px;
	padding: 2px;
	align-self: flex-start;
}
.anani-sc__qty button {
	width: 26px;
	height: 26px;
	border: none;
	background: transparent;
	color: var( --teal-dark, #0f3b39 );
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	border-radius: 50%;
	line-height: 1;
}
.anani-sc__qty button:hover { background: rgba( 15, 59, 57, 0.08 ); }
.anani-sc__qty button[disabled] { opacity: 0.4; cursor: default; }
.anani-sc__qty span {
	min-width: 22px;
	text-align: center;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-weight: 600;
	font-size: 0.88rem;
	color: #333;
}
.anani-sc__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: space-between;
	gap: 6px;
}
.anani-sc__price {
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-weight: 700;
	color: var( --teal-dark, #0f3b39 );
	font-size: 0.92rem;
}
.anani-sc__remove {
	border: none;
	background: transparent;
	color: #888;
	cursor: pointer;
	font-size: 1rem;
	padding: 4px 6px;
}
.anani-sc__remove:hover { color: #b91c1c; }
.anani-sc__foot {
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
	padding: 18px 22px 22px;
	background: #fff;
}
.anani-sc__subtotal {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 1rem;
	margin-bottom: 14px;
}
.anani-sc__subtotal strong {
	color: var( --teal-dark, #0f3b39 );
	font-size: 1.2rem;
	font-weight: 700;
}
.anani-sc__actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid rgba( 15, 59, 57, 0.1 );
}
.anani-sc__coupon {
	margin-bottom: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba( 15, 59, 57, 0.08 );
}
.anani-sc__coupon-form {
	display: flex;
	gap: 8px;
}
.anani-sc__coupon-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid rgba( 15, 59, 57, 0.2 );
	border-radius: 8px;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.9rem;
	background: #fff;
	color: var( --charcoal, #1a1a1a );
	outline: none;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.anani-sc__coupon-input:focus {
	border-color: var( --teal-dark, #0f3b39 );
	box-shadow: 0 0 0 2px rgba( 15, 59, 57, 0.12 );
}
.anani-sc__coupon-btn {
	padding: 10px 16px;
	border: none;
	background: var( --teal-dark, #0f3b39 );
	color: #fff;
	border-radius: 8px;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background 0.18s ease;
}
.anani-sc__coupon-btn:hover { background: #0c302e; }
.anani-sc__coupon-msg {
	font-size: 0.8rem;
	margin-top: 8px;
	min-height: 1em;
}
.anani-sc__coupon-msg.is-error   { color: #b91c1c; }
.anani-sc__coupon-msg.is-success { color: var( --teal-dark, #0f3b39 ); }
.anani-sc__coupon-applied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	background: rgba( 201, 151, 59, 0.1 );
	border: 1px solid rgba( 201, 151, 59, 0.3 );
	border-radius: 8px;
	padding: 10px 12px;
	font-size: 0.88rem;
	color: var( --teal-dark, #0f3b39 );
}
.anani-sc__coupon-applied strong {
	color: var( --gold, #c9973b );
	font-weight: 700;
	letter-spacing: 0.04em;
}
.anani-sc__coupon-remove {
	background: transparent;
	border: none;
	color: var( --teal-dark, #0f3b39 );
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}
.anani-sc__coupon-remove:hover { color: #b91c1c; }
.anani-sc__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 14px;
	border-radius: 999px;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border: 2px solid var( --teal-dark, #0f3b39 );
	cursor: pointer;
	transition: all 0.18s ease;
}
.anani-sc__btn--outline {
	background: transparent;
	color: var( --teal-dark, #0f3b39 );
}
.anani-sc__btn--outline:hover {
	background: var( --teal-dark, #0f3b39 );
	color: #fff;
}
.anani-sc__btn--solid {
	background: var( --teal-dark, #0f3b39 );
	color: #fff;
}
.anani-sc__btn--solid:hover { background: #0c302e; border-color: #0c302e; }
.anani-sc__loading {
	position: absolute;
	inset: 0;
	background: rgba( 254, 252, 248, 0.7 );
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2;
}
.anani-sc.is-loading .anani-sc__loading { display: flex; }
.anani-sc__loading::after {
	content: '';
	width: 30px;
	height: 30px;
	border: 3px solid rgba( 15, 59, 57, 0.25 );
	border-top-color: var( --teal-dark, #0f3b39 );
	border-radius: 50%;
	animation: ananiScSpin 0.8s linear infinite;
}
@keyframes ananiScSpin {
	to { transform: rotate( 360deg ); }
}

.anani-sc-trigger {
	background: transparent;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: inherit;
	color: inherit;
}

@media ( max-width: 640px ) {
	.anani-sc { width: 100%; }
}

/* ──────────────────────────────────────────────────────────
   5. PURCHASE TOASTS
   ────────────────────────────────────────────────────────── */
.anani-toast {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 99970;
	width: 280px;
	background: #fff;
	border-left: 4px solid var( --gold, #c9973b );
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba( 0, 0, 0, 0.15 );
	padding: 12px 34px 12px 12px;
	display: none;
	align-items: center;
	gap: 10px;
	transform: translateY( 24px );
	opacity: 0;
	transition: transform 0.35s cubic-bezier( 0.2, 0.9, 0.3, 1 ), opacity 0.3s ease;
	font-family: var( --font-sans, 'Outfit', sans-serif );
	color: var( --teal-dark, #0f3b39 );
}
.anani-toast.is-visible {
	display: flex;
	transform: translateY( 0 );
	opacity: 1;
}
.anani-toast__thumb {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: #f1ebdf;
	overflow: hidden;
	flex-shrink: 0;
}
.anani-toast__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.anani-toast__text {
	font-size: 0.82rem;
	line-height: 1.35;
	min-width: 0;
}
.anani-toast__who {
	display: block;
	font-weight: 600;
	color: var( --teal-dark, #0f3b39 );
}
.anani-toast__what {
	display: block;
	color: #555;
	font-size: 0.78rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.anani-toast__close {
	position: absolute;
	top: 4px;
	right: 6px;
	width: 22px;
	height: 22px;
	border: none;
	background: transparent;
	color: #999;
	cursor: pointer;
	font-size: 0.95rem;
	line-height: 1;
	border-radius: 50%;
}
.anani-toast__close:hover { background: rgba( 0, 0, 0, 0.06 ); color: #333; }

@media ( max-width: 640px ) {
	.anani-toast {
		left: 12px;
		right: 12px;
		width: auto;
		bottom: 80px;
	}
}
