/**
 * Mint Bros Metal Pricing - frontend styles.
 */

.mbmp-lock-bar {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 14px;
	line-height: 1;
}

.mbmp-lock-bar--mini {
	justify-content: center;
	margin: 8px 0 12px;
}

.mbmp-lock-bar--checkout {
	justify-content: flex-end;
	margin: 0 0 10px;
}

/* Kept for baskets rendered by an earlier release. */
.mbmp-lock-wrap {
	display: block;
	margin-top: 6px;
	line-height: 1;
}

/*
 * A quiet, considered marker rather than a badge that shouts.
 *
 * Hairline rule, restrained gold, letter-spaced small caps for the label and
 * lining figures for the time, so the digits do not jump width as they change.
 */
.mbmp-lock {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 12px 6px;
	border: 1px solid rgba( 158, 128, 60, 0.28 );
	border-radius: 2px;
	background: linear-gradient( 180deg, rgba( 197, 168, 96, 0.07 ), rgba( 197, 168, 96, 0.03 ) );
	color: #6c5a2c;
	font-size: 12px;
	line-height: 1.4;
	white-space: nowrap;
	vertical-align: middle;
	text-decoration: none;
}

/* Never underlined or coloured as a link, whatever the theme wraps it in. */
.mbmp-lock,
.mbmp-lock * {
	text-decoration: none !important;
	cursor: default;
}

.mbmp-lock--hidden,
.mbmp-lock--duplicate,
.mbmp-lock-bar--duplicate {
	display: none !important;
}

.mbmp-lock__icon {
	flex: 0 0 auto;
	opacity: 0.75;
	transform: translateY( -0.5px );
}

.mbmp-lock__label {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-weight: 500;
	opacity: 0.82;
}

.mbmp-lock__time {
	font-variant-numeric: tabular-nums lining-nums;
	font-feature-settings: "tnum" 1, "lnum" 1;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #4a3d1c;
}

.mbmp-lock-bar--mini .mbmp-lock,
.mbmp-lock-wrap--mini .mbmp-lock {
	padding: 5px 9px 4px;
	font-size: 11px;
	gap: 5px;
}

.mbmp-price-unavailable {
	font-style: italic;
	opacity: 0.85;
}

@media ( prefers-color-scheme: dark ) {
	.mbmp-lock {
		border-color: rgba( 214, 187, 118, 0.30 );
		background: linear-gradient( 180deg, rgba( 214, 187, 118, 0.11 ), rgba( 214, 187, 118, 0.05 ) );
		color: #d9c48a;
	}

	.mbmp-lock__time {
		color: #f0e3bd;
	}
}
