/* Plans page in the redesigned admin: Lite vs Premium in Lite, Upgrade in Premium. Markup and links are unchanged. */
body.wpdt-c .wdt-plans-refresh {
    --wdt-plans-lite: color-mix(in srgb, var(--wdt-color-field) 70%, transparent);
    --wdt-plans-tier: color-mix(in srgb, var(--wdt-color-action) 7%, transparent);
    --wdt-plans-tier-strong: color-mix(in srgb, var(--wdt-color-action) 16%, transparent);
    --wdt-plans-no: #c2414b;
    --wdt-plans-yes: #17805a;
}
html[data-wdt-theme=dark] body.wpdt-c .wdt-plans-refresh { --wdt-plans-no:#ff9aa2; --wdt-plans-yes:#6ddfb0; }

body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium { font-family:'Geist','Inter',sans-serif; }
body.wpdt-c .wdt-datatables-admin-wrap.wdt-browse-refresh.wdt-utility-refresh.wdt-plans-refresh .wdt-lite-vs-premium .card.card-head { box-shadow:none !important; background:transparent !important; border-radius:0 !important; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium .card-head .wdt-admin-card-header { padding:8px 0 20px !important; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium .card-head .wdt-admin-card-header h2 a { color:var(--wdt-color-muted); text-decoration:none; }

body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-block { padding:0 !important; background:var(--wdt-color-surface) !important; border-radius:22px !important; box-shadow:0 10px 35px #23396912 !important; }
html[data-wdt-theme=dark] body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-block { box-shadow:0 0 32px #5f78e015 !important; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card { box-shadow:none !important; background:transparent !important; padding:28px 32px; }

/* Intro and upgrade action */
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card .card-header.wdt-admin-card-header { display:grid; grid-template-columns:1fr auto; align-items:center; gap:6px 24px; padding:0 0 24px !important; margin-bottom:24px; border-bottom:1px solid var(--wdt-color-border) !important; background:none !important; border-radius:0; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card .card-header h5 { grid-column:1; margin:0; font:500 22px/1.3 'Space Grotesk',sans-serif; letter-spacing:-.4px; color:var(--wdt-color-text); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card .card-header p { grid-column:1; margin:0; max-width:64ch; font-size:14px; line-height:1.55; color:var(--wdt-color-muted); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card .card-header .btn { grid-column:2; grid-row:1 / span 2; margin:0; white-space:nowrap; }

/* Comparison table */
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card .wpdt-comparison-div { margin:0; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison { min-width:760px; border-spacing:0 !important; font-family:inherit; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison th,
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison td { font-family:inherit; color:var(--wdt-color-text); border-bottom:1px solid var(--wdt-color-border); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison td { padding:11px 14px !important; font-size:13.5px; line-height:1.45; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison td:first-child { padding-left:0 !important; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison hr { display:none; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison th { padding:10px 14px !important; font:600 12px/1.4 'Geist','Inter',sans-serif; letter-spacing:.06em; text-transform:uppercase; color:var(--wdt-color-muted); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison th:first-child { padding-left:0 !important; text-align:left; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison th:last-child { color:var(--wdt-color-action); border-bottom-color:var(--wdt-color-action); }

/* Only the plan names stay pinned; stacked sticky rows overlap once rules replace the legacy spacers. */
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison thead.sticky-thead { position:static; background:transparent !important; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison .sticky { position:static; background:transparent !important; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison .sticky-tr { position:static; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison .sticky-tr td { position:sticky; top:32px; z-index:10; background:var(--wdt-color-surface); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison .sticky-tr td { padding-top:14px !important; padding-bottom:14px !important; font:500 17px/1.3 'Space Grotesk',sans-serif !important; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison td.sticky { padding:26px 0 10px !important; border-bottom-color:var(--wdt-color-text); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card table#wpdt-comparison .wdt-lite-premium-features { font:600 12px/1.4 'Geist','Inter',sans-serif; letter-spacing:.06em; text-transform:uppercase; color:var(--wdt-color-text); }

body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .bg-grey { background:var(--wdt-plans-lite); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .bg-blue-starter,
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .bg-blue-standard,
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .bg-blue-pro { background:var(--wdt-plans-tier); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .bg-blue-dev { background:var(--wdt-plans-tier-strong); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .wdt-lite-premium-red-row { background:transparent; }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .wpdt-icon-check-full { color:var(--wdt-plans-yes); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison .wpdt-icon-times-full { color:var(--wdt-plans-no); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card #wpdt-comparison tbody tr:not(.sticky-tr):hover td:not(.sticky) { box-shadow:inset 0 0 0 999px color-mix(in srgb, var(--wdt-color-action) 5%, transparent); }

/* Closing calls to action */
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-footer { padding:28px 0 4px; color:var(--wdt-color-muted); }
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-footer h4,
body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-footer h5 { color:var(--wdt-color-text); font-family:'Space Grotesk',sans-serif; }
body.wpdt-c .wdt-plans-refresh .wdt-footer-title,
body.wpdt-c .wdt-plans-refresh .wpdt-footer-links a { color:var(--wdt-color-muted); }

@media (max-width: 782px) {
    body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card { padding:20px 16px; }
    body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card .card-header.wdt-admin-card-header { grid-template-columns:1fr; }
    body.wpdt-c .wdt-plans-refresh .wdt-lite-vs-premium-card .card-header .btn { grid-column:1; grid-row:auto; justify-self:start; margin-top:10px; }
}
html[data-wdt-theme=dark] body.wpdt-c .wdt-plans-refresh .wdt-lvp-new { color:#c4a6ff !important; }
