.qck { --qck-bg: #0b2533; --qck-fg: #fff; --qck-accent: #1f8fbf; font-size: 14px; line-height: 1.5; }
.qck [hidden] { display: none !important; }

.qck-banner {
	position: fixed; z-index: 2147483000;
	background: var(--qck-bg); color: var(--qck-fg);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, .18);
	display: flex; align-items: center; gap: 16px 28px;
	font-family: inherit;
}
.qck-barra { left: 0; right: 0; bottom: 0; padding: 16px max(16px, calc((100% - 1200px) / 2)); }
.qck-caixa { left: 16px; bottom: 16px; max-width: 420px; padding: 20px; border-radius: 10px; flex-direction: column; align-items: stretch; }
.qck-text { margin: 0; flex: 1; color: inherit; font-size: 14px; }
.qck-text a, .qck-modal a { color: var(--qck-accent); text-decoration: underline; }
.qck-actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.qck-btn {
	font: inherit; font-weight: 600; font-size: 14px;
	padding: 10px 18px; border-radius: 6px; cursor: pointer;
	border: 1px solid var(--qck-accent); line-height: 1.2; min-height: 40px;
}
/* Aceitar e Rejeitar com o mesmo peso visual (orientação da ANPD). */
.qck-solid { background: var(--qck-accent); color: var(--qck-bg); }
.qck-ghost { background: transparent; color: var(--qck-fg); }
.qck-btn:hover { filter: brightness(1.1); }
.qck-btn:focus-visible, .qck-close:focus-visible, .qck-reopen:focus-visible, .qck-switch input:focus-visible + span { outline: 2px solid var(--qck-accent); outline-offset: 2px; }

.qck-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 2147483001; }
.qck-modal {
	position: fixed; z-index: 2147483002; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
	background: var(--qck-bg); color: var(--qck-fg); border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.qck-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 6px; }
.qck-modal-head h2 { margin: 0; font-size: 18px; color: inherit; }
.qck-close { background: none; border: 0; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.qck-modal-body { padding: 0 20px; }
.qck-modal-body > p { margin: 6px 0 14px; opacity: .9; }
.qck-cat { border-top: 1px solid rgba(255, 255, 255, .14); padding: 12px 0; }
.qck-cat p { margin: 4px 0 0; opacity: .8; font-size: 13px; }
.qck-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.qck-always { font-size: 12px; color: var(--qck-accent); font-weight: 600; }
.qck-modal-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 20px 18px; }

.qck-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.qck-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qck-switch span { position: absolute; inset: 0; background: rgba(255, 255, 255, .25); border-radius: 24px; transition: background .2s; pointer-events: none; }
.qck-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.qck-switch input:checked + span { background: var(--qck-accent); }
.qck-switch input:checked + span::after { transform: translateX(18px); }

.qck-reopen {
	position: fixed; left: 16px; bottom: 16px; z-index: 2147482999;
	width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--qck-bg); color: var(--qck-accent);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
	display: flex; align-items: center; justify-content: center; padding: 0;
}
.qck-reopen svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.qck-reopen circle { fill: currentColor; stroke: none; }

html.qck-lock { overflow: hidden; }

@media (max-width: 720px) {
	.qck-barra { flex-direction: column; align-items: stretch; padding: 16px; }
	.qck-caixa { left: 8px; right: 8px; bottom: 8px; max-width: none; }
	.qck-actions { display: grid; grid-template-columns: 1fr 1fr; }
	.qck-actions [data-qck="prefs"] { grid-column: 1 / -1; order: 3; }
	.qck-modal-foot .qck-btn { flex: 1 1 140px; }
}
