/* Kravakademin Core — dashboard & group-panel styles. Companion to kravakademin-core.php. */
/* All classes use the eld- prefix (namespace). Colors come from the brand tokens below. */

/* ===== BRAND TOKENS — change these to re-skin the whole dashboard + group panel ===== */
/* Rebranding starts with these 3 tokens. Three kinds of color deliberately live outside them:
   the group-icon SVG (can't read a CSS variable — search "svg+xml"), the warm page surface
   #FAF7F2, and the semantic status colors (success green / warning amber / error red), which
   must stay independent of the brand color to keep their meaning. */
:root{
	--eld-primary:#2F5EEA;        /* main brand color (buttons, accents, borders, progress) */
	--eld-primary-dark:#2148C8;   /* hover / pressed */
	--eld-primary-soft:#EDF2FE;   /* light tint (banner / hover backgrounds) */
}
.eld-wrap{max-width:1280px;margin:32px auto 64px}
.eld-hello{display:flex;align-items:center;gap:16px;margin-bottom:20px}
.eld-avatar{width:64px;height:64px;flex:0 0 64px;border-radius:50%;background:var(--eld-primary);color:#fff;font-size:26px;font-weight:700;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1}
.eld-hi{font-size:22px;font-weight:700;word-break:break-word}.eld-since{color:#64748B;font-size:14px}
.eld-topnav{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.eld-nav{display:inline-block;padding:10px 20px;border-radius:24px;color:#333;text-decoration:none;font-weight:600;background:#FAF7F2;border:1px solid #eee;cursor:pointer}
/* color is pinned here so the theme's global a:hover color can't repaint the pill label */
.eld-nav:hover{background:#fff;color:#333}.eld-nav.active{background:var(--eld-primary);color:#fff;border-color:var(--eld-primary)}
.eld-nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;border-radius:9px;background:#DC2626;color:#fff;font-size:11px;font-weight:700;line-height:1;vertical-align:middle}
.eld-nav.active .eld-nav-badge{background:#fff;color:var(--eld-primary)}
.eld-purchase-grp{display:block;margin-top:6px;font-weight:600}
.eld-stats{display:flex;gap:16px;margin-bottom:28px}
.eld-stat{flex:1;background:#fff;border:1px solid #eee;border-radius:12px;padding:16px;text-align:center;cursor:pointer;transition:box-shadow .15s,border-color .15s}
.eld-stat:hover{box-shadow:0 2px 12px rgba(0,0,0,.08);border-color:var(--eld-primary)}
.eld-stat strong{display:block;font-size:28px}.eld-stat span{color:#64748B;font-size:13px}
.eld-cols{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:20px;align-items:start}
.eld-col{background:#fff;border:1px solid #e3e3e3;border-radius:12px;overflow:hidden}
.eld-col h3{font-size:15px;margin:0;padding:14px 18px;border-bottom:1px solid #eee;background:#fafafa}
.eld-col-body{padding:14px;min-height:200px;max-height:600px;overflow-y:auto}
.eld-card{display:flex;gap:12px;align-items:center;border-bottom:1px solid #f0f0f0;padding:12px 4px;text-decoration:none;color:inherit}
.eld-card:last-child{border-bottom:none}.eld-card:hover{background:#fafafa}
/* 1.15.10: height !important + aspect-ratio (also .eld-mc-thumb below) - WooCommerce's ".woocommerce img,.woocommerce-page img{height:auto}"
   (woocommerce-layout.css, same specificity, loaded later) beat the fixed height and turned the round thumbnails into ovals on Mitt konto. */
.eld-card-thumb img,.eld-card .eld-thumb-ph{width:48px;height:48px!important;aspect-ratio:1/1;flex:0 0 48px;border-radius:50%;object-fit:cover;background:#f0f0f0;display:block}
.eld-card-body{flex:1;min-width:0;display:block}
.eld-card-title{font-weight:600;margin-bottom:8px;font-size:14px;display:block;color:#222}
.eld-progress{display:block;height:8px;background:#eee;border-radius:6px;overflow:hidden;margin-bottom:6px}
.eld-progress span{display:block;height:100%;background:var(--eld-primary)}
.eld-pct{font-size:13px;color:#666;display:block}
.eld-badge{font-size:11px;padding:2px 8px;border-radius:10px}.eld-exp{background:#FEE2E2;color:#B91C1C}
.eld-empty{color:#64748B;padding:8px 4px}
.eld-btn{background:var(--eld-primary);color:#fff;padding:6px 14px;border-radius:20px;text-decoration:none;font-size:13px;font-weight:600;display:inline-block}
.eld-mc-item{display:flex;align-items:center;gap:12px;padding:12px 4px;border-bottom:1px solid #f0f0f0}
.eld-mc-item:last-child{border-bottom:none}
.eld-mc-link{flex:1;min-width:0;display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.eld-mc-link:hover .eld-mc-title{color:var(--eld-primary)}
.eld-mc-thumb img,.eld-mc-item .eld-thumb-ph{width:44px;height:44px!important;aspect-ratio:1/1;flex:0 0 44px;border-radius:50%;object-fit:cover;background:#f0f0f0;display:block}
.eld-mc-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.eld-mc-title{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#222}
.eld-mc-sub{font-size:12px;color:#64748B}
.eld-i{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;flex:0 0 20px;border:1px solid #bbb;border-radius:50%;color:#64748B;font-style:italic;font-size:12px;cursor:pointer;text-decoration:none;font-weight:700}
.eld-i:hover{border-color:var(--eld-primary);color:var(--eld-primary)}
.eld-mc-price{font-size:13px;color:var(--eld-primary);font-weight:700;white-space:nowrap}
.eld-cart{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;background:var(--eld-primary);color:#fff!important;border:none;outline:none;border-radius:50%;text-decoration:none;cursor:pointer;transition:background .2s}
.eld-cart:hover{background:var(--eld-primary-dark)}
.eld-cart:focus{outline:none;box-shadow:none}
.eld-cart svg{display:block;stroke:#fff!important}
.eld-cart.loading{opacity:.7}
.eld-cart.added{background:#15803D}
.eld-cart.error{background:#DC2626}
.eld-mc-item .added_to_cart{display:none!important}
.eld-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(20px);background:#15803D;color:#fff;padding:12px 24px;border-radius:30px;font-weight:600;box-shadow:0 4px 20px rgba(0,0,0,.25);opacity:0;transition:.3s;z-index:100000}
.eld-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.eld-toast.eld-toast-error{background:#DC2626}
.eld-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:99999;align-items:center;justify-content:center;padding:20px}
.eld-modal-box{background:#fff;border-radius:16px;max-width:560px;width:100%;max-height:80vh;overflow-y:auto;padding:28px;position:relative}
.eld-modal-box>h3{margin:0 0 16px}
.eld-modal-close{position:absolute;top:12px;right:18px;font-size:28px;line-height:1;cursor:pointer;color:#64748B;z-index:2}
.eld-modal-head{display:flex;align-items:center;gap:16px;margin-bottom:16px}
.eld-modal-head img{width:64px;height:64px;border-radius:50%;object-fit:cover}
.eld-modal-head h3{margin:0;font-size:20px}
.eld-modal-desc{color:#555;line-height:1.6;margin-bottom:20px}
.eld-modal-list .eld-mc-item{padding:10px 0}
@media(max-width:1100px){.eld-cols{grid-template-columns:1fr}}
.eld-panel{display:none}
.eld-panel.active{display:block}
.eld-form{max-width:640px;display:flex;flex-direction:column;gap:16px;background:#fff;border:1px solid #e3e3e3;border-radius:12px;padding:24px}
.eld-form label{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:14px;color:#333}
.eld-form input{padding:10px 12px;border:1px solid #ccc;border-radius:8px;font-size:14px}
.eld-form input:focus{outline:none;border-color:var(--eld-primary)}
/* Locked account fields (the certificate takes its name from these) */
.eld-form input[disabled]{background:#F3F4F6;color:#6B7280;cursor:not-allowed}
.eld-hint{font-weight:400;font-size:12px;color:#64748B;margin-top:2px}
.eld-save{align-self:flex-start;background:var(--eld-primary);color:#fff;border:none;padding:12px 28px;border-radius:24px;font-weight:700;font-size:14px;cursor:pointer}
.eld-save:hover{background:var(--eld-primary-dark)}
.eld-form-msg{padding:12px 16px;border-radius:8px;margin-bottom:16px;font-weight:600}
.eld-form-msg.eld-ok{background:#DCFCE7;color:#15803D}
.eld-form-msg.eld-err{background:#FEE2E2;color:#B91C1C}
.eld-modal-course .eld-modal-box{max-width:720px}
.eld-cp-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:18px;padding-right:24px}
.eld-cp-thumb{width:120px;height:120px;flex:0 0 120px;border-radius:12px;object-fit:cover}
.eld-cp-headmeta{flex:1;min-width:0}
.eld-cp-title{margin:0 0 8px;font-size:20px}
.eld-cp-meta{color:#666;font-size:14px}
.eld-cp-price{color:var(--eld-primary);font-weight:700}
.eld-cp-desc{color:#444;line-height:1.6;font-size:14px;margin-bottom:20px}
.eld-cp-desc h2,.eld-cp-desc h3,.eld-cp-desc h4{font-size:16px;margin:16px 0 8px}
.eld-cp-desc h5{font-size:14px;margin:12px 0 6px}
.eld-cp-desc p{margin:0 0 10px}
.eld-cp-desc ul,.eld-cp-desc ol{margin:0 0 12px;padding-left:20px}
.eld-cp-desc li{margin-bottom:4px}
.eld-cp-desc hr{border:none;border-top:1px solid #eee;margin:14px 0}
.eld-cp-curriculum{margin-bottom:20px}
.eld-cp-curriculum h4{font-size:15px;margin:0 0 10px}
.eld-cp-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:6px}
.eld-cp-list li{font-size:14px;color:#333}
.eld-cp-loading{padding:40px 0;text-align:center;color:#64748B}
.eld-cp-loading a{color:var(--eld-primary);font-weight:700}
.eld-modal-course .eld-btn{margin-top:4px}
/* ===== Mini-cart under the header cart icon (Adis final review 2026-09-10 #11) ===== */
/* Astra's own hover dropdown (the WC mini cart widget) is replaced by ours wherever ours exists. */
body.eld-has-minicart .ast-site-header-cart-data{display:none!important}
.eld-minicart[hidden]{display:none!important}
.eld-minicart-panel{position:fixed;top:80px;right:16px;z-index:100000;width:380px;max-width:calc(100vw - 16px);max-height:80vh;overflow-y:auto;box-sizing:border-box;background:#fff;border:1px solid #E5E7EB;border-radius:12px;box-shadow:0 12px 32px rgba(15,23,42,.18);padding:14px 18px 18px;text-align:left}
.eld-minicart-panel:focus{outline:none}
.eld-minicart-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid #eee}
.eld-minicart-title{font-weight:700;font-size:16px;color:#222}
.eld-minicart-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid #f0f0f0}
.eld-minicart-img{width:56px;height:56px;flex:0 0 56px;border-radius:8px;object-fit:cover;background:#f0f0f0;display:block}
.eld-minicart-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.eld-minicart-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.eld-minicart-name{font-weight:600;font-size:14px;line-height:1.35;color:#222}
.eld-minicart-sub{font-size:12px;color:#64748B}
.eld-minicart-line{display:flex;align-items:center;justify-content:space-between;gap:10px}
.eld-minicart-price{font-weight:700;font-size:14px;color:#222;white-space:nowrap}
.eld-minicart-qty1{font-size:13px;color:#64748B}
.eld-minicart-join{display:flex;align-items:flex-start;gap:8px;font-size:13px;font-weight:600;color:#333;cursor:pointer;line-height:1.35}
.eld-minicart-join input{width:16px;height:16px;margin:1px 0 0;flex:0 0 auto;accent-color:var(--eld-primary)}
.eld-minicart-join-sub{display:block;font-weight:400;font-size:12px;color:#64748B;margin-top:1px}
.eld-minicart-empty{color:#64748B;margin:14px 0 4px}
.eld-minicart-err{background:#FEE2E2;color:#B91C1C;border-radius:8px;padding:10px 12px;font-size:13px;margin:12px 0 0}
.eld-minicart-err p{margin:0}
.eld-minicart-err p+p{margin-top:4px}
.eld-minicart-foot{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.eld-minicart-busy{opacity:.55;pointer-events:none;transition:opacity .15s}
.eld-minicart-go{display:block;text-align:center;background:var(--eld-primary);color:#fff!important;padding:12px 16px;border-radius:24px;font-weight:700;font-size:15px;text-decoration:none}
.eld-minicart-go:hover{background:var(--eld-primary-dark);color:#fff!important}
/* The theme styles every <button> and its :hover globally (white text, pill border) — pin ours down. */
.eld-minicart .eld-minicart-x,.eld-minicart .eld-minicart-x:hover,.eld-minicart .eld-minicart-x:focus{background:none!important;border:0!important;box-shadow:none!important;padding:0 4px!important;margin:0;font-size:26px;line-height:1;color:#64748B!important;cursor:pointer}
.eld-minicart .eld-minicart-rm,.eld-minicart .eld-minicart-rm:focus{flex:0 0 auto;background:none!important;border:0!important;box-shadow:none!important;padding:2px!important;margin:0;line-height:0;color:#94A3B8!important;cursor:pointer}
.eld-minicart .eld-minicart-rm:hover{background:none!important;color:#DC2626!important}
.eld-minicart .eld-minicart-close,.eld-minicart .eld-minicart-close:focus{display:block;width:100%;margin:0;background:#fff!important;border:1px solid var(--eld-primary)!important;border-radius:24px!important;box-shadow:none!important;padding:11px 16px!important;color:var(--eld-primary)!important;font-weight:700;font-size:15px;cursor:pointer}
.eld-minicart .eld-minicart-close:hover{background:var(--eld-primary-soft)!important;color:var(--eld-primary)!important}
@media(max-width:600px){.eld-minicart-panel{left:8px;right:8px;width:auto;max-width:none}}
/* Seat stepper (mini-cart rows + course-page buy box) */
.eld-qty{display:inline-flex;align-items:stretch;border:1px solid #ccc;border-radius:8px;overflow:hidden;background:#fff}
.eld-qty .eld-qty-dec,.eld-qty .eld-qty-inc,.eld-qty .eld-qty-dec:focus,.eld-qty .eld-qty-inc:focus{width:34px;min-width:0;height:34px;margin:0;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:#fff!important;color:#333!important;font-size:18px;line-height:1;cursor:pointer}
.eld-qty .eld-qty-dec:hover,.eld-qty .eld-qty-inc:hover{background:#F3F4F6!important;color:#333!important;border:0!important;box-shadow:none!important}
.eld-qty .eld-qty-n{width:46px;height:34px;margin:0;padding:0!important;border:0!important;border-left:1px solid #eee!important;border-right:1px solid #eee!important;border-radius:0!important;box-shadow:none!important;background:#fff;color:#222;font-size:15px;text-align:center;-moz-appearance:textfield;appearance:textfield}
.eld-qty .eld-qty-n::-webkit-outer-spin-button,.eld-qty .eld-qty-n::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.eld-card-extrow{margin:-6px 0 12px;text-align:right}
.eld-card-extrow .eld-ext-open{font-size:13px;font-weight:600;color:var(--eld-primary);text-decoration:none}
.eld-card-extrow .eld-ext-open:hover{text-decoration:underline}
.eld-ext-modal .eld-modal-box{max-width:420px}
.eld-ext-sub{color:#666;font-size:14px;margin:0 0 14px}
.eld-ext-opts{display:flex;flex-direction:column;gap:10px}
.eld-ext-opt{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border:1px solid #e3e3e3;border-radius:10px;text-decoration:none;color:#333;font-weight:600}
.eld-ext-opt:hover{border-color:var(--eld-primary);color:var(--eld-primary)}
.eld-ext-price{color:var(--eld-primary);font-weight:700}
.eld-cbuy-ext{margin-top:12px;font-size:14px;color:#555;line-height:1.5}
.eld-cbuy-ext a{color:var(--eld-primary);font-weight:600;text-decoration:none}
.eld-cbuy-ext a:hover{text-decoration:underline}
.eld-orders-wrap{overflow-x:auto}
.eld-orders{width:100%;border-collapse:collapse;background:#fff;border:1px solid #e3e3e3;border-radius:12px;overflow:hidden}
.eld-orders th,.eld-orders td{text-align:left;padding:12px 16px;border-bottom:1px solid #f0f0f0;font-size:14px;white-space:nowrap}
.eld-orders th{background:#fafafa;font-size:13px;color:#666;font-weight:600}
.eld-orders tbody tr:last-child td{border-bottom:none}
.eld-orders tbody tr:hover{background:#fafafa}
.eld-ostatus{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:600;background:#eef0f7;color:#556}
.eld-ostatus-completed{background:#DCFCE7;color:#15803D}
.eld-ostatus-processing{background:#FEF3C7;color:#B45309}
.eld-ostatus-on-hold,.eld-ostatus-pending,.eld-ostatus-failed,.eld-ostatus-cancelled{background:#FEE2E2;color:#B91C1C}
.eld-obtn{display:inline-block;background:var(--eld-primary);color:#fff;padding:6px 14px;border-radius:16px;text-decoration:none;font-size:13px;font-weight:600}
.eld-obtn:hover{background:var(--eld-primary-dark);color:#fff}
.eld-btn:hover{background:var(--eld-primary-dark);color:#fff}
.eld-form-section{font-weight:700;font-size:15px;color:#222;margin-top:8px;padding-top:16px;border-top:1px solid #eee}
.eld-form-row{display:flex;gap:14px}
.eld-form-row label{flex:1}
.eld-form select{padding:10px 12px;border:1px solid #ccc;border-radius:8px;font-size:14px;background:#fff}
.eld-form select:focus{outline:none;border-color:var(--eld-primary)}
/* ===== Group panel (LD-GR group dashboard) — restyled to fit our dashboard ===== */
.eld-co{margin-bottom:24px}
.eld-co-h{font-size:18px;margin:0 0 14px}
.eld-co-grp{background:#fff;border:1px solid #e3e3e3;border-radius:12px;margin-bottom:16px;overflow:hidden}
.eld-co-ghead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 18px;background:#FAF7F2;border-bottom:1px solid #eee}
.eld-co-gname{font-weight:700;font-size:15px}
.eld-co-seats{font-size:13px;color:#64748B}
.eld-co-row{display:flex;align-items:center;gap:16px;padding:12px 18px;border-bottom:1px solid #f0f0f0}
.eld-co-row:last-child{border-bottom:0}
.eld-co-user{flex:0 0 190px;min-width:0;display:flex;flex-direction:column}
.eld-co-uname{font-weight:600;font-size:14px;word-break:break-word}
.eld-co-umail{font-size:12px;color:#64748B;word-break:break-word}
.eld-co-prog{flex:1 1 auto;display:flex;flex-direction:column;gap:8px;min-width:0}
.eld-co-course{display:flex;align-items:center;gap:10px}
.eld-co-cname{flex:0 0 150px;font-size:13px;color:#555;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eld-co-prog .eld-progress{flex:1 1 auto;margin:0}
.eld-co-pct{flex:0 0 auto;font-size:12px;color:#666;font-weight:600;min-width:34px;text-align:right}
.eld-co-cert{flex:0 0 auto;font-size:12px;font-weight:600;color:var(--eld-primary);white-space:nowrap;text-decoration:none}
.eld-co-cert:hover{text-decoration:underline}
.eld-co-st{flex:0 0 auto}
.eld-co-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}
.eld-co-done{background:#DCFCE7;color:#15803D}
.eld-co-ong{background:var(--eld-primary-soft);color:var(--eld-primary-dark)}
.eld-co-empty{padding:14px 18px;color:#64748B;font-size:14px}
@media(max-width:600px){.eld-co-row{flex-direction:column;align-items:flex-start;gap:10px}.eld-co-user{flex-basis:auto}.eld-co-cname{flex-basis:110px}}
.eld-grp-panel{background:#fff;border:1px solid #e3e3e3;border-radius:12px;padding:24px}
/* Brand color: the plugin's own blue -> Kravakademin brand blue */
.eld-grp-panel .ldgr-bg-color{background-color:var(--eld-primary)!important;border-color:var(--eld-primary)!important}
.eld-grp-panel .ldgr-color,.eld-grp-panel .ldgr-color i,.eld-grp-panel .ldgr-edit-group,.eld-grp-panel .ldgr-edit-group i,.eld-grp-panel .dlcsv-txt,.eld-grp-panel .ldgr-amu{color:var(--eld-primary)!important}
/* Buttons */
.eld-grp-panel .ldgr-btn,.eld-grp-panel .enroll-new-user{border-radius:20px!important;padding:10px 20px!important;font-weight:600!important;cursor:pointer;display:inline-block;box-shadow:none!important}
.eld-grp-panel .enroll-new-user.ldgr-bg-color{color:#fff!important}
.eld-grp-panel .ldgr-btn:not(.ldgr-bg-color),.eld-grp-panel input#bulk_remove{background:#fff!important;border:1px solid #ccc!important;color:#333!important;border-radius:20px!important;padding:9px 18px!important;font-weight:600;cursor:pointer}
.eld-grp-panel input#bulk_remove:hover,.eld-grp-panel .ldgr-btn:not(.ldgr-bg-color):hover{border-color:var(--eld-primary)!important;color:var(--eld-primary)!important}
/* Top banner */
.eld-grp-panel .ldgr-top-banner{background:var(--eld-primary-soft)!important;border-radius:12px;padding:20px;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
/* 1.14.7: LD-GR 4.3.17 styles these two with stronger selectors (ldgr-dashboard.css: 3 classes + h1 / 4 classes, loaded after
   this sheet) -> the title stayed 32px on a 26px line height and long group names overlapped (Jasko 2026-11-23). One more level
   wins. margin-left 0 on both: the flex gap below already separates the image, and on phones LD-GR's 15px pushed the centred text right. */
.eld-grp-panel .ldgr-top-banner .ldgrs-title-wrap .ldgr-gr-title-info h1{font-size:22px;line-height:1.3;margin:0 0 8px}
.eld-grp-panel .ldgr-top-banner .ldgrs-title-wrap .ldgr-gr-title-info .ldgr-u-left{margin:0;font-size:14px;line-height:1.4;color:#666}
.eld-grp-panel .ldgrs-title-wrap>div{display:flex;align-items:center;gap:16px}
/* Default group image (replace no_image.png placeholder with a users icon) */
.eld-grp-panel .ldgr-group-image img[src*="no_image"]{display:none!important}
.eld-grp-panel .ldgr-top-banner .ldgr-group-image{width:110px;height:110px;flex:0 0 110px;border-radius:12px;border:1px solid #E5E7EB;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5EEA' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E") center/52% no-repeat}
/* Tabs (Enrolled Users / Report) */
.eld-grp-panel .tabs{list-style:none;display:flex;gap:8px;padding:0;border-bottom:1px solid #eee;margin:0 0 16px}
.eld-grp-panel .tabs .tab-link a{color:#666!important;text-decoration:none;padding:10px 4px;display:inline-block}
.eld-grp-panel .tabs .tab-link.current a{color:var(--eld-primary)!important}
.eld-grp-panel .tabs .tab-link.current{border-bottom:2px solid var(--eld-primary)!important}
/* Tables (user list + report) */
.eld-grp-panel .dataTables_wrapper{overflow-x:visible}
.eld-grp-panel table.dataTable{width:100%!important;border-collapse:collapse;margin:8px 0}
.eld-grp-panel table.dataTable th,.eld-grp-panel table.dataTable td{padding:12px 14px!important;border-bottom:1px solid #f0f0f0!important;font-size:14px;text-align:left;vertical-align:middle}
.eld-grp-panel table.dataTable thead th{background:#fafafa;color:#666;font-weight:600}
.eld-grp-panel table.dataTable td p,.eld-grp-panel table.dataTable td span{margin:0}
.eld-grp-panel table.dataTable td.email,.eld-grp-panel table.dataTable td[data-title="Email"],.eld-grp-panel table.dataTable td[data-title="Email Id"]{word-break:break-word}
/* Search + length/select inputs */
.eld-grp-panel .dataTables_length select,.eld-grp-panel .wdm-select-wrapper select{padding:8px 12px!important;border:1px solid #ccc!important;border-radius:8px!important;font-size:14px}
.eld-grp-panel .dataTables_filter input{padding:9px 14px 9px 38px!important;border:1px solid #ccc!important;border-radius:8px!important;font-size:14px}
.eld-grp-panel .dataTables_filter input:focus,.eld-grp-panel .wdm-select-wrapper select:focus{outline:none;border-color:var(--eld-primary)!important}
/* Report: Select Kurs + Show Report row */
.eld-grp-panel .wdm-select-wrapper{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.eld-grp-panel .wdm-select-wrapper h6{margin:0;font-size:13px;color:#666}
.eld-grp-panel #wdm_ldgr_show_report{width:auto!important;height:auto!important;white-space:nowrap;line-height:1.2!important;color:#fff!important;border:none!important;border-radius:20px!important;padding:11px 22px!important;font-weight:600;cursor:pointer}
/* Report: progress cell */
.eld-grp-panel .ldgr-group-report-item{height:8px;background:#eee;border-radius:6px;overflow:hidden;margin-bottom:6px;width:100%;max-width:180px}
.eld-grp-panel .ldgr-course-progress-bar{height:100%!important;background:var(--eld-primary)!important;border-radius:6px;min-width:0}
.eld-grp-panel .ldgr-course-lesson-progress{font-size:13px;color:#666;display:block}
/* Action buttons */
.eld-grp-panel td.ldgr-actions{white-space:nowrap;text-align:right}
.eld-grp-panel .wdm-reinvite.button{background:var(--eld-primary)!important;border:1px solid var(--eld-primary)!important;color:#fff!important;border-radius:16px!important;box-shadow:none!important;padding:7px 16px!important}
.eld-grp-panel .wdm_remove.button{background:#fff!important;border:1px solid #FECACA!important;color:#DC2626!important;border-radius:16px!important;box-shadow:none!important;padding:7px 16px!important;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;line-height:1}
.eld-grp-panel .wdm_remove.button:hover{background:#DC2626!important;border-color:#DC2626!important;color:#fff!important}
.eld-grp-panel .wdm_remove.button:hover::before,.eld-grp-panel .wdm_remove.button:hover i{color:#fff!important}
/* Stop action buttons from shifting on row/button hover (kill theme transform/lift) */
.eld-grp-panel .ldgr-actions .button,.eld-grp-panel .ldgr-actions .button:hover{transform:none!important;box-shadow:none!important;top:auto!important;vertical-align:middle}
.eld-grp-panel .wdm-reinvite.button:hover{background:var(--eld-primary-dark)!important;border-color:var(--eld-primary-dark)!important;color:#fff!important}
/* Pagination */
.eld-grp-panel .paginate_button{border-radius:6px!important;margin:0 2px}
.eld-grp-panel .paginate_button.current{background:var(--eld-primary)!important;border-color:var(--eld-primary)!important;color:#fff!important}
/* Enroll popup brand bits */
.eld-grp-panel .ldgr-tabs .current,.eld-grp-panel .ldgr-plus i{color:var(--eld-primary)!important}
/* The active tab's underline is the plugin's own blue and is set via border-bottom-color, not color */
.eld-grp-panel .ldgr-add-users.current,.eld-grp-panel .wdm-for-desktop,.eld-grp-panel .wdm-for-mobile{border-bottom-color:var(--eld-primary)!important}
/* ===== Report tab: controls above (full width) + table -> cards (like dashboard course cards) ===== */
.eld-grp-panel #wdm_ldgr_group_report_wrapper>div{float:none!important;clear:both;width:auto!important}
.eld-grp-panel #wdm_ldgr_group_report_wrapper>.dataTables_length{margin-bottom:14px}
.eld-grp-panel #wdm_ldgr_group_report,.eld-grp-panel #wdm_ldgr_group_report tbody{display:block;width:100%!important}
.eld-grp-panel #wdm_ldgr_group_report thead{display:none}
.eld-grp-panel #wdm_ldgr_group_report,.eld-grp-panel #wdm_ldgr_group_report_wrapper .wdm-table-container{border:none!important;background:transparent!important}
.eld-grp-panel #wdm_ldgr_group_report tbody tr{display:block;background:#fff;border:1px solid var(--eld-primary)!important;border-radius:12px;padding:6px 16px;margin-bottom:12px;transition:border-color .15s,background .15s}
.eld-grp-panel #wdm_ldgr_group_report tbody tr:hover{border-color:var(--eld-primary-dark)!important;background:var(--eld-primary-soft)}
.eld-grp-panel #wdm_ldgr_group_report tbody td{display:flex;align-items:center;gap:16px;border:none!important;border-bottom:1px solid #f3f3f3!important;padding:10px 0!important}
.eld-grp-panel #wdm_ldgr_group_report tbody tr td:last-child{border-bottom:none!important}
.eld-grp-panel #wdm_ldgr_group_report tbody td.details-control{display:none}
.eld-grp-panel #wdm_ldgr_group_report tbody td::before{content:attr(data-title);font-weight:600;color:#64748B;font-size:13px;flex:0 0 25%;text-align:left;border-right:1px solid #eee;padding-right:16px}
.eld-grp-panel #wdm_ldgr_group_report tbody td>span{text-align:left;word-break:break-word;min-width:0;flex:1}
.eld-grp-panel #wdm_ldgr_group_report .ldgr-group-report-item{margin:0 0 6px 0;max-width:160px}
.eld-grp-panel #wdm_ldgr_group_report .ldgr-course-lesson-progress{text-align:left;display:block}
/* Uniform value font across report cards (name/email/progress same family/size/weight) */
.eld-grp-panel #wdm_ldgr_group_report tbody td>span,.eld-grp-panel #wdm_ldgr_group_report tbody td>span *,.eld-grp-panel #wdm_ldgr_group_report .ldgr-course-lesson-progress{font-family:inherit!important;font-size:14px!important;font-weight:400!important;color:#333!important}
/* Report "Show [n] entries" -> "Visa rader [n]" (our own injected label — keep it Swedish) */
.eld-grp-panel #wdm_ldgr_group_report_length label{font-size:0}
.eld-grp-panel #wdm_ldgr_group_report_length label::before{content:"Visa rader ";font-size:14px;color:#666}
.eld-grp-panel #wdm_ldgr_group_report_length select{font-size:13px!important;padding:5px 8px!important}
/* Group panel on phones: LDGR floats its controls (enroll button right, length/filter split),
   which scatters them into a ragged column — stack everything full-width and left-aligned. */
@media(max-width:640px){
	.eld-grp-panel{padding:16px}
	/* Group banner: one centered column — image / name / seats / edit link / back button. */
	.eld-grp-panel .ldgr-top-banner{flex-direction:column;align-items:center;text-align:center}
	.eld-grp-panel .ldgrs-title-wrap>div{flex-direction:column;align-items:center}
	.eld-grp-panel .ldgr-top-banner>div:last-child{display:flex;flex-direction:column;align-items:center;gap:10px;width:100%}
	/* Groups list: LDGR's fixed desktop widths overflow the card (search field and row
	   separators bled past the screen) — constrain everything to the container. */
	.eld-grp-panel .ldgr-search-groups{width:100%;box-sizing:border-box}
	.eld-grp-panel input.ldgr-search{width:100%!important;max-width:100%;box-sizing:border-box}
	.eld-grp-panel .ldgr-group-listing,.eld-grp-panel .ldgr-group-items,.eld-grp-panel .ldgr-group-item{width:100%!important;max-width:100%!important;box-sizing:border-box;overflow:hidden}
	/* Row: name and seat count were glued on one line — stack them. */
	.eld-grp-panel .ldgr-main-group-content{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
	.eld-grp-panel .ldgr-main-group-content .gr-title{margin:0;font-size:17px}
	.eld-grp-panel .ldgr-main-group-content .gr-left{color:#64748B;font-size:13px}
	/* No display override here: LDGR renders desktop+mobile button variants and hides one itself —
	   forcing display:block un-hides the duplicate. */
	.eld-grp-panel .enroll-new-user{width:100%;box-sizing:border-box;text-align:center;margin:4px 0 10px!important;float:none!important}
	.eld-grp-panel .dataTables_length,.eld-grp-panel .dataTables_filter{float:none!important;text-align:left;margin:6px 0}
	.eld-grp-panel .dataTables_filter input{width:100%;box-sizing:border-box}
	.eld-grp-panel input#bulk_remove{width:100%;box-sizing:border-box;margin:6px 0 10px!important;float:none!important}
}
/* Footer on phones: center everything (logo, tagline, link lists, USP) — Jasko 07-12. Scoped to
   the footer wrapper of Header Footer Elementor (.footer-width-fixer: exactly one per page, holding only the footer
   template — measured on 8 pages on staging and production 2026-11-27), so nothing else is touched. 1.14.9: was the
   template's own class .elementor-24787 = a staging post ID; every import gives the footer a new ID (production 2424). */
@media(max-width:767px){
	.footer-width-fixer .elementor-column{text-align:center}
	.footer-width-fixer .elementor-icon-list-item,.footer-width-fixer .elementor-icon-list-item>a{justify-content:center}
	.footer-width-fixer .elementor-widget-image .elementor-widget-container{text-align:center}
}
/* ===== WC login/register form (logged-out account page) ===== */
/* Container padding so the delegated WC form/endpoints aren't cramped against the header/footer. */
.eld-wc-account{max-width:1280px;margin:32px auto 64px;padding:0 16px}
/* On our delegated endpoint pages, hide WC account-nav items that duplicate the dashboard's Konto tab
   (Adresser/Kontouppgifter/VAT) + the empty Downloads. Keep Adminpanel (back), Beställningar, Logga ut.
   Scoped to .eld-wc-account so the EN WooCommerce account page is unaffected. */
.eld-wc-account .woocommerce-MyAccount-navigation-link--edit-address,
.eld-wc-account .woocommerce-MyAccount-navigation-link--edit-account,
.eld-wc-account .woocommerce-MyAccount-navigation-link--vat-number,
.eld-wc-account .woocommerce-MyAccount-navigation-link--downloads{display:none!important}
/* The theme renders the WC show/hide-password toggle as an empty orange pill; restyle it as the
   standard small eye icon inside the password field. Icon reflects state: slashed eye = password
   hidden (default), open eye = password shown. */
.woocommerce .password-input{position:relative;display:block}
.woocommerce .password-input input{padding-right:40px!important}
.show-password-input{position:absolute!important;right:10px;top:50%;transform:translateY(-50%);width:22px!important;height:22px!important;min-width:0!important;margin:0!important;padding:0!important;border:none!important;box-shadow:none!important;cursor:pointer;font-size:0!important;opacity:.55;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E") no-repeat center/18px!important}
.show-password-input:hover{opacity:.9}
.show-password-input.eld-pw-shown{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important}
/* Login form: put "remember me" + "forgot password?" on one row, then the submit below with space. */
.woocommerce form.woocommerce-form-login{display:flex;flex-wrap:wrap}
.woocommerce form.woocommerce-form-login>p.form-row{flex:0 0 100%}
.woocommerce form.woocommerce-form-login>p.form-row:has(.woocommerce-form-login__submit){display:contents}
.woocommerce form.woocommerce-form-login .woocommerce-form-login__rememberme{order:10;flex:1 1 auto;margin:0;display:inline-flex;align-items:center;gap:6px}
.woocommerce form.woocommerce-form-login .woocommerce-LostPassword{order:11;flex:0 0 auto;margin:0 0 0 auto;padding:0}
.woocommerce form.woocommerce-form-login .woocommerce-form-login__submit{order:12;flex:0 0 100%;margin-top:18px}
/* Post-purchase confirmation banner (?eld_purchase=<order_id>) + new-course highlight */
.eld-purchase-banner{background:#DCFCE7;color:#15803D;padding:14px 18px;border-radius:10px;margin-bottom:20px;font-weight:600}
.eld-card.eld-new{background:var(--eld-primary-soft);border-radius:10px}
/* ===== Course landing (K1 hero + K2 buy box) — active only when our wrapper renders ===== */
.single-sfwd-courses:has(.eld-cwrap) .post-thumb-img-content{display:none}
.eld-cwrap .ld-course-status,.single-sfwd-courses:has(.eld-cwrap) .ld-course-status{display:none!important}
.eld-chero{margin:6px 0 20px}
.eld-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.eld-chip{background:#FAF7F2;border:1px solid #eee;border-radius:16px;padding:6px 14px;font-size:13px;font-weight:600;color:#444}
.eld-chip-price{background:var(--eld-primary-soft);border-color:var(--eld-primary);color:var(--eld-primary)}
.eld-chero-cta{display:flex;gap:12px;flex-wrap:wrap}
.eld-paywall-note{background:var(--eld-primary-soft);border:1px solid var(--eld-primary);color:#0F172A;border-radius:10px;padding:12px 16px;font-weight:600;margin-bottom:14px;max-width:640px}
.eld-paywall-note[hidden]{display:none!important}
/* Free-sample bar shown at the top of lesson/topic content for users without course access */
.eld-trybar{background:var(--eld-primary-soft);border:1px solid var(--eld-primary);border-radius:10px;padding:12px 16px;font-weight:600;color:#0F172A;margin:0 0 18px}
.eld-trybar a{color:var(--eld-primary);font-weight:700;text-decoration:none}
.eld-trybar a:hover{text-decoration:underline}
/* Upgrade (paywall) modal on sample lessons */
.eld-lockmodal .eld-modal-box{max-width:440px;text-align:center}
.eld-lockmodal h3{margin:0 0 10px;font-size:22px}
/* 1.11.0: "Lås upp hela kursen" is a <p> (Vedran V§4.2) — same look Astra gave the h3 (measured on krav 2026-10-06: Manrope 22px /
   600 / 1.4 / #111827, margin 0 0 10px; centered by the box). The expired-owner variant keeps its h3 and the rule above. */
.eld-lockmodal .eld-lockmodal-title{margin:0 0 10px;font-family:'Manrope',sans-serif;font-size:22px;font-weight:600;line-height:1.4;color:#111827}
.eld-lockmodal-txt{color:#555;line-height:1.6;margin:0 0 14px}
.eld-lockmodal-price{font-size:26px;font-weight:800;color:#222;margin:0 0 16px}
.eld-lockmodal .eld-cbtn{display:block;margin:0 0 12px}
.eld-lockmodal-skip{display:block;color:#64748B;font-size:14px;cursor:pointer;text-decoration:underline}
.eld-cbtn{background:var(--eld-primary);color:#fff!important;padding:12px 26px;border-radius:24px;font-weight:700;font-size:16px;text-decoration:none;display:inline-block}
.eld-cbtn:hover{background:var(--eld-primary-dark);color:#fff!important}
.eld-cbtn-ghost{background:#fff;border:1px solid var(--eld-primary);color:var(--eld-primary)!important;padding:11px 24px;border-radius:24px;font-weight:700;font-size:16px;text-decoration:none;display:inline-block}
.eld-cbtn-ghost:hover{background:var(--eld-primary-soft)}
.eld-cwrap{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:start}
.eld-cmain{min-width:0}
.eld-cbuy{position:sticky;top:90px;background:#fff;border:1px solid #e3e3e3;border-radius:12px;padding:22px}
.eld-cbuy-price{font-size:28px;font-weight:800;color:#222;margin-bottom:12px}
.eld-cbuy-list{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:8px}
.eld-cbuy-list li{font-size:15px;color:#444;padding-left:24px;position:relative}
.eld-cbuy-list li::before{content:"\2713";position:absolute;left:0;color:var(--eld-primary);font-weight:800}
.eld-cbuy-cta{display:block;text-align:center;margin-bottom:10px}
.eld-cbuy-try{display:block;text-align:center}
/* Both buy-box buttons equal width (Jasko 08-04): the ghost "Testa" spans like "Boka kursen". */
.eld-cbuy-try .eld-cbtn-ghost{display:block}
/* Buy box: seats above "Lägg i varukorgen" (1 = individual, 2+ = group purchase) — core 1.10.0 */
.eld-bb-qty{margin:0 0 14px}
.eld-bb-qty-lbl{display:block;font-size:14px;font-weight:600;color:#333;margin:0 0 6px}
.eld-bb-qty-hint{font-size:13px;color:#64748B;line-height:1.45;margin:8px 0 0}
.eld-bb-qty[hidden],.eld-bb-qty-hint[hidden]{display:none!important}
.eld-cbuy-cta.added{background:#15803D}
.eld-cbuy-cta.added:hover{background:#166534}
.eld-cbuy-cta.loading{opacity:.7;pointer-events:none}
/* 1.15.6 (Odluke O9): "Börja gratis" of a free course is a form button for a logged-in visitor (POST = enrol) - same look as the link
   buttons; Astra's button rules (border, line height, focus/hover colour) are reset here. */
.eld-free-form{margin:0}
button.eld-cbtn{border:0;font-family:inherit;line-height:inherit;text-transform:none;letter-spacing:normal;cursor:pointer}
button.eld-cbtn:focus{background:var(--eld-primary);color:#fff!important}
button.eld-cbtn:hover{background:var(--eld-primary-dark);color:#fff!important}
.eld-cbuy button.eld-cbuy-cta,.eld-lockmodal button.eld-cbtn{width:100%}
/* ===== 1.15.0 (Anđela's SEO/CRO check 2026-12-01, Odluke G87-G90) ===== */
/* One H1 on course pages: Astra's title becomes <p class="entry-title"> when the course text has its own H1. Measured on
   production 2026-12-02 (1029 / 900 / 390 px): the <p> keeps size, weight, line height and margins from Astra's class rules and
   differs only in font family and colour (Astra sets those on the h1 tag); with this rule 0 differences at all three widths. */
.single-sfwd-courses p.entry-title{font-family:'Manrope',sans-serif;color:#111827}
/* APV 1.1 price emphasis (no claim text until Adis approves one). */
.eld-cbuy-price.eld-cbuy-price--hl{color:var(--eld-primary)}
/* Price match + satisfaction guarantee (texts as on /om-oss/ and the home page) and the Skillbrick line, under the buttons. */
.eld-cbuy-trust{list-style:none;margin:16px 0 0;padding:14px 0 0;border-top:1px solid #eee;display:flex;flex-direction:column;gap:10px}
.eld-cbuy-trust li{font-size:13px;color:#555;line-height:1.5;margin:0}
.eld-cbuy-trust strong{display:block;font-size:14px;color:#222;margin-bottom:2px}
.eld-cbuy-skb{font-size:13px;color:#64748B;line-height:1.5;margin:12px 0 0}
.eld-cbuy-skb strong{display:block;font-size:14px;color:#222;margin-bottom:2px}
/* "Du har för närvarande inte tillgång …" once, under the course content, with the buy button. */
.eld-locknote{margin:20px 0 0;padding:16px 18px;background:var(--eld-primary-soft);border:1px solid var(--eld-primary);border-radius:10px;text-align:center}
.eld-cmain .eld-locknote .eld-locknote-txt{margin:0 0 12px;font-size:16px;font-weight:600;line-height:1.5;color:#0F172A}
.eld-locknote .eld-cbuy-cta{display:inline-block;margin:0}
/* Testimonial on course pages: no photo, initial badge, no review markup. */
.eld-ctesti{margin:36px 0 0;padding:20px 22px;background:#FAF7F2;border-radius:12px}
.eld-cmain .eld-ctesti blockquote{margin:0 0 12px;padding:0;border:0;font-size:18px;font-style:italic;line-height:1.6;color:#222;background:none}
.eld-cmain .eld-ctesti blockquote p{margin:0;font-size:inherit;line-height:inherit}
.eld-ctesti figcaption{display:flex;align-items:center;gap:10px;font-weight:600;font-size:15px;color:#333}
.eld-ctesti-ini{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;flex:0 0 36px;border-radius:50%;background:var(--eld-primary);color:#fff;font-weight:700;font-style:normal}
/* Owner view: progress in the side box; hide LD's own big progress bar (replaced by ours) */
.eld-cbuy-pct{margin-bottom:14px}
.eld-cbuy-pct .eld-pct{margin-top:6px}
.eld-cwrap-own .ld-progress{display:none!important}
/* ===== K3: course content sections polish (scoped to restyled course pages) ===== */
.eld-cmain h2{font-size:26px;margin:36px 0 16px;padding-bottom:10px;border-bottom:1px solid #eee;position:relative}
.eld-cmain h2::after{content:"";position:absolute;left:0;bottom:-1px;width:56px;height:3px;background:var(--eld-primary);border-radius:2px}
.eld-cmain h2:empty,.eld-cmain h3:empty,.eld-cmain h4:empty{display:none}
/* Dead "Se kursinnehåll" toggle buttons in bundle content (legacy bundle_click script is broken) */
.eld-cmain .bundle_click{display:none!important}
.eld-cmain h3,.eld-cmain h4{margin:24px 0 10px}
.eld-cmain p{line-height:1.7}
/* Reading size on course pages (Adis review 2026-09-10 #1): K-utbildning sets its course prose at
   18px over a 16px base (measured: html 16px, description 1.125rem, back to 1rem under 992px) —
   same here, scoped to the restyled course content only; h3 lifted so it stays above body text. */
.eld-cmain p,.eld-cmain ul:not([class])>li,.eld-cmain ul.wp-block-list>li,.eld-cmain ol>li{font-size:18px}
.eld-cmain h3{font-size:22px}
@media(max-width:991px){.eld-cmain p,.eld-cmain ul:not([class])>li,.eld-cmain ul.wp-block-list>li,.eld-cmain ol>li{font-size:16px}}
/* Plain content lists (classless or Gutenberg .wp-block-list) -> brand check list; LD/Elementor lists keep their own styling */
.eld-cmain ul:not([class]),.eld-cmain ul.wp-block-list:not(.eld-steps){list-style:none;padding-left:0;margin:0 0 18px}
.eld-cmain ul:not([class])>li,.eld-cmain ul.wp-block-list:not(.eld-steps)>li{position:relative;padding-left:28px;margin-bottom:8px;line-height:1.6}
.eld-cmain ul:not([class])>li::before,.eld-cmain ul.wp-block-list:not(.eld-steps)>li::before{content:"\2713";position:absolute;left:0;top:0;color:var(--eld-primary);font-weight:800}
/* "Tre enkla steg" -> numbered circle steps (list gets .eld-steps from JS) */
.eld-cmain ul.eld-steps{list-style:none;padding-left:0;margin:0 0 22px;counter-reset:eldstep}
.eld-cmain ul.eld-steps>li{position:relative;counter-increment:eldstep;padding-left:44px;margin-bottom:14px;line-height:1.6}
.eld-cmain ul.eld-steps>li::before{content:counter(eldstep);position:absolute;left:0;top:-2px;width:28px;height:28px;border-radius:50%;background:var(--eld-primary);color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:14px}
@media(max-width:980px){.eld-cwrap{display:flex;flex-direction:column}.eld-cbuy{position:static;order:-1;width:100%}}
/* Wider reading column on restyled course pages (Adis review 2026-09-10 #10). Measured on the
   1240px container: Astra's separate-container single layout spends 40px (#primary) + 6.67em
   (article) per side, leaving ~600px of text beside the 320px buy box. Trim both, desktop only
   (Astra already shrinks the article padding under 921px). Scoped to pages with our wrapper;
   specificity beats Astra's `.ast-separate-container.ast-single-post #primary` without !important. */
.single-sfwd-courses.ast-single-post:has(.eld-cwrap) #primary{padding-left:0;padding-right:0}
@media(min-width:922px){.single-sfwd-courses.ast-separate-container:has(.eld-cwrap) .ast-article-single{padding-left:2.5em;padding-right:2.5em}}
/* ===== Course catalogue ([eld_course_catalog] on the Utbildningar page) ===== */
.eld-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:8px 0 24px}
@media(max-width:1024px){.eld-cat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.eld-cat-grid{grid-template-columns:1fr}}
.eld-cat-card{background:#fff;border:1px solid #e3e3e3;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .15s,border-color .15s}
.eld-cat-card:hover{box-shadow:0 4px 18px rgba(0,0,0,.08);border-color:var(--eld-primary)}
.eld-cat-thumb{display:block;aspect-ratio:16/9;background:#f0f0f0}
.eld-cat-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.eld-cat-body{padding:16px 18px 18px;display:flex;flex-direction:column;gap:10px;flex:1}
/* 1.11.0: the card title is an <h3> wrapping the link (Vedran V§2.3). Astra styles headings by TAG (h3 = Manrope / 1.25rem / 600 /
   1.4 / #111827 + margins), so these rules pin the look the bare <a> had (measured on krav 2026-10-06: Inter 18px / 700 / 1.3 /
   #222 / margin 0), and the hover colour moves to the link. (0,2,0) beats Astra's `.entry-content h3` (0,1,1). */
.eld-cat-card .eld-cat-title{margin:0;font-family:inherit;font-size:18px;font-weight:700;line-height:1.3;color:#222;letter-spacing:normal;text-transform:none}
.eld-cat-card .eld-cat-title a{color:inherit;text-decoration:none}
.eld-cat-card .eld-cat-title a:hover{color:var(--eld-primary)}
.eld-cat-desc{font-size:15px;color:#555;line-height:1.5;flex:1}
.eld-cat-meta{display:flex;align-items:center;gap:12px;margin-top:4px}
.eld-cat-meta .eld-mc-price{font-size:16px;margin-right:auto}
/* 1.11.0 (CRO#2): prices are ex VAT — "N kr exkl. moms" in the cards and the course buy box (eld_exvat_html(); never on "Gratis").
   1.11.1: the gap is a real space in the HTML (text reads "499 kr exkl. moms"), no margin. */
.eld-exvat{font-size:13px;font-weight:500;color:#64748B;white-space:nowrap}
.eld-cbuy-price .eld-exvat{font-size:15px}
.eld-cat-meta .added_to_cart{display:none!important}
.eld-cat-own{color:#15803D;font-weight:700;font-size:14px;margin-right:auto}
/* Catalogue search bar (client-side filter, full catalogue only) */
.eld-cat-search{margin:4px 0 18px}
.eld-cat-search-input{width:100%;max-width:420px;padding:12px 18px;border:1px solid #ccc;border-radius:24px;font-size:15px;background:#fff;box-sizing:border-box}
.eld-cat-search-input:focus{outline:none;border-color:var(--eld-primary)}
.eld-cat-noresults{color:#64748B;margin:0 0 16px}
/* Catalogue card text buttons (K-utbildning style) — Adis feedback 24.7 */
.eld-cat-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:2px}
/* width/height:auto + pinned line-height: the buy button also carries .eld-cart, whose icon-era
   38px fixed box otherwise sticks (measured: buy 38px vs Läs mer 46px = the "raised" look). */
.eld-cat-btns .eld-cat-buy{flex:1;display:inline-flex;align-items:center;justify-content:center;width:auto;height:auto;line-height:1.2;background:var(--eld-primary);color:#fff!important;border-radius:20px;padding:10px 12px;font-weight:600;font-size:15px;text-decoration:none;text-align:center;transition:background .2s;white-space:nowrap}
.eld-cat-btns .eld-cat-buy:hover{background:var(--eld-primary-dark)}
.eld-cat-btns .eld-cat-buy.added{background:#15803D}
.eld-cat-btns .eld-cat-buy.error{background:#DC2626}
.eld-cat-btns .eld-cat-buy.loading{opacity:.7}
.eld-cat-more{flex:1;display:inline-flex;align-items:center;justify-content:center;line-height:1.2;background:#fff;border:1px solid var(--eld-primary);color:var(--eld-primary)!important;border-radius:20px;padding:9px 12px;font-weight:600;font-size:15px;text-decoration:none;text-align:center}
.eld-cat-more:hover{background:var(--eld-primary-soft)}
/* Kursintyg tab: certificate list + hide LD's duplicate cert banner (our hero has the button) */
.eld-intyg-wrap{background:#fff;border:1px solid #e3e3e3;border-radius:12px;padding:8px 18px;max-width:760px}
.eld-cwrap-own .ld-alert-certificate{display:none!important}
/* "Relaterade kurser" section at the bottom of course pages */
.eld-crel{margin:44px 0 8px}
.eld-crel-title{font-size:24px;margin:0 0 18px;padding-bottom:10px;border-bottom:1px solid #eee;position:relative}
.eld-crel-title::after{content:"";position:absolute;left:0;bottom:-1px;width:56px;height:3px;background:var(--eld-primary);border-radius:2px}
/* ===== Sitewide polish ===== */
/* Sticky ("locked") header like sipu.se — Adis feedback 24.7. position:sticky keeps Astra's own
   markup untouched. ⚠ The site runs Astra's TRANSPARENT header (body.ast-theme-transparent-header),
   whose `#masthead{position:absolute}` at specificity 110 beat a plain `#masthead` (100) — measured
   2026-08-04 (computed position stayed "absolute"). Doubling the selector wins the tie because our
   sheet loads after Astra's. The anchor JS (eldGoToHash) already subtracts the header height, so
   deep links keep landing right. Modals (z-index 99999) still cover the header. */
#masthead,.ast-theme-transparent-header #masthead{position:sticky;top:0;z-index:999;background:#fff;box-shadow:0 1px 0 rgba(0,0,0,.06)}
.admin-bar #masthead{top:32px}
@media(max-width:782px){.admin-bar #masthead{top:46px}}
@media(max-width:600px){.admin-bar #masthead{top:0}} /* WP admin bar scrolls away below 600px */
/* Keep icon-box descriptions from stranding a single word on the last line. `pretty`, not
   `balance` — balance splits near-one-line text into two equal halves, which reads broken. */
.elementor-icon-box-description{text-wrap:pretty}
/* Icon-boxes on phones: Elementor stacks the icon ABOVE the title — instead: icon + title on one
   row (centered to each other), description full-width below both. display:contents lifts the
   title/description out of the content wrapper into the grid. */
@media(max-width:767px){
	/* !important throughout: Elementor's widget CSS loads after ours and its own mobile rules
	   (icon stacked above, centered) win the specificity tie otherwise. */
	.elementor-widget-icon-box .elementor-icon-box-wrapper{display:grid!important;grid-template-columns:auto 1fr!important;column-gap:12px!important;align-items:center!important;text-align:left!important}
	.elementor-widget-icon-box .elementor-icon-box-icon{grid-column:1;grid-row:1;margin:0!important;display:flex!important;align-items:center;align-self:center!important}
	.elementor-widget-icon-box .elementor-icon-box-content{display:contents!important}
	.elementor-widget-icon-box .elementor-icon-box-title{grid-column:2;grid-row:1;margin:0!important;align-self:center!important;line-height:1.3!important}
	.elementor-widget-icon-box .elementor-icon-box-description{grid-column:1 / -1;grid-row:2;margin-top:6px!important}
	/* Hero on phones: more air below the menu + side padding matching the legacy sections
	   (the hero is script-built with Elementor defaults, which sit ~20px tighter). */
	.elementor-element.elementor-element-kh10000{padding-top:84px!important;padding-left:20px!important;padding-right:20px!important}
}
/* P1 heading-tag cleanup (Vedran tehnički SEO §1–§3, 2026-10-05): decorative labels that were h4/h5/h6 become
   <p>, the "1./2./3." steps h2 -> h3, the first h3 on För företag / Om oss -> h2 (tags changed in the Elementor
   data by 03-skripte/kravakademin-p1-pages-footer.php). Astra styles headings by TAG (family/size/weight/
   line-height/color, plus `.elementor-widget-heading h2.elementor-heading-title{line-height:1.2}` at 0,2,1), so a
   bare retag changed the look — measured 2026-09-30: h6 -> p = Manrope -> Inter, 14 -> 16px, 700 -> 400,
   #111827 -> #0f172a; steps h2 -> h3 = 35 -> 20px; footer h4 -> p = 18 -> 16px. Each retagged widget carries the
   class ka-as-<old tag> (Elementor "CSS Classes" -> the widget wrapper); these rules (0,3,0) reproduce Astra's
   values for that tag, incl. its <=921px sizes, and stay below Elementor's per-widget typography (0,4,0).
   Result: 0 differences on 31 elements x 3 widths (1280/900/390); the same elements without the class differ. */
.elementor-widget-heading.ka-as-h6 .elementor-heading-title{font-family:'Manrope',sans-serif;font-size:.875rem;font-weight:700;line-height:1.7;color:#111827}
.elementor-widget-icon-box.ka-as-h5 .elementor-icon-box-title{font-family:'Manrope',sans-serif;font-size:1rem;font-weight:700;line-height:1.6;color:#111827}
.elementor-widget-heading.ka-as-h4 .elementor-heading-title{font-family:'Manrope',sans-serif;font-size:1.125rem;font-weight:500}
.elementor-widget-heading.ka-as-h3 .elementor-heading-title{font-family:'Manrope',sans-serif;font-size:1.25rem;font-weight:600;line-height:1.4;color:#111827}
.elementor-widget-heading.ka-as-h2 .elementor-heading-title{font-family:'Manrope',sans-serif;font-size:2.1875rem;font-weight:700;line-height:1.2;color:#111827}
@media(max-width:921px){.elementor-widget-heading.ka-as-h3 .elementor-heading-title{font-size:20px}.elementor-widget-heading.ka-as-h2 .elementor-heading-title{font-size:25px}}
/* Lucide (stroke-based) SVGs in icon lists: Elementor's icon-color control sets `fill`, which
   CSS-overrides our fill="none" attribute and floods the shapes into solid dots — force fill off
   and color the stroke via currentColor with the brand Accent grön (board: checkmarks green).
   14px default is too small for outline icons, so size up. Font-icon lists are unaffected. */
.elementor-icon-list-icon svg{fill:none!important;color:#2BAA7F;width:17px;height:17px}
/* Header nav CTA — a menu item carrying the kra-nav-cta class renders as the brand button
   (Astra's old-header right section is single-purpose and already holds the WC cart).
   The li centers the pill; without it Astra stretches menu anchors to the full header height. */
.main-header-menu .kra-nav-cta{display:flex;align-items:center}
.main-header-menu .kra-nav-cta > a,.main-header-menu .kra-nav-cta > .menu-link{background:var(--eld-primary);color:#fff!important;border-radius:8px;padding:10px 18px!important;margin:0 10px 0 6px;line-height:1.2!important;height:auto!important}
/* Astra's 20px menu-link side padding + the CTA pill left the menu ending flush at the container
   edge, wrapping the WC cart onto a second header row — tighten to make room (desktop header only;
   vertical padding untouched). */
.main-header-bar .main-header-menu .menu-link{padding-left:14px!important;padding-right:14px!important}
.main-header-menu .kra-nav-cta > a:hover,.main-header-menu .kra-nav-cta > .menu-link:hover{background:var(--eld-primary-dark);color:#fff!important}
/* ===== LD Focus-mode player polish (Adis feedback 24.7) ===== */
/* Top-bar prev/next/mark-complete duplicate the on-page buttons below the content — hide. */
.ld-focus-header .ld-content-actions{display:none!important}
/* User dropdown ("Hej X!" + avatar + Kurs Hem/Logga ut) -> one portal button (injected by JS;
   if the JS ever fails the corner just stays empty — no dead dropdown). */
.ld-focus-header .ld-user-welcome-text,.ld-focus-header .ld-profile-avatar,.ld-focus-header .ld-user-menu-items{display:none!important}
.ld-focus-header .eld-portal-btn{background:var(--eld-primary);color:#fff!important;padding:9px 16px;border-radius:20px;font-weight:600;font-size:13px;text-decoration:none;white-space:nowrap;display:inline-block}
.ld-focus-header .eld-portal-btn:hover{background:var(--eld-primary-dark);color:#fff!important}
/* Lesson/topic reading size in the focus-mode player (Adis review 2026-09-10 #1): 17px/1.7 so the
   lesson text keeps up with the course-page prose; quiz answer rows keep LD's own size. Under 768px
   back to 16px. `.ld-tabs-content` = the lesson/topic content tab in LD30's focus template. */
.learndash-wrapper .ld-focus .ld-focus-content .ld-tabs-content p,.learndash-wrapper .ld-focus .ld-focus-content .ld-tabs-content li:not(.wpProQuiz_questionListItem){font-size:17px;line-height:1.7}
@media(max-width:767px){.learndash-wrapper .ld-focus .ld-focus-content .ld-tabs-content p,.learndash-wrapper .ld-focus .ld-focus-content .ld-tabs-content li:not(.wpProQuiz_questionListItem){font-size:16px}}
/* Header progress mirrored at the top of the course-nav sidebar (cloned by JS). */
.eld-sidebar-progress{padding:16px 20px 14px;border-bottom:1px solid #e5e5e5}
.eld-sidebar-progress .ld-progress{margin:0}
/* Completion upsell (owner at 100%): congrats + "Nästa steg" recommendation in the hero */
.eld-cupsell{background:#DCFCE7;border:1px solid #15803D;border-radius:12px;padding:16px 20px;margin:0 0 16px;display:flex;flex-direction:column;gap:10px}
.eld-cupsell-grats{font-weight:800;font-size:17px;color:#15803D}
.eld-cupsell-next{font-size:15px;color:#333}
.eld-cupsell-price{color:var(--eld-primary);font-weight:700;margin-left:6px}
.eld-cupsell-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:2px}
