.wd-cc-banner,
.wd-cc-banner *,
.wd-cc-banner *::before,
.wd-cc-banner *::after {
	box-sizing: border-box;
}

.wd-cc-banner {
	--wd-cc-bg: #ffffff;
	--wd-cc-text: #1a1a1a;
	--wd-cc-accent: #1a1a1a;
	--wd-cc-accent-text: #ffffff;

	position: fixed;
	bottom: calc(8px + env(safe-area-inset-bottom, 0px));
	z-index: 999999;
	max-width: 300px;
	width: calc(100% - 16px);
	background-color: var(--wd-cc-bg);
	background-image: url(cookie-icon-bg.svg);
	background-repeat: no-repeat;
	background-position: right -16px top -16px;
	background-size: 110px 110px;
	color: var(--wd-cc-text);
	border-radius: 9px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.16);
	padding: 8px 9px;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 11px;
	line-height: 1.3;
}

@media (max-width: 480px) {
	.wd-cc-banner {
		max-width: 220px;
		width: calc(100% - 40px);
	}
}

.wd-cc-banner[hidden] {
	display: none;
}

.wd-cc-pos-bottom-left {
	left: 16px;
}

.wd-cc-pos-bottom-right {
	right: 16px;
}

.wd-cc-pos-bottom-center {
	left: 50%;
	transform: translateX(-50%);
}

.wd-cc-row {
	display: flex;
	align-items: flex-start;
	gap: 4px;
}

.wd-cc-icon {
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
	margin-top: 1px;
}

.wd-cc-text {
	margin: 0;
	flex: 1 1 auto;
}

.wd-cc-link {
	appearance: none;
	background: none;
	border: none;
	margin: 0;
	padding: 0;
	font: inherit;
	color: var(--wd-cc-text);
	font-weight: 600;
	text-decoration: underline;
	white-space: nowrap;
	cursor: pointer;
}

.wd-cc-actions {
	display: flex;
	gap: 4px;
	margin-top: 5px;
	flex-wrap: nowrap;
}

.wd-cc-btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 5px;
	padding: 4px 5px;
	font-size: 10.5px;
	font-weight: 600;
	cursor: pointer;
	flex: 1 1 0;
	min-width: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity 150ms ease, background-color 150ms ease;
}

.wd-cc-btn:hover {
	opacity: 0.85;
}

.wd-cc-btn:focus-visible {
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

.wd-cc-actions .wd-cc-btn-solid {
	background-color: var(--wd-cc-accent);
	color: var(--wd-cc-accent-text);
}

.wd-cc-btn-outline {
	background: transparent;
	color: var(--wd-cc-text);
	border-color: currentColor;
	opacity: 0.7;
}

.wd-cc-btn-outline:hover {
	opacity: 1;
}

.wd-cc-btn-ghost {
	background: transparent;
	color: var(--wd-cc-text);
	opacity: 0.6;
	flex: 0 0 auto;
	padding-left: 4px;
	padding-right: 4px;
}

.wd-cc-btn-ghost:hover {
	opacity: 1;
}

.wd-cc-btn-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	overflow: visible;
}

.wd-cc-gear {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
}

.wd-cc-view[hidden] {
	display: none;
}

.wd-cc-option {
	padding: 8px 0;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
}

.wd-cc-option:first-child {
	border-top: none;
}

.wd-cc-option-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-weight: 600;
}

.wd-cc-option p {
	margin: 4px 0 0;
	opacity: 0.7;
	font-size: 12px;
}

.wd-cc-option-head input[type="checkbox"] {
	appearance: none !important;
	-webkit-appearance: none !important;
	flex: 0 0 auto;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	min-height: 20px !important;
	max-width: 20px !important;
	max-height: 20px !important;
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 5px !important;
	border: 1.5px solid rgba(128, 128, 128, 0.4) !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
	position: relative;
	overflow: visible;
	transition: background-color 150ms ease, border-color 150ms ease;
}

.wd-cc-option-head input[type="checkbox"]::before {
	content: none !important;
	display: none !important;
}

.wd-cc-option-head input[type="checkbox"]:checked {
	background-color: var(--wd-cc-accent) !important;
	border-color: var(--wd-cc-accent) !important;
}

.wd-cc-option-head input[type="checkbox"]:checked::after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	left: 6px !important;
	top: 2px !important;
	width: 5px !important;
	height: 10px !important;
	border: solid var(--wd-cc-accent-text) !important;
	border-width: 0 2px 2px 0 !important;
	transform: rotate(45deg) !important;
	background: transparent !important;
	border-radius: 0 !important;
}

.wd-cc-option-head input[type="checkbox"]:disabled {
	cursor: default;
	opacity: 0.85;
}

.wd-cc-option-head input[type="checkbox"]:focus-visible {
	outline: 2px solid #1a73e8;
	outline-offset: 2px;
}

.wd-cc-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.wd-cc-modal[hidden] {
	display: none;
}

.wd-cc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 15, 20, 0.55);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: wd-cc-fade 0.18s ease both;
}

.wd-cc-modal__panel {
	--wd-cc-bg: #ffffff;
	--wd-cc-text: #1a1a1a;

	position: relative;
	background: var(--wd-cc-bg);
	color: var(--wd-cc-text);
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.08);
	max-width: 580px;
	width: 100%;
	max-height: min(620px, 82vh);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	animation: wd-cc-pop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes wd-cc-fade {
	from { opacity: 0; }
}

@keyframes wd-cc-pop {
	from {
		opacity: 0;
		transform: scale(0.96) translateY(6px);
	}
}

.wd-cc-modal__head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 18px 20px;
	border-bottom: 1px solid rgba(128, 128, 128, 0.15);
	font-size: 15px;
	flex-shrink: 0;
}

.wd-cc-modal__head-icon {
	font-size: 18px;
	line-height: 1;
	flex-shrink: 0;
}

.wd-cc-modal__head strong {
	flex: 1 1 auto;
	font-weight: 700;
}

.wd-cc-modal__close {
	appearance: none;
	background: rgba(128, 128, 128, 0.1);
	border: none;
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s ease, opacity 0.15s ease;
}

.wd-cc-modal__close:hover {
	opacity: 1;
	background: rgba(128, 128, 128, 0.2);
}

.wd-cc-modal__body {
	padding: 8px 24px 24px;
	overflow-y: auto;
	font-size: 13.5px;
	line-height: 1.65;
	scrollbar-width: thin;
}

.wd-cc-modal__body::-webkit-scrollbar {
	width: 8px;
}

.wd-cc-modal__body::-webkit-scrollbar-thumb {
	background: rgba(128, 128, 128, 0.3);
	border-radius: 999px;
}

.wd-cc-modal__body p {
	margin: 10px 0 0;
	opacity: 0.85;
}

.wd-cc-modal__body h4 {
	margin: 20px 0 0;
	font-size: 13.5px;
	font-weight: 700;
	padding-top: 16px;
	border-top: 1px solid rgba(128, 128, 128, 0.15);
}

.wd-cc-modal__body h4:first-child {
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.wd-cc-modal__body p:first-child {
	margin-top: 0;
}
