/*
 * Promo banner. Brand: Space Grotesk (bundled, SIL Open Font License, see
 * ../fonts/OFL.txt), teal #009689 as the only accent, #0a0a0a, white and
 * neutral greys; gradients only on the background.
 */
@font-face {
	font-family: "AISG Space Grotesk";
	src: url( "../fonts/space-grotesk-500.woff" ) format( "woff" );
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "AISG Space Grotesk";
	src: url( "../fonts/space-grotesk-700.woff" ) format( "woff" );
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

.schema-ai-promo-banner {
	--aisg-teal: #009689;
	--aisg-ink: #0a0a0a;
	--aisg-line: rgba( 255, 255, 255, 0.16 );

	position: relative;
	overflow: hidden;
	margin: 20px 20px 0 2px;
	padding: 22px 170px 22px 30px;
	border-radius: 14px;
	background: radial-gradient( circle at 90% 0%, rgba( 0, 150, 137, 0.45 ), transparent 50% ), var( --aisg-ink );
	color: #ffffff;
	font-family: "AISG Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.14 );
}

.schema-ai-promo-banner * {
	box-sizing: border-box;
}

.schema-ai-promo-banner__row {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 26px;
	flex-wrap: wrap;
}

.schema-ai-promo-banner__row--top + .schema-ai-promo-banner__row--bottom {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var( --aisg-line );
}

/* Brand: the website logo, white name with teal icon and tagline. */
.schema-ai-promo-banner__brand {
	padding-right: 30px;
	border-right: 1px solid var( --aisg-line );
}

.schema-ai-promo-banner__brand img {
	display: block;
	width: auto;
	height: 64px;
}

/* Sale title: "Black Friday" + tilted sticker. */
.schema-ai-promo-banner__title {
	display: flex;
	align-items: center;
	gap: 14px;
}

.schema-ai-promo-banner__badge {
	max-width: 7.5em;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.6px;
}

.schema-ai-promo-banner__sticker {
	display: inline-block;
	padding: 4px 16px;
	border-radius: 999px;
	background: var( --aisg-teal );
	color: #ffffff;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: 0.5px;
	white-space: nowrap;
	transform: rotate( -4deg );
}

.schema-ai-promo-banner__sticker--small {
	margin-bottom: 8px;
	padding: 3px 10px;
	font-size: 13px;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	transform: none;
}

/* Offer: big number with two lines beside it. */
.schema-ai-promo-banner__offer {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.schema-ai-promo-banner__offer-value {
	color: var( --aisg-teal );
	font-size: 60px;
	font-weight: 700;
	line-height: 0.9;
	letter-spacing: -2.5px;
	white-space: nowrap;
}

.schema-ai-promo-banner__offer-text {
	display: flex;
	flex-direction: column;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.15;
}

.schema-ai-promo-banner__offer-text b {
	font-size: 19px;
	font-weight: 700;
}

.schema-ai-promo-banner__note {
	display: flex;
	flex-direction: column;
	padding: 10px 16px;
	border: 1.5px dashed rgba( 255, 255, 255, 0.4 );
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
}

.schema-ai-promo-banner__note b {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

/* Plain layout (no big number): headline and subtext. */
.schema-ai-promo-banner__text {
	flex: 1 1 280px;
	min-width: 220px;
}

.schema-ai-promo-banner__headline {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.4px;
}

.schema-ai-promo-banner__subtext {
	margin-top: 4px;
	color: rgba( 255, 255, 255, 0.8 );
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
}

/* Countdown: "Ends in:" with each number boxed. */
.schema-ai-promo-banner__countdown {
	display: flex;
	align-items: center;
	gap: 6px;
}

.schema-ai-promo-banner__ends {
	margin-right: 6px;
	font-size: 16px;
	font-weight: 700;
}

.schema-ai-promo-banner__countdown-unit {
	display: inline-flex;
	align-items: baseline;
	gap: 3px;
	padding: 6px 11px;
	border: 1px solid var( --aisg-line );
	border-radius: 9px;
	background: rgba( 255, 255, 255, 0.08 );
}

.schema-ai-promo-banner__countdown-value {
	font-size: 25px;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.schema-ai-promo-banner__countdown-label {
	color: var( --aisg-teal );
	font-size: 12px;
	font-style: normal;
	font-weight: 700;
}

.schema-ai-promo-banner__colon {
	font-weight: 700;
	opacity: 0.5;
}

/* Button: solid teal, never underlined. */
.schema-ai-promo-banner__cta,
.schema-ai-promo-banner__cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 14px 26px;
	border-radius: 10px;
	background: var( --aisg-teal );
	color: #ffffff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 4px 0 rgba( 0, 0, 0, 0.3 );
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.schema-ai-promo-banner__cta:hover,
.schema-ai-promo-banner__cta:focus {
	color: #ffffff;
	text-decoration: none;
	transform: translateY( -2px );
	box-shadow: 0 6px 0 rgba( 0, 0, 0, 0.3 );
}

.schema-ai-promo-banner__dismiss {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.14 );
	color: #ffffff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.schema-ai-promo-banner__dismiss:hover,
.schema-ai-promo-banner__dismiss:focus {
	background: rgba( 255, 255, 255, 0.28 );
}

/* Teal squares down the right edge. */
.schema-ai-promo-banner__pattern {
	position: absolute;
	z-index: 0;
	top: 0;
	right: 0;
	bottom: 0;
	width: 150px;
	pointer-events: none;
	background:
		linear-gradient( rgba( 0, 150, 137, 0.45 ), rgba( 0, 150, 137, 0.45 ) ) 0 0 / 50px 50px no-repeat,
		linear-gradient( rgba( 0, 150, 137, 0.2 ), rgba( 0, 150, 137, 0.2 ) ) 50px 50px / 50px 50px no-repeat,
		linear-gradient( rgba( 0, 150, 137, 0.55 ), rgba( 0, 150, 137, 0.55 ) ) 100px 100px / 50px 50px no-repeat,
		linear-gradient( rgba( 0, 150, 137, 0.15 ), rgba( 0, 150, 137, 0.15 ) ) 0 100px / 50px 50px no-repeat,
		linear-gradient( rgba( 0, 150, 137, 0.3 ), rgba( 0, 150, 137, 0.3 ) ) 100px 0 / 50px 50px no-repeat,
		linear-gradient( rgba( 0, 150, 137, 0.35 ), rgba( 0, 150, 137, 0.35 ) ) 50px 150px / 50px 50px no-repeat;
}

@media ( max-width: 1280px ) {
	.schema-ai-promo-banner {
		padding-right: 60px;
	}

	.schema-ai-promo-banner__offer {
		margin-left: 0;
	}

	.schema-ai-promo-banner__pattern {
		width: 90px;
		opacity: 0.6;
	}
}

@media ( max-width: 900px ) {
	.schema-ai-promo-banner__brand {
		padding-right: 0;
		border-right: 0;
		flex-basis: 100%;
	}
}

@media ( max-width: 782px ) {
	.schema-ai-promo-banner {
		margin: 16px 10px 0 0;
		padding: 18px 48px 18px 18px;
	}

	.schema-ai-promo-banner__brand img {
		height: 48px;
	}

	.schema-ai-promo-banner__offer-value {
		font-size: 46px;
	}

	.schema-ai-promo-banner__countdown-unit {
		padding: 5px 8px;
	}

	.schema-ai-promo-banner__countdown-value {
		font-size: 20px;
	}

	.schema-ai-promo-banner__cta {
		justify-content: center;
		width: 100%;
		margin-left: 0;
	}

	.schema-ai-promo-banner__pattern {
		display: none;
	}
}
