/**
 * Review Banner — Lance Desk Elementor widget.
 *
 * Gold is full-bleed. Photo is absolutely positioned on the left and clipped
 * into a slash. Quote padding-left = media width + clearance (must clear the
 * TOP of the diagonal, where the photo is widest — not media − slash).
 */

.nm-rb {
	--nm-rb-media: 48%;
	--nm-rb-slash: 14%;
	--nm-rb-clearance: 64px;
	--nm-rb-panel-from: #e8c45a;
	--nm-rb-panel-to: #f5e08a;
	--nm-rb-border: #c9a227;
	--nm-rb-radius: 14px;
	--nm-rb-border-w: 1px;
	--nm-rb-pad-top: 28px;
	--nm-rb-pad-right: 32px;
	--nm-rb-pad-bottom: 22px;

	position: relative;
	display: block;
	box-sizing: border-box;
	min-height: 280px;
	overflow: hidden;
	border-style: solid;
	border-width: var(--nm-rb-border-w);
	border-color: var(--nm-rb-border);
	border-radius: var(--nm-rb-radius);
	background: linear-gradient(90deg, var(--nm-rb-panel-from), var(--nm-rb-panel-to));
}

/* Absolute fill — always covers full banner height (no bottom gap). */
.nm-rb__media {
	position: absolute;
	top: 0;
	right: auto;
	bottom: 0;
	left: 0;
	z-index: 2;
	width: var(--nm-rb-media);
	overflow: hidden;
	clip-path: polygon(0 0, 100% 0, calc(100% - var(--nm-rb-slash)) 100%, 0 100%);
}

.nm-rb__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.nm-rb__ribbon {
	--nm-rb-ribbon-w: 72px;
	--nm-rb-ribbon-h: 118px;

	position: absolute;
	top: 0;
	left: 12px;
	z-index: 3;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	box-sizing: border-box;
	width: var(--nm-rb-ribbon-w);
	height: var(--nm-rb-ribbon-h);
	min-height: 0;
	padding: 14px 8px 28px;
	pointer-events: none;
}

.nm-rb__ribbon-bg {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
	line-height: 0;
}

.nm-rb__ribbon-bg img,
.nm-rb__ribbon-bg svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: fill;
}

.nm-rb__ribbon-text {
	position: relative;
	z-index: 1;
	color: #111;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-align: center;
	text-transform: uppercase;
	white-space: pre-line;
}

/*
 * Clearance must use media width (top of slash), NOT media − slash.
 * At the top the photo spans the full media column; that's where text was clipped.
 */
.nm-rb__body {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-sizing: border-box;
	width: 100%;
	min-height: 280px;
	min-height: inherit;
	padding-top: var(--nm-rb-pad-top);
	padding-right: var(--nm-rb-pad-right);
	padding-bottom: var(--nm-rb-pad-bottom);
	padding-left: calc(var(--nm-rb-media) + var(--nm-rb-clearance));
	background: transparent;
}

.nm-rb__quote {
	margin: 0;
	color: #111;
	font-size: 15px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.55;
}

.nm-rb__quote p {
	margin: 0 0 0.85em;
}

.nm-rb__quote p:last-child {
	margin-bottom: 0;
}

.nm-rb__stars {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 4px;
	margin-top: 18px;
	line-height: 0;
}

.nm-rb__star {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #5b2a78;
	line-height: 0;
}

.nm-rb__star svg,
.nm-rb__star img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Stacked layouts */
@media (max-width: 1024px) {
	.nm-rb--stack-tablet {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.nm-rb--stack-tablet .nm-rb__media {
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		width: 100%;
		min-height: 240px;
		aspect-ratio: 16 / 10;
		clip-path: none;
	}

	.nm-rb--stack-tablet .nm-rb__body {
		min-height: 0;
		padding-left: var(--nm-rb-clearance);
	}
}

@media (max-width: 767px) {
	.nm-rb--stack-mobile {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.nm-rb--stack-mobile .nm-rb__media {
		position: relative;
		top: auto;
		bottom: auto;
		left: auto;
		width: 100%;
		min-height: 200px;
		aspect-ratio: 16 / 10;
		clip-path: none;
	}

	.nm-rb--stack-mobile .nm-rb__body {
		min-height: 0;
		padding-left: var(--nm-rb-clearance);
		padding-right: 22px;
	}
}
