/* Motoraduno GDPR – Cookie banner e modale */

.mrn-gdpr-root {
	position: relative;
	z-index: 999990;
}

.mrn-gdpr-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 999991;
}

.mrn-gdpr-overlay.mrn-gdpr-hidden {
	display: none;
}

html.mrn-gdpr-pending {
	overflow: hidden;
}

.mrn-gdpr-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999992;
	background: #fff;
	border-top: 3px solid #0F6E56;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
	padding: 20px 16px;
}

.mrn-gdpr-banner.mrn-gdpr-hidden {
	display: none;
}

.mrn-gdpr-banner-inner {
	max-width: 960px;
	margin: 0 auto;
}

.mrn-gdpr-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: #222;
}

.mrn-gdpr-text {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.55;
	color: #444;
}

.mrn-gdpr-links {
	margin: 0 0 14px;
	font-size: 13px;
}

.mrn-gdpr-links a {
	color: #0F6E56;
	text-decoration: underline;
}

.mrn-gdpr-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mrn-gdpr-btn {
	padding: 10px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	font-family: inherit;
	transition: background 0.2s, color 0.2s;
}

.mrn-gdpr-btn-necessary {
	background: #f0f0f0;
	color: #333;
	border: 1px solid #ccc;
}

.mrn-gdpr-btn-necessary:hover {
	background: #e8e8e8;
}

.mrn-gdpr-btn-customize {
	background: #fff;
	color: #0F6E56;
	border: 1px solid #0F6E56;
}

.mrn-gdpr-btn-customize:hover {
	background: #f0faf6;
}

.mrn-gdpr-btn-accept-all {
	background: #0F6E56;
	color: #fff;
}

.mrn-gdpr-btn-accept-all:hover {
	background: #0c5c48;
}

/* Modale */
.mrn-gdpr-modal {
	position: fixed;
	inset: 0;
	z-index: 999993;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.5);
}

.mrn-gdpr-modal.mrn-gdpr-visible {
	display: flex;
}

.mrn-gdpr-modal-box {
	background: #fff;
	border-radius: 12px;
	max-width: 520px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 24px 22px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mrn-gdpr-modal-title {
	margin: 0 0 8px;
	font-size: 20px;
	color: #222;
}

.mrn-gdpr-modal-intro {
	margin: 0 0 16px;
	font-size: 13px;
	color: #666;
	line-height: 1.5;
}

.mrn-gdpr-category {
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 12px 14px;
	margin-bottom: 10px;
}

.mrn-gdpr-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.mrn-gdpr-category-head strong {
	font-size: 14px;
	color: #222;
}

.mrn-gdpr-always {
	font-size: 11px;
	font-weight: 600;
	color: #0F6E56;
	background: #f0faf6;
	padding: 3px 8px;
	border-radius: 12px;
}

.mrn-gdpr-category-desc {
	margin: 0;
	font-size: 12px;
	color: #666;
	line-height: 1.45;
}

.mrn-gdpr-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.mrn-gdpr-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.mrn-gdpr-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	transition: 0.2s;
}

.mrn-gdpr-slider::before {
	content: '';
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.2s;
}

.mrn-gdpr-switch input:checked + .mrn-gdpr-slider {
	background: #0F6E56;
}

.mrn-gdpr-switch input:checked + .mrn-gdpr-slider::before {
	transform: translateX(20px);
}

.mrn-gdpr-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

/* Pulsante floating */
.mrn-gdpr-floating {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 999989;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 24px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
	font-family: inherit;
	color: #333;
	transition: border-color 0.2s;
}

.mrn-gdpr-floating:hover {
	border-color: #0F6E56;
	color: #0F6E56;
}

/* Cookie policy shortcode */
.mrn-cookie-policy {
	max-width: 900px;
	margin: 0 auto;
}

.mrn-cookie-policy h2,
.mrn-cookie-policy h3 {
	color: #222;
}

.mrn-cookie-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	margin: 20px 0;
}

.mrn-cookie-table th,
.mrn-cookie-table td {
	border: 1px solid #ddd;
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}

.mrn-cookie-table th {
	background: #f5f5f5;
	font-weight: 600;
}

.mrn-cookie-table code {
	font-size: 12px;
	word-break: break-all;
}

.mrn-gdpr-reopen-link {
	background: none;
	border: none;
	color: #0F6E56;
	text-decoration: underline;
	cursor: pointer;
	font-size: inherit;
	font-family: inherit;
	padding: 0;
}

@media (max-width: 600px) {
	.mrn-gdpr-actions,
	.mrn-gdpr-modal-actions {
		flex-direction: column;
	}

	.mrn-gdpr-btn {
		width: 100%;
		text-align: center;
	}

	.mrn-cookie-table {
		font-size: 12px;
	}

	.mrn-cookie-table th,
	.mrn-cookie-table td {
		padding: 8px;
	}
}
