/**
 * Cookie banner and settings panel.
 *
 * The bar is a bottom strip: it never covers the page content and never
 * intercepts clicks outside itself, so forms and payment redirects keep
 * working with "Doar necesare" selected.
 */

.dad-consent[hidden],
.dad-consent__bar[hidden],
.dad-consent__modal[hidden] {
	display: none !important;
}

.dad-consent {
	position: relative;
	z-index: 9998;
	font-family: 'Montserrat', Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #0A2849;
}

/* ---------------------------------------------------------------- Bar -- */

.dad-consent__bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9998;
	background: #ffffff;
	border-top: 1px solid #E8EDF3;
	box-shadow: 0 -6px 24px rgba(10, 40, 73, 0.12);
	padding: 18px 20px 14px;
}

.dad-consent__inner {
	max-width: 1180px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
}

.dad-consent__text {
	margin: 0;
	flex: 1 1 auto;
	color: #0A2849;
}

.dad-consent__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 0 0 auto;
}

.dad-consent__btn {
	display: inline-block;
	min-height: 45px;
	padding: 0 30px;
	border: 1px solid #0959D1;
	border-radius: 2px;
	background: #0959D1;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dad-consent__btn:hover {
	background: #0B4DB0;
	border-color: #0B4DB0;
}

/* Both primary choices carry the same weight. */
.dad-consent__btn--necessary {
	background: #F4F6F9;
	border-color: #0959D1;
	color: #0959D1;
}

.dad-consent__btn--necessary:hover {
	background: #E8EDF3;
	border-color: #0B4DB0;
	color: #0B4DB0;
}

.dad-consent__link {
	display: block;
	margin: 10px auto 0;
	max-width: 1180px;
	padding: 0;
	border: 0;
	background: none;
	color: #0959D1;
	text-decoration: underline;
	font-size: 13px;
	cursor: pointer;
}

.dad-consent__link:hover {
	color: #0B4DB0;
}

/* -------------------------------------------------------------- Modal -- */

.dad-consent__modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.dad-consent__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 40, 73, 0.55);
}

.dad-consent__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	max-height: 90vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 2px;
	padding: 32px;
	box-shadow: 0 18px 48px rgba(10, 40, 73, 0.28);
}

.dad-consent__title {
	margin: 0 0 12px;
	font-size: 22px;
	color: #0A2849;
}

.dad-consent__intro {
	margin: 0 0 20px;
	color: #4E77A4;
}

.dad-consent__list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.dad-consent__item {
	padding: 16px 0;
	border-top: 1px solid #E8EDF3;
}

.dad-consent__item-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	cursor: pointer;
}

.dad-consent__item-label {
	flex: 1 1 auto;
	font-weight: 600;
	color: #0A2849;
}

.dad-consent__badge {
	font-size: 12px;
	font-weight: 500;
	color: #7D9BBC;
}

.dad-consent__item-desc {
	margin: 6px 0 0;
	color: #4E77A4;
	font-size: 13px;
}

.dad-consent__modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: flex-end;
}

/* ----------------------------------------------------------- Mobile -- */

@media (max-width: 767px) {
	.dad-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
	}

	.dad-consent__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.dad-consent__btn {
		width: 100%;
		text-align: center;
	}

	.dad-consent__dialog {
		padding: 22px;
	}

	.dad-consent__modal-actions {
		flex-direction: column-reverse;
	}

	.dad-consent__modal-actions .dad-consent__btn {
		width: 100%;
	}
}

/* Reserve room so the fixed bar does not cover the footer content. */
body.dad-consent-visible {
	padding-bottom: 0;
}
