/*
 * Product preview popup of najlepsiemobily.sk: the homepage "Aký telefón máte?" items and the phone's
 * "Kompatibilné s týmto telefónom" cards (assets/js/pages/nm-product-modal.js, data: nm/v1/home/product).
 *
 * .nmh-modal > .nmh-modal__box[role=dialog] > .nmh-modal__x · .nmh-modal__body (.nmh-modal__gallery,
 * .nmh-modal__info: h3, price, text, attrs, .nmh-modal__actions with .nmh-modal__add and .nmh-modal__more)
 */
.nmh-modal-open {
	overflow: hidden;
}
.nmh-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: grid;
	place-items: center;
	padding: 16px;
	background: rgba(8, 33, 43, .55);
	font-family: var(--nd-font);
}
.nmh-modal__box {
	position: relative;
	width: min(920px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 30px 80px rgba(8, 33, 43, .35);
}
.nmh-modal__x {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: var(--primary-ultra-light);
	color: var(--primary-dark);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.nmh-modal__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: 28px;
	padding: 28px;
}
.nmh-modal__load {
	grid-column: 1 / -1;
	margin: 40px 0;
	text-align: center;
	color: #6b7280;
}
.nmh-modal__main img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: contain;
}
.nmh-modal__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
}
.nmh-modal__thumbs button {
	padding: 2px;
	border: 2px solid transparent;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}
.nmh-modal__thumbs button.is-on {
	border-color: var(--primary);
}
.nmh-modal__thumbs img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: contain;
}
.nmh-modal__info h3 {
	margin: 0 40px 10px 0;
	font-size: 22px;
	line-height: 1.25;
}
.nmh-modal__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 14px;
}
.nmh-modal__price b {
	font-size: 26px;
}
.nmh-modal__price s {
	color: #6b7280;
}
.nmh-modal__stock {
	color: #11743a;
	font-weight: 700;
}
.nmh-modal__text {
	color: #374151;
	font-size: 15px;
	line-height: 1.55;
}
.nmh-modal__text p {
	margin: 0 0 10px;
}
.nmh-modal__attrs {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 6px 14px;
	margin: 14px 0;
	font-size: 14px;
}
.nmh-modal__attrs dt {
	color: #6b7280;
}
.nmh-modal__attrs dd {
	margin: 0;
	font-weight: 600;
}
.nmh-modal__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-top: 18px;
}
.nmh-modal__add {
	border-radius: 999px;
	height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 7px;
	background: var(--nd-c-cta);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}
.nmh-modal__add:hover {
	background: var(--nd-c-cta-hover);
}
.nmh-modal__add.is-on {
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--primary);
	color: var(--primary-semi-dark);
}
.nmh-modal__more {
	color: var(--primary-semi-dark);
	font-weight: 600;
}
@media (max-width: 720px) {
	.nmh-modal { place-items: end center; padding: 0; }
	.nmh-modal__box { max-height: 92vh; border-radius: 18px 18px 0 0; }
	.nmh-modal__body { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 16px; }
	.nmh-modal__main img { max-height: 260px; }
	.nmh-modal__add { flex: 1; }
}
