/* Newsletter ŘO – Public CSS */

/* ===== OVERLAY / MODAL ===== */
.nro-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.nro-overlay.nro-is-open {
	display: flex;
}
.nro-modal-wrap {
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
	width: 100%;
	max-width: 460px;
	padding: 40px 36px;
	position: relative;
	box-sizing: border-box;
	animation: nroFadeIn .2s ease;
}
@keyframes nroFadeIn {
	from { opacity: 0; transform: translateY(-16px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ===== ZAVŘÍT ===== */
.nro-modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #999;
	padding: 0 4px;
	transition: color .15s;
}
.nro-modal-close:hover {
	color: #333;
}

/* ===== NADPIS + INTRO ===== */
.nro-modal-title {
	margin: 0 0 6px;
	font-size: 2rem;
}
.nro-modal-intro {
	margin: 0 0 24px;
	color: #666;
	font-size: 14px;
	line-height: 1.5;
}

/* ===== FORMULÁŘ ===== */
.nro-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.nro-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.nro-field label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
}
.nro-required {
	color: #c62828;
}
.nro-field input[type="email"],
.nro-field input[type="text"] {
	width: 100%;
	padding: 10px 13px;
	border: 1.5px solid #ccc;
	border-radius: 5px;
	font-size: 15px;
	transition: border-color .15s, box-shadow .15s;
	box-sizing: border-box;
	background: #fff;
}
.nro-field input[type="email"]:focus,
.nro-field input[type="text"]:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .12);
}

/* ===== GDPR CHECKBOX ===== */
.nro-field--checkbox {
	flex-direction: row;
	align-items: flex-start;
}
.nro-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 9px;
	cursor: pointer;
	font-size: 13px;
	color: #444;
	line-height: 1.5;
}
.nro-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	cursor: pointer;
	accent-color: #2271b1;
}
.nro-checkbox-label a {
	color: #2271b1;
}

/* ===== HONEYPOT ===== */
.nro-hp-field {
	display: none !important;
	visibility: hidden;
	position: absolute;
	left: -9999px;
}

/* ===== HLÁŠKY ===== */
.nro-messages {
	min-height: 0;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 5px;
}
.nro-messages:not(:empty) {
	padding: 10px 14px;
}
.nro-messages.nro-msg--success {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}
.nro-messages.nro-msg--error {
	background: #ffebee;
	color: #b71c1c;
	border: 1px solid #ef9a9a;
}

/* ===== TLAČÍTKO ===== */
.nro-btn {
	display: inline-block;
	padding: 11px 22px;
	font-family: inherit;
	font-size: 1.1em;
	font-weight: 400;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	text-align: center;
	transition: background-color 0.2s ease, transform 0.15s ease;
}
.nro-btn--primary {
	background: #3e9ce4;
	color: #fff;
}
.nro-btn--primary:hover {
	background: #2f7fc0;
}
.nro-btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

/* ===== ODHLAŠOVACÍ FORMULÁŘ (inline) ===== */
.nro-unsubscribe-wrap {
	max-width: 480px;
}
.nro-unsubscribe-wrap .nro-btn--primary {
	background: #b32d2e;
}
.nro-unsubscribe-wrap .nro-btn--primary:hover {
	background: #8c1c1c;
}

/* ===== PŘIHLAŠOVACÍ ODKAZ ===== */
.nro-subscribe-trigger {
	cursor: pointer;
}

/* ===== RESPONZIVITA ===== */
@media (max-width: 480px) {
	.nro-modal-wrap {
		padding: 28px 20px;
	}
}

/* ===== TLAČÍTKO ODHLÁŠENÍ ===== */
.nro-btn--danger {
	background: #b32d2e;
}
.nro-btn--danger:hover {
	background: #8c1c1c;
}