/* QWeb Suite — Consent Banner Styles
   Positions: bottom, top, modal, floating
   Styles: minimal, full
   ================================================================ */

.qweb-banner {
	position: fixed;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	opacity: 0;
	transition: opacity .35s ease, transform .35s ease;
	box-sizing: border-box;
}

.qweb-banner.is-visible {
	opacity: 1;
	transform: translateY(0) !important;
}

.qweb-banner.is-hiding {
	opacity: 0;
	pointer-events: none;
}

/* --- Bottom bar (default) --- */
.qweb-banner--bottom {
	bottom: 0;
	left: 0;
	right: 0;
	transform: translateY(100%);
	background: #fff;
	border-top: 3px solid #ED1C24;
	box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}

/* --- Top bar --- */
.qweb-banner--top {
	top: 0;
	left: 0;
	right: 0;
	transform: translateY(-100%);
	background: #fff;
	border-bottom: 3px solid #ED1C24;
	box-shadow: 0 4px 20px rgba(0,0,0,.12);
}

/* --- Modal (centre) --- */
.qweb-banner--modal {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -40%);
	width: 90%;
	max-width: 560px;
	background: #fff;
	border-radius: 12px;
	border-top: 4px solid #ED1C24;
	box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.qweb-banner--modal.is-visible {
	transform: translate(-50%, -50%) !important;
}

.qweb-banner--modal::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: -1;
}

/* --- Floating corner --- */
.qweb-banner--floating {
	bottom: 24px;
	right: 24px;
	width: 360px;
	background: #fff;
	border-radius: 12px;
	border-top: 4px solid #ED1C24;
	box-shadow: 0 8px 32px rgba(0,0,0,.18);
	transform: translateY(20px);
}

/* --- Inner layout --- */
.qweb-banner__inner {
	padding: 16px 20px;
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.qweb-banner__inner--full {
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.qweb-banner__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.qweb-banner__title {
	font-size: 15px;
	font-weight: 700;
	color: #111;
}

.qweb-banner__close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #9ca3af;
	padding: 0 4px;
}

.qweb-banner__close:hover {
	color: #111;
}

.qweb-banner__text {
	flex: 1;
	color: #374151;
	margin: 0;
	font-size: 13px;
}

/* --- Categories (full style) --- */
.qweb-banner__categories {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 12px 14px;
	background: #f9fafb;
}

.qweb-banner__cat {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 13px;
	color: #374151;
}

.qweb-banner__cat input[type="checkbox"] {
	margin-top: 2px;
	accent-color: #ED1C24;
	flex-shrink: 0;
}

.qweb-banner__cat strong {
	color: #111;
}

/* --- Action buttons --- */
.qweb-banner__actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
}

.qweb-banner__btn {
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	border: 2px solid transparent;
	white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
	font-family: inherit;
}

.qweb-banner__btn--accept {
	background: #ED1C24;
	color: #fff;
	border-color: #ED1C24;
}

.qweb-banner__btn--accept:hover {
	background: #c4161d;
	border-color: #c4161d;
}

.qweb-banner__btn--essential {
	background: transparent;
	color: #6b7280;
	border-color: #d1d5db;
}

.qweb-banner__btn--essential:hover {
	background: #f3f4f6;
	color: #111;
}

.qweb-banner__btn--manage {
	background: transparent;
	color: #ED1C24;
	border-color: #ED1C24;
}

.qweb-banner__btn--manage:hover {
	background: #ED1C24;
	color: #fff;
}

/* Responsive */
@media (max-width: 600px) {
	.qweb-banner--floating {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		border-radius: 12px 12px 0 0;
	}

	.qweb-banner__actions {
		justify-content: stretch;
	}

	.qweb-banner__btn {
		flex: 1;
		text-align: center;
	}
}
