/* Cars and Roses — Wall Preview
   Namespaced with .cnr-wp- so it can't clash with the theme's own classes.
   Swap the variables below to match the site's real palette/typography;
   these defaults are a neutral placeholder, not the final brand pass. */

.cnr-wp-open-btn {
	--cnr-wp-bg: #121210;
	--cnr-wp-surface: #1b1a17;
	--cnr-wp-text: #f3efe6;
	--cnr-wp-text-dim: #a39c8c;
	--cnr-wp-accent: #c08a3e;
	--cnr-wp-border: #37332c;

	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 12px 18px;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	color: var(--cnr-wp-bg);
	background: var(--cnr-wp-accent);
	border: 1px solid var(--cnr-wp-accent);
	border-radius: 8px;
	cursor: pointer;
}
.cnr-wp-open-btn:hover { filter: brightness(1.05); }

.cnr-wp-modal {
	--cnr-wp-bg: #121210;
	--cnr-wp-surface: #1b1a17;
	--cnr-wp-surface-2: #242220;
	--cnr-wp-text: #f3efe6;
	--cnr-wp-text-dim: #a39c8c;
	--cnr-wp-accent: #c08a3e;
	--cnr-wp-border: #37332c;
	--cnr-wp-warn: #d97757;
	--cnr-wp-ok: #7fae6f;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	background: rgba(0, 0, 0, 0.6);
	padding: 0;
}
.cnr-wp-modal[hidden] { display: none; }

.cnr-wp-panel {
	position: relative;
	width: 100%;
	max-width: 480px;
	max-height: 94vh;
	background: var(--cnr-wp-bg);
	color: var(--cnr-wp-text);
	border-radius: 16px 16px 0 0;
	box-sizing: border-box;
	font-family: system-ui, -apple-system, sans-serif;
	display: flex;
	flex-direction: column;
	overflow: hidden; /* the panel itself no longer scrolls — .cnr-wp-scroll-area does, so the close button and scroll cue below can stay
	                   pinned to the panel's edges regardless of scroll position */
}
@media (min-width: 540px) {
	.cnr-wp-modal { align-items: center; }
	.cnr-wp-panel { border-radius: 16px; max-height: 90vh; }
}

.cnr-wp-scroll-area {
	overflow-y: auto;
	padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

.cnr-wp-close {
	position: absolute;
	top: 12px; right: 12px;
	width: 34px; height: 34px;
	border-radius: 50%;
	border: 1px solid var(--cnr-wp-border);
	background: var(--cnr-wp-surface);
	color: var(--cnr-wp-text);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.cnr-wp-title {
	font-size: 19px;
	font-weight: 700;
	margin: 0 34px 14px 0;
}

.cnr-wp-scroll-cue {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 42px;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 6px;
	background: linear-gradient(to bottom, rgba(18, 18, 16, 0), var(--cnr-wp-bg) 75%);
	pointer-events: none;
	z-index: 10;
	opacity: 1;
	transition: opacity .2s ease;
}
.cnr-wp-scroll-cue-hidden { opacity: 0; }
.cnr-wp-scroll-cue-arrow {
	display: inline-flex;
	width: 26px; height: 26px;
	align-items: center; justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.14);
	color: var(--cnr-wp-text);
	font-size: 15px;
	animation: cnr-wp-scroll-cue-bounce 1.6s ease-in-out infinite;
}
@keyframes cnr-wp-scroll-cue-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(3px); }
}

.cnr-wp-status,
.cnr-wp-status-box {
	font-size: 12.5px;
	padding: 9px 12px;
	border-radius: 10px;
	border: 1px solid var(--cnr-wp-border);
	background: var(--cnr-wp-surface);
	color: var(--cnr-wp-text-dim);
	line-height: 1.5;
	margin-bottom: 12px;
}
.cnr-wp-status.cnr-wp-warn-status { color: var(--cnr-wp-warn); border-color: var(--cnr-wp-warn); }
.cnr-wp-status-box { color: var(--cnr-wp-ok); }

.cnr-wp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 12px;
}
.cnr-wp-chip {
	font: inherit;
	font-size: 12.5px;
	font-weight: 600;
	padding: 7px 12px;
	border-radius: 999px;
	border: 1px solid var(--cnr-wp-border);
	background: var(--cnr-wp-surface);
	color: var(--cnr-wp-text-dim);
	cursor: pointer;
	white-space: nowrap;
}
.cnr-wp-chip:hover { color: var(--cnr-wp-text); border-color: var(--cnr-wp-text-dim); }
.cnr-wp-chip-active {
	background: var(--cnr-wp-accent);
	border-color: var(--cnr-wp-accent);
	color: var(--cnr-wp-bg);
}

.cnr-wp-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	border-radius: 14px;
	overflow: hidden;
	background: var(--cnr-wp-surface);
	border: 1px solid var(--cnr-wp-border);
	touch-action: none;
	margin-bottom: 12px;
}
.cnr-wp-wall-placeholder {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, var(--cnr-wp-surface-2), var(--cnr-wp-surface));
}
.cnr-wp-video,
.cnr-wp-wall-photo {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.cnr-wp-hint {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	text-align: center; padding: 0 28px;
	font-size: 13px; color: var(--cnr-wp-text-dim);
	pointer-events: none; margin: 0;
}

.cnr-wp-artwork {
	position: absolute; left: 0; top: 0;
	display: flex; flex-direction: column;
	cursor: grab; touch-action: none;
	filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .45));
}
.cnr-wp-artwork:active { cursor: grabbing; }
.cnr-wp-artwork img {
	/* Raw print, no frame/mat — most of this catalog's finishes (aluminium,
	   plexiglass, canvas) are frameless, so a decorative border here would
	   misrepresent the product. Swap in a border only for finishes that are
	   actually framed, if/when that distinction is read from the variation. */
	flex: 1; width: 100%; height: 100%;
	object-fit: cover;
	box-sizing: border-box;
	-webkit-user-drag: none;
	user-select: none;
	display: block;
}
.cnr-wp-size-tag {
	align-self: center;
	margin-top: 6px;
	font-size: 10px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--cnr-wp-bg);
	background: var(--cnr-wp-text);
	border-radius: 999px;
	padding: 3px 9px;
	white-space: nowrap;
}

.cnr-wp-calib-svg { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.cnr-wp-calib-svg line { stroke: var(--cnr-wp-accent); stroke-width: 2; stroke-dasharray: 6 5; }
.cnr-wp-calib-marker {
	position: absolute;
	width: 22px; height: 22px;
	margin-left: -11px; margin-top: -11px;
	border-radius: 50%;
	background: var(--cnr-wp-accent);
	border: 3px solid var(--cnr-wp-text);
	z-index: 7; touch-action: none; cursor: grab;
}
.cnr-wp-calib-badge {
	position: absolute;
	transform: translate(-50%, calc(-100% - 10px));
	background: var(--cnr-wp-text);
	color: var(--cnr-wp-bg);
	font-size: 11px; font-weight: 700;
	padding: 3px 9px; border-radius: 999px;
	white-space: nowrap; z-index: 7; pointer-events: none;
}

.cnr-wp-warn {
	font-size: 12.5px; color: var(--cnr-wp-warn);
	line-height: 1.5; margin: 0 0 12px;
}

.cnr-wp-distance-row {
	display: flex; align-items: baseline; justify-content: space-between;
	font-size: 12px; color: var(--cnr-wp-text-dim);
	margin-bottom: 6px;
}
#cnr-wp-distance-value { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--cnr-wp-text); }
.cnr-wp-modal input[type="range"] { width: 100%; accent-color: var(--cnr-wp-accent); }

.cnr-wp-link {
	display: block;
	margin-top: 8px;
	background: none; border: none; padding: 0;
	color: var(--cnr-wp-accent);
	font-size: 12.5px; font-weight: 600;
	text-decoration: underline; cursor: pointer;
}

.cnr-wp-calib-input {
	display: flex; align-items: center; gap: 8px;
	font-size: 13px; color: var(--cnr-wp-text-dim);
	margin: 10px 0 2px;
}
.cnr-wp-calib-input input {
	width: 72px;
	background: var(--cnr-wp-surface);
	border: 1px solid var(--cnr-wp-border);
	color: var(--cnr-wp-text);
	border-radius: 8px;
	padding: 8px 10px;
	font: inherit; font-size: 13px;
}
.cnr-wp-helper { font-size: 12px; color: var(--cnr-wp-text-dim); line-height: 1.5; margin: 0; }

.cnr-wp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cnr-wp-btn {
	flex: 1 1 auto;
	font: inherit; font-size: 13.5px; font-weight: 600;
	border-radius: 10px; padding: 12px 14px;
	border: 1px solid var(--cnr-wp-border);
	background: var(--cnr-wp-surface);
	color: var(--cnr-wp-text);
	cursor: pointer; text-align: center;
	box-sizing: border-box;
}
.cnr-wp-btn-primary { background: var(--cnr-wp-accent); border-color: var(--cnr-wp-accent); color: var(--cnr-wp-bg); }
.cnr-wp-btn-ghost { background: transparent; color: var(--cnr-wp-text-dim); }
