/**
 * Front-end styles. Every colour reads from the CSS custom properties
 * printed by GPR_Public::print_css_variables(), so the settings screen's
 * colour scheme controls this entire file.
 */

.gpr-wrapper.gpr-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var( --gpr-bg, #fff );
	color: var( --gpr-text, #1c1e21 );
	border: 1px solid var( --gpr-accent, #1a73e8 );
	border-radius: var( --gpr-radius, 8px );
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.gpr-wrapper.gpr-button:hover {
	background: var( --gpr-accent, #1a73e8 );
	color: #fff;
}

.gpr-google-g {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var( --gpr-accent, #1a73e8 );
	color: #fff;
	font-size: 11px;
	font-weight: 700;
}

.gpr-wrapper.gpr-button:hover .gpr-google-g {
	background: #fff;
	color: var( --gpr-accent, #1a73e8 );
}

/* Slots */
.gpr-slot {
	margin: 16px 0;
}

.gpr-slot-header,
.gpr-slot-footer {
	display: flex;
	justify-content: center;
	padding: 8px 0;
}

.gpr-slot-floating {
	position: fixed;
	bottom: 24px;
	z-index: 9999;
	margin: 0;
}

.gpr-slot-floating-left { left: 24px; }
.gpr-slot-floating-right { right: 24px; }

.gpr-nav-item {
	display: inline-flex;
	align-items: center;
}

/* Inline card */
.gpr-wrapper.gpr-inline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	background: var( --gpr-bg, #fff );
	border: 1px solid #e5e7eb;
	border-radius: var( --gpr-radius, 8px );
	text-decoration: none;
}

.gpr-inline-text {
	color: var( --gpr-text, #1c1e21 );
	font-size: 15px;
	font-weight: 500;
}

/* Banner */
.gpr-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	background: var( --gpr-bg, #fff );
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -2px 12px rgba( 0, 0, 0, 0.08 );
	transform: translateY( 100% );
	transition: transform 0.25s ease;
}

.gpr-banner.gpr-banner-visible {
	transform: translateY( 0 );
}

.gpr-banner-inner {
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 14px 48px 14px 20px;
	position: relative;
}

.gpr-banner-text {
	color: var( --gpr-text, #1c1e21 );
	font-size: 14px;
	font-weight: 500;
}

.gpr-banner-close {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY( -50% );
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var( --gpr-text, #1c1e21 );
	opacity: 0.5;
}

.gpr-banner-close:hover {
	opacity: 1;
}

@media ( max-width: 600px ) {
	.gpr-banner-inner {
		flex-direction: column;
		gap: 10px;
		padding: 14px 40px 14px 16px;
	}
}
