/* Promozione settimanale — allineato al tema Glozin (Instrument Sans, pulsanti pill, raggio 10px, easing tema). */

.zotta-promo-modal[hidden] {
	display: none !important;
}

.zotta-promo-modal {
	--zp-ease: cubic-bezier(.3, 1, .3, 1);
	--zp-ease-sheet: cubic-bezier(.7, 0, .2, 1);
	--zp-dark: var(--gz-color-dark, #111);
	--zp-base: var(--gz-color-base, #444);
	--zp-primary: var(--gz-color-primary, #283618);
	--zp-radius: var(--gz-rounded-md, 10px);

	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: var(--gz-body-font, "Instrument Sans", Arial, sans-serif);
	color: var(--zp-base);
}

.zotta-promo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .5);
	cursor: pointer;
	opacity: 0;
	transition: opacity .4s ease;
}

.zotta-promo-modal__panel {
	position: relative;
	display: grid;
	grid-template-columns: auto 340px;
	max-width: min(860px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	background: #fff;
	border-radius: var(--zp-radius);
	box-shadow: 0 4px 8px rgba(0, 0, 0, .16);
	overflow: hidden;
	opacity: 0;
	transform: translateY(30px);
	transition: opacity .4s var(--zp-ease), transform .5s var(--zp-ease);
}

.zotta-promo-modal.is-open .zotta-promo-modal__backdrop {
	opacity: 1;
}

.zotta-promo-modal.is-open .zotta-promo-modal__panel {
	opacity: 1;
	transform: none;
}

/* Foto */

.zotta-promo-modal__media {
	display: block;
	overflow: hidden;
	background: #f5f5f5;
	line-height: 0;
}

.zotta-promo-modal__img {
	display: block;
	width: auto;
	height: min(600px, calc(100vh - 40px));
	height: min(600px, calc(100dvh - 40px));
	max-width: 100%;
	object-fit: cover;
	transition: transform .4s var(--zp-ease);
}

.zotta-promo-modal__media:hover .zotta-promo-modal__img {
	transform: scale(1.05);
}

/* Testo */

.zotta-promo-modal__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	padding: 50px 30px 30px;
	overflow-y: auto;
}

.zotta-promo-modal__eyebrow {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: var(--gz-subheading-font-weight, 500);
	line-height: 1.3;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--zp-primary);
}

.zotta-promo-modal__title {
	margin: 0 0 18px;
	font-family: var(--gz-heading-font, inherit);
	font-size: 30px;
	font-weight: var(--gz-heading-font-weight, 600);
	line-height: 1.15;
	letter-spacing: var(--gz-heading-letter-spacing, -.034em);
	text-transform: none;
	color: var(--zp-dark);
}

.zotta-promo-modal__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--zp-dark);
}

.zotta-promo-modal__price .wcpbc-price {
	display: contents;
}

.zotta-promo-modal__price del {
	order: 2;
	font-size: 15px;
	font-weight: 400;
	color: var(--gz-color-grey, #888);
	opacity: 1;
}

.zotta-promo-modal__price ins {
	order: 1;
	text-decoration: none;
	color: var(--gz-color-price-sale, #d0473e);
}

.zotta-promo-modal__price .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}

.zotta-promo-modal__until {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	gap: 8px;
	margin: 0 0 24px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--zp-primary);
	background: rgba(82, 123, 47, .1);
	border-radius: var(--gz-rounded-full, 9999px);
}

/* Pulsante: stesso stile del bottone primario del tema */

.zotta-promo-modal__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--gz-button-icon-spacing, 10px);
	width: 100%;
	padding: var(--gz-button-padding-top, 16.5px) var(--gz-button-padding-right, 20px);
	font-size: var(--gz-button-font-size, 15px);
	font-weight: var(--gz-button-font-weight, 600);
	line-height: 1;
	letter-spacing: -.024em;
	color: var(--gz-button-color, #fff) !important;
	text-decoration: none !important;
	background-color: var(--gz-button-bg-color, #111);
	border: var(--gz-button-border-width, 1px) solid var(--gz-button-bg-color, #111);
	border-radius: var(--gz-button-rounded, 30px);
	transition: background-color .25s, border-color .25s;
}

.zotta-promo-modal__cta svg {
	transition: transform .4s var(--zp-ease);
}

.zotta-promo-modal__cta:hover,
.zotta-promo-modal__cta:focus-visible {
	background-color: var(--gz-button-bg-color-hover, #283618);
	border-color: var(--gz-button-bg-color-hover, #283618);
}

.zotta-promo-modal__cta:hover svg {
	transform: translateX(3px);
}

/* "No, grazie" come gz-button-subtle */

.zotta-promo-modal__dismiss {
	position: relative;
	align-self: center;
	margin: 18px 0 0;
	padding: 0 0 3px;
	font: inherit;
	font-size: 13px;
	line-height: 1;
	color: var(--zp-dark);
	background: none;
	border: 0;
	cursor: pointer;
}

.zotta-promo-modal__dismiss::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform-origin: right;
	transition: transform .4s var(--zp-ease);
}

.zotta-promo-modal__dismiss:hover::after {
	transform: scaleX(0);
}

/* Chiudi: icona tema, ruota in hover */

.zotta-promo-modal__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	color: var(--zp-dark);
	background: #fff;
	border: 0;
	border-radius: 50%;
	box-shadow: 5px 0 30px rgba(0, 0, 0, .08);
	opacity: .8;
	cursor: pointer;
	transition: transform .4s var(--zp-ease), opacity .4s var(--zp-ease);
}

.zotta-promo-modal__close:hover,
.zotta-promo-modal__close:focus-visible {
	opacity: 1;
	transform: rotate(180deg);
}

html.zotta-promo-open,
html.zotta-promo-open body {
	overflow: hidden;
}

/* I popup del tema (newsletter / leave) restano in attesa finché la promo è aperta. */
html.zotta-promo-open .glozin-popup {
	visibility: hidden !important;
}

html.zotta-promo-open .joinchat {
	display: none !important;
}

/* Tablet / mobile: bottom sheet come i popup del tema */

@media (max-width: 767px) {
	.zotta-promo-modal {
		align-items: flex-end;
		padding: 0;
	}

	.zotta-promo-modal__panel {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: none;
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
		border-radius: 15px 15px 0 0;
		opacity: 1;
		transform: translateY(100%);
		transition: transform .45s var(--zp-ease-sheet);
	}

	.zotta-promo-modal__media {
		flex: 0 1 auto;
		min-height: 0;
		display: flex;
		justify-content: center;
		background: #1f2a1c;
	}

	.zotta-promo-modal__img {
		width: auto;
		max-width: 100%;
		height: auto;
		max-height: calc(100dvh - 300px);
		object-fit: contain;
	}

	.zotta-promo-modal__media:hover .zotta-promo-modal__img {
		transform: none;
	}

	.zotta-promo-modal__body {
		flex: 0 0 auto;
		padding: 18px 20px calc(16px + env(safe-area-inset-bottom, 0px));
		overflow: visible;
	}

	.zotta-promo-modal__eyebrow {
		margin-bottom: 6px;
		font-size: 12px;
	}

	.zotta-promo-modal__title {
		margin-bottom: 8px;
		font-size: 22px;
	}

	.zotta-promo-modal__price {
		margin-bottom: 10px;
		font-size: 18px;
	}

	.zotta-promo-modal__until {
		margin-bottom: 14px;
	}

	.zotta-promo-modal__dismiss {
		margin-top: 14px;
	}

	.zotta-promo-modal__close {
		top: 12px;
		right: 12px;
	}
}

@media (min-width: 768px) and (max-width: 900px) {
	.zotta-promo-modal__panel {
		grid-template-columns: auto 300px;
	}

	.zotta-promo-modal__img {
		height: min(520px, calc(100dvh - 40px));
	}

	.zotta-promo-modal__body {
		padding: 50px 24px 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zotta-promo-modal__backdrop,
	.zotta-promo-modal__panel,
	.zotta-promo-modal__img,
	.zotta-promo-modal__close {
		transition: none !important;
	}
}
