/**
 * NovaMax popup design — az OptiMonk mintakampány stílusát követve:
 * fehér kártya, középre igazított szöveg, sima "X" bezárás, tömör pink
 * CTA gomb + visszafogott szöveges másodlagos gomb.
 * Márkaszínek: #f94e6b (pink), #1e1d3f (sötétkék), #fff8d9 (krém).
 */

.novamax-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(30, 29, 63, 0.55);
	backdrop-filter: blur(2px);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.novamax-popup {
	--nm-primary: #f94e6b;
	--nm-primary-dark: #d63955;
	--nm-dark: #1e1d3f;
	--nm-cream: #fff8d9;
	background: #fef4f1;
	border: 1px solid #f97587;
	border-radius: 20px;
	width: min(400px, calc(100vw - 24px));
	max-width: calc(100vw - 24px);
	height: auto;
	min-height: 0;
	max-height: none;
	overflow: visible;
	position: relative;
	box-sizing: border-box;
	padding: 52px 14px 28px;
	box-shadow: 0 24px 60px rgba(30, 29, 63, 0.3);
	font-family: "Mohr Rounded Alt", Arial, Helvetica, sans-serif;
	color: var(--nm-dark);
	text-align: center;
	animation: none;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

@keyframes novamax-pop-in {
	from { opacity: 0; transform: scale(0.95) translateY(6px); }
	to { opacity: 1; transform: scale(1) translateY(0); }
}

.novamax-popup-content { display: flex; flex-direction: column; align-items: center; width: 100%; }

.novamax-popup-close {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	position: absolute;
	top: clamp(8px, 2.5vw, 12px);
	right: clamp(8px, 2.5vw, 12px);
	background: #ffc6ba !important;
	border: 0 !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 50%;
	width: 30px !important;
	height: 30px !important;
	min-width: 30px !important;
	max-width: 30px !important;
	min-height: 30px !important;
	max-height: 30px !important;
	padding: 0 !important;
	margin: 0;
	font-family: "Mohr Rounded Alt", Arial, Helvetica, sans-serif;
	font-size: 30px;
	font-weight: 900;
	-webkit-text-stroke: 0.5px #fff;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	transition: background-color 0.15s, transform 0.15s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.novamax-popup-close span {
	display: block !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 30px !important;
	font-weight: 900 !important;
	line-height: 1 !important;
	color: #fff !important;
	transform: translateY(-1px);
}
.novamax-popup-close:hover,
.novamax-popup-close:focus,
.novamax-popup-close:active {
	background: #f5ad9e !important;
	border: 0 !important;
	box-shadow: none !important;
	color: #fff;
	transform: scale(1.05);
}

.novamax-popup .novamax-popup-headline,
.novamax-popup h1.novamax-popup-headline,
.novamax-popup h2.novamax-popup-headline,
.novamax-popup h3.novamax-popup-headline,
.novamax-popup h4.novamax-popup-headline,
.novamax-popup h5.novamax-popup-headline,
.novamax-popup h6.novamax-popup-headline {
	margin: 0 0 6px !important;
	font-family: "MohrRounded-SemiBold", "Mohr Rounded Alt", Arial, Helvetica, sans-serif !important;
	font-weight: 800 !important;
	font-size: clamp(15px, 4.2vw, 18px) !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	color: #1e1d3f !important;
	text-align: center !important;
	width: 100%;
	max-width: 100%;
}

.novamax-popup .novamax-popup-desc {
	margin: 14px 0 0 !important;
	font-family: "MohrRounded-Regular", "Mohr Rounded Alt", Arial, Helvetica, sans-serif !important;
	color: var(--nm-dark) !important;
	line-height: 1.45 !important;
	font-size: clamp(14px, 3.9vw, 17px) !important;
	font-weight: 400 !important;
	text-align: center !important;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 0;
	box-sizing: border-box;
}

.novamax-popup .novamax-popup-highlight {
	background: none;
	padding: 0;
	border-radius: 0;
	display: block;
	color: var(--nm-primary);
	font-family: "MohrRounded-SemiBold", "Mohr Rounded Alt", Arial, Helvetica, sans-serif !important;
	font-weight: 400 !important;
	font-size: clamp(15px, 4.2vw, 18px) !important;
	line-height: 1.25 !important;
	letter-spacing: 0 !important;
	text-transform: uppercase !important;
	margin: 0 0 6px;
	text-align: center;
	width: 100%;
	max-width: 100%;
}

.novamax-popup-offer {
	display: flex;
	gap: 14px;
	align-items: center;
	border: 1px solid #f1eef9;
	background: #fbfaff;
	border-radius: 14px;
	padding: 14px 16px;
	margin: 16px 0 4px;
	text-align: left;
	width: 100%;
}
.novamax-popup-offer img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
}
.novamax-popup-offer strong { color: var(--nm-dark); font-size: 15px; }
.novamax-popup-offer .woocommerce-Price-amount { color: var(--nm-primary-dark); font-weight: 700; }

.novamax-popup-product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
	gap: 10px;
	width: 100%;
	margin: 16px 0 4px;
}

.novamax-popup-product-card {
	position: relative;
	border: 2px solid #f1eef9;
	background: #fbfaff;
	border-radius: 14px;
	padding: 12px 10px 14px;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.novamax-popup-product-card:hover { border-color: #f1c4cf; }
.novamax-popup-product-card.novamax-selected {
	border-color: var(--nm-primary);
	background: #fff;
	box-shadow: 0 4px 14px rgba(249, 78, 107, 0.18);
}

.novamax-popup-product-card img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 8px;
}

.novamax-popup-product-name {
	color: var(--nm-dark);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	margin-bottom: 2px;
}

.novamax-popup-product-price {
	color: var(--nm-primary-dark);
	font-weight: 700;
	font-size: 13px;
}
.novamax-popup-product-price .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

.novamax-popup-product-check {
	position: absolute;
	top: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid #d8d5e6;
	background: #fff;
}
.novamax-popup-product-card.novamax-selected .novamax-popup-product-check {
	border-color: var(--nm-primary);
	background: var(--nm-primary);
	box-shadow: inset 0 0 0 3px #fff;
}

.novamax-popup-gift {
	color: var(--nm-primary);
	font-weight: 600;
	margin: 12px 0 4px;
	background: none;
	border-radius: 0;
	padding: 0;
	font-size: 14.5px;
	max-width: 480px;
}

.novamax-popup-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	width: 100%;
}

.novamax-popup .novamax-popup-btn {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	border: 0 !important;
	outline: none !important;
	cursor: pointer;
	width: 100%;
	max-width: 100%;
	height: 56px;
	min-height: 56px;
	font-family: inherit;
	line-height: 1.4;
	box-sizing: border-box;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, opacity 0.15s ease;
}
.novamax-popup .novamax-popup-btn:active { transform: scale(0.98); }
.novamax-popup .novamax-popup-btn:focus { outline: none !important; box-shadow: none !important; }
.novamax-popup .novamax-popup-btn:disabled { cursor: wait; opacity: 0.65; }

.novamax-popup .novamax-popup-btn-accept {
	background: #fa4d6a !important;
	color: #fff !important;
	border-radius: 999px !important;
	padding: 12px 24px;
	font-size: clamp(12px, 3.5vw, 14px);
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: uppercase;
	box-shadow: none !important;
}
.novamax-popup .novamax-popup-btn-accept:hover,
.novamax-popup .novamax-popup-btn-accept:focus,
.novamax-popup .novamax-popup-btn-accept:active {
	background: rgba(250, 77, 106, 0.75) !important;
	color: #fff !important;
	box-shadow: none !important;
}

.novamax-popup .novamax-popup-btn-reject {
	background: rgba(249, 78, 104, 0) !important;
	border: 2px solid #f97587 !important;
	border-radius: 999px !important;
	color: var(--nm-primary) !important;
	font-weight: 400;
	font-size: clamp(12px, 3.5vw, 14px);
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: uppercase;
	padding: 12px 24px;
	box-shadow: none !important;
	opacity: 1;
}
.novamax-popup .novamax-popup-btn-reject:hover,
.novamax-popup .novamax-popup-btn-reject:focus {
	background: rgba(250, 77, 106, 0.75) !important;
	color: #fff !important;
	text-decoration: none;
	box-shadow: none !important;
}

.single_add_to_cart_button.novamax-loading { opacity: 0.6; pointer-events: none; }

@media (max-width: 480px) {
	.novamax-popup-overlay { align-items: center; overflow: hidden; padding: 8px; }
	.novamax-popup { width: calc(100vw - 16px); max-width: calc(100vw - 16px); height: auto; min-height: 0; margin: 0; padding: 46px 10px 20px; }
	.novamax-popup-close { top: 8px; right: 8px; width: 26px !important; height: 26px !important; min-width: 26px !important; max-width: 26px !important; min-height: 26px !important; max-height: 26px !important; font-size: 26px !important; }
	.novamax-popup-close span { font-size: 26px !important; }
	.novamax-popup .novamax-popup-headline { font-size: 16px !important; line-height: 1.2 !important; }
	.novamax-popup .novamax-popup-highlight { font-size: 16px !important; line-height: 1.2 !important; }
	.novamax-popup .novamax-popup-desc { margin-top: 12px !important; font-size: 15px !important; line-height: 1.35 !important; }
	.novamax-popup-actions { gap: 8px; margin-top: 14px; }
	.novamax-popup .novamax-popup-btn { height: 50px; min-height: 50px; }
}
