/*
File Description: Cookie consent banner + preference center for Velocity Chiropractic.
Self-contained. All selectors namespaced .vc-cc-* so nothing collides with Bootstrap
or the iDea theme. No JS framework dependency.
*/

.vc-cc-root {
	font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #444;
	-webkit-font-smoothing: antialiased;
}

.vc-cc-root [hidden] { display: none !important; }

.vc-cc-root button {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* ============================================================
   Banner
   ============================================================ */

.vc-cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99998;
	background: #ffffff;
	border-top: 3px solid #e84c3d;
	box-shadow: 0 -4px 24px rgba(0, 0, 0, .16);
	padding: 22px 0;
	transform: translateY(100%);
	transition: transform .35s ease;
}

.vc-cc-banner.vc-cc-in { transform: translateY(0); }

.vc-cc-banner-inner {
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 20px;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	gap: 20px;
}

.vc-cc-banner-text {
	-webkit-box-flex: 1;
	-ms-flex: 1 1 420px;
	flex: 1 1 420px;
	min-width: 0;
}

.vc-cc-banner-text h2 {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: #222;
	line-height: 1.3;
}

.vc-cc-banner-text p {
	margin: 0;
	font-size: 13.5px;
	color: #555;
}

.vc-cc-banner-text a {
	color: #e84c3d;
	text-decoration: underline;
}

.vc-cc-banner-text a:hover,
.vc-cc-banner-text a:focus { color: #cd3c2e; }

.vc-cc-actions {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 10px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

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

.vc-cc-btn {
	display: inline-block;
	padding: 11px 22px;
	border-radius: 3px;
	border: 2px solid transparent;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .3px;
	text-transform: uppercase;
	cursor: pointer;
	white-space: nowrap;
	background: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.vc-cc-btn:focus-visible,
.vc-cc-toggle input:focus-visible + .vc-cc-slider,
.vc-cc-close:focus-visible {
	outline: 3px solid #7ab8ff;
	outline-offset: 2px;
}

.vc-cc-btn-primary {
	background: #e84c3d;
	border-color: #e84c3d;
	color: #fff;
}

.vc-cc-btn-primary:hover,
.vc-cc-btn-primary:focus {
	background: #cd3c2e;
	border-color: #cd3c2e;
	color: #fff;
}

.vc-cc-btn-secondary {
	background: #fff;
	border-color: #c9c9c9;
	color: #444;
}

.vc-cc-btn-secondary:hover,
.vc-cc-btn-secondary:focus {
	border-color: #e84c3d;
	color: #e84c3d;
}

.vc-cc-btn-danger {
	background: #fff;
	border-color: #c9c9c9;
	color: #a2382c;
}

.vc-cc-btn-danger:hover,
.vc-cc-btn-danger:focus {
	background: #a2382c;
	border-color: #a2382c;
	color: #fff;
}

/* ============================================================
   Preference centre (modal)
   ============================================================ */

.vc-cc-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 99999;
	background: rgba(0, 0, 0, .6);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity .25s ease;
}

.vc-cc-overlay.vc-cc-in { opacity: 1; }

.vc-cc-modal {
	background: #fff;
	border-radius: 4px;
	width: 100%;
	max-width: 680px;
	max-height: 90vh;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	box-shadow: 0 10px 50px rgba(0, 0, 0, .35);
	transform: translateY(14px);
	transition: transform .25s ease;
}

.vc-cc-overlay.vc-cc-in .vc-cc-modal { transform: translateY(0); }

.vc-cc-modal-head {
	padding: 22px 26px 18px;
	border-bottom: 1px solid #ececec;
	position: relative;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.vc-cc-modal-head h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #222;
	padding-right: 40px;
	line-height: 1.3;
}

.vc-cc-modal-head p {
	margin: 8px 0 0;
	font-size: 13px;
	color: #666;
	padding-right: 40px;
}

.vc-cc-close {
	position: absolute;
	top: 18px;
	right: 20px;
	width: 32px;
	height: 32px;
	border: 0;
	border-radius: 50%;
	background: #f2f2f2;
	color: #666;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}

.vc-cc-close:hover,
.vc-cc-close:focus {
	background: #e84c3d;
	color: #fff;
}

.vc-cc-modal-body {
	padding: 6px 26px 20px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	-webkit-box-flex: 1;
	-ms-flex: 1 1 auto;
	flex: 1 1 auto;
}

/* Category rows */

.vc-cc-cat {
	padding: 18px 0;
	border-bottom: 1px solid #f0f0f0;
}

.vc-cc-cat:last-child { border-bottom: 0; }

.vc-cc-cat-head {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: start;
	-ms-flex-align: start;
	align-items: flex-start;
	-webkit-box-pack: justify;
	-ms-flex-pack: justify;
	justify-content: space-between;
	gap: 16px;
}

.vc-cc-cat-head h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #222;
	line-height: 1.4;
}

.vc-cc-cat p {
	margin: 7px 0 0;
	font-size: 13px;
	color: #666;
}

.vc-cc-always {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: #4a9c5d;
	white-space: nowrap;
	padding-top: 3px;
}

/* Toggle switch */

.vc-cc-toggle {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 27px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
	margin: 0;
}

.vc-cc-toggle input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
	z-index: 2;
}

.vc-cc-slider {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #c4c4c4;
	border-radius: 27px;
	transition: background-color .2s ease;
	pointer-events: none;
}

.vc-cc-slider:before {
	content: "";
	position: absolute;
	width: 21px;
	height: 21px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .2s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}

.vc-cc-toggle input:checked + .vc-cc-slider { background: #e84c3d; }

.vc-cc-toggle input:checked + .vc-cc-slider:before { transform: translateX(23px); }

/* Clear-cookies block */

.vc-cc-clear {
	margin-top: 4px;
	padding: 18px;
	background: #faf7f6;
	border: 1px solid #eee0dd;
	border-radius: 4px;
}

.vc-cc-clear h3 {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}

.vc-cc-clear p {
	margin: 0 0 14px;
	font-size: 13px;
	color: #666;
}

.vc-cc-status {
	margin: 12px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #4a9c5d;
}

.vc-cc-modal-foot {
	padding: 18px 26px;
	border-top: 1px solid #ececec;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	gap: 10px;
	-webkit-box-pack: end;
	-ms-flex-pack: end;
	justify-content: flex-end;
	background: #fbfbfb;
	border-radius: 0 0 4px 4px;
	-ms-flex-negative: 0;
	flex-shrink: 0;
}

.vc-cc-record {
	margin: 16px 0 0;
	font-size: 12px;
	color: #999;
	text-align: center;
}

/* ============================================================
   Footer legal bar + floating reopen tab
   ============================================================ */

.vc-cc-legal-bar {
	font-size: 13px;
	padding: 4px 0;
}

.vc-cc-legal-bar a,
.vc-cc-legal-bar button {
	color: inherit;
	opacity: .85;
	text-decoration: none;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	font: inherit;
}

.vc-cc-legal-bar a:hover,
.vc-cc-legal-bar a:focus,
.vc-cc-legal-bar button:hover,
.vc-cc-legal-bar button:focus {
	opacity: 1;
	color: #e84c3d;
	text-decoration: underline;
}

.vc-cc-legal-sep {
	opacity: .4;
	margin: 0 8px;
}

/* ============================================================
   Blocked third-party content placeholder
   ============================================================ */

.vc-cc-placeholder {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	text-align: center;
	min-height: 260px;
	height: 100%;
	padding: 30px 24px;
	background: #f5f5f5;
	border: 1px dashed #cfcfcf;
	border-radius: 3px;
	font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.vc-cc-placeholder p {
	margin: 0 0 14px;
	font-size: 13.5px;
	color: #666;
	max-width: 380px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 767px) {
	.vc-cc-banner { padding: 18px 0; max-height: 85vh; overflow-y: auto; }
	.vc-cc-banner-inner { gap: 16px; }
	.vc-cc-actions { width: 100%; }
	.vc-cc-actions .vc-cc-btn { -webkit-box-flex: 1; -ms-flex: 1 1 100%; flex: 1 1 100%; text-align: center; }
	.vc-cc-modal-head,
	.vc-cc-modal-body,
	.vc-cc-modal-foot { padding-left: 18px; padding-right: 18px; }
	.vc-cc-modal-foot .vc-cc-btn { -webkit-box-flex: 1; -ms-flex: 1 1 100%; flex: 1 1 100%; text-align: center; }
	.vc-cc-modal { max-height: 94vh; }
}

@media (prefers-reduced-motion: reduce) {
	.vc-cc-banner,
	.vc-cc-overlay,
	.vc-cc-modal,
	.vc-cc-slider,
	.vc-cc-slider:before,
	.vc-cc-btn { transition: none !important; }
}

@media print {
	.vc-cc-banner,
	.vc-cc-overlay { display: none !important; }
}
