/* KRAN Cookie Consent & Preferences Management */
#kran-cookie-banner {
	position: fixed;
	bottom: -350px;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 99998;
	background: rgba(22, 26, 34, 0.96);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.35);
	border-top: 3px solid #C80808;
	transition: bottom 0.45s cubic-bezier(0.16, 1, 0.3, 1);
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 400;
	color: #e5e7eb;
	padding: 18px 24px;
}

#kran-cookie-banner.kran-banner-show {
	bottom: 0;
}

.kran-cookie-banner-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.kran-cookie-text-col {
	flex: 1 1 540px;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.kran-cookie-icon-wrap {
	background: rgba(200, 8, 8, 0.15);
	border: 1px solid rgba(200, 8, 8, 0.3);
	width: 42px;
	height: 42px;
	min-width: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ff4d4d;
}

.kran-cookie-icon-wrap svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.kran-cookie-content h5 {
	margin: 0 0 6px 0;
	font-size: 15px;
	font-weight: 500;
	color: #f1f5f9;
	letter-spacing: 0.3px;
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: inherit;
}

.kran-cookie-content p {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.55;
	color: #cbd5e1;
	font-family: inherit;
}

.kran-cookie-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.kran-cookie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 9px 18px;
	border-radius: 5px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none !important;
	transition: all 0.2s ease-in-out;
	border: none;
	outline: none;
	font-family: inherit;
	white-space: nowrap;
}

.kran-cookie-btn-primary {
	background-color: #C80808;
	color: #ffffff !important;
	box-shadow: 0 3px 10px rgba(200, 8, 8, 0.4);
}

.kran-cookie-btn-primary:hover {
	background-color: #a30606;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(200, 8, 8, 0.5);
	color: #fff !important;
}

.kran-cookie-btn-outline {
	background: transparent;
	color: #e2e8f0 !important;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.kran-cookie-btn-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.5);
	color: #ffffff !important;
}

.kran-cookie-btn-text {
	background: rgba(255, 255, 255, 0.08);
	color: #e2e8f0 !important;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.kran-cookie-btn-text:hover {
	background: rgba(200, 8, 8, 0.2);
	border-color: rgba(200, 8, 8, 0.5);
	color: #ffffff !important;
}


/* Modal Backdrop & Dialog — match project enquire overlay (#prkenquire) */
.kran-cookie-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.63);
	/* Above CPART fixed nav (.sk-navbar z-index: 1030) and home loader (9999) */
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	overflow-y: auto;
	transition: opacity 0.25s ease-out;
}

html {
	scrollbar-gutter: stable;
}

html.kran-cookie-modal-open,
html.kran-cookie-modal-open body {
	overflow: hidden !important;
}

.kran-cookie-modal-backdrop.kran-modal-open {
	opacity: 1;
}

.kran-cookie-modal-dialog {
	background: #ffffff;
	border-radius: 12px;
	max-width: 620px;
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
	transform: translateY(20px) scale(0.98);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
	font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-weight: 400;
	color: #64748b;
}

.kran-cookie-modal-backdrop.kran-modal-open .kran-cookie-modal-dialog {
	transform: translateY(0) scale(1);
}

.kran-cookie-modal-header {
	padding: 20px 24px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #f8fafc;
}

.kran-cookie-modal-title {
	display: flex;
	align-items: center;
	gap: 10px;
}

.kran-cookie-modal-title svg {
	width: 26px;
	height: 26px;
	fill: #C80808;
}

.kran-cookie-modal-title h4 {
	margin: 0;
	font-size: 17px;
	font-weight: 500;
	color: #475569;
	font-family: inherit;
}

.kran-cookie-modal-close {
	background: transparent;
	border: none;
	font-size: 26px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 0 4px;
	transition: color 0.2s;
}

.kran-cookie-modal-close:hover {
	color: #C80808;
}

.kran-cookie-modal-body {
	padding: 20px 24px;
	overflow-y: auto;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
	color: #64748b;
}

.kran-cookie-intro {
	margin-bottom: 18px;
	font-weight: 400;
	color: #64748b;
	background: #f1f5f9;
	padding: 12px 14px;
	border-radius: 6px;
	border-left: 3px solid #C80808;
}

.kran-cookie-section {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 14px;
	background: #ffffff;
	transition: border-color 0.2s;
}

.kran-cookie-section:hover {
	border-color: #cbd5e1;
}

.kran-cookie-sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
}

.kran-cookie-sec-title {
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
	display: flex;
	align-items: center;
	gap: 6px;
}

.kran-cookie-badge-always {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	background: #e2e8f0;
	color: #64748b;
	padding: 3px 8px;
	border-radius: 12px;
	letter-spacing: 0.5px;
}

/* Custom Toggle Switch */
.kran-switch {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
	margin: 0;
}

.kran-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.kran-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #cbd5e1;
	transition: .3s;
	border-radius: 24px;
}

.kran-slider:before {
	position: absolute;
	content: "";
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}

.kran-switch input:checked + .kran-slider {
	background-color: #C80808;
}

.kran-switch input:focus + .kran-slider {
	box-shadow: 0 0 1px #C80808;
}

.kran-switch input:checked + .kran-slider:before {
	transform: translateX(20px);
}

.kran-switch input:disabled + .kran-slider {
	opacity: 0.65;
	cursor: not-allowed;
}

.kran-cookie-sec-desc {
	margin: 0;
	font-size: 12.5px;
	font-weight: 400;
	color: #94a3b8;
	line-height: 1.55;
}

.kran-cookie-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 10px;
	background: #f8fafc;
}

.kran-cookie-modal-footer .kran-cookie-btn {
	padding: 8px 16px;
}

.kran-cookie-modal-footer .kran-btn-save {
	background: #C80808;
	color: #fff !important;
}

.kran-cookie-modal-footer .kran-btn-save:hover {
	background: #a30606;
}

.kran-cookie-modal-footer .kran-btn-accept-modal {
	background: #0f172a;
	color: #fff !important;
}

.kran-cookie-modal-footer .kran-btn-accept-modal:hover {
	background: #1e293b;
}

.kran-cookie-modal-footer .kran-btn-cancel-modal {
	background: #e2e8f0;
	color: #334155 !important;
}

.kran-cookie-modal-footer .kran-btn-cancel-modal:hover {
	background: #cbd5e1;
}

@media (max-width: 768px) {
	#kran-cookie-banner {
		padding: 16px;
	}
	.kran-cookie-actions {
		width: 100%;
		justify-content: flex-start;
	}
	.kran-cookie-actions .kran-cookie-btn {
		flex: 1 1 auto;
		text-align: center;
	}
	.kran-cookie-modal-dialog {
		max-height: 95vh;
	}
}
