/* 123 Settings — age gate. Shown only while the page is locked. */

.ss123-age {
	display: none;
}

.ss123-age-locked .ss123-age {
	display: flex;
	position: fixed;
	z-index: 100000;
	inset: 0;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba( 0, 0, 0, 0.85 );
}

.ss123-age-locked body {
	overflow: hidden;
}

.ss123-age__box {
	width: 100%;
	max-width: 460px;
	padding: 32px 28px;
	border-radius: 6px;
	background: #fff;
	color: #1d1d1d;
	text-align: center;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.3 );
}

.ss123-age__heading {
	margin: 0 0 12px;
	font-size: 22px;
	line-height: 1.3;
}

.ss123-age__text {
	margin-bottom: 22px;
	font-size: 15px;
	line-height: 1.5;
}

.ss123-age__text p:last-child {
	margin-bottom: 0;
}

.ss123-age__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
}

/*
 * The selectors below are longer than they look like they need to be, and that
 * is deliberate.
 *
 * Woodmart styles every button with
 * :is(.btn,.button,button,[type=submit],[type=button]), and :is() weighs as
 * much as its heaviest argument, so that rule counts as a single class. Our
 * buttons carry type="button", so it matches them too. A plain .ss123-age__yes
 * would weigh exactly the same, and then the load order decides which colour
 * wins: not something to depend on.
 *
 * Winning on weight instead of with !important keeps the colour overridable,
 * both from the setting and later from a child theme.
 */
.ss123-age .ss123-age__buttons button {
	flex: 1 1 160px;
	padding: 12px 18px;
	border: 1px solid currentColor;
	border-radius: 4px;
	background-image: none;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
}

.ss123-age .ss123-age__buttons button:hover {
	opacity: 0.9;
}

/*
 * Own setting first, then the theme's primary colour, then a neutral dark.
 * That last step is what keeps this working on a theme that knows no such
 * variable. The :hover twin is there because the theme repaints buttons on
 * hover as well.
 */
.ss123-age .ss123-age__buttons button.ss123-age__yes,
.ss123-age .ss123-age__buttons button.ss123-age__yes:hover {
	background-color: var( --ss123-age-yes, var( --wd-primary-color, #1d1d1d ) );
	border-color: var( --ss123-age-yes, var( --wd-primary-color, #1d1d1d ) );
	color: #fff;
}

.ss123-age .ss123-age__buttons button.ss123-age__no,
.ss123-age .ss123-age__buttons button.ss123-age__no:hover {
	background-color: transparent;
	border-color: #1d1d1d;
	color: #1d1d1d;
}

.ss123-age__denied {
	display: none;
	margin: 18px 0 0;
	color: #b32d2e;
	font-weight: 600;
}

.ss123-age-denied .ss123-age__denied {
	display: block;
}

.ss123-age-denied .ss123-age__buttons {
	display: none;
}
