/* =========================================================
   MMDeco – Promo Countdown
   ========================================================= */
.mmdeco-pc {
	--mmdeco-pc-serif: 'Cormorant Garamond', Georgia, serif;
	--mmdeco-pc-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
	background-color: #f6e8e3;
	padding: 56px 0;
	overflow: hidden;
	font-family: var(--mmdeco-pc-sans);
}

.mmdeco-pc *,
.mmdeco-pc *::before,
.mmdeco-pc *::after {
	box-sizing: border-box;
}

.mmdeco-pc__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ---------- Decorative images ---------- */
.mmdeco-pc__deco {
	flex: 0 0 auto;
	overflow: hidden;
	border-radius: 8px;
	background-color: #ede9e4;
}

.mmdeco-pc__deco--left {
	width: var(--mmdeco-pc-left-w, 140px);
	height: 130px;
}

/* Left image: aligned to the top of the row */
.mmdeco-pc--left-top .mmdeco-pc__deco--left {
	align-self: flex-start;
}

/* Left image: pinned to the banner's top-left corner (desktop) */
@media (min-width: 1025px) {
	.mmdeco-pc--left-corner {
		position: relative;
	}

	.mmdeco-pc--left-corner .mmdeco-pc__deco--left {
		position: absolute;
		top: 0;
		left: 0;
		z-index: 1;
	}

	.elementor-widget .mmdeco-pc--left-corner .mmdeco-pc__deco--left {
		border-top-left-radius: 0;
		border-top-right-radius: 0;
		border-bottom-left-radius: 0;
	}

	/* Push the text right only as much as needed so it never sits under the image */
	.mmdeco-pc--left-corner .mmdeco-pc__inner {
		padding-left: max(24px, calc(var(--mmdeco-pc-left-w, 140px) + 32px - max(0px, (100% - 1240px) / 2)));
	}
}

.mmdeco-pc__deco--right {
	width: 180px;
	height: 150px;
}

.mmdeco-pc__deco img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

/* ---------- Text ---------- */
.mmdeco-pc__text,
.mmdeco-pc__countdown {
	flex: 1.2 1 0;
	min-width: 0;
}

.mmdeco-pc .mmdeco-pc__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #6e6a66;
}

.mmdeco-pc .mmdeco-pc__title {
	margin: 0;
	font-family: var(--mmdeco-pc-serif);
	font-size: 2.3rem;
	font-weight: 600;
	line-height: 1.15;
	color: #1e1e1e;
}

.mmdeco-pc .mmdeco-pc__btn {
	display: inline-block;
	margin-top: 20px;
	padding: 11px 26px;
	border: 1px solid #1e1e1e;
	border-radius: 50px;
	color: #1e1e1e;
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}

.mmdeco-pc .mmdeco-pc__btn:hover,
.mmdeco-pc .mmdeco-pc__btn:focus-visible {
	background-color: #1e1e1e;
	color: #fff;
}

/* ---------- Countdown ---------- */
.mmdeco-pc .mmdeco-pc__label {
	margin: 0 0 10px;
	font-size: 0.85rem;
	color: #6e6a66;
}

.mmdeco-pc__boxes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mmdeco-pc__box {
	width: 56px;
	height: 60px;
	border-radius: 6px;
	background-color: #d9a05b;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.1;
}

.mmdeco-pc__box strong {
	font-size: 1.15rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.mmdeco-pc__box span {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.9;
}

/* ---------- Expired states ---------- */
.mmdeco-pc .mmdeco-pc__expired {
	display: none;
	margin: 0;
	font-size: 0.95rem;
	color: #6e6a66;
}

.mmdeco-pc--expire-message.is-expired .mmdeco-pc__running {
	display: none;
}

.mmdeco-pc--expire-message.is-expired .mmdeco-pc__expired {
	display: block;
}

/* "hide" mode: JS hides it on the live site; in the editor we just dim it. */
.elementor-editor-active .mmdeco-pc--expire-hide.is-expired,
.elementor-edit-area .mmdeco-pc--expire-hide.is-expired {
	opacity: 0.45;
}

.mmdeco-pc .mmdeco-pc__editor-note {
	margin: 10px 0 0;
	padding: 6px 10px;
	border: 1px dashed #c69c53;
	border-radius: 4px;
	font-size: 0.75rem;
	color: #684b36;
	background: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.mmdeco-pc__inner {
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"left right"
			"text text"
			"count count";
		justify-items: center;
		row-gap: 28px;
		text-align: center;
	}

	.mmdeco-pc__deco--left  { grid-area: left;  justify-self: end; }
	.mmdeco-pc__deco--right { grid-area: right; justify-self: start; }
	.mmdeco-pc__text        { grid-area: text; }
	.mmdeco-pc__countdown   { grid-area: count; }

	.mmdeco-pc__boxes {
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.mmdeco-pc__inner {
		padding: 0 16px;
	}

	.mmdeco-pc .mmdeco-pc__title {
		font-size: 1.9rem;
	}

	.mmdeco-pc--hide-images-mobile .mmdeco-pc__deco {
		display: none;
	}

	.mmdeco-pc--hide-images-mobile .mmdeco-pc__inner {
		grid-template-areas:
			"text text"
			"count count";
	}
}
