/* Consentimento de cookies — interface pública KS Tubos */
.ksc-cookie-banner,
.ksc-cookie-modal,
.ksc-cookie-banner *,
.ksc-cookie-modal * {
	box-sizing: border-box;
}

.ksc-cookie-banner[hidden],
.ksc-cookie-modal[hidden] {
	display: none;
}

.ksc-cookie-visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ksc-cookie-banner {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10000;
	padding: 20px;
	background: rgba(18, 54, 95, 0.98);
	box-shadow: 0 -10px 30px rgba(18, 54, 95, 0.2);
	color: #fff;
	font-family: "Gotham", "Montserrat", Arial, sans-serif;
}

.ksc-cookie-banner-inner {
	display: flex;
	width: min(1180px, 100%);
	margin: 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 26px;
}

.ksc-cookie-banner-content {
	max-width: 670px;
}

.ksc-cookie-banner h2 {
	margin: 0 0 7px;
	color: #fff;
	font-size: clamp(18px, 2vw, 22px);
	line-height: 1.25;
}

.ksc-cookie-banner p {
	margin: 0;
	color: #fff;
	font-size: 14px;
	line-height: 1.6;
}

.ksc-cookie-banner a {
	color: #8fdcff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ksc-cookie-banner-actions {
	display: grid;
	flex: 0 0 min(460px, 42%);
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 9px;
}

.ksc-cookie-button {
	appearance: none;
	display: inline-flex;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 10px 17px;
	border: 1px solid transparent;
	border-radius: 7px;
	font-family: "Gotham", "Montserrat", Arial, sans-serif;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	margin: 0;
	cursor: pointer;
	transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.ksc-cookie-button-choice {
	width: 100%;
}

.ksc-cookie-button-primary {
	border-color: #007db3;
	background: #007db3;
	color: #fff;
}

.ksc-cookie-button-primary:hover {
	border-color: #006b9e;
	background: #006b9e;
}

.ksc-cookie-button-reject {
	border-color: #fff;
	background: #fff;
	color: #12365f;
}

.ksc-cookie-button-reject:hover {
	border-color: #eaf4f9;
	background: #eaf4f9;
}

.ksc-cookie-button-secondary {
	border-color: #8fdcff;
	background: transparent;
	color: #fff;
}

.ksc-cookie-button-secondary:hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.ksc-cookie-banner-actions .ksc-cookie-button-secondary {
	grid-column: 1 / -1;
}

.ksc-cookie-button:focus-visible,
.ksc-cookie-modal-close:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #007db3;
}

.ksc-cookie-modal-dialog:focus-visible {
	outline: 3px solid #12365f;
	outline-offset: 3px;
	box-shadow: 0 0 0 6px #8fdcff, 0 24px 70px rgba(6, 27, 49, 0.32);
}

body.ksc-cookie-modal-open {
	overflow: hidden;
}

.ksc-cookie-modal {
	position: fixed;
	inset: 0;
	z-index: 10100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(18, 54, 95, 0.72);
	font-family: "Gotham", "Montserrat", Arial, sans-serif;
}

.ksc-cookie-modal-dialog {
	position: relative;
	width: min(620px, 100%);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: clamp(26px, 5vw, 42px);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 70px rgba(6, 27, 49, 0.32);
}

.ksc-cookie-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eaf4f9;
	color: #12365f;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.ksc-cookie-modal-eyebrow {
	display: block;
	margin-bottom: 8px;
	color: #007db3;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.6px;
}

.ksc-cookie-modal h2 {
	margin: 0 45px 12px 0;
	color: #12365f;
	font-size: clamp(26px, 4vw, 34px);
	line-height: 1.15;
}

.ksc-cookie-modal-dialog > p {
	margin: 0 0 22px;
	color: #4d6577;
	font-size: 14px;
	line-height: 1.65;
}

.ksc-cookie-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 18px;
	border: 1px solid #d4e3eb;
	border-radius: 9px;
	background: #f6fafc;
}

.ksc-cookie-category + .ksc-cookie-category {
	margin-top: 12px;
}

.ksc-cookie-category strong {
	color: #12365f;
	font-size: 15px;
}

.ksc-cookie-category p {
	margin: 6px 0 0;
	color: #5d7383;
	font-size: 13px;
	line-height: 1.5;
}

.ksc-cookie-required-control {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 9px;
}

.ksc-cookie-status {
	color: #12365f;
	font-size: 11px;
	font-weight: 800;
}

.ksc-cookie-switch {
	position: relative;
	display: inline-flex;
	min-width: 50px;
	min-height: 44px;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.ksc-cookie-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ksc-cookie-switch input:disabled,
.ksc-cookie-switch-locked {
	cursor: not-allowed;
}

.ksc-cookie-switch-track {
	position: relative;
	display: block;
	width: 50px;
	height: 28px;
	border: 1px solid #b8cbd6;
	border-radius: 999px;
	background: #d9e4ea;
	transition: border-color 180ms ease, background 180ms ease;
}

.ksc-cookie-switch-track::after {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(18, 54, 95, 0.22);
	content: "";
	transition: transform 180ms ease;
}

.ksc-cookie-switch input:checked + .ksc-cookie-switch-track {
	border-color: #02a3e8;
	background: #02a3e8;
}

.ksc-cookie-switch input:checked + .ksc-cookie-switch-track::after {
	transform: translateX(22px);
}

.ksc-cookie-switch input:disabled + .ksc-cookie-switch-track {
	border-color: #12365f;
	background: #12365f;
	opacity: 0.82;
}

.ksc-cookie-switch input:focus-visible + .ksc-cookie-switch-track {
	outline: 3px solid #028dcc;
	outline-offset: 3px;
}

.ksc-cookie-modal-dialog > .ksc-cookie-modal-note {
	margin: 15px 0 22px;
	font-size: 12px;
}

.ksc-cookie-modal-actions {
	display: flex;
	align-items: stretch;
	justify-content: flex-end;
	gap: 10px;
}

.ksc-cookie-modal-actions .ksc-cookie-button-secondary {
	border-color: #b8cbd6;
	color: #12365f;
}

.ksc-cookie-modal-actions .ksc-cookie-button-secondary:hover {
	border-color: #8ca8b8;
	background: #eaf4f9;
}

.ksc-cookie-save {
	min-width: 220px;
}

@media (max-width: 760px) {
	.ksc-cookie-banner {
		padding: 16px;
	}

	.ksc-cookie-banner-inner {
		align-items: stretch;
		flex-direction: column;
		gap: 14px;
	}

	.ksc-cookie-banner-content {
		max-width: none;
	}

	.ksc-cookie-banner-actions {
		flex-basis: auto;
	}

	.ksc-cookie-button {
		padding-right: 10px;
		padding-left: 10px;
	}

	.ksc-cookie-category {
		align-items: center;
	}
}

@media (max-width: 480px) {
	.ksc-cookie-banner-actions {
		grid-template-columns: 1fr;
	}

	.ksc-cookie-banner-actions .ksc-cookie-button-secondary {
		grid-column: auto;
	}

	.ksc-cookie-modal {
		padding: 12px;
	}

	.ksc-cookie-modal-dialog {
		max-height: calc(100vh - 24px);
	}

	.ksc-cookie-category {
		align-items: flex-start;
		flex-direction: column;
	}

	.ksc-cookie-switch {
		align-self: flex-start;
	}

	.ksc-cookie-required-control {
		align-items: flex-start;
		flex-direction: column;
	}

	.ksc-cookie-modal-actions {
		flex-direction: column-reverse;
	}

	.ksc-cookie-save {
		width: 100%;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ksc-cookie-button,
	.ksc-cookie-switch-track,
	.ksc-cookie-switch-track::after {
		transition: none;
	}
}
