/* ==========================================================================
   MBH Core — storefront extras
   Review photo upload/lightbox + no-JS form notices.
   ========================================================================== */

/* Review form ------------------------------------------------------------- */
.mbh-review-upload {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px dashed var(--mbh-line-2, #d4ccbc);
	border-radius: 8px;
	background: var(--mbh-cream, #fbf9f5);
}

.mbh-review-upload label {
	display: block;
	margin-bottom: 7px;
	font-size: 12px;
	font-weight: 700;
}

.mbh-review-upload input[type="file"] {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 9px;
	border: 1px solid var(--mbh-line, #e2dccf);
	border-radius: 6px;
	background: #fff;
	font-size: 12px;
}

.mbh-review-upload input[type="file"]::file-selector-button {
	margin-right: 10px;
	padding: 7px 12px;
	border: 0;
	border-radius: 4px;
	background: var(--mbh-ink, #0b0b0c);
	color: #fff;
	font: inherit;
	font-size: 11px;
	font-weight: 700;
	cursor: pointer;
}

.mbh-review-upload__hint {
	display: block;
	margin-top: 6px;
	color: var(--mbh-muted, #6f6a61);
	font-size: 11px;
}

/* Review images ----------------------------------------------------------- */
.mbh-review-images {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.mbh-review-images__item {
	display: block;
	width: 74px;
	height: 74px;
	border: 1px solid var(--mbh-line, #e2dccf);
	border-radius: 6px;
	background: var(--mbh-paper, #f3efe7);
	overflow: hidden;
	cursor: zoom-in;
	transition: transform .2s ease, border-color .2s ease;
}

.mbh-review-images__item:hover {
	border-color: var(--mbh-ink, #0b0b0c);
	transform: translateY(-2px);
}

.mbh-review-images__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Lightbox ---------------------------------------------------------------- */
.mbh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(11, 11, 12, .9);
	opacity: 0;
	visibility: hidden;
	transition: opacity .22s ease, visibility .22s ease;
}

.mbh-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

.mbh-lightbox__figure {
	position: relative;
	max-width: min(960px, 92vw);
	max-height: 88vh;
	margin: 0;
	text-align: center;
}

.mbh-lightbox__image {
	max-width: min(960px, 92vw);
	max-height: 82vh;
	width: auto;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
	object-fit: contain;
}

.mbh-lightbox__caption {
	margin-top: 10px;
	color: rgba(255, 255, 255, .68);
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.mbh-lightbox__close,
.mbh-lightbox__prev,
.mbh-lightbox__next {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 50%;
	background: rgba(11, 11, 12, .55);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.mbh-lightbox__close:hover,
.mbh-lightbox__prev:hover,
.mbh-lightbox__next:hover {
	border-color: #fff;
	background: rgba(11, 11, 12, .85);
	transform: scale(1.05);
}

.mbh-lightbox__close {
	top: 18px;
	right: 18px;
}

.mbh-lightbox__prev {
	top: 50%;
	left: 18px;
	margin-top: -23px;
}

.mbh-lightbox__next {
	top: 50%;
	right: 18px;
	margin-top: -23px;
}

.mbh-lightbox__prev[hidden],
.mbh-lightbox__next[hidden] {
	display: none;
}

body.mbh-lightbox-open {
	overflow: hidden;
}

/* No-JS / fallback form notices ------------------------------------------- */
.mbh-flash {
	position: fixed;
	right: clamp(12px, 3vw, 26px);
	bottom: clamp(12px, 3vw, 26px);
	z-index: 99999;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	max-width: min(440px, calc(100vw - 24px));
	padding: 15px 16px;
	border: 1px solid var(--mbh-line, #e2dccf);
	border-left: 4px solid var(--mbh-ink, #0b0b0c);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(11, 11, 12, .18);
	color: var(--mbh-ink, #0b0b0c);
	font-size: 13px;
	line-height: 1.5;
	animation: mbh-flash-in .3s ease both;
}

.mbh-flash--success {
	border-left-color: var(--mbh-success, #2f7a4f);
}

.mbh-flash--error {
	border-left-color: var(--mbh-danger, #b42318);
}

.mbh-flash button {
	flex-shrink: 0;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(11, 11, 12, .06);
	color: inherit;
	font-size: 17px;
	line-height: 1;
	cursor: pointer;
}

.mbh-flash button:hover {
	background: rgba(11, 11, 12, .12);
}

.mbh-flash.is-leaving {
	opacity: 0;
	transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease;
}

@keyframes mbh-flash-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 600px) {
	.mbh-review-images__item {
		width: 62px;
		height: 62px;
	}

	.mbh-lightbox {
		padding: 12px;
	}

	.mbh-lightbox__prev,
	.mbh-lightbox__next {
		width: 40px;
		height: 40px;
		margin-top: -20px;
	}

	.mbh-lightbox__prev {
		left: 8px;
	}

	.mbh-lightbox__next {
		right: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.mbh-lightbox,
	.mbh-flash,
	.mbh-review-images__item,
	.mbh-lightbox__close,
	.mbh-lightbox__prev,
	.mbh-lightbox__next {
		animation: none;
		transition: none;
	}
}

/* Honeypot fields must never take up space or be visible. */
.mbh-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
