/* Sellery Consent Banner – Google Consent Mode v2 compatible */

.sellery-cmp {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	/* Do not block the page: only the panel itself is interactive. */
	pointer-events: none;
}

.sellery-cmp[hidden] {
	display: none !important;
}

.sellery-cmp__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	display: none;
	pointer-events: auto;
}

/* Full-screen modal (with blocking overlay) only when preferences are open. */
.sellery-cmp--modal {
	align-items: center;
}

.sellery-cmp--modal .sellery-cmp__overlay {
	display: block;
}

.sellery-cmp__panel {
	position: relative;
	width: 100%;
	max-width: 960px;
	margin: 16px;
	background: #fff;
	color: #1a1a1a;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	overflow: hidden;
	pointer-events: auto;
}

.sellery-cmp__banner,
.sellery-cmp__preferences {
	padding: 24px;
}

.sellery-cmp__title {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.sellery-cmp__text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: #444;
}

.sellery-cmp__text a {
	color: #e67e00;
	text-decoration: underline;
}

.sellery-cmp__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.sellery-cmp__btn {
	padding: 10px 18px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	border: none;
	transition: opacity 0.15s;
}

.sellery-cmp__btn:hover {
	opacity: 0.9;
}

.sellery-cmp__btn--primary {
	background: #f28e01;
	color: #fff;
}

.sellery-cmp__btn--secondary {
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #ccc;
}

.sellery-cmp__category {
	padding: 16px 0;
	border-top: 1px solid #eee;
}

.sellery-cmp__category:first-of-type {
	border-top: none;
	padding-top: 0;
}

.sellery-cmp__category p {
	margin: 6px 0 0;
	font-size: 13px;
	color: #666;
	line-height: 1.45;
}

.sellery-cmp__category-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.sellery-cmp__badge {
	font-size: 12px;
	color: #666;
	background: #f0f0f0;
	padding: 4px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

/* Toggle switch (button + aria-checked, theme-independent) */
.sellery-cmp__toggle {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.sellery-cmp__toggle-slider {
	position: absolute;
	pointer-events: none;
	inset: 0;
	background: #ccc;
	border-radius: 26px;
	transition: 0.2s;
	display: block;
}

.sellery-cmp__toggle-slider::before {
	content: "";
	position: absolute;
	height: 20px;
	width: 20px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.2s;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sellery-cmp__toggle[aria-checked="true"] .sellery-cmp__toggle-slider {
	background: #f28e01;
}

.sellery-cmp__toggle[aria-checked="true"] .sellery-cmp__toggle-slider::before {
	transform: translateX(22px);
}

.sellery-cmp__toggle:focus-visible {
	box-shadow: 0 0 0 2px rgba(242, 142, 1, 0.5);
	border-radius: 26px;
}

/* Floating reopen button */
.sellery-cmp__reopen {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 999998;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 600;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 20px;
	cursor: pointer;
	opacity: 0.85;
}

.sellery-cmp__reopen:hover {
	opacity: 1;
}

@media (max-width: 600px) {
	.sellery-cmp__actions {
		flex-direction: column;
	}

	.sellery-cmp__btn {
		width: 100%;
		text-align: center;
	}
}
