/* MatchLayer Demo — banner, modal, and one-click login styles. */

/* ----- Footer banner (fixed) ----- */
.ml-demo-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 99999;
	background: #fff8e1;
	color: #5c4400;
	border-top: 2px solid #ffc107;
	padding: 10px 16px;
	font-size: 13px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	text-align: center;
	line-height: 1.5;
	box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.ml-demo-banner__icon {
	display: inline-block;
	margin-right: 6px;
	color: #c8782e;
	font-weight: 700;
}

.ml-demo-banner__text strong,
.ml-demo-countdown {
	font-weight: 700;
	color: #b03a00;
}

/* Push site content up so the banner does not cover footer text. */
body {
	padding-bottom: 64px;
}

/* ----- Modal ----- */
.ml-demo-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.ml-demo-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.ml-demo-modal__panel {
	position: relative;
	background: #fff;
	border-radius: 10px;
	max-width: 480px;
	width: calc(100% - 32px);
	padding: 28px 24px 22px;
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
	text-align: center;
}

.ml-demo-modal__title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 14px;
	color: #1a1a1a;
}

.ml-demo-modal__body {
	font-size: 14px;
	line-height: 1.7;
	color: #444;
	margin: 0 0 22px;
}

.ml-demo-modal__close {
	background: #2563eb;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 28px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease-in-out;
}

.ml-demo-modal__close:hover,
.ml-demo-modal__close:focus {
	background: #1d4ed8;
	outline: none;
}

/* ----- One-click login box (shortcode) ----- */
.ml-demo-login-box {
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	padding: 22px;
	background: #fafafa;
	max-width: 480px;
	margin: 16px auto;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.ml-demo-login-box--current {
	background: #f0f9ff;
	border-color: #bae6fd;
	color: #0c4a6e;
}

.ml-demo-login-box__lead {
	margin: 0 0 12px;
	font-weight: 600;
	color: #333;
}

.ml-demo-login-box__creds {
	list-style: none;
	padding: 0;
	margin: 0 0 18px;
	font-size: 13px;
	color: #555;
}

.ml-demo-login-box__creds li {
	margin: 4px 0;
}

.ml-demo-login-box__creds code {
	background: #fff;
	padding: 2px 8px;
	border-radius: 4px;
	border: 1px solid #ddd;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ml-demo-login-box__button {
	display: inline-block;
	background: #2563eb;
	color: #fff !important;
	text-decoration: none;
	padding: 11px 24px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.15s ease-in-out;
}

.ml-demo-login-box__button:hover,
.ml-demo-login-box__button:focus {
	background: #1d4ed8;
	color: #fff !important;
}
