/**
 * Propague Google Login - Front-end Styles
 */

/* Container geral do botão */
.pgl-button-wrap {
	display: inline-block;
	vertical-align: middle;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	position: relative;
}

/* Esconde fallback se GSI renderizar com sucesso */
.pgl-button-wrap.is-gsi-loaded .pgl-btn-fallback {
	display: none !important;
}

/* Fallback button (Design oficial Google) */
.pgl-btn-fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 16px;
	height: 42px;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	border-radius: 24px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	user-select: none;
	white-space: nowrap;
}

.pgl-btn--filled_black {
	background: #131314;
	color: #fff !important;
	border: 1px solid #303134;
}
.pgl-btn--filled_black:hover {
	background: #202124;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	color: #fff !important;
}

.pgl-btn--filled_blue {
	background: #1a73e8;
	color: #fff !important;
	border: 1px solid #1a73e8;
}
.pgl-btn--filled_blue:hover {
	background: #1557b0;
	box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
	color: #fff !important;
}

.pgl-btn--outline {
	background: #ffffff;
	color: #3c4043 !important;
	border: 1px solid #dadce0;
}
.pgl-btn--outline:hover {
	background: #f8f9fa;
	border-color: #d2e3fc;
	box-shadow: 0 3px 10px rgba(60, 64, 67, 0.15);
	color: #202124 !important;
}

.pgl-btn--pill {
	border-radius: 999px;
}
.pgl-btn--rectangular {
	border-radius: 6px;
}

.pgl-btn-fallback__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

/* Cartão de usuário logado */
.pgl-user-card {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: rgba(26, 26, 30, 0.85);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 40px;
	padding: 6px 14px 6px 6px;
	color: #f0f0f2;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.pgl-user-avatar-wrap img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	border: 2px solid #f0ac32;
}

.pgl-user-details {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}

.pgl-user-name {
	font-weight: 700;
	font-size: 13px;
	color: #ffffff;
}

.pgl-user-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 2px;
}

.pgl-user-email {
	font-size: 11px;
	color: #9aa0a6;
}

.pgl-user-credits-pill {
	background: rgba(240, 172, 50, 0.2);
	color: #f0ac32;
	border: 1px solid rgba(240, 172, 50, 0.4);
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 10px;
	letter-spacing: 0.3px;
}

.pgl-btn-logout {
	margin-left: 6px;
	font-size: 11px;
	color: #e0e0e0 !important;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 12px;
	padding: 4px 10px;
	text-decoration: none !important;
	transition: all 0.2s;
}

.pgl-btn-logout:hover {
	background: rgba(231, 76, 60, 0.3);
	color: #ff8585 !important;
}

/* Banner da rota de Atendimento (/atendimento/*) */
.pgl-atendimento-bar {
	background: #111215;
	border-bottom: 1px solid rgba(240, 172, 50, 0.25);
	padding: 10px 20px;
	color: #e8eaed;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	position: relative;
	z-index: 999;
}

.pgl-atendimento-bar__inner {
	max-width: 1280px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.pgl-bar-guest {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	flex-wrap: wrap;
	gap: 14px;
}

.pgl-bar-msg {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.pgl-bar-tag {
	background: linear-gradient(135deg, #f0ac32, #ff7e39);
	color: #000;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	padding: 3px 8px;
	border-radius: 12px;
	letter-spacing: 0.5px;
	flex-shrink: 0;
}

.pgl-bar-msg p {
	margin: 0;
	font-size: 13px;
	color: #c4c7c5;
}

.pgl-bar-logged {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	flex-wrap: wrap;
	gap: 12px;
}

.pgl-bar-user {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pgl-bar-user img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 2px solid #f0ac32;
	object-fit: cover;
}

.pgl-bar-user span {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.pgl-bar-user strong {
	font-size: 13px;
	color: #fff;
}

.pgl-bar-user small {
	font-size: 11px;
	color: #9aa0a6;
}

.pgl-bar-status {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pgl-credits-tag {
	background: rgba(240, 172, 50, 0.15);
	color: #f0ac32;
	border: 1px solid rgba(240, 172, 50, 0.35);
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 14px;
}

.pgl-bar-logout {
	color: #e0e0e0 !important;
	text-decoration: underline;
	font-size: 12px;
	transition: color 0.2s;
}

.pgl-bar-logout:hover {
	color: #ff6b6b !important;
}

/* Floating CTA */
.pgl-floating-cta {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	background: rgba(20, 20, 24, 0.95);
	border: 1px solid rgba(240, 172, 50, 0.4);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	padding: 10px 14px;
	border-radius: 40px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	gap: 10px;
	animation: pglSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pglSlideUp {
	from {
		transform: translateY(30px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.pgl-floating-cta__content {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pgl-floating-icon {
	font-size: 18px;
}

.pgl-floating-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.pgl-floating-text strong {
	font-size: 12px;
	color: #fff;
}

.pgl-floating-text small {
	font-size: 10px;
	color: #9aa0a6;
}

.pgl-floating-close {
	background: none;
	border: none;
	color: #80868b;
	font-size: 18px;
	cursor: pointer;
	padding: 0 4px;
	margin-left: 4px;
	line-height: 1;
}

.pgl-floating-close:hover {
	color: #fff;
}

/* Spinner de carregamento */
.pgl-loading-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #fff;
	gap: 14px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.pgl-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: #f0ac32;
	border-radius: 50%;
	animation: pglSpin 0.8s linear infinite;
}

@keyframes pglSpin {
	to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
	.pgl-bar-guest {
		flex-direction: column;
		align-items: flex-start;
	}
	.pgl-floating-cta {
		bottom: 12px;
		right: 12px;
		left: 12px;
		border-radius: 16px;
		justify-content: space-between;
	}
}
