/* Buy lives inside the lightbox popup (see portfolio-popup-buy.css/.js),
   not on the grid tile itself, on any device. */

/* Size-selection popup */
.nb-buy-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}
.nb-buy-modal-overlay.nb-open {
	opacity: 1;
	visibility: visible;
}
body.nb-buy-modal-locked {
	overflow: hidden;
}
.nb-buy-modal {
	background: #fff;
	color: #111;
	width: 100%;
	max-width: 420px;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 10px;
	padding: 32px 28px 28px;
	position: relative;
	transform: scale(0.95);
	transition: transform 0.2s ease;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.nb-buy-modal-overlay.nb-open .nb-buy-modal {
	transform: scale(1);
}
@media (max-width: 600px) {
	.nb-buy-modal-overlay {
		align-items: flex-start;
		padding-top: 40px;
		/* clears the site's fixed WhatsApp widget in the bottom-right corner */
		padding-bottom: 140px;
	}
	.nb-buy-modal {
		/* fits between the overlay's padding, scrolling internally rather
		   than extending under the WhatsApp widget */
		max-height: calc(100vh - 220px);
	}
}
.nb-buy-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 6px;
}
.nb-buy-modal-close:hover {
	color: #111;
}
.nb-buy-modal-title {
	margin: 0 0 20px;
	font-size: 18px;
	font-weight: 600;
	padding-right: 20px;
}

/* "Preview on your wall" mockup - a simple illustrated room (not a real
   photo) that composites the actual print into a frame, scaled to the
   selected size, so the customer gets a sense of relative scale. */
.nb-wall-preview-label {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888;
}
.nb-wall-room {
	position: relative;
	height: 220px;
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #00000014;
	background-image: url(https://nbscapes.com/wp-content/themes/novo-child/inc/wall-photo-v4.jpg);
	background-size: cover;
	background-position: center 35%;
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	padding-top: 14px;
	padding-right: 18%;
}
.nb-wall-console {
	display: none; /* the wall-photo.jpg background is a real room photo already */
}
.nb-wall-frame {
	background: #fff;
	padding: 5px;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
	transition: width 0.25s ease, height 0.25s ease;
}
.nb-wall-frame img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nb-buy-modal-sizes {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 24px;
}
.nb-buy-modal-size-option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	text-align: left;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.nb-buy-modal-size-option:hover {
	border-color: #999;
}
.nb-buy-modal-size-option.nb-selected {
	border-color: #111;
	background: #f7f7f7;
}
.nb-buy-modal-size-price {
	font-weight: 600;
	white-space: nowrap;
}
.nb-buy-modal-submit {
	width: 100%;
	padding: 14px;
	background: #111;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	cursor: pointer;
	transition: background 0.15s ease;
}
.nb-buy-modal-submit:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.nb-buy-modal-submit:not(:disabled):hover {
	background: #333;
}
