/* COOKIES UI refresh */

#cookies-fixed {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: fixed;
	right: 16px;
	bottom: 12px;
	z-index: 909;
	background: linear-gradient(135deg, rgba(18, 28, 47, 0.96) 0%, rgba(11, 18, 31, 0.96) 100%);
	color: #f3f7ff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
	cursor: pointer;
	transition: all 0.2s ease;
}

#cookies-fixed:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.4);
}

#cookies {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: radial-gradient(circle at 20% 20%, rgba(0, 255, 163, 0.1) 0%, rgba(0, 0, 0, 0) 40%), rgba(2, 6, 18, 0.28);
	backdrop-filter: blur(2px);
	z-index: 99999;
	pointer-events: none;
}

#cookies .container {
	margin: 0;
	width: 100%;
	height: 100%;
	padding: 20px;
	display: block;
	position: relative;
}

.cookieContainer {
	position: fixed;
	bottom: 20px;
	left: 20px;
	width: 100%;
	max-width: 470px;
	background: linear-gradient(160deg, rgba(10, 18, 34, 0.97) 0%, rgba(7, 14, 27, 0.97) 100%) !important;
	border-radius: 20px;
	border: 1px solid rgba(157, 181, 224, 0.24) !important;
	box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5) !important;
	z-index: 100000;
	padding: 20px 20px 14px;
	overflow: auto;
	pointer-events: auto;
	max-height: calc(100vh - 40px);
}

.cookieMsg {
	display: block;
	text-align: left;
	color: #dbe8ff !important;
	font-size: 13px;
	line-height: 1.55;
	margin-bottom: 16px;
}

.cookieMsg > h5 {
	margin: 0 0 12px 0 !important;
	color: #f4f9ff !important;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cookieMsg p {
	margin: 0 0 10px;
}

.cookieMsg p:last-child {
	margin-bottom: 0;
}

.cookieMsg a {
	color: #7fc7ff !important;
	text-decoration: none;
}

.cookieMsg a:hover {
	text-decoration: underline;
}

.cookieFooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
}

.btn-cookie {
	border: 0;
	border-radius: 999px;
	min-height: 38px;
	padding: 9px 14px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: all 0.2s ease;
}

.btn-cookie-ghost {
	background: rgba(167, 189, 226, 0.18) !important;
	color: #ebf3ff !important;
}

.btn-cookie-ghost:hover {
	background: rgba(167, 189, 226, 0.3);
}

.btn-cookie-outline {
	background: rgba(5, 12, 24, 0.35) !important;
	border: 1px solid rgba(198, 216, 245, 0.34) !important;
	color: #dfe9fb !important;
}

.btn-cookie-outline:hover {
	background: rgba(17, 30, 52, 0.75);
}

.btn-cookie-primary {
	background: linear-gradient(135deg, #00f5a0 0%, #00d9be 100%);
	color: #03231a;
}

.btn-cookie-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 20px rgba(0, 217, 190, 0.35);
}

#cookieConfig {
	display: none;
	max-width: 760px;
}

.cookiePolicyLink {
	width: 100%;
	color: #7fc7ff;
	font-size: 12px;
	text-decoration: none;
	margin-bottom: 6px;
}

.cookiePolicyLink:hover {
	text-decoration: underline;
}

.cookieFooterConfig {
	margin-top: 6px;
}

.infoCookie {
	display: inline-flex;
	cursor: pointer;
	color: #9db5df;
	vertical-align: middle;
	transition: color 0.2s ease;
}

.infoCookie:hover {
	color: #d8e8ff;
}

.cookieSelector > table {
	font-size: 12px;
	color: #d9e6ff !important;
	margin-bottom: 8px;
	--bs-table-bg: transparent;
	--bs-table-color: #d9e6ff;
	--bs-table-striped-bg: rgba(255, 255, 255, 0.02);
	--bs-table-striped-color: #e8f1ff;
	--bs-table-active-bg: rgba(255, 255, 255, 0.04);
	--bs-table-active-color: #ffffff;
	--bs-table-hover-bg: rgba(255, 255, 255, 0.04);
	--bs-table-hover-color: #ffffff;
	--bs-table-border-color: rgba(157, 181, 224, 0.22);
}

.cookieSelector > table th {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #9db5df !important;
}

.cookieSelector > table td {
	color: #e6efff !important;
}

.cookie-required-chip {
	display: inline-block;
	background: rgba(121, 188, 255, 0.18);
	color: #bde3ff;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
}

.cookie-toggle {
	display: flex;
	width: fit-content;
	position: relative;
	box-sizing: border-box;
	margin: auto;
}

.cookie-toggle input[type="checkbox"] {
	position: absolute;
	margin: 0;
	left: 0;
	top: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	cursor: pointer;
	opacity: 0;
}

.cookie-toggle label {
	position: relative;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	box-shadow: none !important;
}

.cookie-toggle label:before {
	content: "";
	width: 48px;
	height: 25px;
	position: relative;
	display: inline-block;
	background: #273654;
	border-radius: 28px;
	border: 1px solid rgba(173, 198, 238, 0.35);
	box-sizing: border-box;
	transition: 0.2s ease-in;
}

.cookie-toggle label:after {
	content: "";
	position: absolute;
	width: 17px;
	height: 17px;
	border-radius: 50%;
	left: 4px;
	top: 4px;
	z-index: 2;
	background: #d7e8ff;
	box-sizing: border-box;
	transition: 0.2s ease-in;
}

.cookie-toggle input[type="checkbox"]:checked + label:before {
	background: #0b4bdb;
	border-color: #0b4bdb;
}

.cookie-toggle input[type="checkbox"]:checked + label:after {
	left: 27px;
	background: #ffffff;
}

.cookie-description {
	width: 100%;
	margin-top: 10px;
	border-radius: 12px;
	border: 1px solid rgba(134, 170, 228, 0.2);
	background-color: rgba(13, 24, 44, 0.86);
	padding: 10px;
	display: flex;
	flex-flow: column;
	align-items: stretch;
	font-size: 11px;
}

.cookie-desc-line {
	display: flex;
	flex-wrap: nowrap;
	margin-bottom: 5px;
	gap: 8px;
}

.cookie-desc-line:last-child {
	margin-bottom: 0;
}

.cookie-desc-line > b {
	min-width: 80px;
	color: #9db5df;
}

#info_necesarias,
#info_analiticas {
	color: #dbe8ff;
}

.rotate-180 > svg {
	transform: rotate(180deg);
}

@media screen and (max-width: 900px) {
	.cookieContainer {
		left: 50% !important;
		transform: translateX(-50%) !important;
		width: calc(100% - 24px) !important;
		bottom: 12px !important;
		border-radius: 16px;
		padding: 16px 14px 12px;
		max-height: calc(100vh - 24px);
	}

	#cookieConfig {
		max-width: calc(100% - 24px);
	}

	.cookieFooter {
		justify-content: stretch;
	}

	.btn-cookie {
		flex: 1 1 100%;
		width: 100%;
	}
}