/* AIGenius Builder — Cookie banner GDPR (frontend, tutte le pagine). */
#aib-cookie-root {
	position: relative;
	z-index: 2147483000;
	font-family: inherit;
}

.aibc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483000;
	background: var(--aibc-bg, #fff);
	color: var(--aibc-text, #23282d);
	box-shadow: 0 -4px 24px rgba(15, 23, 42, .18);
	padding: 1rem 4%;
	box-sizing: border-box;
	font-size: .95rem;
	line-height: 1.5;
}

.aibc-pos-top .aibc-banner {
	top: 0;
	bottom: auto;
	box-shadow: 0 4px 24px rgba(15, 23, 42, .18);
}

.aibc-pos-modal .aibc-banner {
	top: 50%;
	bottom: auto;
	left: 50%;
	right: auto;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 2rem));
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(15, 23, 42, .35);
}

.aibc-banner[hidden] { display: none; }

.aibc-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.aibc-text { flex: 1 1 420px; }
.aibc-title { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.aibc-msg { margin: 0; }
.aibc-links a { color: inherit; text-decoration: underline; }

.aibc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.aibc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 8px;
	padding: .55rem 1.1rem;
	font-size: .9rem;
	font-weight: 600;
	cursor: pointer;
	background: transparent;
	color: inherit;
}

.aibc-btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.aibc-accept {
	background: var(--aibc-btn, #1f3a5f);
	color: var(--aibc-btn-text, #fff);
}

.aibc-reject {
	border-color: currentColor;
	opacity: .85;
}

.aibc-customize {
	text-decoration: underline;
}

.aibc-panel {
	flex-basis: 100%;
	max-width: 1200px;
	margin: .5rem auto 0;
	border-top: 1px solid rgba(127, 127, 127, .25);
	padding-top: .75rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.aibc-panel[hidden] { display: none; }

.aibc-cat {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	cursor: pointer;
}

.aibc-cat input { margin-top: .3rem; width: 1rem; height: 1rem; }
.aibc-cat-body { display: flex; flex-direction: column; }
.aibc-cat-name { font-weight: 600; }
.aibc-cat-desc { font-size: .82rem; opacity: .75; }
.aibc-save { align-self: flex-start; margin-top: .25rem; }

.aibc-floating {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 2147482999;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--aibc-btn, #1f3a5f);
	color: var(--aibc-btn-text, #fff);
	box-shadow: 0 4px 14px rgba(15, 23, 42, .3);
	opacity: .9;
}

.aibc-floating:hover { opacity: 1; }

.aibc-floating:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Link policy iniettati nel footer del sito (render AIB). */
.aib-cookie-policy-links a {
	color: inherit;
	text-decoration: underline;
}

@media (max-width: 640px) {
	.aibc-inner { flex-direction: column; align-items: stretch; }
	.aibc-actions { justify-content: stretch; }
	.aibc-actions .aibc-btn { flex: 1 1 auto; }
	.aibc-pos-modal .aibc-banner { width: calc(100vw - 1rem); }
}
