/* Standalone presentation. All variables are validated configuration; no theme dependency. */
:where(#epc-cm,.epc-cm-media) { --epc-cm-background:#fff;--epc-cm-text:#111;--epc-cm-primary:#ffee00;--epc-cm-secondary:#eee;--epc-cm-border:#555;--epc-cm-radius:8px;--epc-cm-widget-size:48px;--epc-cm-primary-ink:#000;--epc-cm-secondary-ink:#000;box-sizing:border-box;font:inherit;color:var(--epc-cm-text); }
#epc-cm *, .epc-cm-media * { box-sizing:border-box; }
#epc-cm [hidden],.epc-cm-media [hidden] { display:none!important; }
#epc-cm h2 { font:inherit;font-size:1.3em;font-weight:700;line-height:1.4;margin:0 0 12px;border:0;padding:0; }
#epc-cm p { margin:0 0 12px;line-height:1.5; font-size: 0.9em; }
#epc-cm a { color:inherit;text-decoration:underline;overflow-wrap:anywhere; font-size: 0.9em; }
#epc-cm button,.epc-cm-media button { font:inherit;min-height:44px;padding:9px 14px;border:1px solid var(--epc-cm-border);border-radius:var(--epc-cm-radius);background:var(--epc-cm-secondary);color:var(--epc-cm-secondary-ink);cursor:pointer;white-space:normal;max-width:100%;transition:background-color .2s ease,color .2s ease; line-height: 1.3em; }
#epc-cm button[data-cm-action=accept],#epc-cm button[data-cm-action=reject],#epc-cm button[data-cm-action=save],.epc-cm-media button { background:var(--epc-cm-primary);color:var(--epc-cm-primary-ink); }
#epc-cm button:disabled { opacity:.6;cursor:default; }
#epc-cm :focus-visible,.epc-cm-media :focus-visible { outline:3px solid #1558bd;outline-offset:3px; }
#epc-cm:not(.epc-cm-ready) button,.epc-cm-media:not(.epc-cm-ready) button { display:none; }
.epc-cm-banner { background:var(--epc-cm-background);color:var(--epc-cm-text);border:1px solid var(--epc-cm-border);border-radius:var(--epc-cm-radius);padding:20px;overflow-wrap:anywhere; }
#epc-cm[data-position=bottom] .epc-cm-banner { position:fixed;bottom:0;left:0;right:0;z-index:10000;max-height:60dvh;overflow:auto;border-radius:var(--epc-cm-radius) var(--epc-cm-radius) 0 0; }
#epc-cm[data-position=inline] .epc-cm-banner { margin:20px; }
.epc-cm-actions { display:flex;flex-wrap:wrap;gap:10px;margin-top:16px; }
#epc-cm dialog { font:inherit;max-width:94vw;width:640px;max-height:90dvh;overflow:auto;padding:24px;border:1px solid var(--epc-cm-border);border-radius:var(--epc-cm-radius);background:var(--epc-cm-background);color:var(--epc-cm-text); }
#epc-cm dialog::backdrop { background:rgb(0 0 0 / .65); }
.epc-cm-category { border-top:1px solid var(--epc-cm-border);padding:12px 0; }
#epc-cm label { display:flex;align-items:center;gap:12px;min-height:44px;font-weight:600;cursor:pointer; }
#epc-cm input[type=checkbox] { width:22px;height:22px;min-width:22px;margin:0;accent-color:var(--epc-cm-text); }
#epc-cm .epc-cm-widget { display:inline-grid;place-items:center;position:fixed;z-index:9999;width:var(--epc-cm-widget-size);height:var(--epc-cm-widget-size);padding:8px;border-radius:50%;background:var(--epc-cm-primary);color:var(--epc-cm-primary-ink); }
#epc-cm .epc-cm-widget svg { width:24px;height:24px; }
#epc-cm[data-widget-position=bottom-left] .epc-cm-widget { bottom:max(16px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left)); }
#epc-cm[data-widget-position=bottom-right] .epc-cm-widget { bottom:max(16px,env(safe-area-inset-bottom));right:max(16px,env(safe-area-inset-right)); }
#epc-cm[data-widget-position=top-left] .epc-cm-widget { top:calc(16px + var(--wp-admin--admin-bar--height,0px));left:16px; }
#epc-cm[data-widget-position=top-right] .epc-cm-widget { top:calc(16px + var(--wp-admin--admin-bar--height,0px));right:16px; }
#epc-cm .epc-cm-banner:not([hidden]) ~ .epc-cm-widget { display:none; }
.epc-cm-reopen { margin:16px; }
.epc-cm-status:empty { display:none; }
.epc-cm-status { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
.epc-cm-media { position:relative;display:block;clear:both;width:100%;max-width:100%;min-width:0;aspect-ratio:16/9;overflow:auto;margin:16px 0;border:1px solid var(--epc-cm-border);border-radius:var(--epc-cm-radius);background:var(--epc-cm-background);padding:12px; }
.epc-cm-media-content { display:grid;place-content:center;gap:8px;min-height:100%;font-size:14px;line-height:1.4;text-align:center; }
.epc-cm-media p { margin:0; }
.epc-cm-media .epc-cm-player { position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-width:100%;margin:0!important;border:0; }
.epc-cm-media.has-player { overflow:hidden;padding:0;border:0; }
.video-container:has(> .epc-cm-media) { display:block!important;float:none!important;clear:both;width:100%!important;max-width:100%!important;margin:0!important;padding:0; }
.wp-block-embed:has(.epc-cm-media) { float:none;clear:both;width:100%;max-width:100%;margin-inline:0; }
.wp-block-embed__wrapper:has(> .epc-cm-media)::before { display:none!important;padding:0!important; }
.epc-cm-noscript { padding:16px;font:inherit; }
@media(max-width:480px) {#epc-cm dialog {padding:16px;}#epc-cm .epc-cm-actions button {flex:1 1 130px;}#epc-cm .epc-cm-banner {padding:16px;}}
@media(prefers-reduced-motion:reduce) {#epc-cm *, .epc-cm-media * {transition:none!important;animation:none!important;}}
