/* Hikari Cookies — LGPD | Studio Hikari
 * Tudo sob o prefixo .hkck-. Cores com !important por causa das travas .light/.dark do Salient.
 * Layout sem depender de @media (compatível com "Remover CSS não utilizado" do WP Rocket).
 */

.hkck-root {
	--hkck-bg: #fff;
	--hkck-title: #111827;
	--hkck-text: #374151;
	--hkck-link: #008ed9;
	--hkck-p-bg: #111827;
	--hkck-p-text: #fff;
	--hkck-s-bg: #f3f4f6;
	--hkck-s-text: #111827;
	--hkck-toggle: #008ed9;
	--hkck-radius: 12px;
	--hkck-fs: 14px;
	--hkck-maxw: 1200px;
	--hkck-overlay: .45;
	--hkck-line: rgba(127, 127, 127, .22);
	--hkck-z: 2147483000;
	font-size: var(--hkck-fs) !important;
	line-height: 1.55 !important;
	-webkit-font-smoothing: antialiased;
}

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

.hkck-root [hidden][hidden],
.hkck-root .hkck-fab[hidden],
.hkck-root .hkck-btn[hidden] {
	display: none !important;
}

/* ---------- Reset contra estilos do tema ---------- */
.hkck-root p,
.hkck-root ul,
.hkck-root li {
	margin: 0 !important;
	padding: 0 !important;
	font-size: inherit !important;
	line-height: inherit !important;
	letter-spacing: normal !important;
	text-transform: none !important;
}

.hkck-root ul {
	list-style: none !important;
}

.hkck-root a {
	color: var(--hkck-link) !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
	font-weight: 600;
	box-shadow: none !important;
	background: none !important;
}

.hkck-root a:hover {
	text-decoration-thickness: 2px !important;
}

/* ---------- Banner ---------- */
.hkck-banner {
	position: fixed;
	z-index: var(--hkck-z);
	background: var(--hkck-bg) !important;
	color: var(--hkck-text) !important;
	font-family: inherit;
	text-align: left;
	padding: 20px 24px;
	animation: hkck-in .35s cubic-bezier(.2, .8, .2, 1) both;
}

.hkck-banner.hkck-has-shadow {
	box-shadow: 0 10px 40px rgba(0, 0, 0, .16), 0 2px 8px rgba(0, 0, 0, .06);
}

.hkck-banner__inner {
	max-width: var(--hkck-maxw);
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 32px;
}

.hkck-banner__content {
	flex: 1 1 440px;
	min-width: 0;
	padding-right: 28px;
}

.hkck-root .hkck-banner__title {
	color: var(--hkck-title) !important;
	font-weight: 700 !important;
	font-size: 1.15em !important;
	line-height: 1.3 !important;
	margin-bottom: 6px !important;
}

.hkck-root .hkck-banner__text {
	color: var(--hkck-text) !important;
}

.hkck-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	flex: 0 1 auto;
}

/* Barras (largura total) */
.hkck-banner--bottom-bar,
.hkck-banner--top-bar {
	left: 0;
	right: 0;
	border-radius: 0;
}

.hkck-banner--bottom-bar {
	bottom: 0;
}

.hkck-banner--top-bar {
	top: 0;
	animation-name: hkck-in-top;
}

/* Caixas flutuantes */
.hkck-banner--bottom-left,
.hkck-banner--bottom-right,
.hkck-banner--bottom-center,
.hkck-banner--center {
	border-radius: var(--hkck-radius);
	bottom: 16px;
}

.hkck-banner--bottom-left {
	left: 16px;
	width: min(420px, calc(100vw - 32px));
}

.hkck-banner--bottom-right {
	right: 16px;
	width: min(420px, calc(100vw - 32px));
}

.hkck-banner--bottom-center {
	left: 0;
	right: 0;
	margin: 0 auto;
	width: min(var(--hkck-maxw), calc(100vw - 32px));
}

.hkck-banner--center {
	top: 50%;
	bottom: auto;
	left: 50%;
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	transform: translate(-50%, -50%);
	animation-name: hkck-fade;
}

.hkck-banner--box .hkck-banner__inner {
	flex-direction: column;
	align-items: stretch;
	gap: 16px;
}

.hkck-banner--box .hkck-banner__content {
	flex: 0 0 auto;
}

.hkck-banner--box .hkck-banner__actions > .hkck-btn {
	flex: 1 1 auto;
}

.hkck-banner--box .hkck-banner__actions > .hkck-btn--primary {
	flex-basis: 100%;
	order: -1;
}

.hkck-banner--center .hkck-banner__actions > .hkck-btn--primary {
	flex-basis: auto;
	order: 0;
}

.hkck-overlay {
	position: fixed;
	inset: 0;
	z-index: calc(var(--hkck-z) - 1);
	background: rgba(0, 0, 0, var(--hkck-overlay)) !important;
	animation: hkck-fade .25s ease both;
}

/* ---------- Botões ---------- */
.hkck-root .hkck-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 11px 20px !important;
	min-height: 0 !important;
	height: auto !important;
	width: auto;
	border: 1px solid transparent !important;
	border-radius: calc(var(--hkck-radius) * .7) !important;
	font-family: inherit !important;
	font-size: 1em !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: none !important;
	cursor: pointer;
	opacity: 1 !important;
	transition: filter .15s ease, transform .15s ease, background-color .15s ease;
}

.hkck-root .hkck-btn:hover {
	filter: brightness(.94);
}

.hkck-root .hkck-btn:active {
	transform: translateY(1px);
}

.hkck-root .hkck-btn:focus-visible,
.hkck-root .hkck-close:focus-visible,
.hkck-root .hkck-fab:focus-visible,
.hkck-root .hkck-switch input:focus-visible + .hkck-switch__track {
	outline: 2px solid var(--hkck-link) !important;
	outline-offset: 2px;
}

.hkck-root .hkck-btn--primary {
	background: var(--hkck-p-bg) !important;
	color: var(--hkck-p-text) !important;
	border-color: var(--hkck-p-bg) !important;
}

.hkck-root .hkck-btn--secondary {
	background: var(--hkck-s-bg) !important;
	color: var(--hkck-s-text) !important;
	border-color: var(--hkck-s-bg) !important;
}

.hkck-root .hkck-btn--ghost {
	background: transparent !important;
	color: var(--hkck-title) !important;
	border-color: var(--hkck-line) !important;
}

/* ---------- Fechar ---------- */
.hkck-root .hkck-close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 32px !important;
	height: 32px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--hkck-text) !important;
	box-shadow: none !important;
	cursor: pointer;
	opacity: .7;
	transition: opacity .15s ease, background-color .15s ease;
}

.hkck-root .hkck-close:hover {
	opacity: 1;
	background: var(--hkck-line) !important;
}

.hkck-root .hkck-close--static {
	position: static;
	flex: 0 0 auto;
}

/* ---------- Modal de preferências ---------- */
.hkck-modal {
	position: fixed;
	inset: 0;
	z-index: calc(var(--hkck-z) + 1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.hkck-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, var(--hkck-overlay)) !important;
	animation: hkck-fade .2s ease both;
}

.hkck-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(640px, 100%);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	background: var(--hkck-bg) !important;
	color: var(--hkck-text) !important;
	border-radius: var(--hkck-radius);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
	overflow: hidden;
	outline: none;
	animation: hkck-pop .28s cubic-bezier(.2, .8, .2, 1) both;
}

.hkck-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 20px 14px 24px;
	border-bottom: 1px solid var(--hkck-line);
}

.hkck-root .hkck-modal__title {
	color: var(--hkck-title) !important;
	font-weight: 700 !important;
	font-size: 1.25em !important;
	line-height: 1.3 !important;
}

.hkck-modal__body {
	padding: 18px 24px 8px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.hkck-root .hkck-modal__intro {
	margin-bottom: 14px !important;
}

.hkck-root .hkck-modal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	padding: 10px 0 14px !important;
}

.hkck-modal__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 10px;
	padding: 14px 24px 18px;
	border-top: 1px solid var(--hkck-line);
}

.hkck-modal__foot > .hkck-btn {
	flex: 1 1 auto;
}

.hkck-cat {
	padding: 14px 0 !important;
	border-bottom: 1px solid var(--hkck-line);
}

.hkck-cat:last-of-type {
	border-bottom: 0;
}

.hkck-cat__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.hkck-cat__name {
	color: var(--hkck-title) !important;
	font-weight: 700;
}

.hkck-cat__always {
	color: var(--hkck-toggle) !important;
	font-size: .86em;
	font-weight: 700;
	white-space: nowrap;
}

.hkck-root .hkck-cat__desc {
	margin-top: 4px !important;
	opacity: .9;
}

.hkck-root .hkck-cat__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px !important;
}

.hkck-root .hkck-cat__tags li {
	padding: 3px 10px !important;
	border-radius: 999px;
	background: var(--hkck-s-bg) !important;
	color: var(--hkck-s-text) !important;
	font-size: .82em !important;
	font-weight: 600;
}

/* ---------- Switch ---------- */
.hkck-switch {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	width: 44px;
	height: 24px;
	margin: 0 !important;
	cursor: pointer;
}

.hkck-root .hkck-switch input {
	position: absolute !important;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	opacity: 0 !important;
	cursor: pointer;
	z-index: 1;
	-webkit-appearance: none;
	appearance: none;
}

.hkck-switch__track {
	position: absolute;
	inset: 0;
	border-radius: 999px;
	background: rgba(127, 127, 127, .45) !important;
	transition: background-color .2s ease;
}

.hkck-switch__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
	transition: transform .2s cubic-bezier(.2, .8, .2, 1);
}

.hkck-switch input:checked + .hkck-switch__track {
	background: var(--hkck-toggle) !important;
}

.hkck-switch input:checked + .hkck-switch__track::after {
	transform: translateX(20px);
}

/* ---------- Botão flutuante ---------- */
.hkck-root .hkck-fab {
	position: fixed;
	bottom: 16px;
	z-index: calc(var(--hkck-z) - 2);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 46px !important;
	height: 46px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: var(--hkck-p-bg) !important;
	color: var(--hkck-p-text) !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .22) !important;
	cursor: pointer;
	animation: hkck-fade .3s ease both;
	transition: transform .15s ease;
}

.hkck-root .hkck-fab:hover {
	transform: scale(1.06);
}

.hkck-fab--left {
	left: 16px;
}

.hkck-fab--right {
	right: 16px;
}

/* ---------- Pré-visualização (admin) ---------- */
.hkck-is-preview .hkck-banner {
	position: absolute;
	animation: none;
}

.hkck-is-preview .hkck-banner--bottom-left,
.hkck-is-preview .hkck-banner--bottom-right {
	width: min(420px, calc(100% - 32px));
}

.hkck-is-preview .hkck-banner--bottom-center {
	width: calc(100% - 32px);
}

.hkck-is-preview .hkck-banner--center {
	width: min(520px, calc(100% - 32px));
}

/* ---------- Tabela da política [hkck_lista_cookies] ---------- */
.hkck-list__table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 16px;
}

.hkck-list__table th,
.hkck-list__table td {
	padding: 12px 14px;
	border-bottom: 1px solid rgba(127, 127, 127, .25);
	text-align: left;
	vertical-align: top;
}

.hkck-list a {
	color: var(--hkck-link) !important;
}

/* ---------- Animações ---------- */
@keyframes hkck-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@keyframes hkck-in-top {
	from { opacity: 0; transform: translateY(-16px); }
	to { opacity: 1; transform: none; }
}

@keyframes hkck-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes hkck-pop {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to { opacity: 1; transform: none; }
}

.hkck-banner--bottom-center {
	animation-name: hkck-in;
}

@media (prefers-reduced-motion: reduce) {
	.hkck-root *,
	.hkck-banner {
		animation: none !important;
		transition: none !important;
	}
}
