/* O Senhor dos Boletos: aviso de cookies. Cores do Kit do Elementor com fallback. */
.osb-cc-banner,
.osb-cc-prefs,
.osb-cc-reabrir,
.osb-embed {
	--osb-cc-tinta: var(--e-global-color-text, #111111);
	--osb-cc-papel: #FFFFFF;
	--osb-cc-amarelo: var(--e-global-color-secondary, #FFCB00);
	--osb-cc-link: #007A35;
	font-family: var(--e-global-typography-text-font-family, "Figtree"), sans-serif;
	color: var(--osb-cc-tinta);
	box-sizing: border-box;
}
.osb-cc-banner *, .osb-cc-prefs *, .osb-embed * { box-sizing: border-box; }
.osb-cc-banner[hidden], .osb-cc-reabrir[hidden] { display: none !important; }

.osb-cc-banner {
	position: fixed; z-index: 2147483000;
	left: 16px; right: 16px; bottom: 16px;
	max-width: 1080px; margin: 0 auto;
	display: flex; gap: 20px 32px; align-items: center;
	padding: 20px 24px;
	background: var(--osb-cc-papel);
	border: 2px solid var(--osb-cc-tinta); border-radius: 16px;
	box-shadow: 6px 6px 0 var(--osb-cc-tinta);
	font-size: 16px; line-height: 1.5;
	max-height: calc(100vh - 32px); overflow-y: auto;
}
.osb-cc-banner p { margin: 0; }
.osb-cc-banner__texto { flex: 1 1 auto; }
.osb-cc-titulo {
	font-family: var(--e-global-typography-primary-font-family, "Bricolage Grotesque"), sans-serif;
	font-weight: 800; font-size: 20px; line-height: 1.2; margin: 0 0 6px !important; color: var(--osb-cc-tinta);
}
.osb-cc-banner a, .osb-cc-prefs a, .osb-embed a { color: var(--osb-cc-link); text-decoration: underline; font-weight: 600; }

.osb-cc-banner__acoes { flex: 0 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.osb-cc-banner__acoes .osb-cc-link { grid-column: 1 / -1; }

/* Aceitar e Rejeitar: exatamente o mesmo estilo. */
.osb-cc-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 48px; min-width: 132px; padding: 10px 20px; margin: 0;
	font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--osb-cc-tinta);
	background: var(--osb-cc-papel);
	border: 2px solid var(--osb-cc-tinta); border-radius: 12px;
	box-shadow: 4px 4px 0 var(--osb-cc-tinta);
	cursor: pointer; text-transform: none; letter-spacing: 0;
	transition: transform .15s ease, background-color .15s ease;
}
.osb-cc-btn:hover { background: var(--osb-cc-amarelo); color: var(--osb-cc-tinta); transform: translateY(-2px); }
.osb-cc-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--osb-cc-tinta); }
.osb-cc-link {
	min-height: 48px; padding: 8px; margin: 0; background: none; border: 0; box-shadow: none;
	font: inherit; font-size: 16px; font-weight: 600; color: var(--osb-cc-link); text-decoration: underline; cursor: pointer;
}
.osb-cc-link:hover { background: none; color: var(--osb-cc-tinta); }
.osb-cc-btn:focus-visible, .osb-cc-link:focus-visible, .osb-cc-fechar:focus-visible, .osb-cc-reabrir:focus-visible, .osb-cc-switch input:focus-visible + .osb-cc-switch__trilho {
	outline: 3px solid var(--e-global-color-accent, #002776); outline-offset: 3px;
}

/* Preferências */
.osb-cc-prefs {
	width: calc(100% - 32px); max-width: 680px; max-height: 88vh; padding: 0;
	background: var(--osb-cc-papel);
	border: 2px solid var(--osb-cc-tinta); border-radius: 16px;
	box-shadow: 6px 6px 0 var(--osb-cc-tinta);
	font-size: 16px; line-height: 1.55;
}
.osb-cc-prefs::backdrop { background: rgba(17, 17, 17, .55); }
.osb-cc-prefs__form { padding: 24px; margin: 0; }
.osb-cc-prefs p { margin: 0 0 12px; }
.osb-cc-prefs__topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.osb-cc-prefs h2.osb-cc-titulo { font-size: 24px; }
.osb-cc-fechar {
	width: 48px; height: 48px; flex: 0 0 48px; margin: -8px -8px 0 0; padding: 0;
	background: none; border: 0; box-shadow: none; font-size: 32px; line-height: 1; color: var(--osb-cc-tinta); cursor: pointer;
}
.osb-cc-fechar:hover { background: none; color: var(--osb-cc-tinta); }
.osb-cc-cat { border-top: 2px solid var(--osb-cc-tinta); padding: 16px 0 4px; }
.osb-cc-cat__nome { font-weight: 700; font-size: 17px; }
.osb-cc-cat__nome small { font-weight: 500; font-size: 14px; }
.osb-cc-cat details { margin: 0 0 12px; }
.osb-cc-cat summary { cursor: pointer; font-weight: 600; color: var(--osb-cc-link); min-height: 32px; }
.osb-cc-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 48px; margin-bottom: 4px; }
.osb-cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.osb-cc-switch__trilho {
	position: relative; flex: 0 0 52px; width: 52px; height: 30px;
	background: #E6E6E6; border: 2px solid var(--osb-cc-tinta); border-radius: 999px; transition: background-color .15s ease;
}
.osb-cc-switch__trilho::after {
	content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
	background: var(--osb-cc-papel); border: 2px solid var(--osb-cc-tinta); border-radius: 50%; transition: transform .15s ease;
}
.osb-cc-switch input:checked + .osb-cc-switch__trilho { background: var(--e-global-color-primary, #009440); }
.osb-cc-switch input:checked + .osb-cc-switch__trilho::after { transform: translateX(22px); }
.osb-cc-switch input:disabled + .osb-cc-switch__trilho { opacity: .6; }
.osb-cc-switch input:disabled ~ .osb-cc-cat__nome { cursor: default; }
.osb-cc-prefs__acoes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 16px; border-top: 2px solid var(--osb-cc-tinta); }
.osb-cc-prefs__acoes .osb-cc-btn { min-width: 0; }

.osb-cc-tabela-wrap { overflow-x: auto; margin: 8px 0 16px; }
.osb-cc-tabela { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.osb-cc-tabela th, .osb-cc-tabela td { text-align: left; vertical-align: top; padding: 8px; border: 1px solid #BDBDBD; }
.osb-cc-tabela th { background: #FFFBEF; font-weight: 700; }
.osb-cc-tabela code { font-size: 13px; word-break: break-word; background: none; padding: 0; }
.osb-cc-vazio { font-size: 15px; color: #4A4A4A; }

/* Botão para reabrir as preferências */
.osb-cc-reabrir {
	position: fixed; z-index: 2147482999; left: 16px; bottom: 16px;
	width: 48px; height: 48px; padding: 0; margin: 0;
	display: inline-flex; align-items: center; justify-content: center;
	background: var(--osb-cc-papel); color: var(--osb-cc-tinta);
	border: 2px solid var(--osb-cc-tinta); border-radius: 50%;
	box-shadow: 3px 3px 0 var(--osb-cc-tinta); cursor: pointer;
}
.osb-cc-reabrir:hover { background: var(--osb-cc-amarelo); color: var(--osb-cc-tinta); }

/* Conteúdo incorporado (YouTube, mapas, redes) antes do aceite */
.osb-embed { display: block; position: relative; margin: 0 0 24px; }
.osb-embed iframe { display: block; max-width: 100%; }
.osb-embed:not(.osb-embed--ok) iframe { visibility: hidden; min-height: 220px; }
.osb-embed__aviso {
	position: absolute; inset: 0; z-index: 1;
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
	padding: 20px; text-align: center; font-size: 16px; line-height: 1.5;
	background: #FFFBEF; border: 2px solid var(--osb-cc-tinta); border-radius: 16px;
}
.osb-embed--ok .osb-embed__aviso { display: none; }
.osb-embed .osb-cc-btn { width: auto; }

@media (max-width: 860px) {
	.osb-cc-banner { flex-direction: column; align-items: stretch; padding: 16px; left: 12px; right: 12px; bottom: 12px; font-size: 15px; }
	.osb-cc-titulo { font-size: 18px; }
	.osb-cc-btn { min-width: 0; width: 100%; }
}
@media (max-width: 560px) {
	.osb-cc-prefs__form { padding: 18px; }
	.osb-cc-prefs__acoes { grid-template-columns: 1fr; }
	.osb-cc-reabrir { left: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.osb-cc-btn, .osb-cc-switch__trilho, .osb-cc-switch__trilho::after { transition: none; }
	.osb-cc-btn:hover { transform: none; }
}
