/* Google Preferred Sources — Button & Tooltip */

.gps-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 1.5em 0;
	font-family: inherit;
	position: relative;
}

/* ── Badge style ──────────────────────────────── */

.gps-btn.gps-style-badge {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.gps-badge-img {
	height: 40px;
	width: auto;
	display: block;
}

/* ── Text/pill style ─────────────────────────── */

.gps-btn.gps-style-text {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 18px;
	background: #4285f4;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 24px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
	line-height: 1.3;
}

.gps-btn.gps-style-text:hover,
.gps-btn.gps-style-text:focus-visible {
	background: #1a73e8;
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

.gps-star {
	font-size: 1em;
	line-height: 1;
}

/* ── Info / ⓘ button ─────────────────────────── */

.gps-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	background: transparent;
	color: #5f6368;
	font-size: 0.95rem;
	cursor: pointer;
	transition: color 0.2s, border-color 0.2s;
	flex-shrink: 0;
}

.gps-info:hover,
.gps-info:focus-visible {
	color: #1a73e8;
	border-color: #1a73e8;
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

/* ── Tooltip ─────────────────────────────────── */

.gps-tip {
	position: absolute;
	bottom: calc(100% + 10px);
	left: 0;
	z-index: 9999;
	background: #fff;
	color: #202124;
	border: 1px solid #dadce0;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0,0,0,0.14);
	padding: 14px 16px;
	max-width: 320px;
	width: max-content;
	font-size: 0.85rem;
	line-height: 1.55;
	text-align: left;
}

/* Arrow */
.gps-tip::before {
	content: '';
	position: absolute;
	bottom: -7px;
	left: 20px;
	width: 12px;
	height: 12px;
	background: #fff;
	border-right: 1px solid #dadce0;
	border-bottom: 1px solid #dadce0;
	transform: rotate(45deg);
}

.gps-tip strong {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9rem;
	color: #1a73e8;
}

.gps-tip p {
	margin: 0;
}

/* CSS-only reveal (hover / focus-within as progressive enhancement) */
.gps-wrap:hover .gps-tip,
.gps-wrap:focus-within .gps-tip {
	display: block;
}

/* Hidden state controlled by JS (and initial state for a11y) */
.gps-tip[hidden] {
	display: none !important;
}

/* ── Widget context ─────────────────────────── */

.gps-context-widget .gps-wrap {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.gps-context-widget .gps-info {
	color: #fff;
	border-color: #fff;
}

.gps-context-widget .gps-info:hover,
.gps-context-widget .gps-info:focus-visible {
	color: #fff;
	border-color: #fff;
	outline-color: #fff;
	opacity: 0.75;
}

.gps-context-widget .gps-tip {
	position: static;
	max-width: 100%;
	width: 100%;
	bottom: auto;
	margin-top: 8px;
}

.gps-context-widget .gps-tip::before {
	display: none;
}

/* ── Mobile ─────────────────────────────────── */

@media (max-width: 600px) {
	.gps-tip {
		position: static;
		max-width: 100%;
		width: 100%;
		margin-top: 8px;
	}

	.gps-tip::before {
		display: none;
	}

	.gps-wrap {
		flex-wrap: wrap;
	}
}
