.zn[hidden] { display: none !important; }

.zn {
	--zn-bg: #3f6b4a;
	--zn-fg: #ffffff;
	box-sizing: border-box;
	z-index: 999990;
	opacity: 0;
	transition: opacity .5s ease, transform .5s ease;
	font-size: 16px;
	line-height: 1.5;
}
.zn *, .zn *::before, .zn *::after { box-sizing: border-box; }
.zn.zn--in { opacity: 1; }
.zn.zn--out { opacity: 0; pointer-events: none; }

/* Μπάρες πάνω / κάτω */
.zn--top, .zn--bottom {
	position: fixed;
	left: 0;
	right: 0;
}
.zn--top { top: 0; transform: translateY(-12px); }
.zn--bottom { bottom: 0; transform: translateY(12px); }
.zn--top.zn--in, .zn--bottom.zn--in { transform: none; }

.zn--top .zn__box, .zn--bottom .zn__box {
	position: relative;
	background: var(--zn-bg);
	color: var(--zn-fg);
	padding: 12px 52px 12px 20px;
	text-align: center;
}
.zn--top .zn__box:not(:has(.zn__close)), .zn--bottom .zn__box:not(:has(.zn__close)) { padding-right: 20px; }

/* Pop up */
.zn--popup {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, .55);
}
.zn--popup[hidden] { display: none !important; }
.zn--popup .zn__box {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow: auto;
	background: var(--zn-bg);
	color: var(--zn-fg);
	padding: 36px 32px 32px;
	border-radius: 14px;
	text-align: center;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	transform: scale(.96);
	transition: transform .35s ease;
}
.zn--popup.zn--in .zn__box { transform: none; }

/* Κείμενο */
.zn__text > :first-child { margin-top: 0; }
.zn__text > :last-child { margin-bottom: 0; }
.zn__text p { margin: 0 0 .6em; color: inherit; }
.zn__text a { color: inherit; text-decoration: underline; }
.zn__text h1, .zn__text h2, .zn__text h3, .zn__text h4 { color: inherit; margin: 0 0 .4em; }

/* Κουμπί Χ */
.zn__close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.zn__close:hover, .zn__close:focus-visible { opacity: 1; background: rgba(255, 255, 255, .18); }
.zn--popup .zn__close { top: 10px; right: 10px; transform: none; }

/* Η σελίδα κατεβαίνει/ανεβαίνει ώστε η μπάρα να μη σκεπάζει το περιεχόμενο. */
html.zn-has-top body { padding-top: var(--zn-top-h, 0px); }
html.zn-has-bottom body { padding-bottom: var(--zn-bottom-h, 0px); }

@media (prefers-reduced-motion: reduce) {
	.zn, .zn--popup .zn__box { transition: none; }
}

/* Όταν η μπάρα αλλάζει ύψος (εναλλαγή ειδοποιήσεων) η σελίδα μετακινείται ομαλά. */
html.zn-has-top body, html.zn-has-bottom body { transition: padding .5s ease; }
