/**
 * Cookie Management dashboard — "Our Products / The Platform" visual for Cookie Management.
 *
 * A fully self-contained, interactive cookie-banner configurator: four auto-cycling
 * setting panels (Layout / Button / Content / Style) drive a live website preview
 * with a cookie-consent popup. Every rule is scoped under `.dpdp-cmd` so it cannot
 * leak into — or be overridden by — the rest of the theme. Two class names that would
 * collide with theme homepage CSS are renamed (`.cm-hero`, `.cm-trusted`). Authored at
 * a fixed 1360px design width and scaled to fit its column by
 * assets/js/cookie-management-dashboard.js. No page-editor / ACF controls.
 */

.dpdp-cmd {
	/* Scoped design tokens — never touch the theme's :root vars. --accent is the
	   live-editable accent colour (set on this element by the JS swatch picker). */
	--blue: #2f6bff; --blue-2: #1d5bff; --blue-deep: #1d3faf;
	--ink: #111a2e; --ink-2: #334155; --muted: #8894ab; --muted-2: #64748b;
	--line: #e9ecf4; --line-2: #f1f3f9;
	--green: #22c55e; --purple: #6d4bff;
	--card: #fff; --accent: #2f6bff;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Inter", sans-serif;

	position: relative;
	width: 100%;
	margin: 0 auto;
	overflow: hidden;
	aspect-ratio: 1360 / 916; /* reserves space before JS sets the exact height */
	color: var(--ink);
	font-family: var(--font);
	text-align: left;
}
.dpdp-cmd * { box-sizing: border-box; margin: 0; padding: 0; }

/* Fixed-width design stage, scaled to the container by JS. */
.dpdp-cmd-stage {
	position: absolute;
	top: 0;
	left: 0;
	width: 1360px;
	transform-origin: top left;
	will-change: transform;
}

.dpdp-cmd .win { width: 100%; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: 0 34px 80px -34px rgba(20,30,70,.4), 0 0 0 1px rgba(20,30,70,.05); }

/* Browser chrome */
.dpdp-cmd .chrome { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #f2f3f5; border-bottom: 1px solid #e6e8eb; }
.dpdp-cmd .dots { display: flex; gap: 8px; } .dpdp-cmd .dots span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.dpdp-cmd .dots .r { background: #ff5f57; } .dpdp-cmd .dots .y { background: #febc2e; } .dpdp-cmd .dots .g { background: #28c840; }
.dpdp-cmd .nav-arrows { display: flex; gap: 16px; color: #b3b8bd; } .dpdp-cmd .nav-arrows svg { width: 16px; height: 16px; }
.dpdp-cmd .urlbar {
	flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border-radius: 8px;
	padding: 7px 14px; color: #3c4043; font-size: 13px; box-shadow: inset 0 0 0 1px #e6e8eb; max-width: 560px; margin: 0 auto;
}
.dpdp-cmd .urlbar svg { width: 13px; height: 13px; color: #9aa0a6; }
.dpdp-cmd .urlbar b { font-weight: 400; color: #202124; } .dpdp-cmd .urlbar .path { color: #5f6368; }
.dpdp-cmd .chrome-ico { display: flex; gap: 14px; color: #9aa0a6; } .dpdp-cmd .chrome-ico svg { width: 18px; height: 18px; }

/* Header */
.dpdp-cmd .head { display: flex; align-items: center; justify-content: space-between; padding: 20px 30px; border-bottom: 1px solid var(--line); }
.dpdp-cmd .brand { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; color: #111a2e; letter-spacing: -.01em; }
.dpdp-cmd .brand .site-logo { display: block; width: auto; height: auto; max-width: 184px; max-height: 44px; object-fit: contain; object-position: left center; border: 0; border-radius: 0; padding: 0; background: transparent; box-shadow: none; clip-path: none; mask-image: none; overflow: visible; }
.dpdp-cmd .brand .mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--blue), #4f46e5); color: #fff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dpdp-cmd .brand .mark svg { width: 24px; height: 24px; }
.dpdp-cmd .brand b { color: var(--blue); font-weight: 800; }
.dpdp-cmd .domain { display: flex; align-items: center; gap: 16px; }
.dpdp-cmd .domain > span { font-size: 18px; font-weight: 800; color: #1b2740; }
.dpdp-cmd .dsel { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #dbe1ee; border-radius: 12px; padding: 13px 18px; min-width: 330px; box-shadow: 0 2px 5px rgba(20,30,70,.04); cursor: pointer; transition: .16s; }
.dpdp-cmd .dsel:hover { border-color: #bcd0ff; }
.dpdp-cmd .dsel span { flex: 1; font-size: 16px; color: #2b3852; font-weight: 500; }
.dpdp-cmd .dsel svg { width: 18px; height: 18px; color: var(--muted); }

/* Body layout */
.dpdp-cmd .body { display: grid; grid-template-columns: 112px 340px 1fr; min-height: 760px; }

/* Sidebar tabs */
.dpdp-cmd .rail { border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; gap: 10px; }
.dpdp-cmd .tab { border-radius: 16px; padding: 18px 8px; display: flex; flex-direction: column; align-items: center; gap: 9px; cursor: pointer; color: #5a6884; transition: .18s; user-select: none; }
.dpdp-cmd .tab:hover { background: #f5f7fc; }
.dpdp-cmd .tab .ti { width: 30px; height: 30px; }
.dpdp-cmd .tab .ti svg { width: 100%; height: 100%; }
.dpdp-cmd .tab b { font-size: 14.5px; font-weight: 700; }
.dpdp-cmd .tab.active { background: #eaf1ff; color: var(--blue); }
.dpdp-cmd .tab.active .ti { color: var(--blue); }

/* Middle settings panel */
.dpdp-cmd .panelwrap { border-right: 1px solid var(--line); padding: 28px 26px; position: relative; overflow: hidden; }
.dpdp-cmd .panel { display: none; animation: dpdpcmd-fade .4s ease; }
.dpdp-cmd .panel.on { display: block; }
@keyframes dpdpcmd-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dpdp-cmd .panel h3 { font-size: 23px; font-weight: 800; letter-spacing: -.01em; color: #101a30; margin-bottom: 18px; }
.dpdp-cmd .panel h3.mt { margin-top: 30px; }

/* Choice cards */
.dpdp-cmd .cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dpdp-cmd .cc { position: relative; cursor: pointer; }
.dpdp-cmd .cc .frame { border: 2px solid #e3e8f2; border-radius: 13px; height: 104px; background: #fff; padding: 12px; transition: .18s; overflow: hidden; display: flex; }
.dpdp-cmd .cc:hover .frame { border-color: #bcd0ff; }
.dpdp-cmd .cc.sel .frame { border-color: var(--blue); box-shadow: 0 8px 22px -12px rgba(47,107,255,.55); }
.dpdp-cmd .cc .cap { text-align: center; font-size: 15.5px; font-weight: 700; color: #2b3852; margin-top: 11px; }
.dpdp-cmd .cc.sel .cap { color: var(--blue); }
.dpdp-cmd .chk { position: absolute; top: -9px; right: -9px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); display: none; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(34,197,94,.5); z-index: 2; }
.dpdp-cmd .cc.sel .chk { display: flex; }
.dpdp-cmd .chk svg { width: 15px; height: 15px; color: #fff; }
.dpdp-cmd .mini { width: 100%; height: 100%; border-radius: 7px; background: #f4f6fb; position: relative; }
.dpdp-cmd .mini.box::after { content: ""; position: absolute; left: 18%; bottom: 20%; width: 34%; height: 24%; border-radius: 5px; background: var(--blue); }
.dpdp-cmd .mini.banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: var(--blue); border-radius: 0 0 7px 7px; }
.dpdp-cmd .mini.left { background: #f4f6fb; border-left: 9px solid var(--blue); }
.dpdp-cmd .mini.right { background: #f4f6fb; border-right: 9px solid var(--blue); }
.dpdp-cmd .mini.left::after, .dpdp-cmd .mini.right::after { content: ""; position: absolute; inset: 14px; border: 2px solid #d7e0f2; border-radius: 5px; }
.dpdp-cmd .mini.theme-l { background: #fff; border: 1px solid #e3e8f2; }
.dpdp-cmd .mini.theme-d { background: #141c30; }

/* Radios */
.dpdp-cmd .radios { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; margin-top: 22px; }
.dpdp-cmd .radio { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 16px; color: #3a475f; font-weight: 500; }
.dpdp-cmd .radio .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd4e6; flex-shrink: 0; transition: .15s; position: relative; }
.dpdp-cmd .radio.sel { color: #1b2740; font-weight: 600; }
.dpdp-cmd .radio.sel .dot { border-color: var(--blue); }
.dpdp-cmd .radio.sel .dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--blue); }

.dpdp-cmd .hr { height: 1px; background: var(--line); margin: 26px 0; }

/* Text fields */
.dpdp-cmd .field { margin-bottom: 16px; }
.dpdp-cmd .field label { display: block; font-size: 14px; font-weight: 700; color: #4a5871; margin-bottom: 8px; }
.dpdp-cmd .field input, .dpdp-cmd .field textarea { width: 100%; border: 1px solid #dbe1ee; border-radius: 11px; padding: 13px 15px; font-family: var(--font); font-size: 15px; color: #1b2740; resize: none; transition: .15s; }
.dpdp-cmd .field input:focus, .dpdp-cmd .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }

/* Toggles */
.dpdp-cmd .togs { display: flex; flex-direction: column; gap: 2px; }
.dpdp-cmd .tog { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px solid var(--line-2); }
.dpdp-cmd .tog:last-child { border-bottom: none; }
.dpdp-cmd .tog .tl { font-size: 15.5px; font-weight: 600; color: #2b3852; }
.dpdp-cmd .tog .tl small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.dpdp-cmd .sw { width: 46px; height: 26px; border-radius: 20px; background: #d3dae8; position: relative; cursor: pointer; transition: .2s; flex-shrink: 0; }
.dpdp-cmd .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.dpdp-cmd .sw.on { background: var(--blue); }
.dpdp-cmd .sw.on::after { left: 23px; }
.dpdp-cmd .sw.lock { background: #22c55e; cursor: not-allowed; opacity: .9; }
.dpdp-cmd .sw.lock::after { left: 23px; }

/* Swatches */
.dpdp-cmd .swatches { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.dpdp-cmd .swt { width: 38px; height: 38px; border-radius: 11px; cursor: pointer; position: relative; transition: .15s; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.dpdp-cmd .swt:hover { transform: scale(1.08); }
.dpdp-cmd .swt.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 5px currentColor; }

/* Slider */
.dpdp-cmd .slider { margin-top: 18px; }
.dpdp-cmd .slider .sh { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.dpdp-cmd .slider .sh b { font-size: 14px; font-weight: 700; color: #4a5871; }
.dpdp-cmd .slider .sh span { font-size: 15px; font-weight: 800; color: var(--blue); }
.dpdp-cmd input[type=range] { width: 100%; -webkit-appearance: none; appearance: none; height: 7px; border-radius: 6px; background: #e4e9f3; outline: none; }
.dpdp-cmd input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); cursor: pointer; box-shadow: 0 2px 6px rgba(47,107,255,.5); border: 3px solid #fff; }

/* Per-tab stats */
.dpdp-cmd .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.dpdp-cmd .stat { background: #f6f8fd; border: 1px solid #eaeef7; border-radius: 13px; padding: 15px 16px; }
.dpdp-cmd .stat .sn { font-size: 26px; font-weight: 800; color: #0d1730; letter-spacing: -.02em; line-height: 1; }
.dpdp-cmd .stat .sl { font-size: 13px; color: var(--muted-2); font-weight: 600; margin-top: 5px; }

.dpdp-cmd .save { width: 100%; margin-top: 26px; background: var(--blue); color: #fff; border: none; border-radius: 13px; padding: 16px; font-size: 16.5px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: .16s; box-shadow: 0 10px 22px -10px rgba(47,107,255,.7); }
.dpdp-cmd .save:hover { background: var(--blue-2); }
.dpdp-cmd .save:active { transform: translateY(1px); }
.dpdp-cmd .save.saved { background: var(--green) !important; box-shadow: 0 10px 22px -10px rgba(34,197,94,.6) !important; }

/* ---------- Preview ---------- */
.dpdp-cmd .preview { padding: 26px; background: #fff; }
.dpdp-cmd .site { border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #0f1630, #161d3d 55%, #1b1440); position: relative; min-height: 660px; box-shadow: 0 20px 50px -24px rgba(15,20,45,.5); }
.dpdp-cmd .nav { display: flex; align-items: center; gap: 26px; padding: 24px 30px; }
.dpdp-cmd .tv { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: #fff; }
.dpdp-cmd .tv .tvm { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, #7c5cff, #5a3cf0); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 16px; }
.dpdp-cmd .nav .menu { display: flex; gap: 26px; margin-left: 22px; }
.dpdp-cmd .nav .menu a { color: #c7cde6; font-size: 15px; text-decoration: none; font-weight: 500; }
.dpdp-cmd .nav .menu a:hover { color: #fff; }
.dpdp-cmd .nav .gs { margin-left: auto; background: #6d4bff; color: #fff; border-radius: 11px; padding: 11px 20px; font-size: 15px; font-weight: 700; cursor: pointer; }
.dpdp-cmd .cm-hero { padding: 30px 30px 0; display: flex; gap: 20px; }
.dpdp-cmd .cm-hero .hero-l { flex: 1; max-width: 440px; }
.dpdp-cmd .cm-hero .hero-l h1 { font-size: 46px; line-height: 1.08; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.dpdp-cmd .cm-hero .hero-l p { color: #aab2d5; font-size: 17px; margin-top: 18px; line-height: 1.5; }
.dpdp-cmd .cm-hero .hero-l .lm { margin-top: 24px; background: #6d4bff; color: #fff; border: none; border-radius: 11px; padding: 14px 26px; font-size: 15.5px; font-weight: 700; cursor: pointer; }
.dpdp-cmd .cm-hero .hero-r { flex: 1; position: relative; min-height: 280px; }
.dpdp-cmd .mock { position: absolute; right: 0; top: 6px; width: 100%; background: #0c1226; border: 1px solid #26305a; border-radius: 14px; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dpdp-cmd .mock .mcard { background: #131b38; border-radius: 10px; height: 120px; padding: 12px; }
.dpdp-cmd .mock .mcard.wide { grid-column: 1/3; height: auto; }
.dpdp-cmd .mchart svg { width: 100%; height: 96px; }
.dpdp-cmd .mlbl { font-size: 11px; color: #8b93c0; margin-top: 6px; font-weight: 600; }
.dpdp-cmd .bars-mini { display: flex; gap: 5px; align-items: flex-end; height: 70px; }
.dpdp-cmd .bars-mini i { flex: 1; background: #3a2f7a; border-radius: 3px; }

/* Trusted bar */
.dpdp-cmd .cm-trusted { background: #f3f5fa; padding: 22px 30px 26px; text-align: center; }
.dpdp-cmd .cm-trusted p { font-size: 14px; color: #8a93a8; font-weight: 600; margin-bottom: 14px; }
.dpdp-cmd .logos { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; opacity: .65; }
.dpdp-cmd .logos span { font-size: 22px; font-weight: 800; color: #9aa3b5; letter-spacing: -.02em; }

/* Cookie consent popup */
.dpdp-cmd .ckpop { position: absolute; width: 340px; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.5); z-index: 5; transition: all .45s cubic-bezier(.4,0,.2,1); }
.dpdp-cmd .ckpop.pos-br { right: 26px; bottom: 26px; }
.dpdp-cmd .ckpop.pos-bl { left: 26px; bottom: 26px; }
.dpdp-cmd .ckpop.pos-tr { right: 26px; top: 96px; }
.dpdp-cmd .ckpop.pos-tl { left: 26px; top: 96px; }
.dpdp-cmd .ckpop.banner { left: 26px; right: 26px; bottom: 26px; top: auto; width: auto; display: flex; align-items: center; gap: 20px; }
.dpdp-cmd .ckpop h4 { font-size: 20px; font-weight: 800; color: #111a2e; }
.dpdp-cmd .ckpop p { font-size: 13.5px; color: #5a6884; line-height: 1.55; margin-top: 10px; }
.dpdp-cmd .ckpop.banner .ckbody { flex: 1; }
.dpdp-cmd .ckpop.banner p { margin-top: 4px; }
.dpdp-cmd .ckbtns { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.dpdp-cmd .ckpop.banner .ckbtns { margin-top: 0; flex-shrink: 0; }
.dpdp-cmd .lang { width: 44px; height: 44px; border-radius: 11px; border: 1px solid #e3e8f2; display: flex; align-items: center; justify-content: center; color: #5a6884; cursor: pointer; flex-shrink: 0; }
.dpdp-cmd .lang svg { width: 22px; height: 22px; }
.dpdp-cmd .ck-accept { background: var(--accent); color: #fff; border: none; border-radius: 11px; padding: 12px 18px; font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.dpdp-cmd .ck-reject { background: #fff; border: 1px solid #d6dcec; color: var(--accent); border-radius: 11px; padding: 12px 18px; font-size: 14.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
