/*! Custom Cookie Consent (DSGVO/nDSG) for OpenCart 3 | v1.0.8 | (c) Glossyking */
.cc-root {
	--cc-bg: #ffffff;
	--cc-text: #333333;
	--cc-link: #1f6fb2;
	--cc-btn-bg: #1f6fb2;
	--cc-btn-text: #ffffff;
	--cc-btn2-bg: #ffffff;
	--cc-btn2-text: #1f6fb2;
	font-size: 14px;
	line-height: 1.5;
	color: var(--cc-text);
}
.cc-root *,
.cc-root *::before,
.cc-root *::after {
	box-sizing: border-box;
}
.cc-root [hidden] {
	display: none !important;
}
.cc-root p {
	margin: 0 0 10px;
}
.cc-title {
	font-size: 17px;
	font-weight: bold;
}
.cc-link,
.cc-text a {
	color: var(--cc-link);
	text-decoration: underline;
}

/* Banner */
.cc-banner {
	position: fixed;
	z-index: 99998;
	background: var(--cc-bg);
	color: var(--cc-text);
	box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.18);
}
.cc-layout-bar .cc-banner {
	left: 0;
	right: 0;
	bottom: 0;
}
.cc-layout-bar .cc-banner-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	max-width: 1170px;
	margin: 0 auto;
	padding: 16px 15px;
}
.cc-layout-bar .cc-banner-content {
	flex: 1 1 420px;
}
.cc-layout-box .cc-banner {
	left: 16px;
	bottom: 16px;
	width: 400px;
	max-width: calc(100% - 32px);
	border-radius: 6px;
}
.cc-layout-box .cc-banner-inner,
.cc-layout-modal .cc-banner-inner {
	padding: 20px;
}
.cc-layout-modal .cc-banner {
	top: 50%;
	left: 50%;
	width: 560px;
	max-width: calc(100% - 32px);
	max-height: calc(100% - 32px);
	overflow-y: auto;
	transform: translate(-50%, -50%);
	border-radius: 6px;
}
.cc-layout-modal .cc-banner::before {
	content: "";
	position: fixed;
	z-index: -1;
	top: -100vh;
	left: -100vw;
	width: 300vw;
	height: 300vh;
	background: rgba(0, 0, 0, 0.5);
}
.cc-banner-content .cc-text {
	margin-bottom: 0;
}
.cc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cc-layout-box .cc-actions,
.cc-layout-modal .cc-actions {
	margin-top: 14px;
}

/* Buttons: accept and reject share one style on purpose (equal prominence). */
.cc-btn {
	display: inline-block;
	flex: 1 1 auto;
	margin: 0;
	padding: 9px 16px;
	font: inherit;
	font-weight: bold;
	line-height: 1.3;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
}
.cc-root:not(.cc-theme) .cc-btn {
	border-radius: 4px;
	border: 2px solid var(--cc-btn-bg);
}
.cc-root:not(.cc-theme) .cc-btn-primary {
	background: var(--cc-btn-bg);
	color: var(--cc-btn-text);
}
.cc-root:not(.cc-theme) .cc-btn-secondary {
	background: var(--cc-btn2-bg);
	color: var(--cc-btn2-text);
	border-color: var(--cc-btn2-text);
}
.cc-root:not(.cc-theme) .cc-btn:hover,
.cc-root:not(.cc-theme) .cc-btn:focus {
	filter: brightness(0.92);
}
.cc-btn:focus-visible,
.cc-close:focus-visible,
.cc-float:focus-visible,
.cc-switch input:focus-visible + .cc-slider {
	outline: 3px solid var(--cc-link);
	outline-offset: 2px;
}

/* Settings dialog */
.cc-modal {
	position: fixed;
	z-index: 99999;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.5);
}
.cc-modal-box {
	display: flex;
	flex-direction: column;
	width: 640px;
	max-width: 100%;
	max-height: 100%;
	background: var(--cc-bg);
	color: var(--cc-text);
	border-radius: 6px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.cc-modal-header,
.cc-modal-footer {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 20px;
}
.cc-modal-header {
	justify-content: space-between;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.cc-modal-header .cc-title {
	margin: 0;
}
.cc-modal-footer {
	flex-wrap: wrap;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.cc-modal-body {
	padding: 16px 20px;
	overflow-y: auto;
}
.cc-close {
	padding: 0 4px;
	font-size: 28px;
	line-height: 1;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}
.cc-category {
	padding: 12px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.cc-category-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.cc-category-title {
	margin: 0;
	font-weight: bold;
	cursor: pointer;
}
.cc-category-desc,
.cc-category-cookies {
	margin: 6px 0 0 !important;
}
.cc-category-cookies {
	font-size: 12px;
	opacity: 0.75;
}
.cc-always {
	font-size: 12px;
	font-weight: bold;
	white-space: nowrap;
	opacity: 0.75;
}
.cc-consent-id {
	margin-top: 10px;
	font-size: 12px;
	opacity: 0.75;
	word-break: break-all;
}

/* Toggle switch */
.cc-switch {
	position: relative;
	display: inline-block;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
}
.cc-switch input {
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.cc-slider {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: #b9b9b9;
	border-radius: 26px;
	transition: background 0.2s;
}
.cc-slider::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	background: #ffffff;
	border-radius: 50%;
	transition: transform 0.2s;
}
.cc-switch input:checked + .cc-slider {
	background: var(--cc-btn-bg);
}
.cc-theme .cc-switch input:checked + .cc-slider {
	background: var(--cc-link);
}
.cc-switch input:checked + .cc-slider::before {
	transform: translateX(20px);
}

/* Floating button */
.cc-float {
	position: fixed;
	z-index: 99997;
	left: 16px;
	bottom: var(--cc-float-offset, 16px);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	color: var(--cc-btn-text);
	background: var(--cc-btn-bg);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: bottom 0.2s;
}
.cc-float-right {
	left: auto;
	right: 16px;
}
@media (max-width: 767px) {
	.cc-float {
		width: 38px;
		height: 38px;
		left: 10px;
	}
	.cc-float-right {
		left: auto;
		right: 10px;
	}
	.cc-float svg {
		width: 19px;
		height: 19px;
	}
	.cc-float-mobile-hide {
		display: none;
	}
}
.cc-banner-open .cc-float {
	display: none;
}

@media (max-width: 600px) {
	.cc-actions {
		width: 100%;
	}
	.cc-btn {
		flex: 1 1 100%;
		white-space: normal;
	}
	.cc-layout-bar .cc-banner-inner {
		padding: 14px 15px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.cc-slider,
	.cc-slider::before,
	.cc-float {
		transition: none;
	}
}
