/**
 * v1.89.2 — the notice that greets a visitor and appears before a test.
 *
 * Only shown for notifications published inside the popup window (2 days
 * by default), and only once per notification per browser.
 */

.ygam-np-ov {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba( 15, 23, 42, 0.68 );
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.ygam-np-ov[hidden] {
	display: none !important;
}

.ygam-np-box {
	position: relative;
	width: 100%;
	max-width: 480px;
	margin: auto;
	background: #fff;
	color: #0f172a;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba( 15, 23, 42, 0.35 );
	font-size: 15px;
	line-height: 1.55;
	overflow: hidden;
}

.ygam-np-top {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: #1d4ed8;
	color: #fff;
}

.ygam-np-top .ygam-np-kicker {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.ygam-np-x {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba( 255, 255, 255, 0.18 );
	color: #fff;
	font-size: 22px;
	line-height: 1;
	font-family: inherit;
	cursor: pointer;
}

.ygam-np-x:hover {
	background: rgba( 255, 255, 255, 0.3 );
}

.ygam-np-x:focus-visible {
	outline: 3px solid #bfdbfe;
	outline-offset: 2px;
}

.ygam-np-in {
	padding: 18px 18px 6px;
	max-height: 60vh;
	overflow-y: auto;
}

.ygam-np-item + .ygam-np-item {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
}

.ygam-np-title {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.35;
}

.ygam-np-title-alt {
	margin: 0 0 8px;
	font-size: 15px;
	font-weight: 700;
	color: #334155;
}

.ygam-np-body {
	margin: 0;
	color: #334155;
	/* A pasted web address must never push the window sideways. */
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* A link in a notice reads as a button, not as a long address. */
.ygam-np-link {
	display: inline-block;
	margin: 6px 0 2px;
	padding: 9px 18px;
	min-height: 40px;
	line-height: 22px;
	border-radius: 8px;
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
	font-weight: 700;
	text-decoration: none;
	word-break: normal;
}

.ygam-np-link:hover {
	background: #d1fae5;
	color: #065f46;
}

.ygam-np-link::after {
	content: " \2197";
}

.ygam-np-body p {
	margin: 0 0 8px;
}

.ygam-np-when {
	margin: 8px 0 0;
	font-size: 12.5px;
	color: #64748b;
}

.ygam-np-foot {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	padding: 14px 18px 18px;
}

.ygam-np-btn {
	flex: 1 1 140px;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid transparent;
	border-radius: 9px;
	font: inherit;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	background: #1d4ed8;
	color: #fff;
}

.ygam-np-btn:hover {
	background: #1e3a8a;
	color: #fff;
}

.ygam-np-btn--ghost {
	background: #fff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}

.ygam-np-btn--ghost:hover {
	background: #eff6ff;
	color: #1d4ed8;
}

.ygam-np-btn:focus-visible {
	outline: 3px solid #93c5fd;
	outline-offset: 2px;
}

@media ( max-width: 420px ) {
	.ygam-np-box { border-radius: 14px; }
	.ygam-np-in { padding: 16px 14px 4px; }
	.ygam-np-foot { padding: 12px 14px 16px; }
	.ygam-np-title { font-size: 17px; }
}

/* A phone held sideways has very little height. */
@media ( max-height: 480px ) {
	.ygam-np-in { max-height: 45vh; }
}
