/* Reset */
.cc-modal, .cc-modal *, .cc-modal *::before, .cc-modal *::after,
.cc-backdrop { box-sizing: border-box; }
.cc-modal button { overflow: visible; text-transform: none; -webkit-appearance: button; }

/* Layers and backdrop */
.cc-modal {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1050;
	display: none;
	width: 100%;
	height: 100%;
	overflow: hidden;
	outline: 0;
}
.cc-modal.is-open { display: block; overflow-x: hidden; overflow-y: auto; }
/* Fade in */
.cc-modal { opacity: 0; transition: opacity .15s linear; }
.cc-modal.is-shown { opacity: 1; }
.cc-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1040;
	width: 100vw;
	height: 100vh;
	background-color: #000;
	opacity: 0;
	transition: opacity .15s linear;
}
.cc-backdrop.is-shown { opacity: .5; }
/* Scroll lock */
html.cc-lock body { overflow: hidden; }

/* Dialog and box */
.cc-dialog {
	position: relative;
	display: flex;
	align-items: center;
	min-height: calc(100% - 16px);
	margin: 8px;
	pointer-events: none;
	transform: translate(0, -50px);
	transition: transform .3s ease-out;
}
.cc-modal.is-shown .cc-dialog { transform: none; }
.cc-dialog--banner { max-width: 520px; }
.cc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background-color: #fff;
	background-clip: padding-box;
	border-radius: 7px;
	box-shadow: 0 4.8px 24.4px -6px rgba(0, 0, 0, .1);
	overflow: hidden;
	font-family: Rubik, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	color: #4b566b;
	text-align: left;
}
@media (min-width: 576px) {
	.cc-dialog { min-height: calc(100% - 56px); margin: 28px auto; }
	.cc-dialog--settings { max-width: 500px; }
}
@media (min-width: 992px) {
	.cc-dialog--settings { max-width: 800px; }
}

/* Text */
.cc-body { flex: 1 1 auto; }
.cc-body--banner { padding: 24px; text-align: center; }
.cc-h { margin: 0 0 16px; font-size: 14px; font-weight: 500; line-height: 1.2; color: #373f50; }
.cc-text { margin: 0 0 24px; font-size: 12px; font-weight: 400; line-height: 1.5; color: #4b566b; }

/* Buttons */
.cc-btn {
	display: inline-block;
	margin: 0;
	padding: 10px 22px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
	vertical-align: middle;
	white-space: nowrap;
	cursor: pointer;
	user-select: none;
	border: 1px solid transparent;
	transition: color .25s ease-in-out, background-color .25s ease-in-out, border-color .25s ease-in-out, box-shadow .2s ease-in-out;
}
.cc-btn:focus { outline: 0; box-shadow: none; }
.cc-btn--accept { background-color: #315b6b; border-color: #315b6b; color: #fff; border-radius: 3px; }
.cc-btn--accept:hover { background-color: #f6f9fc; border-color: #303030; color: #303030; }
.cc-btn--settings { background-color: transparent; border-color: #dae1e7; color: #4b566b; border-radius: 5px; }
.cc-btn--settings:hover { background-color: #f3f5f9; border-color: transparent; color: #4b566b; }

/* Banner */
.cc-actions { display: flex; justify-content: center; align-items: center; }
.cc-actions .cc-btn--settings { margin-right: 8px; }

/* Settings */
.cc-head { padding: 16px 24px 8px; border-bottom: 1px solid #e3e9ef; }
.cc-head-row { display: flex; justify-content: space-between; align-items: flex-start; }
.cc-head .cc-h { margin-bottom: 8px; }
.cc-head .cc-text { margin-bottom: 4px; }
.cc-head .cc-btn { margin-left: 16px; flex-shrink: 0; display: none; }
.cc-scroll { max-height: 60vh; overflow-y: auto; padding: 16px 24px; }
.cc-scroll > .cc-text { margin-bottom: 16px; }
.cc-mobile-confirm { display: block; margin-bottom: 16px; }
.cc-mobile-confirm .cc-btn { width: 100%; }
.cc-note { margin: 16px 0; font-size: 12px; font-weight: 400; line-height: 1.5; color: #4b566b; }
.cc-foot { display: none; justify-content: flex-end; border-top: 1px solid #e3e9ef; padding-top: 16px; margin-top: 16px; }
@media (min-width: 768px) {
	.cc-head .cc-btn { display: block; }
	.cc-mobile-confirm { display: none; }
	.cc-foot { display: flex; }
}

/* Category rows */
.cc-toggle {
	display: flex;
	align-items: flex-start;
	padding: 16px;
	margin-bottom: 8px;
	border: 1px solid #e3e9ef;
	border-radius: 5px;
	transition: border-color .15s ease;
}
.cc-toggle:hover { border-color: #cfd4db; }
.cc-toggle--locked { opacity: .7; }
.cc-toggle__body { flex: 1 1 auto; }
.cc-toggle__name { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; line-height: 1.5; color: #4b566b; }
.cc-toggle__text { margin: 0; font-size: 12px; font-weight: 400; line-height: 1.5; color: #4b566b; }

/* Switch */
.cc-toggle__switch {
	position: relative;
	flex-shrink: 0;
	width: 40px;
	height: 22px;
	margin: 0 16px 6px 0;
}

.cc-toggle__switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}

.cc-toggle__slider {
	position: absolute;
	inset: 0;
	background: #cfd4db;
	border-radius: 22px;
	cursor: pointer;
	transition: background .2s ease;
}

.cc-toggle__slider::before {
	content: '';
	position: absolute;
	left: 2px;
	top: 2px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s cubic-bezier(.4,0,.2,1);
	box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.cc-toggle__switch input:checked + .cc-toggle__slider { background: #3cc68b; }
.cc-toggle__switch input:checked + .cc-toggle__slider::before { transform: translateX(18px); }
.cc-toggle__switch input:disabled + .cc-toggle__slider { cursor: default; background: #3cc68b; opacity: .55; }
.cc-toggle__switch input:disabled + .cc-toggle__slider::before { transform: translateX(18px); }
