/* Edvera demo — Edvera LMS components on theme pages, in the Rahnama language: hairlines instead of
   heavy outlines, 8px corners, dark primary buttons on light grounds (lime only on dark), square
   marks instead of emoji, logical properties for RTL. Everything is scoped under body so it wins
   over the plugin's own stylesheets regardless of load order. */

body :is(.edv-cbox, .edv-curr, .edv-cat, .edv-buy, .edv-checkout, .edv-bundle, .edv-dls, .edv-dl-box, .edv-dash, .edv-lb, .edv-cv) {
	--edv-accent: var(--c-primary);
	--edv-accent-ink: var(--c-on-primary);
	--edv-line: var(--c-border);
	--edv-soft: var(--c-surface);
	--edv-muted: var(--c-muted);
	--edv-ok: var(--c-success);
	--edv-bad: var(--c-danger);
	--edv-ink: var(--c-text);
	--edv-radius: 8px;
	font-family: var(--edt-font);
}
body :is(.edv-dash, .edv-lb, .edv-cv) * { letter-spacing: normal; }
body .edv-dash { color: var(--c-text); }

/* ---------- Shared: buy button ---------- */
body .edv-buy { gap: 12px 16px; margin: 0; }
body .edv-buy-price { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; font-variant-numeric: tabular-nums; }
body .edv-buy-price del { font-size: 16px; font-weight: 400; color: var(--c-muted); opacity: 1; }
body .edv-buy-note { color: var(--c-muted); font-size: 14px; }
body .edv-buy-btn { min-height: 48px; padding: 0 24px; border-radius: var(--r-btn); background: var(--c-primary); color: var(--c-on-primary); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.4; filter: none; transition: background-color .2s ease-out; }
body .edv-buy-btn:hover, body .edv-buy-btn:focus-visible { background: var(--c-primary-hover); color: var(--c-on-primary); filter: none; text-decoration: none; }
body .edv-buy-btn:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.edt-dark .edv-buy-btn, .edt-ihero .edv-buy-btn { background: var(--c-accent); color: var(--c-on-accent); }

/* ---------- Course page: buy box ---------- */
body .edv-cbox { gap: 16px; margin: 0; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); }
body .edv-cbox .edv-buy { flex-direction: column; align-items: stretch; }
body .edv-cbox .edv-buy-btn { width: 100%; }
body .edv-cbox-progress { font-size: 14px; font-weight: 700; }
body .edv-cbox-bar { height: 6px; border-radius: var(--r-full, 999px); background: var(--c-surface-2); }
body .edv-cbox-bar span { background: var(--c-primary); }
body .edv-cbox-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-block-start: 1px solid var(--c-border); }
body .edv-cbox-meta div { padding: 10px 0; border-block-end: 1px solid var(--c-border); }
body .edv-cbox-meta div:nth-child(even) { border-inline-start: 1px solid var(--c-border); padding-inline-start: 12px; }
body .edv-cbox-meta dt { font-size: 12px; line-height: 1.6; color: var(--c-muted); }
body .edv-cbox-meta dd { font-size: 14px; font-weight: 700; }
body .edv-course-desc { margin: 0; font-size: 16px; line-height: 1.8; }
body .edv-course-desc > * + * { margin-top: 1em; }
body .edv-course-desc h2 { font-size: 24px; margin-top: 1.4em; }
body .edv-course-desc h3 { font-size: 20px; margin-top: 1.2em; }
body .edv-course-desc ul { padding-inline-start: 0; list-style: none; border-block-start: 1px solid var(--c-border); }
body .edv-course-desc ul li { position: relative; padding: 10px 0; padding-inline-start: 20px; border-block-end: 1px solid var(--c-border); }
body .edv-course-desc ul li::before { content: ""; position: absolute; inset-inline-start: 0; top: 20px; width: 6px; height: 6px; background: var(--c-text); }

@media (min-width: 1024px) {
	.edt-course-content > .edv-cbox { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 24px); }
	.edt-course-content > .edv-course-desc, .edt-course-content > .edv-curr { grid-column: 1; }
}

/* ---------- Course page: curriculum ---------- */
body .edv-curr { margin: 0; }
body .edv-curr-h { position: relative; margin: 0 0 16px; padding-top: 12px; font-size: 24px; line-height: 1.4; font-weight: 700; }
body .edv-curr-h::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px; background: var(--c-text); }
body .edv-curr-topic { margin: 0; border: 0; border-radius: 0; border-block-end: 1px solid var(--c-border); background: none; }
body .edv-curr-topic:first-of-type { border-block-start: 1px solid var(--c-border); }
body .edv-curr-topic summary { min-height: 56px; padding: 12px 0; background: none; font-size: 16px; }
body .edv-curr-topic summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-inline-start: 8px; background: currentColor; -webkit-mask: linear-gradient(#000 0 0) center / 100% 1.5px no-repeat, linear-gradient(#000 0 0) center / 1.5px 100% no-repeat; mask: linear-gradient(#000 0 0) center / 100% 1.5px no-repeat, linear-gradient(#000 0 0) center / 1.5px 100% no-repeat; transition: transform .2s ease-out; }
body .edv-curr-topic[open] summary::after { content: ""; transform: rotate(45deg); }
body .edv-curr-topic summary:hover .edv-curr-tt { text-decoration: underline; text-underline-offset: 6px; }
body .edv-curr-tc { font-size: 12px; color: var(--c-muted); }
body .edv-curr-list { margin: 0 0 12px; }
body .edv-curr-item { gap: 12px; padding: 10px 0; border-block-start: 1px solid var(--c-border); font-size: 14px; }
body .edv-curr-ic { flex: 0 0 24px; height: 24px; border-radius: var(--r-sm); background: var(--c-surface); border: 1px solid var(--c-border); font-size: 11px; color: var(--c-muted); }
body .edv-curr-item.is-done .edv-curr-ic { background: var(--c-accent); color: var(--c-on-accent); border-color: var(--c-text); }
body .edv-curr-title a { text-decoration: none; font-weight: 700; }
body .edv-curr-title a:hover { text-decoration: underline; text-underline-offset: 4px; }
body .edv-curr-dur { font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; }
body .edv-curr-free { padding: 2px 8px; border-radius: var(--r-sm); background: none; border: 1px solid var(--c-text); color: var(--c-text); font-size: 12px; line-height: 1.4; }
/* The lock is drawn as a line icon instead of the emoji. */
body .edv-curr-lock { position: relative; width: 16px; height: 16px; font-size: 0; color: var(--c-muted); }
body .edv-curr-lock::before { content: ""; position: absolute; inset: 0; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='square'%3E%3Crect x='5' y='11' width='14' height='10'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ---------- Catalogue ---------- */
body .edv-cat { margin: 0; }
body .edv-cat-filter { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 0 0 24px; padding: 4px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-btn); }
body .edv-cat-filter select, body .edv-cat-filter input { min-height: 48px; padding: 0 12px; border: 0; border-radius: 6px; background: var(--c-bg); color: var(--c-text); font: inherit; font-size: 16px; }
body .edv-cat-filter select:focus, body .edv-cat-filter input:focus { outline: 2px solid var(--c-primary); outline-offset: 0; }
body .edv-cat-filter button { min-height: 48px; padding: 0 24px; border-radius: 6px; background: var(--c-primary); color: var(--c-on-primary); font-size: 14px; }
body .edv-cat-filter button:hover { background: var(--c-primary-hover); }
body .edv-cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 24px; }
body .edv-cat-card { position: relative; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); transition: border-color .2s ease-out; }
body .edv-cat-card:hover { border-color: var(--c-text); }
body .edv-cat-link { text-decoration: none; }
body .edv-cat-img { aspect-ratio: 16 / 9; background: var(--c-ink); border-block-end: 1px solid var(--c-border); }
body .edv-cat-ph { background: var(--c-ink); }
body .edv-cat-body { gap: 8px; padding: 16px 16px 0; }
body .edv-cat-title { font-size: 18px; line-height: 1.45; }
body .edv-cat-link:hover .edv-cat-title, body .edv-cat-link:focus-visible .edv-cat-title { text-decoration-thickness: 1px; text-underline-offset: 5px; }
body .edv-cat-excerpt { font-size: 14px; line-height: 1.7; color: var(--c-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body .edv-cat-foot { margin: auto -16px 0; padding: 12px 16px; border-block-start: 1px solid var(--c-border); font-size: 14px; }
body .edv-cat-n { color: var(--c-muted); font-size: 12px; }
body .edv-cat-price { font-size: 16px; font-variant-numeric: tabular-nums; }
body .edv-cat-price del { color: var(--c-muted); opacity: 1; font-size: 14px; margin-inline-end: 4px; }
body .edv-cat-pages ul { margin-top: 32px; gap: 8px; }
body .edv-cat-pages a, body .edv-cat-pages span { min-width: 44px; min-height: 44px; border-radius: var(--r-btn); border-color: var(--c-border); }
body .edv-cat-pages .current { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }
body .edv-cat-empty { color: var(--c-muted); }
.edt-catalogue { padding-block: 40px 0; }
.edt-catalogue .edv-cat-filter { margin-top: -72px; position: relative; box-shadow: var(--shadow-2); }
@media (min-width: 768px) {
	body .edv-cat-filter { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; }
}
@media (min-width: 1024px) {
	.edt-catalogue { padding-top: 48px; }
	.edt-catalogue .edv-cat-filter { margin-top: -88px; }
	body .edv-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Featured courses on the dark band: featured cards (dark ground, glow in the cover art). */
.edt-dark .edv-cat-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1024px) { .edt-dark .edv-cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.edt-dark .edv-cat-card { background: var(--c-featured); border-color: var(--c-ink-line); color: var(--c-on-ink); }
.edt-dark .edv-cat-card:hover { border-color: var(--c-accent); }
.edt-dark .edv-cat-img { border-block-end-color: var(--c-ink-line); }
.edt-dark .edv-cat-excerpt, .edt-dark .edv-cat-n, .edt-dark .edv-cat-price del { color: var(--c-on-ink-muted); }
.edt-dark .edv-cat-foot { border-block-start-color: var(--c-ink-line); }
.edt-dark .edv-cat-link:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ---------- Checkout and receipt ---------- */
body .edv-checkout { max-width: 640px; gap: 16px; margin-inline: auto; }
body .edv-co-h { position: relative; margin: 16px 0 0; padding-top: 12px; font-size: 20px; line-height: 1.4; font-weight: 700; }
body .edv-co-h::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px; background: var(--c-text); }
body .edv-co-items { border-radius: var(--r-card); background: var(--c-surface); border-color: var(--c-border); }
body .edv-co-items li { padding: 14px 16px; border-color: var(--c-border); }
body .edv-co-title { font-weight: 700; }
body .edv-co-remove { border-radius: var(--r-btn); color: var(--c-muted); }
body .edv-co-remove:hover, body .edv-co-remove:focus-visible { background: var(--c-surface-2); color: var(--c-text); }
body .edv-co-total { padding: 12px 0; border-block: 1px solid var(--c-border); font-size: 18px; font-weight: 700; }
body .edv-co-field label, body .edv-co-field > span { font-size: 14px; font-weight: 700; }
body .edv-co-field input, body .edv-co-row input { min-height: 48px; padding: 0 12px; border: 1px solid var(--c-border-strong); border-radius: var(--r-btn); background: var(--c-surface); color: var(--c-text); font-size: 16px; }
body .edv-co-field input:focus, body .edv-co-row input:focus { outline: 2px solid var(--c-primary); outline-offset: 0; border-color: var(--c-text); }
body .edv-co-apply { min-height: 48px; padding: 0 20px; border: 1px solid var(--c-text); border-radius: var(--r-btn); background: transparent; color: var(--c-text); font-weight: 700; }
body .edv-co-apply:hover { background: var(--c-surface-2); }
body .edv-co-gw { padding: 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); transition: border-color .2s ease-out; }
body .edv-co-gw:hover { border-color: var(--c-border-strong); }
body .edv-co-gw:has(input:checked) { border-color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-text); }
body .edv-co-gw input { accent-color: var(--c-primary); width: 18px; height: 18px; margin-top: 3px; }
body .edv-co-gw strong, body .edv-co-gw b { font-weight: 700; }
body .edv-co-gw small { color: var(--c-muted); font-size: 12px; line-height: 1.6; }
body .edv-co-terms { font-size: 14px; }
body .edv-co-terms input { accent-color: var(--c-primary); width: 18px; height: 18px; margin-top: 4px; }
body .edv-checkout .edv-buy-btn, body .edv-checkout button[type="submit"]:not(.edv-co-apply) { width: 100%; min-height: 52px; font-size: 16px; }
body .edv-co-notice { padding: 12px 16px; border-radius: var(--r-btn); border: 1px solid var(--c-border); background: var(--c-surface); font-size: 14px; }
body .edv-co-ok { padding: 12px 16px; border-radius: var(--r-btn); border: 1px solid var(--c-success); background: var(--c-surface); color: var(--c-success); }
body .edv-co-instructions { border-radius: var(--r-btn); border-style: solid; background: var(--c-surface); }
body .edv-co-error { color: var(--c-danger); }

/* ---------- Student dashboard ---------- */
body .edv-dash { font-size: 16px; }
body .edv-dash-hero { padding: 0 0 8px; }
body .edv-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0; color: var(--c-muted); margin-bottom: 8px; }
body .edv-eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--c-text); }
body .edv-hi { font-weight: 700; font-size: var(--wp--preset--font-size--display); line-height: 1.25; letter-spacing: 0; }
body .edv-hi .alt { color: var(--c-text); text-decoration: underline; text-decoration-color: var(--c-accent); text-decoration-thickness: .18em; text-underline-offset: .12em; }
body .edv-dash-hero p { color: var(--c-muted); }
body .edv-stats { gap: 0; margin-top: 24px; border-block-start: 1px solid var(--c-border); border-inline-start: 1px solid var(--c-border); }
body .edv-stat { padding: 16px 16px 20px; background: var(--c-surface); border: 0; border-inline-end: 1px solid var(--c-border); border-block-end: 1px solid var(--c-border); border-radius: 0; transition: background-color .2s ease-out; }
body .edv-stat:hover { transform: none; box-shadow: none; background: var(--c-accent); }
body .edv-stat .num { font-weight: 700; font-size: 32px; color: var(--c-text); }
body .edv-stat .num.teal { color: var(--c-text); }
body .edv-stat .lab { font-size: 12px; color: var(--c-muted); margin-top: 8px; }
body .edv-stat:hover .lab { color: var(--c-on-accent); }
body .edv-blk { margin-top: 48px; }
body .edv-blk-head { position: relative; padding-top: 12px; margin-bottom: 24px; }
body .edv-blk-head::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px; background: var(--c-text); }
body .edv-blk-head h2 { font-size: 24px; font-weight: 700; letter-spacing: 0; }
body .edv-see-all { font-weight: 700; color: var(--c-text); text-decoration: underline; text-underline-offset: 6px; }
body .edv-h { font-weight: 700; color: var(--c-text); }
body .edv-crs { gap: 24px; }
body .edv-crs-card { padding: 20px; gap: 16px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); transition: border-color .2s ease-out; }
body .edv-crs-card:hover { transform: none; box-shadow: none; background: var(--c-surface); border-color: var(--c-text); }
body .edv-crs-thumb { flex: 0 0 auto; width: 96px; height: 54px; border-radius: var(--r-sm); border: 1px solid var(--c-border); background: var(--c-ink); overflow: hidden; }
body .edv-crs-thumb.has-img { border-color: var(--c-ink-line); }
body .edv-crs-top h3 { font-weight: 700; font-size: 17px; line-height: 1.45; margin-top: 6px; }
body .edv-crs-meta { font-size: 12px; color: var(--c-muted); }
body .edv-pbar { height: 6px; border: 0; border-radius: 999px; background: var(--c-surface-2); }
body .edv-pbar i { background: var(--c-primary); border-radius: 999px; }
body .edv-pinfo { font-weight: 700; font-size: 12px; }
body .edv-pinfo .pct { color: var(--c-text); }
body .edv-pinfo .cnt { color: var(--c-muted); font-weight: 400; }
body .edv-badge { padding: 3px 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 700; background: var(--c-surface-2); color: var(--c-text); }
body .edv-badge-live { background: var(--c-primary); color: var(--c-on-primary); }
body .edv-badge-done { background: var(--c-accent); color: var(--c-on-accent); }
body .edv-badge-pdf, body .edv-badge-file { background: var(--c-primary); color: var(--c-on-primary); border-radius: var(--r-sm); }
body .edv-dbtn { min-height: 48px; padding: 0 20px; border-radius: var(--r-btn); border: 1px solid var(--c-primary); font-size: 14px; font-weight: 700; }
body .edv-dbtn:hover { transform: none; box-shadow: none; }
body .edv-dbtn-primary { background: var(--c-primary); color: var(--c-on-primary); }
body .edv-dbtn-primary:hover { background: var(--c-primary-hover); border-color: var(--c-primary-hover); color: var(--c-on-primary); }
body .edv-dbtn-outline { background: transparent; color: var(--c-text); border-color: var(--c-text); }
body .edv-dbtn-outline:hover { background: var(--c-surface-2); color: var(--c-text); }
body .edv-empty { border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-surface); color: var(--c-muted); font-size: 14px; }
body .edv-empty a, body .edv-link { color: var(--c-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
body .edv-note { border: 1px solid var(--c-border); border-radius: var(--r-card); background: var(--c-surface); color: var(--c-muted); }
body .edv-files { gap: 0; border-block-start: 1px solid var(--c-border); }
body .edv-frow, body .edv-crow { padding: 14px 4px; background: none; border: 0; border-block-end: 1px solid var(--c-border); border-radius: 0; transition: background-color .2s ease-out; }
body .edv-frow:hover, body .edv-crow:hover { transform: none; box-shadow: none; background: var(--c-surface); }
body .edv-frow .t, body .edv-crow .t { font-weight: 700; font-size: 15px; }
body .edv-crow .edv-code { color: var(--c-muted); font-size: 12px; }
/* Arabic words inside the monospaced code/price line (order status) use the Arabic face, not a system fallback. */
.edt-lang-ar .edv-crow .edv-code { font-family: ui-monospace, Menlo, Consolas, "Vazirmatn", monospace; }
body .edv-dl { color: var(--c-text); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
body .edv-dl svg { stroke: currentColor; stroke-width: 1.5; }
body .edv-path { padding: 20px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); }
body .edv-path-head h3 { font-weight: 700; color: var(--c-text); }
body .edv-path-mode { border-radius: var(--r-sm); background: var(--c-surface-2); color: var(--c-text); font-weight: 700; }
body .edv-pi > a, body .edv-pi.edv-pi-lock { background: var(--c-bg); border-color: var(--c-border); border-radius: var(--r-btn); color: var(--c-text); }
body .edv-pi > a:hover { border-color: var(--c-text); }
body .edv-pi-n { border-radius: var(--r-sm); background: var(--c-primary); font-weight: 700; }
body .edv-pi-t { font-weight: 700; }
body .edv-pi-badge { border-radius: var(--r-sm); font-weight: 700; }
body .edv-pi-badge.open { background: var(--c-surface-2); color: var(--c-text); }
body .edv-pi-badge.done { background: var(--c-accent); color: var(--c-on-accent); }
body .edv-pi-go { color: var(--c-text); text-decoration: underline; }
@media (max-width: 820px) { body .edv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Points, streaks and badges: square marks instead of emoji. */
body .edv-gam-stats { gap: 0; border-block-start: 1px solid var(--c-border); border-inline-start: 1px solid var(--c-border); }
body .edv-gam-stat { margin: 0; padding: 16px; text-align: start; background: var(--c-surface); border: 0; border-inline-end: 1px solid var(--c-border); border-block-end: 1px solid var(--c-border); border-radius: 0; }
body .edv-gam-stat .ic { display: block; width: 8px; height: 8px; margin-bottom: 12px; font-size: 0; background: var(--c-text); }
body .edv-gam-stat:first-child .ic { background: var(--c-accent); outline: 1px solid var(--c-text); }
body .edv-gam-stat b { font-size: 28px; font-weight: 700; color: var(--c-text); }
body .edv-gam-stat .l { font-size: 12px; font-weight: 400; color: var(--c-muted); }
body .edv-gam-badge { border-radius: var(--r-sm); background: var(--c-surface); border-color: var(--c-border); padding-inline: 10px; font-weight: 700; }
body .edv-gam-badge .bi { width: 8px; height: 8px; font-size: 0; background: var(--c-accent); outline: 1px solid var(--c-text); }
body .edv-lb { max-width: 560px; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); }
body .edv-lb-h { font-weight: 700; }
body .edv-lb-row { background: none; border: 0; border-block-end: 1px solid var(--c-border); border-radius: 0; }
body .edv-lb-rank { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
body .edv-lb-pts { color: var(--c-text); font-weight: 700; }

/* ---------- Bundle card ---------- */
body .edv-bundle { max-inline-size: none; margin: 0; padding: 24px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-card); }
body .edv-bundle-title { font-size: 24px; font-weight: 700; }
body .edv-bundle-mode { border-radius: var(--r-sm); border-color: var(--c-text); font-size: 12px; }
body .edv-bundle-lead { font-weight: 700; }
body .edv-bundle-items { gap: 0; border-block-start: 1px solid var(--c-border); }
body .edv-bundle-item { padding: 12px 0; border: 0; border-block-end: 1px solid var(--c-border); border-radius: 0; }
body .edv-bundle-item.is-locked { border-style: solid; }
body .edv-bundle-n { flex-basis: 28px; border-radius: var(--r-sm); background: var(--c-primary); color: var(--c-on-primary); font-weight: 700; }
body .edv-bundle-item.is-locked .edv-bundle-n { border-color: var(--c-border-strong); }
body .edv-bundle-item.is-done .edv-bundle-n { background: var(--c-accent); color: var(--c-on-accent); outline: 1px solid var(--c-text); }
body .edv-bundle-t { font-weight: 700; }
body .edv-bundle-state { border-radius: var(--r-sm); font-weight: 700; }
body .edv-bundle-item.is-open .edv-bundle-state { border-color: var(--c-text); }
body .edv-bundle-foot { border-block-start: 1px solid var(--c-border); }
body .edv-bundle-value { font-size: 14px; }
body .edv-bundle-save { color: var(--c-success); font-weight: 700; }

/* ---------- Downloads ---------- */
body .edv-dls { margin: 0; gap: 24px; }
body .edv-dls-filter { padding: 4px; background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--r-btn); }
body .edv-dls-filter label { padding-inline: 12px; font-size: 14px; }
body .edv-dls-filter select { border: 0; border-radius: 6px; background: var(--c-bg); min-height: 48px; }
body .edv-dls-go { min-height: 48px; border: 0; border-radius: 6px; background: var(--c-primary); color: var(--c-on-primary); font-weight: 700; padding-inline: 24px; }
body .edv-dls-grid { gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
body .edv-dl-card { gap: 10px; padding: 16px; background: var(--c-surface); border-color: var(--c-border); border-radius: var(--r-card); transition: border-color .2s ease-out; }
body .edv-dl-card:hover { border-color: var(--c-text); }
body .edv-dl-thumb { border-radius: var(--r-card) var(--r-card) 0 0; background: var(--c-ink); border-block-end: 1px solid var(--c-border); }
body .edv-dl-title { font-size: 18px; font-weight: 700; }
body .edv-dl-excerpt { font-size: 14px; color: var(--c-muted); opacity: 1; }
body .edv-dl-type, body .edv-dl-size { border-radius: var(--r-sm); border-color: var(--c-border); font-size: 12px; }
body .edv-dl-action .edv-buy { justify-content: space-between; }
body .edv-dl-action .edv-buy-price { font-size: 18px; }
body .edv-dl-action .edv-buy-btn { min-height: 44px; padding: 0 16px; }
body .edv-dl-box { padding: 24px; gap: 16px; background: var(--c-surface); border-color: var(--c-border); border-radius: var(--r-card); }
body .edv-dl-facts { gap: 0; border-block-start: 1px solid var(--c-border); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
body .edv-dl-facts div { flex-direction: column; gap: 0; padding: 10px 0; border-block-end: 1px solid var(--c-border); }
body .edv-dl-facts dt { font-size: 12px; font-weight: 400; color: var(--c-muted); }
body .edv-dl-facts dt::after { content: none; }
body .edv-dl-facts dd { font-weight: 700; }
body .edv-dl-ready { border-color: var(--c-success); color: var(--c-success); border-radius: var(--r-btn); }
body .edv-dls-pages .page-numbers { border-radius: var(--r-btn); }
body .edv-dls-pages .page-numbers.current { background: var(--c-primary); color: var(--c-on-primary); border-color: var(--c-primary); }
body .edt-item-content > * + * { margin-block-start: 24px; }
@media (min-width: 1024px) {
	.edt-item-body--bundle .edt-item-content, .edt-item-body--download .edt-item-content { max-width: none; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 64px; align-items: start; }
	.edt-item-content > * { grid-column: 1; }
	body .edt-item-content > .edv-bundle, body .edt-item-content > .edv-dl-box { grid-column: 2; grid-row: 1 / span 20; margin: 0; position: sticky; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 24px); }
	body .edt-item-content > * + * { margin-block-start: 0; }
	body .edt-item-content > p + p, body .edt-item-content > * + h2, body .edt-item-content > * + ul { margin-block-start: 16px; }
}

/* ---------- Certificate check embedded in a page ---------- */
body .edv-cv.edv-cv-embed { max-width: 640px; }
body .edv-cv input { min-height: 48px; padding: 0 12px; border: 1px solid var(--c-border-strong); border-radius: var(--r-btn); font: inherit; }
body .edv-cv button { min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-btn); background: var(--c-primary); color: var(--c-on-primary); font: inherit; font-weight: 700; cursor: pointer; }
