/* MS-SHELL-V2 skin-22-bundles — /<lng>/bundles (Controller/Bundles.php, View/Theme/Default/Bundles.php)
   REDESIGN-05 BUNDLES. Author: HANDOFF (Mac2), 15.11.2026. DRAFT (dev/). Loaded only with cookie msv2=dev.
   Scope: every selector starts with "html.msv2 " + this screen's own root:
     section.bundles            — the storefront (hero, benefits, bundle cards)
     #bundleRulesModal          — the "Bundle use and Gift rules" dialog of this page
     body.bodypage_bundles .guest-wrapper — reminders / not-active-packages block under the grid
   Colours only via skin-00 variables. No display:none, no content:, no logic, prices untouched.
   !important only where the template's inline <style> already uses !important (SC-SQUARE / price rules). */

/* ---------- 1. Page surface ---------- */
html.msv2 section.bundles{
  background:var(--ms-bg);
  padding:28px 24px 56px;
  color:var(--ms-ink);
}
html.msv2 section.bundles .bundles-inner{max-width:1280px}

/* ---------- 2. Hero (SC-BHERO-001 markup: .sc-bwrap .hero) ---------- */
html.msv2 section.bundles .sc-bwrap{color:var(--ms-ink);margin:0 0 20px}
html.msv2 section.bundles .sc-bwrap .hero{
  min-height:0;
  padding:32px 32px;
  border:1px solid var(--ms-border);
  border-radius:var(--ms-radius-lg);
  background:var(--ms-blue-soft);
  box-shadow:none;
}
/* decorative circles of the old hero: keep the elements, drop the paint */
html.msv2 section.bundles .sc-bwrap .hero:before,
html.msv2 section.bundles .sc-bwrap .hero:after{
  background:transparent;
  border-color:transparent;
}
html.msv2 section.bundles .sc-bwrap .eyebrow{
  padding:0;
  background:transparent;
  border-radius:0;
  color:var(--ms-muted);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
}
html.msv2 section.bundles .sc-bwrap .eyebrow:before{background:var(--ms-orange)}
html.msv2 section.bundles .sc-bwrap h1{
  margin:12px 0 10px;
  font-size:clamp(26px,2.3vw,34px);
  line-height:1.15;
  letter-spacing:-.01em;
  font-weight:800;
  color:var(--ms-navy-ink);
}
html.msv2 section.bundles .sc-bwrap .lead{
  color:var(--ms-muted);
  font-size:15px;
  line-height:1.6;
}
/* hero links (Go Back Home / Dashboard) are navigation, not purchase -> secondary style */
html.msv2 section.bundles .sc-bwrap .btn,
html.msv2 section.bundles .sc-bwrap .btn.primary,
html.msv2 section.bundles .sc-bwrap .btn.secondary{
  min-height:44px;
  padding:0 18px;
  border-radius:var(--ms-radius);
  border:1px solid var(--ms-border);
  background:var(--ms-surface);
  color:var(--ms-navy);
  font-weight:600;
  font-size:14px;
  box-shadow:none;
  filter:none;
  transform:none;
}
html.msv2 section.bundles .sc-bwrap .btn:hover,
html.msv2 section.bundles .sc-bwrap .btn:focus-visible{
  border-color:var(--ms-navy);
  background:var(--ms-surface);
  color:var(--ms-navy-ink);
  transform:none;
}
html.msv2 section.bundles .sc-bwrap .btn:focus-visible{outline:3px solid var(--ms-soft);outline-offset:2px}

/* hero illustration: flat cards with a 1px border, solid orange % badge */
html.msv2 section.bundles .sc-bwrap .path{border-color:var(--ms-border)}
html.msv2 section.bundles .sc-bwrap .id-card{
  background:var(--ms-surface);
  border:1px solid var(--ms-border);
  border-radius:var(--ms-radius);
  box-shadow:none;
}
html.msv2 section.bundles .sc-bwrap .icon.blue,
html.msv2 section.bundles .sc-bwrap .icon.green{background:var(--ms-soft);color:var(--ms-navy)}
html.msv2 section.bundles .sc-bwrap .icon.orange{background:var(--ms-orange-soft);color:var(--ms-orange)}
html.msv2 section.bundles .sc-bwrap .fake-lines i{background:var(--ms-soft)}
html.msv2 section.bundles .sc-bwrap .percent{
  background:var(--ms-orange);
  border-color:var(--ms-surface);
  box-shadow:none;
}
html.msv2 section.bundles .sc-bwrap .spark{color:var(--ms-orange)}
html.msv2 section.bundles .sc-bwrap .mini-pill{
  background:var(--ms-surface);
  border-color:var(--ms-border);
  color:var(--ms-navy);
  box-shadow:none;
  font-size:12px;
}

/* ---------- 3. Benefit tiles ---------- */
html.msv2 section.bundles .sc-bwrap .benefits{gap:12px;margin-top:14px}
html.msv2 section.bundles .sc-bwrap .benefit{
  min-height:0;
  padding:16px 18px;
  background:var(--ms-surface);
  border:1px solid var(--ms-border);
  border-radius:var(--ms-radius);
  box-shadow:none;
}
html.msv2 section.bundles .sc-bwrap .bicon,
html.msv2 section.bundles .sc-bwrap .bicon.orange{
  width:36px;height:36px;
  border-radius:var(--ms-radius);
  background:var(--ms-soft);
  color:var(--ms-navy);
}
html.msv2 section.bundles .sc-bwrap .benefit h3{font-size:15px;font-weight:700;color:var(--ms-navy-ink)}
html.msv2 section.bundles .sc-bwrap .benefit p{font-size:13px;color:var(--ms-muted)}

/* legacy hero/trust classes (older markup variant, still styled by the template) */
html.msv2 section.bundles .bundles-hero{
  background:var(--ms-blue-soft);
  border:1px solid var(--ms-border);
  border-radius:var(--ms-radius-lg);
  box-shadow:none;
  color:var(--ms-ink);
}
html.msv2 section.bundles .bundles-hero::after{background:transparent}
html.msv2 section.bundles .bundles-hero h1{color:var(--ms-navy-ink)}
html.msv2 section.bundles .bundles-hero p{color:var(--ms-muted)}
html.msv2 section.bundles .bundles-hero .eyebrow{background:transparent;color:var(--ms-muted);padding:0;font-size:12px}
html.msv2 section.bundles .bundles-trust > div{
  border:1px solid var(--ms-border);
  border-radius:var(--ms-radius);
  box-shadow:none;
  background:var(--ms-surface);
}
html.msv2 section.bundles .bundles-trust i{color:var(--ms-navy)}
html.msv2 section.bundles .bundles-trust b{color:var(--ms-navy-ink)}
html.msv2 section.bundles .bundles-trust span{color:var(--ms-muted);font-size:12.5px}

/* ---------- 4. Bundle grid + cards ---------- */
html.msv2 section.bundles .bundle-grid{
  grid-template-columns:repeat(auto-fill,minmax(250px,1fr));
  gap:20px 16px;
  margin-top:8px;
}
html.msv2 section.bundles .bundle-card{
  position:relative;
  background:var(--ms-surface);
  border:1px solid var(--ms-border) !important;
  border-radius:var(--ms-radius-lg);
  padding:28px 20px 20px;
  box-shadow:none !important;
  transform:none;
  transition:border-color .15s ease;
  min-width:0;
}
html.msv2 section.bundles .bundle-card:hover{
  border-color:var(--ms-navy) !important;
  box-shadow:none !important;
  transform:none;
}
html.msv2 section.bundles .bundle-card.featured{border-color:var(--ms-navy) !important}
html.msv2 section.bundles .bundle-badge{
  top:-12px;left:16px;
  background:var(--ms-navy);
  color:var(--ms-surface);
  font-size:12px;
  font-weight:700;
  letter-spacing:.04em;
  padding:4px 12px;
  border-radius:999px;
  box-shadow:none;
}
html.msv2 section.bundles .bundle-card h3{
  font-size:19px;
  font-weight:800;
  line-height:1.25;
  color:var(--ms-navy-ink);
  margin:0 0 6px;
  overflow-wrap:anywhere;
}
html.msv2 section.bundles .bundle-card .b-sub{font-size:12.5px;color:var(--ms-muted);margin:0 0 14px}
html.msv2 section.bundles .bundle-card .b-price{
  font-size:36px;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--ms-navy-ink);
}
html.msv2 section.bundles .bundle-card .b-price span{font-size:13px;color:var(--ms-muted);font-weight:500}
html.msv2 section.bundles .bundle-card .b-each{
  font-size:13px;
  font-weight:700;
  color:var(--ms-navy);
  margin:8px 0 16px;
}

/* course rows: name left, price right */
html.msv2 section.bundles .bundle-list{gap:0;margin:0 0 16px;border-top:1px solid var(--ms-border)}
html.msv2 section.bundles .bundle-list li{
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  padding:9px 0;
  border-bottom:1px solid var(--ms-border);
  font-size:13.5px;
  line-height:1.4;
  color:var(--ms-ink);
}
html.msv2 section.bundles .bcourse-name{font-weight:600;color:var(--ms-navy-ink);min-width:0;overflow-wrap:anywhere}
html.msv2 section.bundles .bcheck{color:var(--ms-navy)}
html.msv2 section.bundles .bcourse-price{
  font-size:14px !important;
  font-weight:800 !important;
  color:var(--ms-navy-ink) !important;
}
html.msv2 section.bundles .bcourse-price del,
html.msv2 section.bundles .bundle-card del{
  font-size:12px !important;
  font-weight:500 !important;
  color:var(--ms-muted) !important;
}

/* regulator pills (ms tenant only) */
html.msv2 section.bundles .bundle-pills{gap:6px;margin:0 0 14px}
html.msv2 section.bundles .bundle-pill{
  background:var(--ms-soft) !important;
  color:var(--ms-navy) !important;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  text-transform:none;
  border-radius:999px;
  padding:3px 10px;
}

/* bundle rules note */
html.msv2 section.bundles .bundle-rules{
  background:var(--ms-blue-soft);
  border:1px solid var(--ms-border);
  border-radius:var(--ms-radius);
  color:var(--ms-ink);
  font-size:12.5px;
  padding:12px 14px;
}
html.msv2 section.bundles .bundle-rules b{color:var(--ms-navy-ink)}
html.msv2 section.bundles .bundle-rules a{color:var(--ms-orange-ink);font-weight:700;text-decoration:underline}

/* Buy Now = the one orange action */
html.msv2 section.bundles .bundle-btn{
  height:auto;
  min-height:48px;
  line-height:1.2;
  padding:14px 16px;
  border-radius:var(--ms-radius);
  background:var(--ms-orange);
  color:var(--ms-surface);
  font-size:15px;
  font-weight:700;
  letter-spacing:0;
  text-transform:none;
  box-shadow:none;
  transform:none;
  transition:background-color .15s ease;
}
html.msv2 section.bundles .bundle-btn:hover,
html.msv2 section.bundles .bundle-btn:focus-visible{
  background:var(--ms-orange-ink);
  color:var(--ms-surface);
  box-shadow:none;
  transform:none;
}
html.msv2 section.bundles .bundle-btn:focus-visible{outline:3px solid var(--ms-orange-soft);outline-offset:2px}

/* "Already have a key? Activate it" — quiet secondary link, 44px tap zone */
html.msv2 section.bundles .bundle-have{
  margin-top:6px;
  min-height:44px;
  padding:12px 4px;
  font-size:13px;
  font-weight:600;
  color:var(--ms-navy);
}
html.msv2 section.bundles .bundle-have:hover{color:var(--ms-navy-ink);text-decoration:underline}

/* ---------- 5. Rules dialog (#bundleRulesModal) ---------- */
html.msv2 #bundleRulesModal.br-modal{background:color-mix(in srgb,var(--ms-navy-ink) 55%,transparent)}
html.msv2 #bundleRulesModal .br-box{
  border-radius:var(--ms-radius-lg);
  border:1px solid var(--ms-border);
  background:var(--ms-surface);
}
html.msv2 #bundleRulesModal .br-head{
  background:var(--ms-surface);
  color:var(--ms-navy-ink);
  border-bottom:1px solid var(--ms-border);
  font-size:17px;
  font-weight:800;
}
html.msv2 #bundleRulesModal .br-head .fa{color:var(--ms-navy)}
html.msv2 #bundleRulesModal .br-x{
  color:var(--ms-muted);
  min-width:44px;min-height:44px;
  font-size:24px;
  border-radius:var(--ms-radius);
}
html.msv2 #bundleRulesModal .br-x:hover{background:var(--ms-soft);color:var(--ms-navy-ink)}
html.msv2 #bundleRulesModal .br-body{color:var(--ms-ink);font-size:14px}
html.msv2 #bundleRulesModal .br-body h3{color:var(--ms-navy-ink);font-size:17px;font-weight:800}
html.msv2 #bundleRulesModal .br-actions{gap:10px;flex-wrap:wrap}
html.msv2 #bundleRulesModal .br-cancel,
html.msv2 #bundleRulesModal .br-go{
  min-height:44px;
  padding:10px 18px;
  border-radius:var(--ms-radius);
  font-size:14px;
  font-weight:700;
  box-shadow:none;
  cursor:pointer;
}
html.msv2 #bundleRulesModal .br-cancel{
  background:var(--ms-surface);
  border:1px solid var(--ms-border);
  color:var(--ms-navy);
}
html.msv2 #bundleRulesModal .br-cancel:hover{border-color:var(--ms-navy)}
html.msv2 #bundleRulesModal .br-go{
  background:var(--ms-orange);
  border:1px solid var(--ms-orange);
  color:var(--ms-surface);
}
html.msv2 #bundleRulesModal .br-go:hover{background:var(--ms-orange-ink);border-color:var(--ms-orange-ink)}

/* ---------- 6. Block under the grid (reminders / not-active packages) ---------- */
html.msv2 body.bodypage_bundles .guest-wrapper{padding:0 24px 32px;background:var(--ms-bg)}

/* ---------- 7. Responsive: 1024 / 768 / 390 / 320 ---------- */
@media (max-width:1024px){
  html.msv2 section.bundles{padding:24px 18px 48px}
  html.msv2 section.bundles .sc-bwrap .hero{padding:26px 24px}
}
@media (max-width:768px){
  html.msv2 section.bundles .sc-bwrap .benefits{grid-template-columns:1fr}
  html.msv2 section.bundles .bundle-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
}
@media (max-width:700px){
  html.msv2 section.bundles .sc-bwrap .hero{padding:20px 16px;border-radius:var(--ms-radius-lg)}
  html.msv2 section.bundles .sc-bwrap h1{font-size:26px}
  html.msv2 section.bundles .sc-bwrap .actions{gap:8px}
}
@media (max-width:520px){
  html.msv2 section.bundles{padding:16px 14px 40px}
  html.msv2 section.bundles .bundle-grid{grid-template-columns:minmax(0,1fr);gap:22px}
  html.msv2 section.bundles .bundle-card{padding:26px 16px 16px}
  html.msv2 section.bundles .bundle-card .b-price{font-size:32px}
  html.msv2 body.bodypage_bundles .guest-wrapper{padding:0 14px 24px}
  html.msv2 #bundleRulesModal .br-actions > button{flex:1 1 100%}
}
@media (max-width:360px){
  html.msv2 section.bundles{padding:14px 10px 36px}
  html.msv2 section.bundles .sc-bwrap h1{font-size:23px}
  html.msv2 section.bundles .bundle-list li{flex-wrap:wrap}
}
/* SC-BUNDLES-V2-1 */
@layer ms-typography {
html.msv2 #ms-frame#ms-frame body.bodypage_bundles .sc-bwrap .benefits,html.msv2 body.bodypage_bundles #ms-frame#ms-frame .sc-bwrap .benefits{display:none!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .sc-bwrap .hero{padding:0!important;background:none!important;border:0!important;box-shadow:none!important;min-height:0!important;margin:0 0 14px!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .sc-bwrap .hero .lead{font-size:13px!important;color:var(--ms-muted)!important;margin:4px 0 0!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(290px,1fr))!important;gap:18px!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card{display:flex!important;flex-direction:column!important;gap:10px!important;padding:20px!important;border:1px solid var(--ms-border)!important;border-radius:12px!important;background:var(--ms-surface)!important;box-shadow:none!important;width:auto!important;max-width:none!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card h3{font-size:16px!important;font-weight:600!important;margin:0!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .b-sub{font-size:12px!important;color:var(--ms-muted)!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .b-price,html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .b-price *{font-size:26px!important;font-weight:700!important;line-height:1.2!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .b-price span{font-size:12px!important;font-weight:400!important;color:var(--ms-muted)!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .b-each{font-size:12px!important;color:var(--ms-muted)!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .bundle-list{margin:4px 0!important;padding:0!important;list-style:none!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .bundle-list li{display:flex!important;gap:8px!important;align-items:baseline!important;padding:3px 0!important;border:0!important;min-height:0!important;font-size:14px!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .bundle-list .bcourse-price,html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .bundle-pills{display:none!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card .bundle-rules{padding:0!important;background:none!important;border:0!important;min-height:0!important;font-size:12px!important;margin-top:auto!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card a.bundle-btn{min-height:44px!important;border-radius:10px!important;font-weight:600!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundle-card a.bundle-have{min-height:44px!important;border-radius:10px!important;font-size:13px!important}
}

/* SC-BUNDLES-V2-1 tabs (unlayered so they beat legacy link styles) */
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .ms-bundle-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .ms-bundle-tabs>a{display:inline-flex;align-items:center;min-height:44px;padding:10px 16px;border:1px solid var(--ms-border);border-radius:10px;background:var(--ms-surface);color:var(--ms-navy);font-weight:500;text-decoration:none}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .ms-bundle-tabs>a.is-active{background:var(--ms-navy);border-color:var(--ms-navy);color:#fff}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .ms-bundle-rulesbar{padding:14px 16px;border-radius:10px;background:var(--ms-soft,#eef2f7);color:var(--ms-ink);font-size:13px;line-height:1.5;margin:0 0 18px}
/* SC-BUNDLES-V2-2 (owner 16 Nov): desktop still showed breadcrumb + a tall illustration hero above the tabs.
   Page = title, one line, tabs, rules, cards - nothing else. */
@layer ms-typography {
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .main-container>ul.breadcrumb{display:none!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .sc-bwrap .hero{display:block!important;grid-template-columns:none!important;height:auto!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .sc-bwrap .hero .art{display:none!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .sc-bwrap .hero .copy{padding:0!important;max-width:none!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame .sc-bwrap .hero h1{margin:0!important}
html.msv2 body.bodypage_bundles #ms-frame#ms-frame section.bundles,html.msv2 body.bodypage_bundles #ms-frame#ms-frame .bundles-inner{padding-top:0!important;margin-top:0!important}
}
