.ppp-banner {
	position: fixed;
	z-index: 999999;
	box-sizing: border-box;
	/* Falls back to the browser's default page canvas colors so it adapts
	   to the visitor's light/dark preference when the admin hasn't chosen
	   custom colors; inline --ppp-bg/--ppp-text (set only in custom mode)
	   override this. */
	background-color: var(--ppp-bg, Canvas);
	color: var(--ppp-text, CanvasText);
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.ppp-banner__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px 24px;
}

.ppp-banner__message {
	margin: 0;
	flex: 1 1 320px;
}

.ppp-banner__links a {
	/* No color override: link color comes from the theme's own `a` styles. */
	text-decoration: underline;
	white-space: nowrap;
}

.ppp-banner__actions {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
}

.ppp-btn {
	cursor: pointer;
	border-radius: 4px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: inherit;
	font-weight: 600;
	transition: opacity 0.15s ease;
}

.ppp-btn:hover {
	opacity: 0.9;
}

/*
 * No background/color declared here on purpose: in "match theme" mode the
 * Accept button carries the .wp-element-button class so block themes style
 * it with their own theme.json button colors, and Decline stays a plain
 * outline that follows the banner's (inherited) text color via currentColor.
 * Custom colors, when chosen, are applied as inline styles which always
 * win regardless of what's declared here.
 */
.ppp-btn--accept {
	border: 1px solid currentColor;
}

.ppp-btn--decline {
	background: transparent;
	border: 1px solid currentColor;
	opacity: 0.8;
}

/* Positions */
.ppp-position-bottom {
	left: 0;
	right: 0;
	bottom: 0;
}

.ppp-position-top {
	left: 0;
	right: 0;
	top: 0;
}

.ppp-position-bottom-left {
	left: 16px;
	bottom: 16px;
	max-width: 420px;
	border-radius: 8px;
}

.ppp-position-bottom-right {
	right: 16px;
	bottom: 16px;
	max-width: 420px;
	border-radius: 8px;
}

.ppp-position-bottom-left .ppp-banner__inner,
.ppp-position-bottom-right .ppp-banner__inner {
	flex-direction: column;
	align-items: flex-start;
	padding: 20px;
}

.ppp-position-center {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	max-width: 480px;
	width: calc(100% - 32px);
	border-radius: 10px;
}

.ppp-position-center .ppp-banner__inner {
	flex-direction: column;
	align-items: stretch;
	text-align: center;
}

.ppp-position-center .ppp-banner__actions {
	justify-content: center;
}

.ppp-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 999998;
}

.ppp-overlay[hidden] {
	display: none;
}

/* Reopen button */
.ppp-reopen-btn {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999997;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.1);
	cursor: pointer;
	background: Canvas;
	color: CanvasText;
	font-size: 20px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.ppp-reopen-btn[hidden] {
	display: none;
}

@media (max-width: 600px) {
	.ppp-banner__inner {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
	}

	.ppp-banner__actions {
		justify-content: center;
	}
}
