/* Notify Me — CTA and subscription modal. Mobile-first. */

.ytn-notify-me {
	margin: 24px 0;
}

.ytn-notify-me__inner {
	padding: 24px;
	background: #f7f7f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	text-align: center;
}

.ytn-notify-me__cta,
.ytn-nm-form__submit {
	display: inline-block;
	padding: 12px 24px;
	background: #ee5f00;
	color: #fff;
	border: 0;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.ytn-notify-me__cta:hover,
.ytn-nm-form__submit:hover {
	background: #d35500;
}

.ytn-nm-form__submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Modal */
.ytn-nm-modal[hidden] {
	display: none;
}

.ytn-nm-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ytn-nm-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.ytn-nm-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 28px 24px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.ytn-nm-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.ytn-nm-modal__title {
	margin: 0 0 8px;
	font-size: 20px;
}

.ytn-nm-modal__desc {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

/* Honeypot — hidden from humans, present for bots. */
.ytn-nm-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ytn-nm-form__field {
	display: block;
	margin: 0 0 12px;
}

.ytn-nm-form__label {
	display: block;
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
}

.ytn-nm-form__field input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}

.ytn-nm-form__consent {
	display: flex;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 13px;
	line-height: 1.4;
	color: #555;
	text-align: left;
}

.ytn-nm-form__error {
	margin: 0 0 12px;
	color: #c0392b;
	font-size: 13px;
}

.ytn-nm-form__submit {
	width: 100%;
}

.ytn-nm-form__message {
	margin: 12px 0 0;
	font-size: 14px;
}

.ytn-nm-form__message[data-state="ok"] {
	color: #1e7e34;
}

.ytn-nm-form__message[data-state="error"] {
	color: #c0392b;
}

/* Tablet and up */
@media (min-width: 600px) {
	.ytn-nm-modal__dialog {
		padding: 32px;
	}

	.ytn-notify-me__inner {
		padding: 32px;
	}
}
