/* =========================================================
   Cookie Consent Manager
   ========================================================= */

.ccm {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	z-index: 999999;

	display: flex;
	justify-content: center;

	font-family: inherit;

	transition:
		opacity .2s ease,
		transform .2s ease;
}

.ccm *,
.ccm *::before,
.ccm *::after {
	box-sizing: border-box;
}


/* =========================================================
   Window
   ========================================================= */

.ccm__window {
	width: 100%;
	max-width: 760px;

	background: #fff;

	border-radius: 14px;

	box-shadow: 0 12px 40px rgba(0, 0, 0, .15);

	padding: 28px;
}


/* =========================================================
   Title
   ========================================================= */

.ccm__title {
	margin: 0 0 12px;

	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}


/* =========================================================
   Subtitle
   ========================================================= */

.ccm__subtitle {
	font-size: 15px;
	line-height: 1.7;

	color: #555;
}


/* =========================================================
   Buttons
   ========================================================= */

.ccm__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;

	margin-top: 30px;
}

.ccm-btn {
	border: 1px solid #FF5B25 !important;

	padding: 12px 16px;

	border-radius: 8px;

	cursor: pointer;

	font-size: 14px;
	font-weight: normal;

	line-height: 1.4;

	text-transform: none;

	background: #FF5B25 !important;
	color: #fff !important;

	transition:
		transform .2s ease,
		opacity .2s ease,
		background .2s ease;
}

.ccm-btn:hover {
	transform: translateY(-2px);
}

.ccm-btn:active {
	transform: translateY(0);
}

.ccm-btn-primary {
	background: #FF5B25 !important;
	color: #fff !important;
}

.ccm-btn-primary:hover {
	background: #FF5B25 !important;
	color: #fff !important;
}

#ccm-customize {
	background: #fff !important;
	color: #000 !important;

	border: 1px solid #FF5B25 !important;
}

#ccm-customize:hover {
	background: #fff !important;
	color: #000 !important;
}


/* =========================================================
   Settings
   ========================================================= */

.ccm__settings {
	display: none;

	margin-top: 30px;

	border-top: 1px solid #ececec;

	padding-top: 25px;
}


/* =========================================================
   Category
   ========================================================= */

.ccm-category {
	display: flex;

	align-items: flex-start;
	justify-content: space-between;

	gap: 20px;

	padding: 18px 0;

	border-bottom: 1px solid #f3f3f3;
}

.ccm-category:last-child {
	border-bottom: none;
}

.ccm-category .h3 {
	margin: 0 0 10px;

	font-size: 17px;
	font-weight: 600;

	line-height: 1.3;
}

.ccm-category p {
	margin: 0;

	color: #666;

	line-height: 1.6;

	font-size: 14px;
}


/* =========================================================
   Switch
   ========================================================= */

.ccm-switch {
	position: relative;

	display: inline-block;

	width: 52px;
	height: 30px;

	flex: none;
}

.ccm-switch input {
	position: absolute;

	width: 1px;
	height: 1px;

	opacity: 0;

	pointer-events: none;
}

.ccm-switch span {
	position: absolute;

	inset: 0;

	background: #c8c8c8;

	border-radius: 30px;

	cursor: pointer;

	transition: background .25s ease;
}

.ccm-switch span::before {
	content: "";

	position: absolute;

	left: 3px;
	top: 3px;

	width: 24px;
	height: 24px;

	border-radius: 50%;

	background: #fff;

	transition: transform .25s ease;
}

.ccm-switch input:checked + span {
	background: #FF5B25;
}

.ccm-switch input:checked + span::before {
	transform: translateX(22px);
}

.ccm-switch input:disabled + span {
	opacity: .7;

	cursor: default;
}


/* =========================================================
   Settings footer
   ========================================================= */

.ccm__settings-footer {
	display: flex;
	align-items: center;
}

#ccm-save {
	margin-top: 20px;
}


/* =========================================================
   Hidden / closing states
   ========================================================= */

.ccm.hidden {
	display: none !important;
}

.ccm--closing {
	opacity: 0;
	transform: translateY(20px);
	pointer-events: none;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {

	.ccm {
		left: 10px;
		right: 10px;
		bottom: 10px;
	}

	.ccm__window {
		padding: 20px;

		border-radius: 12px;
	}

	.ccm__title {
		font-size: 21px;
	}

	.ccm__subtitle {
		font-size: 14px;
		line-height: 1.6;
	}

	.ccm__settings {
		margin-top: 20px;
		padding-top: 0;

		border-top: none;
	}

	.ccm-category {
		gap: 0;

		flex-direction: column;
	}

	.ccm-category p:not(.h3) {
		display: none !important;
	}

	.ccm-category .h3 {
		margin-bottom: 12px;
	}

	.ccm__buttons {
		flex-direction: column;
	}

	.ccm-btn {
		width: 100%;
	}

	.ccm__settings-footer {
		display: block;
	}

	#ccm-save {
		width: 100%;
	}

}



.ccm-btn:disabled {
	cursor: wait;
	opacity: .7;
	transform: none !important;
}

.ccm-btn.is-loading {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ccm-spinner {
	display: inline-block;

	width: 14px;
	height: 14px;

	border: 2px solid rgba(255, 255, 255, .4);
	border-top-color: currentColor;

	border-radius: 50%;

	animation: ccm-spin .7s linear infinite;
}

#ccm-customize.is-loading .ccm-spinner,
#ccm-save.is-loading .ccm-spinner {
	color: #fff;
}

@keyframes ccm-spin {
	to {
		transform: rotate(360deg);
	}
}
#ccm-customize.is-loading .ccm-spinner {
	border-color: rgba(0, 0, 0, .2);
	border-top-color: #000;
}