/* Citrus USA — aviso e preferências de cookies */

.cc-notice,
.cc-modal {
	--cc-blue: #1863dc;
	--cc-text: #212121;
	--cc-line: #f4f4f4;
	--cc-off: #d0d5d2;
	color: var(--cc-text);
	font-family: var(--font, "Avenir", sans-serif);
}
.cc-notice[hidden],
.cc-modal[hidden],
.cc-revisit[hidden] { display: none !important; }

/* Botões ------------------------------------------------------------ */
.cc-btn {
	flex: 1 1 0;
	min-width: 0;
	padding: 12px 8px;
	border: 1px solid var(--cc-blue);
	border-radius: 50px;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 24px;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.2s, background-color 0.2s;
}
.cc-btn:hover { opacity: 0.85; }
.cc-btn--solid { background: var(--cc-blue); color: #fff; }
.cc-btn--outline { background: transparent; color: var(--cc-blue); }

/* Aviso ------------------------------------------------------------- */
.cc-notice {
	position: fixed;
	bottom: 40px;
	left: 40px;
	z-index: 99999;
	width: 440px;
	max-width: calc(100vw - 32px);
	padding: 20px 26px;
	border: 1px solid var(--cc-line);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
	transform: translateY(20px);
	opacity: 0;
	transition: opacity 0.4s ease, transform 0.4s ease;
}
.cc-notice.is-visible { transform: none; opacity: 1; }
.cc-notice__title { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 24px; color: var(--cc-text); }
.cc-notice__text { margin: 0; font-size: 14px; line-height: 24px; color: var(--cc-text); }
.cc-notice__text a { color: var(--cc-blue); font-weight: 500; }
.cc-notice__buttons { display: flex; gap: 8px; margin-top: 16px; }

/* Botão flutuante --------------------------------------------------- */
.cc-revisit {
	position: fixed;
	bottom: 15px;
	left: 15px;
	z-index: 99998;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #0056a7;
	color: #fff;
	font-size: 26px;
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

/* Janela ------------------------------------------------------------ */
html.cc-lock { overflow: hidden; }
.cc-modal {
	position: fixed;
	inset: 0;
	z-index: 100001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.5);
}
.cc-modal__box {
	display: flex;
	flex-direction: column;
	width: 845px;
	max-width: 100%;
	max-height: 79vh;
	overflow: hidden;
	border: 1px solid var(--cc-line);
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 32px 68px rgba(0, 0, 0, 0.3);
}
.cc-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	border-bottom: 1px solid var(--cc-line);
}
.cc-modal__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 24px; }
.cc-modal__close {
	display: flex;
	padding: 4px;
	border: 0;
	background: transparent;
	color: var(--cc-text);
	font-size: 16px;
	cursor: pointer;
	opacity: 0.8;
}
.cc-modal__close:hover { opacity: 1; }

.cc-modal__body { flex: 1 1 auto; overflow-y: auto; padding: 0 24px; }
.cc-modal__intro { padding: 12px 0 14px; font-size: 14px; line-height: 24px; }
.cc-modal__intro p { margin: 0 0 12px; }
.cc-modal__intro p:last-of-type { margin-bottom: 0; }
.cc-modal__more { margin-top: 12px; }
.cc-link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-blue);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.cc-cats { margin: 0; padding: 0; list-style: none; }
.cc-cat { padding: 16px 0; border-top: 1px solid var(--cc-line); }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cc-cat__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--cc-text);
	font: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 24px;
	cursor: pointer;
	text-align: left;
}
.cc-cat__chevron { width: 16px; height: 16px; transition: transform 0.2s; }
.cc-cat.is-open .cc-cat__chevron { transform: rotate(90deg); }
.cc-cat__always { color: #008000; font-size: 14px; font-weight: 600; line-height: 24px; }
.cc-cat__desc { margin: 10px 0 0 22px; font-size: 14px; line-height: 24px; }

.cc-switch { position: relative; display: inline-flex; flex-shrink: 0; cursor: pointer; }
.cc-switch input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.cc-switch__track {
	position: relative;
	width: 44px;
	height: 24px;
	border-radius: 24px;
	background: var(--cc-off);
	transition: background 0.2s;
}
.cc-switch__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.2s;
}
.cc-switch input:checked + .cc-switch__track { background: var(--cc-blue); }
.cc-switch input:checked + .cc-switch__track::after { transform: translateX(20px); }
.cc-switch input:focus-visible + .cc-switch__track { outline: 2px solid var(--cc-blue); outline-offset: 2px; }

.cc-modal__foot { display: flex; gap: 8px; padding: 22px 24px; border-top: 1px solid var(--cc-line); }

/* Celular ----------------------------------------------------------- */
@media (max-width: 576px) {
	.cc-notice {
		bottom: 0;
		left: 0;
		width: 100%;
		max-width: none;
		padding: 20px 24px;
		border-radius: 6px 6px 0 0;
	}
	.cc-notice__buttons,
	.cc-modal__foot { flex-direction: column; }
	.cc-notice__buttons .cc-btn--accept,
	.cc-modal__foot .cc-btn--accept { order: -1; }
	.cc-modal__foot .cc-btn--reject { order: 1; }
	.cc-btn { flex: none; width: 100%; }
	.cc-modal { align-items: flex-end; padding: 0; }
	.cc-modal__box { max-height: 100vh; height: 100%; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.cc-notice { transition: none; }
}
