/* =========================================================================
   PREFERINTE COOKIE-URI - fereastra modala + link din banner/footer.
   Incarcat pe tot site-ul (link-ul "Setari cookie-uri" trebuie sa fie
   disponibil oriunde), stilizat in acelasi verde ca restul site-ului.
   ========================================================================= */

.ncert-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px;
	box-sizing: border-box;
}

.ncert-cookie-modal.is-open {
	display: flex;
}

.ncert-cookie-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(11, 43, 30, .55);
}

.ncert-cookie-modal__box {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 560px;
	max-height: 88vh;
	overflow-y: auto;
	background: #ffffff;
	border-radius: 16px;
	padding: 34px 30px 28px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
	font-family: inherit;
}

.ncert-cookie-modal__close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 32px;
	height: 32px;
	border: none;
	background: #f2f6f4;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	color: #43524b;
	cursor: pointer;
}

.ncert-cookie-modal__box h2 {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 800;
	color: #0b2b1e;
}

.ncert-cookie-modal__intro {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.6;
	color: #4b5851;
}

.ncert-cookie-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 16px 0;
	border-top: 1px solid #edf2ef;
}

.ncert-cookie-row__text h3 {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: #0b2b1e;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.ncert-cookie-status {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .04em;
	text-transform: uppercase;
	padding: 2px 9px;
	border-radius: 999px;
}

.ncert-cookie-status--on {
	background-color: #e6f5eb;
	color: #1f7a45;
}

.ncert-cookie-status--off {
	background-color: #f2f0e8;
	color: #8a7a3d;
}

.ncert-cookie-row__text p {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
	color: #6b7770;
}

.ncert-cookie-toggle {
	position: relative;
	flex: 0 0 auto;
	display: inline-block;
	cursor: pointer;
}

.ncert-cookie-toggle input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ncert-cookie-toggle__track {
	display: block;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background-color: #d8dfdb;
	transition: background-color .2s ease;
}

.ncert-cookie-toggle__thumb {
	display: block;
	width: 18px;
	height: 18px;
	margin: 3px;
	border-radius: 50%;
	background-color: #ffffff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .2s ease;
}

.ncert-cookie-toggle input:checked + .ncert-cookie-toggle__track {
	background-color: #1f7a45;
}

.ncert-cookie-toggle input:checked + .ncert-cookie-toggle__track .ncert-cookie-toggle__thumb {
	transform: translateX(18px);
}

.ncert-cookie-toggle--locked .ncert-cookie-toggle__track {
	background-color: #1f7a45;
	opacity: .6;
	cursor: not-allowed;
}

.ncert-cookie-toggle--locked .ncert-cookie-toggle__thumb {
	transform: translateX(18px);
}

.ncert-cookie-modal__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 24px;
}

.ncert-cookie-btn {
	flex: 1 1 auto;
	border: none;
	border-radius: 999px;
	padding: 11px 18px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
	text-align: center;
}

.ncert-cookie-btn--ghost {
	background-color: #f2f6f4;
	color: #43524b;
}

.ncert-cookie-btn--accept {
	background-color: #e6f5eb;
	color: #1f7a45;
}

.ncert-cookie-btn--save {
	background-color: #1f7a45;
	color: #ffffff;
}

.ncert-cookie-btn--save:hover {
	background-color: #175c34;
}

@media (max-width: 480px) {
	.ncert-cookie-modal__box {
		margin: 4vh 12px;
		padding: 26px 20px 22px;
	}

	.ncert-cookie-modal__actions {
		flex-direction: column;
	}
}

/* Link-ul "Setari cookie-uri" injectat in bannerul Cookie Notice, langa
   Accepta/Refuza - fara fundal, doar text subliniat, discret. */
#cookie-notice .ncert-cookie-settings-link,
a.ncert-cookie-settings-link {
	background: transparent !important;
	color: inherit;
	text-decoration: underline;
	box-shadow: none !important;
}

/* Link-ul din footer. */
.ncert-fp-list .ncert-cookie-settings-link {
	cursor: pointer;
}
