/**
 * Estilos do banner "Atalho para Tela Inicial".
 * Usa variáveis CSS definidas via PHP (cor de fundo/texto configuráveis no admin)
 * e fontes/arredondamento neutros para combinar com o Salient sem depender dele.
 */

.pwa-atalho-banner {
	position: fixed;
	left: 12px;
	right: 12px;
	bottom: 12px;
	z-index: 999999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: 14px;
	background: var( --pwa-atalho-cor-fundo, #1a1a1a );
	color: var( --pwa-atalho-cor-texto, #ffffff );
	box-shadow: 0 8px 24px rgba( 0, 0, 0, 0.25 );
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	transform: translateY( 120%);
	opacity: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
	max-width: 480px;
	margin: 0 auto;
}

.pwa-atalho-banner--visivel {
	transform: translateY( 0 );
	opacity: 1;
}

.pwa-atalho-icone {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	flex-shrink: 0;
	object-fit: cover;
}

.pwa-atalho-texto {
	flex: 1 1 auto;
	font-size: 14px;
	line-height: 1.4;
}

.pwa-atalho-acoes {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex-shrink: 0;
}

.pwa-atalho-botao {
	border: none;
	border-radius: 8px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	background: var( --pwa-atalho-cor-texto, #ffffff );
	color: var( --pwa-atalho-cor-fundo, #1a1a1a );
}

.pwa-atalho-botao--secundario {
	background: transparent;
	color: var( --pwa-atalho-cor-texto, #ffffff );
	font-weight: 400;
	opacity: 0.8;
	padding: 6px 8px;
}

.pwa-atalho-botao:hover {
	opacity: 0.9;
}

.pwa-atalho-banner--ios .pwa-atalho-acoes {
	flex-direction: row;
}

@media ( min-width: 640px ) {
	.pwa-atalho-banner {
		left: auto;
		right: 24px;
		bottom: 24px;
		width: 380px;
	}
}
