/* Onix Cookie Consent — visual neutro/profissional, alinhado ao padrão WoodMart */

.occ-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	background: var(--occ-bg, #fff);
	color: var(--occ-text, #333);
	border-top: 1px solid var(--occ-border, #e5e5e5);
	box-shadow: 0 -2px 12px rgba(0,0,0,.08);
	font-family: var(--occ-font, inherit);
	font-size: 14px;
	line-height: 1.5;
	animation: occ-slide-up .35s ease;
}

.occ-banner[hidden] { display: none !important; }

@keyframes occ-slide-up {
	from { transform: translateY(100%); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.occ-banner__inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}

.occ-banner__text {
	margin: 0;
	flex: 1 1 420px;
	min-width: 260px;
}

.occ-banner__link {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
	margin-left: 4px;
	font-weight: 600;
}

.occ-banner__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	flex-wrap: wrap;
}

/* Botões — especificidade alta + !important pra vencer o CSS padrão
   de botões do tema WoodMart, que costuma aplicar background/border
   próprios em qualquer <button> com mais força que uma classe simples. */
.occ-banner .occ-btn,
.occ-modal .occ-btn {
	appearance: none !important;
	border: 1px solid transparent !important;
	border-radius: 4px !important;
	padding: 11px 22px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	letter-spacing: .03em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	transition: opacity .15s ease, filter .15s ease !important;
	white-space: nowrap !important;
	box-shadow: none !important;
}
.occ-banner .occ-btn:hover,
.occ-modal .occ-btn:hover { filter: brightness(0.94) !important; }
.occ-banner .occ-btn:focus-visible,
.occ-modal .occ-btn:focus-visible { outline: 2px solid #4a90d9 !important; outline-offset: 2px; }

.occ-banner .occ-btn--accept,
.occ-modal .occ-btn--accept {
	background: var(--occ-accept-bg, #1e9c5a) !important;
	color: var(--occ-accept-text, #fff) !important;
	border-color: var(--occ-accept-bg, #1e9c5a) !important;
}

.occ-banner .occ-btn--reject,
.occ-modal .occ-btn--reject {
	background: var(--occ-reject-bg, #fff) !important;
	color: var(--occ-reject-text, #333) !important;
	border-color: var(--occ-border, #ccc) !important;
}

.occ-banner .occ-btn--ghost,
.occ-modal .occ-btn--ghost {
	background: transparent !important;
	color: var(--occ-text, #333) !important;
	border: none !important;
	text-decoration: underline !important;
	text-transform: none !important;
	font-weight: 500 !important;
	padding: 11px 6px !important;
}

/* Posições alternativas (caixa flutuante) */
.occ-pos-bottom-left,
.occ-pos-bottom-right {
	left: auto;
	right: auto;
	max-width: 420px;
	margin: 20px;
	border: 1px solid var(--occ-border, #e5e5e5);
	border-radius: 8px;
	box-shadow: 0 6px 24px rgba(0,0,0,.14);
}
.occ-pos-bottom-left { left: 0; }
.occ-pos-bottom-right { right: 0; }
.occ-pos-bottom-left .occ-banner__inner,
.occ-pos-bottom-right .occ-banner__inner {
	flex-direction: column;
	align-items: stretch;
	padding: 20px;
}
.occ-pos-bottom-left .occ-banner__actions,
.occ-pos-bottom-right .occ-banner__actions {
	justify-content: flex-end;
}

/* Modal de preferências */
.occ-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--occ-font, inherit);
}
.occ-modal[hidden] { display: none !important; }

.occ-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.5);
}

.occ-modal__box {
	position: relative;
	background: var(--occ-bg, #fff);
	color: var(--occ-text, #333);
	width: 92%;
	max-width: 520px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0,0,0,.25);
	max-height: 86vh;
	display: flex;
	flex-direction: column;
}

.occ-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-bottom: 1px solid var(--occ-border, #e5e5e5);
}
.occ-modal__header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
}
.occ-modal__close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: var(--occ-text, #333);
	padding: 4px 8px;
}

.occ-modal__body {
	padding: 6px 22px;
	overflow-y: auto;
}

.occ-cat {
	padding: 14px 0;
	border-bottom: 1px solid var(--occ-border, #eee);
}
.occ-cat:last-child { border-bottom: none; }

.occ-cat__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.occ-cat__desc {
	margin: 6px 0 0;
	font-size: 13px;
	opacity: .8;
}

.occ-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 16px 22px;
	border-top: 1px solid var(--occ-border, #e5e5e5);
}

/* Switch (toggle) */
.occ-switch {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: 0 0 auto;
}
.occ-switch input { opacity: 0; width: 0; height: 0; }
.occ-switch__slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccc;
	border-radius: 24px;
	transition: .2s;
}
.occ-switch__slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: .2s;
}
.occ-switch input:checked + .occ-switch__slider {
	background: var(--occ-accept-bg, #1e9c5a);
}
.occ-switch input:checked + .occ-switch__slider::before {
	transform: translateX(18px);
}
.occ-switch--disabled { opacity: .6; cursor: not-allowed; }

@media (max-width: 640px) {
	.occ-banner__inner { padding: 16px; }
	.occ-banner__actions { width: 100%; justify-content: stretch; }
	.occ-btn { flex: 1 1 auto; text-align: center; }
}
