.wpbycc {
	--wpbycc-bg: #020617;
	--wpbycc-text: rgba(255, 255, 255, 0.9);
	--wpbycc-muted: rgba(255, 255, 255, 0.7);
	--wpbycc-border: rgba(255, 255, 255, 0.3);
	--wpbycc-accent: #0284c7;
	position: fixed;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 99999;
	max-height: calc(100vh - 32px);
	margin: 0 auto;
	max-width: 720px;
	overflow-y: auto;
	background: var(--wpbycc-bg);
	border: 1px solid var(--wpbycc-border);
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	color: var(--wpbycc-text);
	font-size: 15px;
	line-height: 1.6;
}

.wpbycc[hidden],
.wpbycc [hidden] {
	display: none;
}

.wpbycc__inner {
	padding: 24px;
}

.wpbycc__title {
	margin: 0 0 8px;
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.wpbycc__text {
	margin: 0 0 16px;
	color: var(--wpbycc-muted);
}

.wpbycc a {
	color: #fff;
	text-decoration: underline;
}

.wpbycc a:hover {
	text-decoration: none;
}

.wpbycc__panel {
	margin: 0;
}

.wpbycc__fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.wpbycc__category {
	margin: 0 0 12px;
	padding: 12px 0 0;
	border-top: 1px solid var(--wpbycc-border);
}

.wpbycc__category-name {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 4px;
	color: #fff;
	font-weight: 600;
}

.wpbycc__category-name input {
	cursor: pointer;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--wpbycc-accent);
}

label.wpbycc__category-name {
	cursor: pointer;
}

.wpbycc__always {
	color: var(--wpbycc-muted);
	font-size: 13px;
	font-weight: 400;
}

.wpbycc__category-text {
	margin: 0;
	color: var(--wpbycc-muted);
	font-size: 14px;
}

.wpbycc__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

/* Base button. The outline variant is the secondary style. */
.wpbycc__btn {
	padding: 10px 22px;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 999px;
	color: #020617;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	line-height: 1.4;
	transition: opacity 0.5s;
}

/* Same hover as the theme's .btn: fade to 75% opacity. */
.wpbycc__btn:hover {
	opacity: 0.75;
}

.wpbycc__btn--outline {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: rgba(255, 255, 255, 0.8);
}

.wpbycc__btn:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

/* Pushes a button to the far end of its row. */
.wpbycc__btn--end {
	margin-left: auto;
}

.wpbycc button:focus-visible,
.wpbycc a:focus-visible,
.wpbycc input:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.wpbycc .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 480px) {
	.wpbycc__inner {
		padding: 16px;
	}

	.wpbycc__btn {
		flex: 1 1 100%;
		margin-left: 0;
		text-align: center;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.wpbycc {
		animation: wpbycc-in 0.25s ease-out;
	}
}

@keyframes wpbycc-in {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}
