/*
 * Emon Core — component styles (product card, sections, pricing, reviews,
 * contact, connect hub, subscriptions). Warm wood + amber design system.
 * The theme may override the tokens below (Customizer → Brand colors).
 */

:root {
	--edh-radius: 0.75rem;
	--edh-background: oklch(0.985 0.008 85);
	--edh-foreground: oklch(0.23 0.035 45);
	--edh-card: #fff;
	--edh-wood: #4a2e18;
	--edh-wood-deep: color-mix(in oklab, var(--edh-wood) 78%, black);
	--edh-wood-foreground: oklch(0.97 0.012 85);
	--edh-gold: #d4af37;
	--edh-gold-soft: color-mix(in oklab, var(--edh-gold) 65%, white);
	--edh-gold-foreground: oklch(0.21 0.04 50);
	--edh-cream: oklch(0.965 0.016 85);
	--edh-success: oklch(0.62 0.13 155);
	--edh-destructive: oklch(0.58 0.2 27);
	--edh-secondary: oklch(0.945 0.018 82);
	--edh-muted: oklch(0.95 0.012 84);
	--edh-muted-foreground: oklch(0.49 0.028 55);
	--edh-border: oklch(0.9 0.015 80);
	--edh-shadow-card: 0 12px 30px -18px oklch(0.2 0.05 50 / 0.55);
	--edh-shadow-gold: 0 14px 40px -16px oklch(0.78 0.15 80 / 0.55);
	--edh-font: "Hind Siliguri", system-ui, sans-serif;
}

/* ---------- Base helpers ---------- */

.emon-icon {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	vertical-align: middle;
}

.emon-icon--success {
	color: var(--edh-success);
}

.emon-icon.is-filled {
	fill: currentColor;
}

.emon-container {
	width: 100%;
	max-width: 80rem;
	margin-inline: auto;
	padding-inline: 1rem;
	box-sizing: border-box;
}

.emon-container--narrow {
	max-width: 64rem;
}

.emon-text-gold {
	background-image: linear-gradient(100deg, var(--edh-gold-soft), var(--edh-gold));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.emon-muted {
	color: var(--edh-muted-foreground);
	font-size: 0.875rem;
}

.emon-empty {
	border: 1px dashed var(--edh-border);
	border-radius: 1rem;
	padding: 2.5rem;
	text-align: center;
	color: var(--edh-muted-foreground);
}

.emon-panel {
	background: var(--edh-card);
	border: 1px solid var(--edh-border);
	border-radius: 1rem;
	box-shadow: var(--edh-shadow-card);
	padding: 1.5rem;
}

.emon-hp {
	position: absolute !important;
	left: -9999px !important;
	height: 0;
	overflow: hidden;
}

/* ---------- Buttons ---------- */

.emon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	border-radius: var(--edh-radius);
	border: 1px solid transparent;
	padding: 0.6rem 1.1rem;
	font-family: var(--edh-font);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: all 0.2s ease;
	box-sizing: border-box;
}

.emon-btn--sm {
	padding: 0.5rem 0.5rem;
	font-size: 0.75rem;
	white-space: nowrap;
}

.emon-btn--sm .emon-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.emon-btn--lg {
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
}

.emon-btn--block {
	display: flex;
	width: 100%;
}

.emon-btn--gold {
	background-image: linear-gradient(100deg, var(--edh-gold), var(--edh-gold-soft));
	color: var(--edh-gold-foreground) !important;
}

.emon-btn--gold:hover {
	box-shadow: var(--edh-shadow-gold);
	filter: brightness(1.05);
}

.emon-btn--wood {
	background: var(--edh-wood);
	color: var(--edh-wood-foreground) !important;
}

.emon-btn--wood:hover {
	background: var(--edh-wood-deep);
}

.emon-btn--outline {
	background: transparent;
	border-color: var(--edh-wood);
	color: var(--edh-wood) !important;
}

.emon-btn--outline:hover {
	background: var(--edh-wood);
	color: var(--edh-wood-foreground) !important;
}

.emon-btn--outline.is-in-cart {
	background: color-mix(in oklab, var(--edh-wood) 10%, transparent);
}

.emon-btn--outline.is-in-cart:hover .emon-icon {
	color: inherit;
}

.emon-btn--ghost-gold {
	border-color: color-mix(in oklab, var(--edh-gold) 50%, transparent);
	color: var(--edh-gold) !important;
	background: transparent;
}

.emon-btn--ghost-gold:hover {
	background: color-mix(in oklab, var(--edh-gold) 10%, transparent);
}

.emon-btn--success {
	background: var(--edh-success);
	color: var(--edh-wood-foreground) !important;
}

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

/* WooCommerce appends a "View cart" link after AJAX add-to-cart; the card shows its own state. */
.emon-card .added_to_cart {
	display: none !important;
}

/* ---------- Product card ---------- */

.emon-card {
	background: var(--edh-card);
	border: 1px solid var(--edh-border);
	border-radius: 1rem;
	box-shadow: var(--edh-shadow-card);
	overflow: hidden;
	transition: transform 0.2s ease;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.emon-card:hover {
	transform: translateY(-4px);
}

.emon-card__media {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: var(--edh-muted);
}

.emon-card__media img,
.emon-card__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	margin: 0 !important;
	transition: transform 0.5s ease;
	display: block;
}

.emon-card:hover .emon-card__media img {
	transform: scale(1.05);
}

.emon-card__code {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	border-radius: 0.5rem;
	background: color-mix(in oklab, var(--edh-wood) 90%, transparent);
	padding: 0.25rem 0.5rem;
	font-size: 11px;
	font-weight: 700;
	color: var(--edh-gold);
	line-height: 1.3;
}

.emon-card__body {
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex: 1;
}

.emon-card__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.375rem;
	color: var(--edh-foreground) !important;
	text-decoration: none !important;
}

.emon-card__title:hover {
	color: var(--edh-gold) !important;
}

.emon-card__price {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
	margin-top: auto;
}

.emon-card__now {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--edh-wood);
}

.emon-card__was {
	font-size: 0.875rem;
	color: var(--edh-muted-foreground);
	text-decoration: line-through;
}

.emon-card__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* ---------- Grids & sections ---------- */

.emon-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

@media (min-width: 768px) {
	.emon-grid--4,
	.emon-grid--5,
	.emon-grid--6 {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.emon-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.emon-grid--4,
	.emon-grid--5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.emon-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
	.emon-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.emon-section {
	padding-block: 2rem;
}

.emon-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.emon-section__title {
	font-family: var(--edh-font);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0;
	color: var(--edh-foreground);
}

@media (min-width: 640px) {
	.emon-section__title {
		font-size: 1.875rem;
	}
}

.emon-section__link {
	flex-shrink: 0;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--edh-wood) !important;
	text-decoration: none !important;
}

.emon-section__link:hover {
	color: var(--edh-gold) !important;
}

.emon-page-title {
	font-family: var(--edh-font);
	font-size: 1.875rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.25;
}

@media (min-width: 640px) {
	.emon-page-title {
		font-size: 2.25rem;
	}
}

.emon-page-subtitle {
	margin-top: 0.75rem;
	color: var(--edh-muted-foreground);
}

/* ---------- Hero ---------- */

.emon-hero {
	position: relative;
	overflow: hidden;
	color: var(--edh-wood-foreground);
	background: var(--edh-wood-deep);
}

.emon-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	max-width: none;
}

.emon-hero__overlay {
	position: absolute;
	inset: 0;
	background: color-mix(in oklab, var(--edh-wood-deep) 80%, transparent);
}

.emon-hero__inner {
	position: relative;
	padding-block: 5rem;
}

@media (min-width: 640px) {
	.emon-hero__inner {
		padding-block: 7rem;
	}
}

.emon-hero__content {
	max-width: 42rem;
}

.emon-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	border: 1px solid color-mix(in oklab, var(--edh-gold) 40%, transparent);
	border-radius: 999px;
	padding: 0.25rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--edh-gold);
}

.emon-hero__badge .emon-icon {
	width: 0.875rem;
	height: 0.875rem;
}

.emon-hero__title {
	margin: 1.25rem 0 0;
	font-family: var(--edh-font);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
	color: inherit;
}

@media (min-width: 640px) {
	.emon-hero__title {
		font-size: 3.75rem;
		line-height: 1.1;
	}
}

.emon-hero__subtitle {
	margin-top: 1.25rem;
	font-size: 1rem;
	opacity: 0.85;
}

@media (min-width: 640px) {
	.emon-hero__subtitle {
		font-size: 1.125rem;
	}
}

.emon-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 2rem;
}

.emon-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	max-width: 32rem;
	margin-top: 3rem;
}

.emon-hero__stat {
	border-left: 1px solid color-mix(in oklab, var(--edh-gold) 30%, transparent);
	padding-left: 0.75rem;
}

.emon-hero__stat p {
	margin: 0;
}

.emon-hero__stat-value {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--edh-gold);
	line-height: 1.3;
}

@media (min-width: 640px) {
	.emon-hero__stat-value {
		font-size: 1.875rem;
	}
}

.emon-hero__stat-label {
	font-size: 0.75rem;
	opacity: 0.75;
}

/* ---------- Trust strip ---------- */

.emon-trust {
	display: none;
	background: var(--edh-card);
	border-bottom: 1px solid var(--edh-border);
}

@media (min-width: 640px) {
	.emon-trust {
		display: block;
	}
}

.emon-trust__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	padding-block: 2rem;
}

.emon-trust__item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.emon-trust__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: var(--edh-radius);
	background-image: linear-gradient(140deg, var(--edh-wood-deep), var(--edh-wood));
	color: var(--edh-gold);
}

.emon-trust__icon .emon-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.emon-trust__title {
	display: block;
	font-weight: 600;
}

.emon-trust__text {
	display: block;
	font-size: 0.875rem;
	color: var(--edh-muted-foreground);
}

/* ---------- Category slider ---------- */

.emon-catslider {
	margin-top: 1.5rem;
	--per-view: 3;
}

@media (min-width: 640px) {
	.emon-catslider { --per-view: 4; }
}

@media (min-width: 1024px) {
	.emon-catslider { --per-view: 6; }
}

.emon-catslider__viewport {
	overflow: hidden;
	padding-block: 0.5rem;
}

.emon-catslider__track {
	display: flex;
}

.emon-catslider__track.is-animated {
	transition: transform 0.5s ease-out;
}

.emon-catslider__slide {
	flex: 0 0 calc(100% / var(--per-view));
	padding-inline: 0.375rem;
	box-sizing: border-box;
}

.emon-catslider__card {
	display: block;
	background: var(--edh-card);
	border: 1px solid var(--edh-border);
	border-radius: 1rem;
	box-shadow: var(--edh-shadow-card);
	padding: 1.25rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--edh-foreground) !important;
	text-decoration: none !important;
	transition: all 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.emon-catslider__card:hover {
	transform: translateY(-2px);
	color: var(--edh-gold) !important;
}

.emon-catslider__dots {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 1rem;
}

.emon-catslider__dots button {
	height: 0.5rem;
	width: 0.5rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: color-mix(in oklab, var(--edh-muted-foreground) 30%, transparent);
	cursor: pointer;
	transition: all 0.2s ease;
}

.emon-catslider__dots button.is-active {
	width: 1.5rem;
	background: var(--edh-gold);
}

/* ---------- Pricing plans ---------- */

.emon-pricing {
	padding-block: 3.5rem;
}

.emon-pricing__head {
	text-align: center;
}

.emon-pricing__title {
	font-family: var(--edh-font);
	font-size: 1.875rem;
	font-weight: 700;
	margin: 0;
}

@media (min-width: 640px) {
	.emon-pricing__title {
		font-size: 2.25rem;
	}
}

.emon-pricing__subtitle {
	margin-top: 0.75rem;
	color: var(--edh-muted-foreground);
}

.emon-pricing__grid {
	display: grid;
	gap: 1.5rem;
	margin-top: 3rem;
}

@media (min-width: 640px) {
	.emon-pricing__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.emon-pricing__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.emon-pricing__grid--compact {
	margin-top: 1rem;
}

.emon-plan {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 1.25rem;
	background: var(--edh-card);
	border: 1px solid var(--edh-border);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
	transition: all 0.2s ease;
}

.emon-plan:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.emon-plan.is-recommended {
	border-color: transparent;
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--plan-color), 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.emon-plan__badge {
	position: absolute;
	top: 0.75rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1;
	border-radius: 999px;
	background: var(--edh-destructive);
	color: #fff;
	padding: 0.25rem 1rem;
	font-size: 0.75rem;
	font-weight: 700;
	box-shadow: 0 1px 3px rgb(0 0 0 / 0.2);
	white-space: nowrap;
}

.emon-plan__head {
	padding: 2.75rem 1.5rem 1.25rem;
	text-align: center;
	background: var(--plan-color);
}

.emon-plan__name {
	margin: 0;
	font-family: var(--edh-font);
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
}

.emon-plan__subtitle {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	color: rgb(255 255 255 / 0.8);
}

.emon-plan__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 1.75rem 1.5rem;
	text-align: center;
}

.emon-plan__price {
	margin: 0;
	font-family: var(--edh-font);
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.emon-plan__price span {
	font-size: 1rem;
	font-weight: 400;
	color: var(--edh-muted-foreground);
}

.emon-plan__icon {
	display: grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin: 1.5rem auto 0;
	border-radius: 1rem;
	background: color-mix(in oklab, var(--plan-color) 14%, white);
	color: var(--plan-color);
}

.emon-plan__icon .emon-icon {
	width: 1.75rem;
	height: 1.75rem;
}

.emon-plan__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--edh-border);
	font-size: 0.875rem;
}

.emon-plan__row span {
	color: var(--edh-muted-foreground);
}

.emon-plan__period {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: var(--edh-muted-foreground);
}

.emon-plan__features {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	text-align: left;
	font-size: 0.875rem;
}

.emon-plan__features li {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.emon-plan__features .emon-icon {
	margin-top: 0.2rem;
	color: var(--plan-color);
}

.emon-plan__cta {
	display: block;
	margin-top: auto;
	padding: 0.75rem;
	border-radius: 999px;
	background: var(--plan-color);
	color: #fff !important;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Space above the button; margin-top:auto on the button keeps all cards' buttons aligned. */
.emon-plan__body > :nth-last-child(2) {
	margin-bottom: 2rem;
}

.emon-plan__cta:hover {
	filter: brightness(1.08);
}

/* ---------- Reviews marquee ---------- */

@keyframes emon-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-100%); }
}

@keyframes emon-marquee-reverse {
	from { transform: translateX(-100%); }
	to { transform: translateX(0); }
}

.emon-reviews {
	position: relative;
	overflow: hidden;
	padding-block: 4rem;
}

.emon-reviews__head {
	text-align: center;
}

.emon-reviews__rating {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	margin-top: 0.5rem;
	color: var(--edh-gold);
}

.emon-reviews__rating .emon-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.emon-reviews__rating span {
	margin-left: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--edh-muted-foreground);
}

.emon-reviews__rows {
	margin-top: 2.5rem;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.emon-marquee {
	display: flex;
	overflow: hidden;
	user-select: none;
	-webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.emon-marquee__track {
	display: flex;
	flex-shrink: 0;
	align-items: stretch;
	gap: 1rem;
	padding-right: 1rem;
	animation: emon-marquee 35s linear infinite;
}

.emon-marquee__track.is-reverse {
	animation-name: emon-marquee-reverse;
}

.emon-reviews__rows:hover .emon-marquee__track {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.emon-marquee__track {
		animation: none;
	}
	.emon-marquee {
		overflow-x: auto;
	}
}

.emon-review {
	display: flex;
	flex-direction: column;
	flex-shrink: 0;
	width: 300px;
	margin: 0;
	padding: 1.25rem;
	background: var(--edh-card);
	border: 1px solid var(--edh-border);
	border-radius: 1rem;
	box-shadow: var(--edh-shadow-card);
	box-sizing: border-box;
}

@media (min-width: 640px) {
	.emon-review {
		width: 350px;
	}
}

.emon-review__stars {
	display: flex;
	gap: 0.125rem;
	color: var(--edh-gold);
}

.emon-review__text {
	flex: 1;
	margin: 0.75rem 0 0;
	padding: 0;
	border: 0;
	font-size: 0.875rem;
	font-style: normal;
	line-height: 1.65;
	color: var(--edh-muted-foreground);
	quotes: none;
}

.emon-review__text::before,
.emon-review__text::after {
	content: none;
}

.emon-review__by {
	margin-top: 1rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--edh-border);
}

.emon-review__by p {
	margin: 0;
}

.emon-review__name {
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--edh-foreground);
}

.emon-review__role {
	font-size: 0.75rem;
	color: var(--edh-muted-foreground);
}

/* ---------- Contact ---------- */

.emon-contact {
	padding-block: 3.5rem;
}

.emon-contact__grid {
	display: grid;
	gap: 2rem;
	margin-top: 2.5rem;
}

@media (min-width: 1024px) {
	.emon-contact__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.emon-contact__cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emon-infocard {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--edh-card);
	border: 1px solid var(--edh-border);
	border-radius: 1rem;
	box-shadow: var(--edh-shadow-card);
	color: var(--edh-foreground) !important;
	text-decoration: none !important;
	transition: transform 0.2s ease;
	min-width: 0;
}

a.emon-infocard:hover {
	transform: translateY(-2px);
}

.emon-infocard__icon {
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	flex-shrink: 0;
	border-radius: var(--edh-radius);
	background-image: linear-gradient(140deg, var(--edh-wood-deep), var(--edh-wood));
	color: var(--edh-gold);
}

.emon-infocard__icon.is-success {
	background: var(--edh-success);
	color: var(--edh-wood-foreground);
}

.emon-infocard__icon .emon-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.emon-infocard__label {
	display: block;
	font-size: 0.75rem;
	color: var(--edh-muted-foreground);
}

.emon-infocard__value {
	display: block;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
}

.emon-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emon-form__head {
	border-bottom: 1px solid var(--edh-border);
	padding-bottom: 0.75rem;
}

.emon-form__head h2 {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.emon-form__row {
	display: grid;
	gap: 1rem;
}

@media (min-width: 640px) {
	.emon-form__row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.emon-field {
	display: block;
}

.emon-field > span {
	display: block;
	margin-bottom: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.emon-field input,
.emon-field textarea,
.emon-field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--edh-border);
	border-radius: var(--edh-radius);
	background: var(--edh-card);
	padding: 0.55rem 0.85rem;
	font-family: inherit;
	font-size: 0.875rem;
	color: var(--edh-foreground);
	outline: none;
}

.emon-field input:focus,
.emon-field textarea:focus,
.emon-field select:focus {
	border-color: var(--edh-gold);
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--edh-gold) 28%, transparent);
}

.emon-form__result {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: var(--edh-radius);
	padding: 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
}

.emon-form__result.is-success {
	background: color-mix(in oklab, var(--edh-success) 15%, transparent);
	color: var(--edh-success);
}

.emon-form__result.is-error {
	background: color-mix(in oklab, var(--edh-destructive) 12%, transparent);
	color: var(--edh-destructive);
}

/* ---------- Connect hub ---------- */

.emon-hub {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 55;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.emon-hub__items {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
}

.emon-hub.is-open .emon-hub__items {
	display: flex;
}

.emon-hub__item,
.emon-hub__toggle {
	display: grid;
	place-items: center;
	border-radius: 999px;
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
	transition: transform 0.2s ease;
	text-decoration: none !important;
}

.emon-hub__item {
	width: 3rem;
	height: 3rem;
	color: #fff !important;
	background: var(--edh-wood-deep);
}

.emon-hub__item:hover,
.emon-hub__toggle:hover {
	transform: scale(1.1);
}

.emon-hub__item .emon-icon {
	width: 1.5rem;
	height: 1.5rem;
}

.emon-hub__item--whatsapp { background: #25d366; }
.emon-hub__item--messenger { background: #0084ff; }
.emon-hub__item--facebook { background: #1877f2; }
.emon-hub__item--email { background: #ea4335; }
.emon-hub__item--phone { background: var(--edh-gold); color: var(--edh-gold-foreground) !important; }

.emon-hub__toggle {
	width: 3.5rem;
	height: 3.5rem;
	border: 0;
	padding: 0;
	cursor: pointer;
	background: var(--edh-wood);
	color: var(--edh-wood-foreground);
}

.emon-hub__toggle .emon-icon {
	width: 1.5rem;
	height: 1.5rem;
}

.emon-hub__close,
.emon-hub.is-open .emon-hub__open {
	display: none;
}

.emon-hub.is-open .emon-hub__close,
.emon-hub__open {
	display: grid;
}

/* ---------- Subscriptions (My Account) ---------- */

.emon-subs {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.emon-sub__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.emon-sub__name {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
}

.emon-sub__meta,
.emon-sub__dates {
	margin: 0.25rem 0 0;
	font-size: 0.8125rem;
	color: var(--edh-muted-foreground);
}

.emon-sub__quota {
	margin-block: 1rem 0.5rem;
}

.emon-sub__quota-row {
	display: flex;
	justify-content: space-between;
	margin-bottom: 0.4rem;
	font-size: 0.875rem;
}

.emon-sub .emon-btn {
	margin-top: 0.75rem;
}

.emon-progress {
	height: 0.5rem;
	border-radius: 999px;
	background: var(--edh-muted);
	overflow: hidden;
}

.emon-progress span {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(100deg, var(--edh-gold), var(--edh-gold-soft));
}

.emon-subs__plans-title {
	margin: 1rem 0 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.emon-status {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	padding: 0.2rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
	background: var(--edh-muted);
	color: var(--edh-muted-foreground);
}

.emon-status--active {
	background: color-mix(in oklab, var(--edh-success) 15%, white);
	color: var(--edh-success);
}

.emon-status--pending {
	background: color-mix(in oklab, var(--edh-gold) 20%, white);
	color: color-mix(in oklab, var(--edh-gold) 55%, black);
}

.emon-status--cancelled,
.emon-status--expired {
	background: color-mix(in oklab, var(--edh-destructive) 10%, white);
	color: var(--edh-destructive);
}

/* ---------- Product page download box ---------- */

.emon-access {
	margin-top: 1rem;
	border-radius: 1rem;
	border: 1px solid color-mix(in oklab, var(--edh-success) 35%, transparent);
	background: color-mix(in oklab, var(--edh-success) 8%, white);
	padding: 1rem;
}

.emon-access p {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.emon-access p .emon-icon {
	color: var(--edh-success);
}

.emon-access--quota {
	border-color: color-mix(in oklab, var(--edh-gold) 45%, transparent);
	background: color-mix(in oklab, var(--edh-gold) 10%, white);
}

.emon-access--quota p .emon-icon {
	color: var(--edh-gold);
}

/* ---------- Payment ---------- */

.emon-pay-badges {
	display: inline-flex;
	gap: 0.25rem;
	margin-left: 0.4rem;
	vertical-align: middle;
}

.emon-pay-badge {
	display: inline-block;
	border-radius: 0.375rem;
	padding: 0.1rem 0.45rem;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.5;
	color: #fff;
	background: var(--edh-wood);
}

.emon-pay-bkash { background: #e2136e; }
.emon-pay-nagad { background: #f6921e; }
.emon-pay-rocket { background: #8c3494; }

.emon-manual-pay p {
	margin: 0 0 0.75rem;
}

.emon-manual-numbers {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0.75rem 1rem;
	border: 1px dashed color-mix(in oklab, var(--edh-gold) 60%, transparent);
	border-radius: var(--edh-radius);
	background: color-mix(in oklab, var(--edh-gold) 8%, white);
}

.emon-manual-numbers li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem;
	padding-block: 0.2rem;
	font-size: 0.875rem;
}

.emon-manual-numbers strong {
	font-size: 1rem;
	letter-spacing: 0.02em;
}

.emon-manual-numbers em {
	font-style: normal;
	color: var(--edh-muted-foreground);
	font-size: 0.75rem;
}

.emon-manual-amount {
	font-weight: 600;
}

.emon-notice {
	border-radius: 1rem;
	padding: 1rem 1.25rem;
	margin-block: 1rem;
	font-size: 0.9rem;
}

.emon-notice p:last-child {
	margin-bottom: 0;
}

.emon-notice-pending {
	background: color-mix(in oklab, var(--edh-gold) 12%, white);
	border: 1px solid color-mix(in oklab, var(--edh-gold) 40%, transparent);
}
