/* ═══════════════════════════════════════════════════════
   BETKA VIDEOKURZY — Single course page styles
   ═══════════════════════════════════════════════════════ */

:root {
  --vk-blue:#01477e;--vk-blue-l:#1a6aad;--vk-blue-xl:#e8f2fa;
  --vk-orange:#e9572e;--vk-orange-xl:#fdf0ec;
  --vk-ink:#111827;--vk-bg:#fafaf8;--vk-bg2:#f3f1ec;
  --vk-white:#ffffff;--vk-muted:#6b7280;--vk-border:#e5e1d8;--vk-green:#16a34a;
}

/* Reset theme interference */
.betka-course-page #main,
.betka-course-page #content,
.betka-course-page .site-main,
.betka-course-page .entry-content,
.betka-course-page .wp-block-post-content,
.betka-course-page article.post {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  float: none !important;
}
.betka-course-page .widget-area,
.betka-course-page .sidebar-widget-area { display: none !important; }

/* ── Wrap ────────────────────────────────────────────── */
.betka-course-wrap {
  font-family: 'DM Sans', sans-serif;
  background: var(--vk-bg);
  color: var(--vk-ink);
}

/* ── Hero ────────────────────────────────────────────── */
.course-hero {
  background: var(--vk-blue);
  padding: 65px 75px 55px 75px;
  position: relative;
  overflow: hidden;
}
.course-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(233,87,46,.18) 0%, transparent 60%);
  pointer-events: none;
}
.course-hero-inner {
  max-width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.course-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 6px;
  background: rgba(233,87,46,.2);
  color: var(--vk-orange);
  margin-bottom: .6rem;
}
/* School / code subtitle on the videokurz hero — sits above the title so
   visitors see immediately which subject the course belongs to. */
.course-subject-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin: -.1rem 0 .45rem;
}
.course-cat {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.course-cat a { color: rgba(255,255,255,.55); text-decoration: none; }
.course-cat a:hover { color: rgba(255,255,255,.9); }
.course-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.course-hero-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-author {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  /* Lektorka photo only — no colored fallback. */
  background: url(https://douckosbetkou.cz/wp-content/uploads/2026/04/406315dad3b887e20b2d43b17884d911.jpeg) center/cover no-repeat;
  font-size: 0;        /* hide initials fallback */
  color: transparent;
  flex-shrink: 0;
}
.hero-author-label {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .1rem;
}
.hero-author-name {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}
.hero-students {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.55);
}
.hero-math {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Lora', serif;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(255,255,255,.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ── Layout ──────────────────────────────────────────── */
.course-layout-outer {
  max-width: 100%;
  margin: 0 auto;
  padding: 50px 75px 50px 75px;
}
.course-layout {
  padding: 3rem 0 6rem;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}

/* ── Description ─────────────────────────────────────── */
/* The contenteditable RTE in admin produces a MIX of <p> and <div> wrappers
   (browser-dependent line-break behaviour). Style every block-level child
   identically so the first sentence doesn't look different from the rest,
   and force with !important to defeat the parent theme's <p>/<div> rules. */
.course-description { margin-bottom: 1.5rem; }
.course-description,
.course-description p,
.course-description div,
.course-description li,
.course-description span {
  font-size: .97rem !important;
  line-height: 1.6 !important;
  color: #444 !important;
  font-weight: 400 !important;
  font-family: 'DM Sans', sans-serif !important;
  letter-spacing: normal !important;
}
.course-description h1,
.course-description h2,
.course-description h3,
.course-description h4,
.course-description h5,
.course-description h6 {
  font-family: 'Lora', Georgia, serif !important;
  color: #1a2236 !important;
  font-weight: 700 !important;
  margin: 1.2rem 0 .5rem !important;
  letter-spacing: -.01em !important;
}
.course-description h2 { font-size: 1.25rem !important; line-height: 1.35 !important; }
.course-description h3 { font-size: 1.1rem  !important; line-height: 1.35 !important; }
.course-description h4 { font-size: 1rem    !important; line-height: 1.35 !important; }
/* Paragraph spacing — tight enough to read as a single thought, loose enough
   to separate adjacent lines. */
.course-description p,
.course-description div { margin: 0 0 .5rem !important; padding: 0 !important; }
.course-description p:last-child,
.course-description div:last-child { margin-bottom: 0 !important; }
.course-description ul,
.course-description ol { margin: .3rem 0 .7rem 1.25rem !important; padding: 0 !important; }
.course-description li { margin-bottom: .25rem !important; }
/* Inline emphasis */
/* Bold keeps the body text colour — only the weight changes. (Earlier this
   rule painted bold text orange which made paragraphs look like a flag.) */
.course-description strong,
.course-description b { color: inherit !important; font-weight: 700 !important; }
.course-description em,
.course-description i { font-style: italic !important; }
.course-description a { color: #e9572e !important; text-decoration: underline !important; }
.course-description a:hover { color: #c9421d !important; }
/* Empty <p>/<div> (the RTE emits <div><br></div> for blank lines, and the
   server-side normaliser leaves a single line-break placeholder). Render
   these as a small fixed gap — NOT a full paragraph of empty space. */
.course-description p:empty,
.course-description div:empty { height: .4rem !important; margin: 0 !important; }
.course-description p.bvk-blank,
.course-description div.bvk-blank { height: .4rem !important; margin: 0 !important; padding: 0 !important; line-height: 0 !important; }
.course-description p.bvk-blank::before,
.course-description div.bvk-blank::before { content: '' !important; }

/* ── Video ───────────────────────────────────────────── */
.course-video-wrap {
  margin: 1.5rem 0 2rem;
  background: var(--vk-ink);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/9;
}

/* ── Preview limit paywall ───────────────────────────── */
/* Shown after the 5-second cutoff. Sits on top of the iframe (which is
   blurred + disabled by JS) so the only path forward is the CTA button. */
.bvk-preview-wrap { position: relative; }
.bvk-paywall-overlay {
  position: absolute;
  inset: 0;
  display: none;             /* JS flips to "flex" when the limit hits */
  align-items: center;
  justify-content: center;
  /* Layered gradient: blue brand colour with a subtle radial highlight from
     the upper-left so it doesn't look like a flat slab. */
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, rgba(1,71,126,.96) 0%, rgba(0,28,58,.98) 100%);
  z-index: 5;
  opacity: 0;
  transition: opacity .4s ease;
  padding: 1.5rem;
  border-radius: 16px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bvk-paywall-overlay.shown { opacity: 1; }
.bvk-paywall-overlay.shown .bvk-paywall-card {
  transform: translateY(0);
  opacity: 1;
}

/* Inner card — slightly raised so it reads as a distinct CTA "panel"
   rather than text floating over the video. */
.bvk-paywall-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  transform: translateY(8px);
  opacity: 0;
  transition: transform .45s cubic-bezier(.2,.7,.3,1) .05s, opacity .45s ease .05s;
}

/* Lock icon in a circular badge — brand orange (literal hex to defeat any
   parent theme override of --vk-orange) */
.bvk-paywall-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(233,87,46,.18);
  color: #e9572e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: 0 0 0 8px rgba(233,87,46,.06);
}

.bvk-paywall-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e9572e;
  margin-bottom: .55rem;
}
.bvk-paywall-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .55rem;
  color: #fff;
  letter-spacing: -.01em;
}
.bvk-paywall-sub {
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  margin: 0 auto 1.25rem;
  max-width: 380px;
}

/* Price block — visual anchor between the description and CTA */
.bvk-paywall-price {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
  margin-bottom: 1.1rem;
  padding: .3rem .9rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
}
.bvk-paywall-price-amount {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}
.bvk-paywall-price-cur {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}

/* CTA — exact spec requested by user. Every property has !important because
   the parent theme on production targets `[type=button], [type=submit], button`
   with high-specificity defaults (and overrides --vk-orange to a different
   hue). Literal hex + !important across the board so this button looks the
   same regardless of theme. */
.bvk-paywall-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .5rem !important;
  background: #e9572e !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: .75rem 1.8rem !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  transition: background .15s ease !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
}
.bvk-paywall-cta:hover,
.bvk-paywall-cta:focus,
.bvk-paywall-cta:active { background: #c9421d !important; color: #fff !important; outline: none !important; }
.bvk-paywall-cta-icon { display: inline-flex; line-height: 0; }
.bvk-paywall-cta-text { white-space: nowrap; }
.bvk-paywall-cta-arrow {
  display: inline-flex;
  line-height: 0;
  margin-left: .15rem;
  transition: transform .2s ease;
}
.bvk-paywall-cta:hover .bvk-paywall-cta-arrow { transform: translateX(3px); }

.bvk-paywall-foot {
  margin: 1rem 0 0;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}
.bvk-paywall-foot a {
  color: #e9572e;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(233,87,46,.4);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.bvk-paywall-foot a:hover { color: #fff; border-bottom-color: #fff; }

/* Mobile — keep CTA dominant, shrink the rest gracefully */
@media (max-width: 540px) {
  .bvk-paywall-overlay { padding: 1rem; }
  .bvk-paywall-badge { width: 48px; height: 48px; margin-bottom: .8rem; }
  .bvk-paywall-title { font-size: 1.15rem; }
  .bvk-paywall-sub   { font-size: .85rem; margin-bottom: 1rem; }
  .bvk-paywall-price-amount { font-size: 1.3rem; }
  /* CTA keeps its spec padding/font; only horizontal padding tightens for very narrow screens */
  .bvk-paywall-cta   { padding: .75rem 1.2rem; }
}
@media (max-width: 380px) {
  .bvk-paywall-eyebrow { display: none; }
  .bvk-paywall-sub     { display: none; }
}
.video-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,.5);
  text-align: center;
  padding: 2rem;
}
.video-placeholder-text {
  margin-top: .8rem;
  font-size: .88rem;
  font-weight: 500;
}
.video-placeholder-sub {
  font-size: .75rem;
  margin-top: .3rem;
  opacity: .6;
}

/* ── Obsah / Chapters ────────────────────────────────── */
.obsah-summary {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.8rem;
  font-size: .82rem;
  color: var(--vk-muted);
  flex-wrap: wrap;
}
.obsah-summary strong { color: var(--vk-ink); }
.expand-all {
  margin-left: auto;
  font-size: .78rem;
  font-weight: 600;
  color: var(--vk-blue);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
.chapter {
  border: 1px solid var(--vk-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.chapter-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: var(--vk-bg2);
  cursor: pointer;
  user-select: none;
  transition: background .2s;
}
.chapter-header:hover { background: #ede9e2; }
.chapter-toggle {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--vk-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chapter-toggle svg { transition: transform .3s; }
.chapter.open .chapter-toggle svg { transform: rotate(180deg); }
.chapter-title { font-family: 'Lora', serif; font-weight: 700; font-size: .97rem; }
.chapter-count {
  font-size: .75rem;
  font-weight: 700;
  color: var(--vk-blue);
  background: var(--vk-blue-xl);
  padding: .2rem .6rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.chapter-lessons { display: none; }
.chapter.open .chapter-lessons { display: block; }
.lesson-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1.4rem;
  border-top: 1px solid var(--vk-border);
  font-size: .87rem;
  transition: background .15s;
}
.lesson-row:hover { background: rgba(1,71,126,.03); }
.lesson-row-locked { opacity: .75; }
.lesson-icon { color: var(--vk-blue); flex-shrink: 0; }
.lesson-icon-pdf { color: var(--vk-orange); flex-shrink: 0; }
.lesson-icon-lock { color: var(--vk-border); flex-shrink: 0; }
.lesson-name { flex: 1; color: var(--vk-ink); }
.lesson-name.locked { color: var(--vk-muted); }
.lesson-dur { font-size: .75rem; color: var(--vk-muted); flex-shrink: 0; }
.lesson-play-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--vk-blue-xl); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s; }
.lesson-row-playable:hover .lesson-play-btn { background: var(--vk-blue); }
.lesson-row-playable:hover .lesson-play-btn svg { fill: #fff; }
.lesson-video-panel { background: #000; border-radius: 10px; overflow: hidden; }

/* ── Sidebar ─────────────────────────────────────────── */
.sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1.2rem; }
.price-card {
  background: var(--vk-white);
  border: 1px solid var(--vk-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(1,71,126,.08);
}
.price-card-top { background: var(--vk-blue); padding: 1.8rem; }
.price-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .3rem;
}
.price-amount {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.price-amount span { font-size: 1.1rem; font-weight: 400; color: rgba(255,255,255,.6); }
.price-card-body { padding: 1.6rem; }
.btn-add {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--vk-orange);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(233,87,46,.28);
  margin-bottom: 1.4rem;
}
.btn-add:hover { background: #c9421d; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(233,87,46,.35); }
.atc-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--vk-orange);
  background: none;
  border: 1.5px solid rgba(233,87,46,.3);
  border-radius: 8px;
  cursor: pointer;
  padding: .5rem 1rem;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.atc-btn:hover { background: var(--vk-orange-xl); border-color: var(--vk-orange); }
.atc-btn.in-cart { color: #16a34a; border-color: rgba(22,163,74,.3); background: rgba(22,163,74,.06); }

.course-info-list { display: flex; flex-direction: column; gap: .75rem; }
.ci-row { display: flex; align-items: center; gap: .75rem; font-size: .85rem; }
.ci-row-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cir-b { background: var(--vk-blue-xl); }
.cir-o { background: var(--vk-orange-xl); }
.ci-row-label { color: var(--vk-muted); font-size: .78rem; }
.ci-row-val { color: var(--vk-ink); font-weight: 600; font-size: .85rem; }

/* ── Related ─────────────────────────────────────────── */
.related-card { background: var(--vk-white); border: 1px solid var(--vk-border); border-radius: 16px; overflow: hidden; }
.related-header { background: var(--vk-bg2); padding: 1rem 1.4rem; }
.related-header h4 { font-family: 'Lora', serif; font-size: .95rem; font-weight: 700; }
.related-list { padding: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.related-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  text-decoration: none;
  color: var(--vk-ink);
  font-size: .84rem;
  transition: background .2s;
}
.related-item:hover { background: var(--vk-bg2); }
.related-item-active { background: var(--vk-blue-xl) !important; }
.related-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--vk-blue-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.related-item-name { flex: 1; font-weight: 500; line-height: 1.3; }
.related-item-price { font-family: 'Lora', serif; font-weight: 700; color: var(--vk-blue); font-size: .85rem; flex-shrink: 0; }

/* ── Sticky bar ──────────────────────────────────────── */
.sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50; /* Intentionally below the global cart button (z-index: 10000) */
  background: var(--vk-white);
  border-top: 1px solid var(--vk-border);
  /* Leave room on the right for the global floating cart button */
  padding: 1rem 5vw;
  padding-right: max(5vw, 88px);
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
}
.sticky-bar-price { font-family: 'Lora', serif; font-size: 1.5rem; font-weight: 700; color: var(--vk-ink); }
.sticky-bar-btn {
  background: var(--vk-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.8rem;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

/* ── Cart drawer ─────────────────────────────────────── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 800; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px,100vw); background: var(--vk-white); z-index: 801; display: flex; flex-direction: column; transform: translateX(110%); transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: -8px 0 48px rgba(0,0,0,.14); }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--vk-border); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.cart-drawer-head h3 { font-family: 'Lora', serif; font-size: 1.2rem; font-weight: 700; }
.cart-head-right { display: flex; align-items: center; gap: .7rem; }
.cart-count-pill { font-size: .72rem; font-weight: 700; background: var(--vk-blue-xl); color: var(--vk-blue); padding: .2rem .65rem; border-radius: 20px; }
.cart-close { width: 32px; height: 32px; border-radius: 8px; background: var(--vk-bg2); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.cart-close:hover { background: var(--vk-border); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; gap: 1rem; color: var(--vk-muted); font-size: .9rem; text-align: center; padding: 2rem; }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--vk-border); }
.cart-item:last-child { border-bottom: none; }
.cart-item-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--vk-blue-xl); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-family: 'Lora', serif; font-size: .9rem; font-weight: 700; line-height: 1.3; margin-bottom: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-cat { font-size: .73rem; color: var(--vk-muted); }
.cart-item-price { font-family: 'Lora', serif; font-weight: 700; color: var(--vk-blue); font-size: 1rem; flex-shrink: 0; }
.cart-item-remove { width: 26px; height: 26px; border-radius: 6px; background: var(--vk-bg2); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; flex-shrink: 0; }
.cart-item-remove:hover { background: #fde8e3; }
.cart-footer { padding: 1.4rem 1.6rem; border-top: 1px solid var(--vk-border); flex-shrink: 0; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.cart-total-label { font-size: .78rem; color: var(--vk-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.cart-total-amount { font-family: 'Lora', serif; font-size: 1.7rem; font-weight: 700; color: var(--vk-ink); }
.cart-checkout { display: block; width: 100%; text-align: center; background: var(--vk-orange); color: #fff; border: none; border-radius: 10px; padding: 1rem; font-family: 'DM Sans', sans-serif; font-size: .95rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; box-shadow: 0 4px 16px rgba(233,87,46,.28); }
.cart-checkout:hover { background: #c9421d; transform: translateY(-1px); }
.cart-checkout:disabled { background: var(--vk-border); color: var(--vk-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.cart-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--vk-ink); color: #fff; padding: .7rem 1.4rem; border-radius: 10px; font-size: .84rem; font-weight: 500; z-index: 900; transition: transform .3s cubic-bezier(.4,0,.2,1); white-space: nowrap; box-shadow: 0 8px 32px rgba(0,0,0,.2); }
.cart-toast.show { transform: translateX(-50%) translateY(0); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .course-layout { grid-template-columns: 1fr; }
  /* Let sidebar's children be reordered independently of the wrapper:
     price card jumps to top, related courses get pushed to the end of the page. */
  .sidebar { position: static; display: contents; }
  .price-card    { order: -1; }
  .course-main   { order: 1; }
  .related-card  { order: 99; margin-top: 1.5rem; }
  .sticky-bar { display: flex; }
  .betka-course-wrap { padding-bottom: 80px; }
  .hero-math { display: none; }
}
@media (max-width: 600px) {
  .course-hero { padding: 32px 20px 28px 20px; }
  .course-layout-outer { padding: 0px 20px 0px 20px; }
  .course-layout { padding: 2rem 0 4rem; }
}

/* ── "Course owned" banner ─────────────────────────────
   Shown on the public CPT page for students who already bought the course.
   Tells them their actual playback happens in the dashboard. */
.course-owned-banner{
  display:flex;
  align-items:center;
  gap:1rem;
  margin:1.2rem 0 1.5rem;
  padding:1.1rem 1.3rem;
  background:linear-gradient(135deg,#dcfce7,#bbf7d0);
  border:1.5px solid #15803d;
  border-radius:14px;
  flex-wrap:wrap;
}
.course-owned-icon{
  width:42px;height:42px;border-radius:50%;
  background:#15803d;color:#fff;
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
}
.course-owned-text{flex:1;min-width:200px;font-family:'DM Sans',sans-serif;color:#0d4a23;line-height:1.5;}
.course-owned-text strong{display:block;font-size:.98rem;margin-bottom:.15rem;}
.course-owned-text span{font-size:.85rem;color:#15803d;}
.course-owned-cta{
  display:inline-flex;align-items:center;gap:.4rem;
  background:#15803d;color:#fff !important;
  padding:.7rem 1.2rem;border-radius:10px;
  font-family:'DM Sans',sans-serif;font-size:.88rem;font-weight:700;
  text-decoration:none !important;
  transition:background .15s;
}
.course-owned-cta:hover{background:#0d4a23;}
@media(max-width:540px){
  .course-owned-cta{width:100%;justify-content:center;}
}
