/* Privatto — estilos do banner e modal. Neutro e sobrescrevível pelo tema. */

.pvto-root {
	position: fixed;
	z-index: 2147483000;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	line-height: 1.5;
	color: #1f2430;
}

.pvto-root *,
.pvto-root *::before,
.pvto-root *::after { box-sizing: border-box; }

/* Posições */
.pvto-pos-bottom { left: 0; right: 0; bottom: 0; }
.pvto-pos-bottom .pvto-card { max-width: 1100px; margin: 0 auto 16px; }
.pvto-pos-bottom-left { left: 16px; bottom: 16px; }
.pvto-pos-bottom-right { right: 16px; bottom: 16px; }
.pvto-pos-bottom-left .pvto-card,
.pvto-pos-bottom-right .pvto-card { max-width: 380px; }

.pvto-pos-center {
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 18, 28, 0.45);
	padding: 16px;
}
.pvto-pos-center .pvto-card { max-width: 520px; width: 100%; }

/* Cartão */
.pvto-card {
	background: #fff;
	border: 1px solid #e6e8ee;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(15, 18, 28, 0.18);
	padding: 20px 22px;
	max-width: 720px;
}

.pvto-title { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.pvto-text { margin: 0 0 16px; font-size: 14px; color: #4a5266; }
.pvto-link { color: var(--pvto-primary, #0e9f9f); text-decoration: underline; }

/* Ações */
.pvto-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.pvto-btn {
	appearance: none;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 10px;
	border: 1px solid transparent;
	transition: filter .15s ease, background .15s ease;
}
.pvto-btn:focus-visible { outline: 2px solid var(--pvto-primary, #0e9f9f); outline-offset: 2px; }

.pvto-btn-primary { background: var(--pvto-primary, #0e9f9f); color: #fff; }
.pvto-btn-primary:hover { filter: brightness(1.07); }

.pvto-btn-ghost { background: #f3f4f8; color: #2b3140; border-color: #e2e5ee; }
.pvto-btn-ghost:hover { background: #e9ebf2; }

/* Preferências */
.pvto-prefs .pvto-cat {
	padding: 14px 0;
	border-top: 1px solid #eef0f5;
}
.pvto-prefs .pvto-cat:first-of-type { border-top: 0; }
.pvto-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.pvto-cat-label { font-size: 14px; font-weight: 600; }
.pvto-cat-desc { margin: 4px 0 0; font-size: 13px; color: #5b6470; }

/* Switch simples */
.pvto-switch {
	appearance: none;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: #cdd2dd;
	position: relative;
	cursor: pointer;
	flex: 0 0 auto;
	transition: background .15s ease;
}
.pvto-switch::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .15s ease;
}
.pvto-switch:checked { background: var(--pvto-primary, #0e9f9f); }
.pvto-switch:checked::after { transform: translateX(18px); }
.pvto-switch:disabled { opacity: .6; cursor: not-allowed; }
.pvto-switch:focus-visible { outline: 2px solid var(--pvto-primary, #0e9f9f); outline-offset: 2px; }

@media (max-width: 560px) {
	.pvto-pos-bottom-left, .pvto-pos-bottom-right { left: 8px; right: 8px; }
	.pvto-pos-bottom-left .pvto-card, .pvto-pos-bottom-right .pvto-card { max-width: none; }
	.pvto-actions .pvto-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
	.pvto-btn, .pvto-switch, .pvto-switch::after { transition: none; }
}

/* ---------- Tema escuro ---------- */
.pvto-dark .pvto-card { background: #1b2030; border-color: #2a3146; color: #e7e9f0; }
.pvto-dark .pvto-title { color: #ffffff; }
.pvto-dark .pvto-text { color: #aeb4c4; }
.pvto-dark .pvto-btn-ghost { background: #262d40; color: #dfe3ee; border-color: #333c54; }
.pvto-dark .pvto-btn-ghost:hover { background: #2e3650; }
.pvto-dark .pvto-prefs .pvto-cat { border-top-color: #2a3146; }
.pvto-dark .pvto-cat-desc { color: #9aa2b5; }
.pvto-dark .pvto-switch { background: #3b435c; }

/* Selo opcional "Powered by Privatto" (opt-in) */
.pvto-seal { margin-top: 10px; text-align: center; font-size: 11px; color: #8a94a6; letter-spacing: .01em; }
.pvto-seal a { color: inherit; text-decoration: none; font-weight: 600; border-bottom: 1px dotted currentColor; }
.pvto-seal a:hover { color: var(--pvto-primary); }
.pvto-dark .pvto-seal { color: #6b7488; }
