/* ============================================
   Cookie Consent WPS — Frontend CSS
   All selectors scoped, no global leaks
   ============================================ */

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-Regular.ttf') format('truetype');
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-Medium.ttf') format('truetype');
	font-style: normal;
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	src: url('../fonts/Poppins-SemiBold.ttf') format('truetype');
	font-style: normal;
	font-weight: 600;
	font-display: swap;
}

/* --- Default CSS variables --- */
:root {
	--ccwps-primary:    #1a73e8;
	--ccwps-primary-hv: #1557b0;
	--ccwps-text:       #111827;
	--ccwps-title-text: var(--ccwps-text);
	--ccwps-desc-text:  var(--ccwps-text);
	--ccwps-muted:      #6b7280;
	--ccwps-bg:         #ffffff;
	--ccwps-cloud-bg-opacity: 70%;
	--ccwps-float-icon-bg: #1a73e8;
	--ccwps-float-icon-bg-hv: #1557b0;
	--ccwps-float-icon-color: #ffffff;
	--ccwps-float-tip-bg: #ffffff;
	--ccwps-float-tip-text: #111827;
	--ccwps-btn-txt:    #ffffff;
	--ccwps-border:     #e5e7eb;
	--ccwps-surface:    #f9fafb;
	--ccwps-surface2:   #f0f2f5;
	--ccwps-shadow:     0 12px 40px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
	--ccwps-shadow-sm:  0 4px 16px rgba(0,0,0,.14);
	--ccwps-overlay:    rgba(17,24,39,.52);
	--ccwps-r:          12px;
	--ccwps-r-sm:       8px;
	--ccwps-font:       'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* [ccwps_manage_consent] button appearance */
    --ccwps-manage-btn-bg: #1a73e8;
    --ccwps-manage-btn-txt: #fff;
    --ccwps-manage-btn-border: #1a73e8;
    --ccwps-manage-btn-border-width: 2px;
    --ccwps-manage-btn-radius: 8px;
    --ccwps-manage-btn-bg-hv: #1557b0;
    --ccwps-manage-btn-txt-hv: #fff;
    --ccwps-manage-btn-border-hv: #1557b0;
}

/* --- Scoped resets (only inside our containers) --- */
.ccwps-banner,
.ccwps-modal-overlay,
.ccwps-tip-popup,
#ccwps-floating-icon {
	font-family: var(--ccwps-font);
	font-size: 14px;
	line-height: 1.5;
	color: var(--ccwps-text);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.ccwps-banner *,
.ccwps-modal-overlay *,
.ccwps-tip-popup *,
#ccwps-floating-icon * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

/* ============================================
	[ccwps_manage_consent] BUTTON
	============================================ */
.ccwps-manage-consent-btn {
	 display: inline-block;
	 padding: 0.6em 1.6em;
	 font-family: var(--ccwps-font);
	 font-size: 1em;
	 font-weight: 500;
	 border-radius: var(--ccwps-manage-btn-radius, 8px);
	 background: var(--ccwps-manage-btn-bg, #1a73e8);
	 color: var(--ccwps-manage-btn-txt, #fff);
	 border: var(--ccwps-manage-btn-border-width, 2px) solid var(--ccwps-manage-btn-border, #1a73e8);
	 cursor: pointer;
	 transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
	 box-shadow: none;
	 outline: none;
	 text-align: center;
	 text-decoration: none;
	 user-select: none;
}
.ccwps-manage-consent-btn:hover,
.ccwps-manage-consent-btn:focus {
	 background: var(--ccwps-manage-btn-bg-hv, #1557b0);
	 color: var(--ccwps-manage-btn-txt-hv, #fff);
	 border-color: var(--ccwps-manage-btn-border-hv, #1557b0);
}

/* ============================================
	BANNER
	============================================ */
.ccwps-banner {
	position: fixed;
	z-index: 99990;
	background: var(--ccwps-bg);
	color: var(--ccwps-text);
	box-shadow: var(--ccwps-shadow);
	border-radius: var(--ccwps-r);
	padding: 30px 30px 24px;
	max-width: 620px;
	width: calc(100vw - 48px);
}

/* Positions */
.ccwps-banner.pos-bottom-left   { bottom: 24px; left: 24px; }
.ccwps-banner.pos-bottom-right  { bottom: 24px; right: 24px; }
.ccwps-banner.pos-bottom-center { bottom: 24px; left: 50%; transform: translateX(-50%); }
.ccwps-banner.pos-top-left      { top: 80px; left: 24px; }
.ccwps-banner.pos-top-right     { top: 80px; right: 24px; }
.ccwps-banner.pos-top-center    { top: 80px; left: 50%; transform: translateX(-50%); }
.ccwps-banner.pos-middle-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Bar layout */
.ccwps-banner.layout-bar {
	max-width: 100%;
	width: 100%;
	border-radius: 0;
	left: 0; right: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 16px;
	padding: 18px 28px;
}
.ccwps-banner.layout-bar.pos-bottom-left,
.ccwps-banner.layout-bar.pos-bottom-right,
.ccwps-banner.layout-bar.pos-bottom-center { bottom: 0; left: 0; right: 0; transform: none; }
.ccwps-banner.layout-bar.pos-top-left,
.ccwps-banner.layout-bar.pos-top-right,
.ccwps-banner.layout-bar.pos-top-center    { top: 0; left: 0; right: 0; transform: none; }
.ccwps-banner.layout-bar .ccwps-banner-text    { flex: 1 1 52%; max-width: 52%; min-width: 260px; display: flex; flex-direction: column; }
.ccwps-banner.layout-bar .ccwps-banner-actions { flex: 1 1 420px; max-width: 46%; min-width: 360px; flex-shrink: 0; }
.ccwps-banner.layout-bar .ccwps-banner-actions { align-self: center; }
.ccwps-banner.layout-bar .ccwps-banner-actions { margin-left: 30px; }
.ccwps-banner.layout-bar .ccwps-banner-headline {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 0;
}
.ccwps-banner.layout-bar .ccwps-banner-title-wrap {
	min-width: 0;
}
.ccwps-banner.layout-bar .ccwps-banner-title {
	margin-bottom: 0;
}
.ccwps-banner.layout-bar .ccwps-banner-desc {
	color: var(--ccwps-desc-text);
	margin-top: 10px;
	margin-bottom: 0;
}
.ccwps-banner.layout-bar .ccwps-banner-powered {
	margin-top: 20px;
	text-align: left;
}
.ccwps-banner.layout-bar .ccwps-banner-logo {
	position: static;
	flex: 0 0 auto;
	line-height: 0;
}
.ccwps-banner.layout-bar .ccwps-banner-logo img {
	max-height: 64px;
}
.ccwps-banner.layout-bar .ccwps-banner-actions .ccwps-btn {
	padding-inline: 16px;
}

/* Cloud */
.ccwps-banner.layout-cloud {
	border-radius: 26px;
	padding: 36px 36px 28px;
	max-width: 680px;
	background:
		linear-gradient(160deg, color-mix(in srgb, rgba(126, 190, 255, .20) var(--ccwps-cloud-bg-opacity), transparent) 0%, color-mix(in srgb, rgba(188, 146, 255, .14) var(--ccwps-cloud-bg-opacity), transparent) 46%, color-mix(in srgb, rgba(255, 255, 255, .06) var(--ccwps-cloud-bg-opacity), transparent) 100%),
		linear-gradient(180deg, color-mix(in srgb, rgba(255,255,255,.14) var(--ccwps-cloud-bg-opacity), transparent) 0%, color-mix(in srgb, rgba(255,255,255,.04) var(--ccwps-cloud-bg-opacity), transparent) 100%),
		color-mix(in srgb, var(--ccwps-bg) var(--ccwps-cloud-bg-opacity), transparent);
	border: 1px solid rgba(255, 255, 255, .52);
	box-shadow:
		0 36px 90px rgba(15, 23, 42, .36),
		0 16px 40px rgba(70, 112, 214, .26),
		inset 0 1px 0 rgba(255, 255, 255, .44),
		inset 0 -1px 0 rgba(255, 255, 255, .10);
	backdrop-filter: blur(42px) saturate(155%) contrast(108%);
	-webkit-backdrop-filter: blur(42px) saturate(155%) contrast(108%);
	overflow: hidden;
}
.ccwps-banner.layout-cloud::before {
	content: "";
	position: absolute;
	top: -140px;
	right: -100px;
	width: 330px;
	height: 330px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255,255,255,.56) 0%, rgba(255,255,255,.18) 36%, rgba(255,255,255,0) 74%);
	pointer-events: none;
	z-index: 0;
}
.ccwps-banner.layout-cloud::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(255,255,255,.40) 0%, rgba(255,255,255,.14) 32%, rgba(255,255,255,0) 62%),
		linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.07) 18%, rgba(255,255,255,0) 32%);
	pointer-events: none;
	z-index: 0;
}
.ccwps-banner.layout-cloud > * {
	position: relative;
	z-index: 1;
}
.ccwps-banner.layout-cloud .ccwps-banner-title {
	color: var(--ccwps-title-text);
	font-size: 20px;
	margin-bottom: 12px;
	text-shadow: 0 1px 0 rgba(255,255,255,.45);
}
.ccwps-banner.layout-cloud .ccwps-banner-desc {
	color: var(--ccwps-desc-text);
	font-size: 14px;
	line-height: 1.75;
	max-width: 92%;
	margin-bottom: 24px;
}
.ccwps-banner.layout-cloud .ccwps-banner-actions {
	gap: 12px;
}
.ccwps-banner.layout-cloud .ccwps-banner-actions .ccwps-btn {
	background: rgba(255,255,255,.14);
	backdrop-filter: blur(14px) saturate(130%);
	-webkit-backdrop-filter: blur(14px) saturate(130%);
}
.ccwps-banner.layout-cloud .ccwps-banner-powered {
	margin-top: 18px;
}
.ccwps-banner.layout-cloud .ccwps-banner-powered a {
	color: #8a8b8c;
}
.ccwps-banner.layout-box .ccwps-banner-logo,
.ccwps-banner.layout-cloud .ccwps-banner-logo {
	position: absolute !important;
	left: auto !important;
	right: 30px !important;
	top: 20px !important;
	transform: none !important;
	line-height: 0;
}
.ccwps-banner.layout-box .ccwps-banner-logo img,
.ccwps-banner.layout-cloud .ccwps-banner-logo img {
	max-height: 60px;
}
.ccwps-banner-logo,
.ccwps-banner-logo a {
	pointer-events: auto;
}

/* Banner content */
.ccwps-banner-title {
	color: var(--ccwps-title-text);
}

.ccwps-banner-desc {
	color: var(--ccwps-desc-text);
}

.ccwps-banner-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--ccwps-title-text);
	margin-bottom: 10px;
	line-height: 1.25;
}

.ccwps-banner-desc {
	font-size: 13.5px;
	line-height: 1.65;
	color: var(--ccwps-desc-text);
	margin-bottom: 0;
}

.ccwps-banner-text {
	padding: var(--ccwps-banner-text-pt, 0px) var(--ccwps-banner-text-pr, 0px) var(--ccwps-banner-text-pb, 0px) var(--ccwps-banner-text-pl, 0px);
	margin: var(--ccwps-banner-text-mt, 0px) var(--ccwps-banner-text-mr, 0px) var(--ccwps-banner-text-mb, 5px) var(--ccwps-banner-text-ml, 0px);
}

.ccwps-legal-links {
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--ccwps-muted);
	padding: var(--ccwps-banner-links-pt, 0px) var(--ccwps-banner-links-pr, 0px) var(--ccwps-banner-links-pb, 0px) var(--ccwps-banner-links-pl, 0px);
	margin-top: var(--ccwps-banner-links-mt, 0px);
	margin-right: var(--ccwps-banner-links-mr, 0px);
	margin-bottom: var(--ccwps-banner-links-mb, 30px);
	margin-left: var(--ccwps-banner-links-ml, 0px);
	word-break: break-word;
}

.ccwps-legal-links a {
	color: var(--ccwps-primary);
	text-decoration: none;
	font-weight: 500;
}

.ccwps-legal-links a:hover {
	text-decoration: underline;
}

.ccwps-legal-links-sep {
	opacity: .45;
	margin: 0 4px;
}

.ccwps-banner.layout-bar .ccwps-legal-links {
	margin-top: calc(var(--ccwps-banner-links-mt, 0px) + 10px);
	margin-bottom: 0;
}

.ccwps-banner-actions {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--ccwps-banner-btn-gap, 10px);
	align-items: stretch;
}

.ccwps-banner-actions .ccwps-btn {
	flex: 1 1 0;
	min-width: 0;
	white-space: normal;
	line-height: 1.25;
}

#ccwps-banner-wrap #ccwps-btn-accept {
	padding: var(--ccwps-banner-accept-btn-pt, 11px) var(--ccwps-banner-accept-btn-pr, 20px) var(--ccwps-banner-accept-btn-pb, 11px) var(--ccwps-banner-accept-btn-pl, 20px) !important;
	margin: var(--ccwps-banner-accept-btn-mt, 0px) var(--ccwps-banner-accept-btn-mr, 0px) var(--ccwps-banner-accept-btn-mb, 0px) var(--ccwps-banner-accept-btn-ml, 0px) !important;
}

#ccwps-banner-wrap #ccwps-btn-reject {
	padding: var(--ccwps-banner-reject-btn-pt, 11px) var(--ccwps-banner-reject-btn-pr, 20px) var(--ccwps-banner-reject-btn-pb, 11px) var(--ccwps-banner-reject-btn-pl, 20px) !important;
	margin: var(--ccwps-banner-reject-btn-mt, 0px) var(--ccwps-banner-reject-btn-mr, 0px) var(--ccwps-banner-reject-btn-mb, 0px) var(--ccwps-banner-reject-btn-ml, 0px) !important;
}

#ccwps-banner-wrap #ccwps-btn-pref {
	padding: var(--ccwps-banner-manage-btn-pt, 11px) var(--ccwps-banner-manage-btn-pr, 20px) var(--ccwps-banner-manage-btn-pb, 11px) var(--ccwps-banner-manage-btn-pl, 20px) !important;
	margin: var(--ccwps-banner-manage-btn-mt, 0px) var(--ccwps-banner-manage-btn-mr, 0px) var(--ccwps-banner-manage-btn-mb, 0px) var(--ccwps-banner-manage-btn-ml, 0px) !important;
}

.ccwps-banner-powered {
	margin-top: 16px;
	font-size: 11px;
	text-align: center;
}
.ccwps-banner-powered a {
	color: #cacdd4;
	text-decoration: none;
	font-size: 11px;
}
.ccwps-banner-powered a:hover {
	color: var(--ccwps-primary);
	text-decoration: underline;
}

/* Banner logo */
.ccwps-banner-logo {
	position: absolute;
	top: 25px;
	right: 30px;
	line-height: 0;
}
.ccwps-banner-logo a {
	display: block;
	line-height: 0;
}
.ccwps-banner-logo img {
	display: block;
	height: auto;
	max-height: 60px;
	object-fit: contain;
	cursor: pointer;
}

/* Animations */
@keyframes ccwps-up {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes ccwps-up-cx {
	from { opacity: 0; transform: translateX(-50%) translateY(12px); }
	to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes ccwps-fade {
	from { opacity: 0; }
	to   { opacity: 1; }
}
@keyframes ccwps-scale {
	from { opacity: 0; transform: translate(-50%,-50%) scale(.96); }
	to   { opacity: 1; transform: translate(-50%,-50%) scale(1); }
}

.ccwps-banner { animation: ccwps-up .3s cubic-bezier(.22,1,.36,1) both; }
.ccwps-banner.pos-bottom-center,
.ccwps-banner.pos-top-center { animation: ccwps-up-cx .3s cubic-bezier(.22,1,.36,1) both; }
.ccwps-banner.pos-middle-center { animation: ccwps-scale .3s cubic-bezier(.22,1,.36,1) both; }
.ccwps-banner.layout-bar { animation: ccwps-fade .2s ease both; }

/* ============================================
   BUTTONS
   ============================================ */
.ccwps-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 20px;
	border-radius: var(--ccwps-r-sm);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid transparent;
	text-decoration: none;
	white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
	font-family: var(--ccwps-font);
	line-height: 1;
	-webkit-appearance: none;
	appearance: none;
}

#ccwps-banner-wrap .ccwps-btn,
#ccwps-modal-wrap .ccwps-btn,
#ccwps-tip-wrap .ccwps-btn {
	border-radius: var(--ccwps-r-sm) !important;
	font-family: var(--ccwps-font) !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	line-height: 1 !important;
	text-transform: none !important;
	box-shadow: none !important;
	box-sizing: border-box;
}

#ccwps-banner-wrap .ccwps-btn-sm,
#ccwps-modal-wrap .ccwps-btn-sm,
#ccwps-tip-wrap .ccwps-btn-sm {
	padding: 8px 14px !important;
	font-size: 12.5px !important;
}

#ccwps-banner-wrap a,
#ccwps-modal-wrap a,
#ccwps-tip-wrap a {
	font-family: var(--ccwps-font) !important;
	text-decoration-thickness: 1px;
}

#ccwps-banner-wrap .ccwps-legal-links a,
#ccwps-modal-wrap .ccwps-legal-links a,
#ccwps-tip-wrap .ccwps-legal-links a {
	color: var(--ccwps-primary) !important;
	font-weight: 500 !important;
}

#ccwps-modal-wrap .ccwps-modal-foot #ccwps-modal-save {
	padding: var(--ccwps-modal-save-btn-pt, 11px) var(--ccwps-modal-save-btn-pr, 20px) var(--ccwps-modal-save-btn-pb, 11px) var(--ccwps-modal-save-btn-pl, 20px) !important;
	margin: var(--ccwps-modal-save-btn-mt, 0px) var(--ccwps-modal-save-btn-mr, 0px) var(--ccwps-modal-save-btn-mb, 0px) var(--ccwps-modal-save-btn-ml, 0px) !important;
}

#ccwps-modal-wrap .ccwps-modal-foot #ccwps-modal-reject {
	padding: var(--ccwps-modal-reject-btn-pt, 11px) var(--ccwps-modal-reject-btn-pr, 20px) var(--ccwps-modal-reject-btn-pb, 11px) var(--ccwps-modal-reject-btn-pl, 20px) !important;
	margin: var(--ccwps-modal-reject-btn-mt, 0px) var(--ccwps-modal-reject-btn-mr, 0px) var(--ccwps-modal-reject-btn-mb, 0px) var(--ccwps-modal-reject-btn-ml, 0px) !important;
}

#ccwps-modal-wrap .ccwps-modal-foot #ccwps-modal-accept {
	padding: var(--ccwps-modal-accept-btn-pt, 11px) var(--ccwps-modal-accept-btn-pr, 20px) var(--ccwps-modal-accept-btn-pb, 11px) var(--ccwps-modal-accept-btn-pl, 20px) !important;
	margin: var(--ccwps-modal-accept-btn-mt, 0px) var(--ccwps-modal-accept-btn-mr, 0px) var(--ccwps-modal-accept-btn-mb, 0px) var(--ccwps-modal-accept-btn-ml, 0px) !important;
}

.ccwps-btn-primary {
	background: var(--ccwps-btn-primary-bg, var(--ccwps-primary)) !important;
	color: var(--ccwps-btn-primary-txt, #fff) !important;
	border-color: var(--ccwps-btn-primary-bg, var(--ccwps-primary)) !important;
}
.ccwps-btn-primary:hover {
	background: var(--ccwps-btn-primary-bg-hv, var(--ccwps-btn-primary-bg, var(--ccwps-primary))) !important;
	border-color: var(--ccwps-btn-primary-bg-hv, var(--ccwps-btn-primary-bg, var(--ccwps-primary))) !important;
	color: var(--ccwps-btn-primary-txt-hv, var(--ccwps-btn-primary-txt, #fff)) !important;
}

.ccwps-btn-outline {
	background: var(--ccwps-btn-outline-bg, transparent) !important;
	color: var(--ccwps-btn-outline-txt, var(--ccwps-primary)) !important;
	border-color: var(--ccwps-btn-outline-border, var(--ccwps-primary)) !important;
}
.ccwps-btn-outline:hover {
	background: var(--ccwps-btn-outline-bg-hv, var(--ccwps-primary)) !important;
	color: var(--ccwps-btn-primary-txt, #fff) !important;
	border-color: var(--ccwps-btn-outline-border, var(--ccwps-primary)) !important;
}

.ccwps-btn-ghost {
	background: var(--ccwps-btn-ghost-bg, var(--ccwps-surface2)) !important;
	color: var(--ccwps-btn-ghost-txt, var(--ccwps-text)) !important;
	border-color: var(--ccwps-btn-ghost-bg, var(--ccwps-surface2)) !important;
}
.ccwps-btn-ghost:hover {
	background: var(--ccwps-btn-ghost-bg-hv, var(--ccwps-border)) !important;
	color: var(--ccwps-btn-ghost-txt-hv, var(--ccwps-btn-ghost-txt, var(--ccwps-text))) !important;
	border-color: var(--ccwps-btn-ghost-bg-hv, var(--ccwps-border)) !important;
}

.ccwps-btn-sm {
	padding: 8px 14px;
	font-size: 12.5px;
}

/* ============================================
   FLOATING ICON
   ============================================ */
#ccwps-floating-icon {
	position: fixed;
	z-index: 99989;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: var(--ccwps-float-icon-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0,0,0,.26);
	transition: transform .18s, box-shadow .18s;
	outline: none;
	border: none;
}
#ccwps-floating-icon:hover {
	background: var(--ccwps-float-icon-bg-hv);
	transform: scale(1.1);
	box-shadow: 0 6px 22px rgba(0,0,0,.32);
}
#ccwps-floating-icon svg {
	width: 26px;
	height: 26px;
	color: var(--ccwps-float-icon-color);
	display: block;
}

#ccwps-floating-icon.icon-pos-bottom-right { bottom: calc(20px + var(--ccwps-float-icon-my, 0px)); right: 20px; }
#ccwps-floating-icon.icon-pos-bottom-left  { bottom: calc(20px + var(--ccwps-float-icon-my, 0px)); left:  20px; }
#ccwps-floating-icon.icon-pos-top-right    { top: calc(80px + var(--ccwps-float-icon-my, 0px)); right: 20px; }
#ccwps-floating-icon.icon-pos-top-left     { top: calc(80px + var(--ccwps-float-icon-my, 0px)); left:  20px; }

/* ============================================
   TIP POPUP (appears above floating icon)
   Uses position:fixed, placed via JS
   ============================================ */
.ccwps-tip-popup {
	position: fixed;
	z-index: 99991;
	background: var(--ccwps-float-tip-bg);
	color: var(--ccwps-float-tip-text);
	border: 1px solid var(--ccwps-border);
	border-radius: var(--ccwps-r);
	box-shadow: var(--ccwps-shadow);
	padding: 20px 22px 18px;
	width: 400px;
	animation: ccwps-up .22s cubic-bezier(.22,1,.36,1) both;
}

/* Little arrow pointing down toward icon */
.ccwps-tip-popup::after {
	content: '';
	position: absolute;
	bottom: -7px;
	right: 22px;
	width: 13px;
	height: 13px;
	background: var(--ccwps-float-tip-bg);
	border-right: 1px solid var(--ccwps-border);
	border-bottom: 1px solid var(--ccwps-border);
	transform: rotate(45deg);
}
.ccwps-tip-popup.tip-arrow-left::after {
	right: auto;
	left: 22px;
}

.ccwps-tip-label {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: color-mix(in srgb, var(--ccwps-float-tip-text) 68%, transparent);
	margin-bottom: 8px;
}

.ccwps-tip-id {
	display: block;
	font-size: 12px;
	font-family: 'SFMono-Regular', Consolas, 'Courier New', monospace;
	background: var(--ccwps-surface2);
	border: 1px solid var(--ccwps-border);
	border-radius: 6px;
	padding: 7px 10px;
	word-break: break-all;
	color: var(--ccwps-float-tip-text);
	margin-bottom: 9px;
	line-height: 1.4;
}

.ccwps-tip-date {
	font-size: 12px;
	color: color-mix(in srgb, var(--ccwps-float-tip-text) 72%, transparent);
	margin-bottom: 16px;
}
.ccwps-tip-date strong {
	color: var(--ccwps-float-tip-text);
	font-weight: 600;
}

.ccwps-tip-btns {
	display: flex;
	gap: 8px;
}
.ccwps-tip-btns .ccwps-btn {
	flex: 1;
	white-space: normal;
	text-align: center;
}

.ccwps-tip-powered {
	margin-top: 12px;
	font-size: 11px;
	text-align: center;
}
.ccwps-tip-powered a {
	color: color-mix(in srgb, var(--ccwps-float-tip-text) 40%, transparent);
	text-decoration: none;
	font-size: 11px;
}
.ccwps-tip-powered a:hover {
	color: var(--ccwps-primary);
	text-decoration: underline;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.ccwps-modal-overlay {
	position: fixed;
	inset: 0;
	background: var(--ccwps-overlay);
	z-index: 99991;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: ccwps-fade .18s ease both;
}

/* ============================================
   MODAL BOX (preferences popup)
   ============================================ */
.ccwps-modal-box {
	background: var(--ccwps-modal-bg, var(--ccwps-bg));
	color: var(--ccwps-modal-txt, var(--ccwps-text));
	border-radius: var(--ccwps-modal-r, var(--ccwps-r));
	width: 580px;
	max-width: 100%;
	max-height: calc(100vh - 48px);
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 80px rgba(0,0,0,.24);
	overflow: hidden;
	animation: ccwps-up .28s cubic-bezier(.22,1,.36,1) both;
}

/* Modal header */
.ccwps-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 28px;
	border-bottom: 1px solid var(--ccwps-modal-border, var(--ccwps-border));
	flex-shrink: 0;
	background: var(--ccwps-modal-header-bg, var(--ccwps-modal-bg, var(--ccwps-bg)));
}
.ccwps-modal-head h2 {
	font-size: 18px;
	font-weight: 700;
	color: var(--ccwps-modal-txt, var(--ccwps-text));
}
.ccwps-modal-close-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--ccwps-surface2);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 18px;
	color: var(--ccwps-muted);
	transition: background .15s, color .15s;
	flex-shrink: 0;
	line-height: 1;
}
.ccwps-modal-close-btn:hover {
	background: var(--ccwps-border);
	color: var(--ccwps-text);
}

/* Modal body */
.ccwps-modal-body {
	padding: var(--ccwps-modal-body-pt, 24px) var(--ccwps-modal-body-pr, 28px) var(--ccwps-modal-body-pb, 24px) var(--ccwps-modal-body-pl, 28px);
	margin: var(--ccwps-modal-body-mt, 0px) var(--ccwps-modal-body-mr, 0px) var(--ccwps-modal-body-mb, 0px) var(--ccwps-modal-body-ml, 0px);
	overflow-y: auto;
	flex: 1;
	color: var(--ccwps-modal-txt, var(--ccwps-text));
	background: var(--ccwps-modal-bg, var(--ccwps-bg));
}

.ccwps-legal-links-modal {
	text-align: center;
	margin-top: 14px;
	margin-bottom: 2px;
}

/* Consent ID strip inside modal */
.ccwps-consent-id-strip {
	background: var(--ccwps-cat-bg, var(--ccwps-surface));
	border: 1px solid var(--ccwps-modal-border, var(--ccwps-border));
	border-radius: var(--ccwps-r-sm);
	padding: 12px 16px;
	margin-bottom: 20px;
}
.ccwps-consent-id-label {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: var(--ccwps-muted);
	margin-bottom: 5px;
}
.ccwps-consent-id-val {
	font-size: 12px;
	font-family: 'SFMono-Regular', Consolas, monospace;
	color: var(--ccwps-modal-consent-id, var(--ccwps-modal-txt, var(--ccwps-text)));
	word-break: break-all;
}

/* Modal footer */
.ccwps-modal-foot {
	display: flex;
	flex-wrap: wrap;
	gap: var(--ccwps-modal-btn-gap, 10px);
	padding: 18px var(--ccwps-modal-body-pr, 28px);
	border-top: 1px solid var(--ccwps-modal-border, var(--ccwps-border));
	flex-shrink: 0;
	background: var(--ccwps-modal-footer-bg, var(--ccwps-surface));
}

/* ============================================
   CATEGORY ROWS (inside modal)
   ============================================ */
.ccwps-category {
	border: 1px solid var(--ccwps-modal-border, var(--ccwps-border));
	border-radius: var(--ccwps-r-sm);
	margin-bottom: 10px;
	overflow: hidden;
}
.ccwps-category:last-child { margin-bottom: 0; }

.ccwps-cat-header {
	display: block;
	padding: 16px 18px;
	background: var(--ccwps-cat-bg, var(--ccwps-surface));
	cursor: pointer;
	user-select: none;
}
.ccwps-cat-header:hover { background: var(--ccwps-cat-bg-hv, var(--ccwps-surface2)); }

.ccwps-cat-top {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}
.ccwps-cat-name {
	font-size: 14.5px;
	font-weight: 700;
	color: var(--ccwps-modal-txt, var(--ccwps-text));
	margin-bottom: 0;
	flex: 1;
	min-width: 0;
}
.ccwps-cat-desc {
	display: block;
	width: 100%;
	max-width: 100%;
	font-size: 13px;
	line-height: 1.55;
	color: var(--ccwps-muted);
	margin: var(--ccwps-modal-desc-mt, 0px) var(--ccwps-modal-desc-mr, 0px) var(--ccwps-modal-desc-mb, 6px) var(--ccwps-modal-desc-ml, 0px);
}

.ccwps-cat-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	padding-top: 2px;
}

/* Toggle switch */
.ccwps-sw {
	position: relative;
	display: inline-flex;
	width: 42px;
	height: 24px;
	flex-shrink: 0;
}
.ccwps-sw input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.ccwps-sw-track {
	position: absolute;
	inset: 0;
	background: #d1d5db;
	border-radius: 24px;
	cursor: pointer;
	transition: background .18s;
}
.ccwps-sw-track::before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 3px;
	top: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform .18s;
	box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.ccwps-sw input:checked + .ccwps-sw-track { background: var(--ccwps-toggle-on, var(--ccwps-primary)); }
.ccwps-sw input:checked + .ccwps-sw-track::before { transform: translateX(18px); }
.ccwps-sw input:disabled + .ccwps-sw-track { opacity: .5; cursor: default; }

.ccwps-always-on {
	font-size: 12px;
	font-weight: 700;
	color: var(--ccwps-always-on, var(--ccwps-primary));
	white-space: nowrap;
}

.ccwps-chevron {
	display: inline-flex;
	align-items: center;
	width: 16px;
	height: 16px;
	opacity: .4;
	flex-shrink: 0;
	transition: transform .18s, opacity .18s;
}
.ccwps-chevron.open { transform: rotate(180deg); opacity: .7; }

/* Cookie table inside category */
.ccwps-ck-list {
	display: none;
	border-top: 1px solid var(--ccwps-modal-border, var(--ccwps-border));
	overflow-x: auto;
}
.ccwps-ck-list.open { display: block; }

.ccwps-ck-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12.5px;
	min-width: 380px;
}
.ccwps-ck-table th {
	padding: 9px 16px;
	text-align: left;
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .4px;
	color: var(--ccwps-muted);
	background: var(--ccwps-cat-bg-hv, var(--ccwps-surface2));
	border-bottom: 1px solid var(--ccwps-modal-border, var(--ccwps-border));
	white-space: nowrap;
}
.ccwps-ck-table td {
	padding: 10px 16px;
	border-bottom: 1px solid var(--ccwps-modal-border, var(--ccwps-border));
	color: var(--ccwps-modal-txt, var(--ccwps-text));
	vertical-align: top;
	line-height: 1.5;
}
.ccwps-ck-table td:first-child {
	font-family: 'SFMono-Regular', Consolas, monospace;
	font-size: 12px;
}
.ccwps-ck-table tr:last-child td { border-bottom: none; }

/* ============================================
   CONSENT ID (shortcode)
   ============================================ */
.ccwps-consent-id-wrap .ccwps-sc-id-code {
	background: #818181;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 13px;
	color: #ffffff;
}

/* ============================================
   COOKIE LIST (shortcode)
   ============================================ */
.ccwps-cookie-list-table {
	font-size: 14px;
	line-height: 1.5;
}

.ccwps-cl-cat-title {
	font-size: 16px;
	font-weight: 700;
	margin: 20px 0 8px;
}

.ccwps-cl-table-wrap {
	overflow-x: auto;
}

.ccwps-cl-table {
	width: 100%;
	border-collapse: collapse;
}

.ccwps-cl-table th,
.ccwps-cl-table td {
	padding: 8px 12px;
	text-align: left;
	border-bottom: 1px solid #e5e7eb;
}

.ccwps-cl-table th {
	background: #f9fafb;
	color: #000000;
	font-weight: 600;
	font-size: 13px;
}

.ccwps-cl-table tr:last-child td {
	border-bottom: none;
}

.ccwps-cookie-list-table pre,
.ccwps-cookie-list-table code,
.ccwps-cookie-list-table samp,
.ccwps-cookie-list-table kbd {
	tab-size: 4;
	border-radius: 3px;
	background: #b9b9b9;
	color: #000000;
}

.ccwps-sc-regex {
	display: inline-block;
	background: #fef3c7;
	color: #92400e;
	font-size: 10px;
	padding: 1px 5px;
	border-radius: 3px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 520px) {
	#ccwps-floating-icon.icon-pos-bottom-right { bottom: calc(20px + var(--ccwps-float-icon-my-mobile, var(--ccwps-float-icon-my, 0px))); }
	#ccwps-floating-icon.icon-pos-bottom-left  { bottom: calc(20px + var(--ccwps-float-icon-my-mobile, var(--ccwps-float-icon-my, 0px))); }
	#ccwps-floating-icon.icon-pos-top-right    { top: calc(80px + var(--ccwps-float-icon-my-mobile, var(--ccwps-float-icon-my, 0px))); }
	#ccwps-floating-icon.icon-pos-top-left     { top: calc(80px + var(--ccwps-float-icon-my-mobile, var(--ccwps-float-icon-my, 0px))); }

	.ccwps-banner {
		width: calc(100vw - 16px);
		max-width: calc(100vw - 16px);
		padding: 22px 18px 18px;
	}
	.ccwps-banner.layout-cloud {
		padding: 26px 20px 20px;
		border-radius: 22px;
	}
	.ccwps-banner.layout-cloud .ccwps-banner-title {
		font-size: 18px;
	}
	.ccwps-banner.layout-cloud .ccwps-banner-desc {
		max-width: 100%;
		font-size: 13.5px;
	}
	.ccwps-banner.layout-bar .ccwps-banner-text,
	.ccwps-banner.layout-bar .ccwps-banner-actions {
		max-width: 100%;
		min-width: 0;
		flex: 1 1 100%;
	}
	.ccwps-banner.layout-bar .ccwps-banner-actions {
		margin-left: 0;
	}
	.ccwps-modal-box { max-height: 600px; }
	.ccwps-banner.pos-bottom-left,
	.ccwps-banner.pos-bottom-right { left: 8px; right: 8px; }
	.ccwps-banner.layout-bar .ccwps-banner-headline {
		align-items: flex-start;
		gap: 12px;
	}
	.ccwps-banner.layout-bar .ccwps-banner-logo img {
		max-height: 52px;
	}
	.ccwps-legal-links {
		display: flex;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 4px;
	}
	.ccwps-legal-links-sep {
		display: none;
	}
	.ccwps-banner-actions { flex-direction: column; }
	.ccwps-banner-actions .ccwps-btn { flex: none; }
	.ccwps-btn { width: 100%; justify-content: center; }
	.ccwps-modal-head  { padding: 18px 18px; }
	.ccwps-modal-body  { padding: 16px 18px; }
	.ccwps-modal-foot  { padding: 14px 18px; margin-bottom: 15px; }
	.ccwps-cat-top { gap: 10px; }
	.ccwps-cat-desc { margin-top: 8px; width: 100%; max-width: 100%; }
	.ccwps-legal-links { margin-top: 0; margin-bottom: 14px; }
	.ccwps-legal-links-modal { margin-top: 12px; }
	.ccwps-tip-popup { width: 350px !important; min-width: 300px !important; max-width: none !important; }
	.ccwps-manage-consent-btn { max-width: 100%; }
}
