﻿/* ============================================================
   Course detail page — ik- design system extension
   Used by Views/Courses/Details.cshtml
   Prefix: ik-cd-
   ============================================================ */

/* ---------- hero ---------- */
.ik-cd-hero-in { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }

/* ---------- hero meta pills ---------- */
.ik-cd-hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.ik-cd-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 13px;
    color: #DCE9F5;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    padding: 7px 14px;
    border-radius: 999px;
}
.ik-cd-hero-pill svg { flex: none; opacity: .9; }

/* ---------- layout ---------- */
.ik-cd-layout {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: clamp(22px, 3vw, 40px);
    flex-wrap: wrap;
}
.ik-cd-main { flex: 1 1 520px; min-width: 300px; display: flex; flex-direction: column; gap: 26px; }
.ik-cd-aside { flex: 1 1 300px; max-width: 360px; min-width: 280px; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 991.98px) {
    .ik-cd-aside { position: static; max-width: none; }
}

/* ---------- content cards ---------- */
.ik-cd-card {
    background: #fff;
    border: 1px solid var(--ik-border-soft);
    border-radius: 20px;
    box-shadow: 0 16px 38px -30px rgba(80, 55, 20, .5);
    padding: clamp(22px, 3vw, 30px);
}
.ik-cd-card h2 {
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 21px;
    color: var(--ik-ink);
    margin: 0 0 12px;
}
.ik-cd-card-sub {
    font-family: var(--ik-body);
    font-weight: 500;
    font-size: 14px;
    color: var(--ik-gray);
    margin: -6px 0 20px;
}
.ik-cd-prose {
    font-family: var(--ik-body);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.65;
    color: var(--ik-muted);
    margin: 0 0 14px;
}
.ik-cd-prose:last-child { margin-bottom: 0; }

.ik-cd-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ik-cd-tag {
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 12.5px;
    color: var(--ik-green-deep);
    background: var(--ik-mint-bg);
    padding: 6px 13px;
    border-radius: 999px;
}

.ik-cd-req-heading { font-family: var(--ik-display); font-weight: 600; font-size: 15px; color: var(--ik-ink); margin: 0 0 8px; }
.ik-cd-req-heading:not(:first-child) { margin-top: 18px; }

/* ---------- instructors & schedule ---------- */
.ik-cd-instructor { margin-bottom: 18px; }
.ik-cd-instructor:last-child { margin-bottom: 0; }
.ik-cd-instructor-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.ik-cd-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    color: #fff;
    font-family: var(--ik-display);
    font-weight: 700;
    font-size: 15px;
    overflow: hidden;
}
.ik-cd-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ik-cd-instructor-name { font-family: var(--ik-display); font-weight: 600; font-size: 16px; color: var(--ik-ink); }
.ik-cd-instructor-count { font-family: var(--ik-body); font-weight: 700; font-size: 12px; color: var(--ik-gray); }
.ik-cd-instructor-bio { font-family: var(--ik-body); font-weight: 500; font-size: 13.5px; color: var(--ik-gray); margin: 2px 0 0; }

.ik-cd-slots { display: flex; flex-direction: column; gap: 9px; }
.ik-cd-slot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid var(--ik-border);
    border-radius: 14px;
    background: #fff;
}
.ik-cd-slot.is-full { background: var(--ik-cream-2); opacity: .7; }
.ik-cd-slot-body { flex: 1; min-width: 0; }
.ik-cd-slot-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ik-cd-slot-day { font-family: var(--ik-display); font-weight: 600; font-size: 15px; color: var(--ik-ink); }
.ik-cd-slot-time { font-family: var(--ik-body); font-weight: 700; font-size: 13px; color: var(--ik-muted); }
.ik-cd-slot-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.ik-cd-slot-room { font-family: var(--ik-body); font-weight: 700; font-size: 12px; color: var(--ik-gray); }
.ik-cd-slot-bar { width: 70px; height: 5px; border-radius: 99px; background: var(--ik-cream-2); overflow: hidden; flex: none; }
.ik-cd-slot-bar-fill { display: block; height: 100%; background: var(--ik-green); }
.ik-cd-slot-bar-fill.is-full { background: var(--ik-coral); }
.ik-cd-slot-spots { font-family: var(--ik-body); font-weight: 700; font-size: 12px; color: var(--ik-green-deep); }
.ik-cd-slot-spots.is-full { color: #c23b3f; }

.ik-cd-schedule-tbd {
    text-align: center;
    font-family: var(--ik-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--ik-gray);
    padding: 12px 0;
}

/* ---------- price / quick-info card ---------- */
.ik-cd-price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.ik-cd-price-amt { font-family: var(--ik-display); font-weight: 700; font-size: 38px; color: var(--ik-green-deep); }
.ik-cd-price-unit { font-family: var(--ik-body); font-weight: 700; font-size: 14px; color: var(--ik-gray); }

/* Cheaper rates for coming more often. Sits under the headline price as a short
   list rather than replacing it — the advertised price stays the one every
   visitor qualifies for, and this reads as what it is: a discount for committing. */
.ik-cd-freq {
    list-style: none;
    margin: 10px 0 18px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--ik-mint-bg);
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ik-cd-freq li {
    font-family: var(--ik-body);
    font-weight: 500;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ik-green-deep);
}
.ik-cd-freq strong { font-family: var(--ik-display); font-weight: 600; }

.ik-cd-info-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 20px; }
.ik-cd-info-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ik-cd-info-label { font-family: var(--ik-body); font-weight: 700; font-size: 13.5px; color: var(--ik-gray); }
.ik-cd-info-val { font-family: var(--ik-display); font-weight: 600; font-size: 14px; color: var(--ik-ink); text-align: right; }

.ik-cd-enroll-btn { width: 100%; justify-content: center; padding: 15px; border-radius: 14px; font-size: 17px; }
.ik-btn-cta[disabled], .ik-btn-cta.is-disabled {
    opacity: .55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}
.ik-btn-cta[disabled]:hover, .ik-btn-cta.is-disabled:hover { background: var(--ik-blue-deep); transform: none; box-shadow: none; }

.ik-cd-outline-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--ik-ink);
    background: #fff;
    border: 2px solid var(--ik-border);
    padding: 12px 20px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ik-cd-outline-btn:hover { border-color: var(--ik-green); background: var(--ik-mint-bg); color: var(--ik-ink); }

.ik-cd-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 13px;
    font-family: var(--ik-body);
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 4px;
}
.ik-cd-alert svg { flex: none; margin-top: 1px; }
.ik-cd-alert--warn { background: rgba(255, 212, 121, .22); color: #8a6412; }

/* ---------- already-enrolled summary card ---------- */
.ik-cd-enrolled-card {
    background: #fff;
    border: 2px solid var(--ik-green);
    border-radius: 18px;
    overflow: hidden;
}
.ik-cd-enrolled-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 13px 16px;
    background: var(--ik-green);
    color: #fff;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 14.5px;
}
.ik-cd-enrolled-sub { font-family: var(--ik-body); font-weight: 600; font-size: 12.5px; color: var(--ik-gray); padding: 12px 16px 0; }
.ik-cd-enrolled-list { padding: 6px 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.ik-cd-enrolled-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; }
.ik-cd-enrolled-item:hover { background: var(--ik-cream-2); }
.ik-cd-enrolled-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ik-mint-bg); color: var(--ik-green-deep); display: grid; place-items: center; flex: none; }
.ik-cd-enrolled-name { flex: 1; font-family: var(--ik-body); font-weight: 700; font-size: 14px; color: var(--ik-ink); }
.ik-cd-mini-badge { font-family: var(--ik-body); font-weight: 700; font-size: 11px; color: var(--ik-green-deep); background: var(--ik-mint-bg); padding: 3px 9px; border-radius: 999px; }

/* ---------- manage current enrollments (unenroll) ---------- */
.ik-cd-manage-card { background: var(--ik-cream-2); border-radius: 16px; padding: 18px; margin-bottom: 4px; }
.ik-cd-manage-head { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--ik-border-soft); }
.ik-cd-manage-head h3 { font-family: var(--ik-display); font-weight: 600; font-size: 15px; color: var(--ik-ink); margin: 0 0 2px; }
.ik-cd-manage-head p { font-family: var(--ik-body); font-weight: 600; font-size: 12px; color: var(--ik-gray); margin: 0; }

.ik-cd-student-block { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px; box-shadow: 0 6px 18px -14px rgba(0, 0, 0, .3); }
.ik-cd-student-block:last-child { margin-bottom: 0; }
.ik-cd-student-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ik-border-soft); }
.ik-cd-student-info { display: flex; align-items: center; gap: 10px; }
.ik-cd-student-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--ik-blue), #1a9cd4); display: grid; place-items: center; color: #fff; flex: none; }
.ik-cd-student-info h4 { font-family: var(--ik-display); font-weight: 600; font-size: 14.5px; color: var(--ik-ink); margin: 0; }
.ik-cd-student-info small { font-family: var(--ik-body); font-weight: 600; font-size: 12px; color: var(--ik-gray); }
.ik-cd-quick-actions { display: flex; gap: 4px; }
.ik-cd-quick-actions button { border: none; background: none; cursor: pointer; padding: 5px; color: var(--ik-green-deep); border-radius: 8px; }
.ik-cd-quick-actions button:last-child { color: var(--ik-gray); }
.ik-cd-quick-actions button:hover { background: var(--ik-cream-2); }

.ik-cd-unenroll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ik-cd-unenroll-chip { position: relative; }
.ik-cd-unenroll-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.ik-cd-unenroll-chip label {
    display: block;
    background: var(--ik-cream-2);
    border: 1.5px solid var(--ik-border);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ik-cd-unenroll-chip input:checked + label { background: #ffe0e0; border-color: var(--ik-coral); }
.ik-cd-unenroll-chip-day { font-family: var(--ik-display); font-weight: 700; font-size: 14px; color: var(--ik-ink); }
.ik-cd-unenroll-chip-time { font-family: var(--ik-body); font-weight: 600; font-size: 12px; color: var(--ik-gray); margin-top: 2px; }
.ik-cd-unenroll-chip-flag { display: none; align-items: center; gap: 4px; margin-top: 6px; font-family: var(--ik-body); font-weight: 700; font-size: 11px; color: #c23b3f; }
.ik-cd-unenroll-chip input:checked + label .ik-cd-unenroll-chip-flag { display: flex; }

.ik-cd-unenroll-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e0484d;
    color: #fff;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 14px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: filter .15s;
}
.ik-cd-unenroll-btn:hover { filter: brightness(1.06); }
.ik-cd-unenroll-hint { text-align: center; font-family: var(--ik-body); font-weight: 600; font-size: 11.5px; color: var(--ik-gray); margin: 8px 0 0; }

/* ---------- enrollment form ---------- */
.ik-cd-form-label { display: block; font-family: var(--ik-display); font-weight: 600; font-size: 14px; color: var(--ik-ink); margin-bottom: 10px; }

.ik-cd-student-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.ik-cd-student-option {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1.5px solid var(--ik-border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ik-cd-student-option:has(input:checked) { border-color: var(--ik-green); background: var(--ik-mint-bg); }
.ik-cd-student-option.is-disabled { opacity: .55; cursor: not-allowed; }
.ik-cd-student-option input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ik-green); flex: none; }
.ik-cd-student-option-name { flex: 1; font-family: var(--ik-body); font-weight: 700; font-size: 14.5px; color: var(--ik-ink); }
.ik-cd-student-option-age { font-family: var(--ik-body); font-weight: 600; font-size: 12.5px; color: var(--ik-gray); }
.ik-cd-not-eligible { font-family: var(--ik-body); font-weight: 700; font-size: 11px; color: var(--ik-muted); background: var(--ik-cream-2); padding: 3px 9px; border-radius: 999px; }

.ik-cd-error-text { display: none; color: #d83a3f; font-family: var(--ik-body); font-weight: 700; font-size: 13px; margin-top: 8px; }
.ik-cd-error-text.is-visible { display: block; }

/* Expands to whatever the content actually measures, via grid 0fr → 1fr.
   This replaced a max-height: 0 → 2000px transition, which had two problems: a
   course with enough time slots to exceed 2000px was silently clipped by the
   overflow: hidden, and the 400ms duration was spent travelling to 2000px rather
   than to the real height — so a short panel snapped open in a fraction of the
   time and the collapse appeared to stall before dropping. Only
   grid-template-rows animates now; the spacing sits on the inner wrapper so it
   collapses with the content instead of needing its own margin transition. */
.ik-cd-schedule-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .4s cubic-bezier(.4, 0, .2, 1), opacity .3s ease;
}
.ik-cd-schedule-panel-in { overflow: hidden; min-height: 0; }
.ik-cd-schedule-panel.is-visible { grid-template-rows: 1fr; opacity: 1; }
.ik-cd-schedule-panel.is-visible .ik-cd-schedule-panel-in { padding-top: 16px; }

@media (prefers-reduced-motion: reduce) {
    .ik-cd-schedule-panel { transition: none; }
}
.ik-cd-schedule-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 187, 244, .1);
    color: #1a7ba3;
    font-family: var(--ik-body);
    font-weight: 600;
    font-size: 12.5px;
    padding: 9px 12px;
    border-radius: 10px;
    margin-bottom: 10px;
}

.ik-cd-schedule-list { display: flex; flex-direction: column; gap: 9px; }
.ik-cd-schedule-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border: 1.5px solid var(--ik-border);
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ik-cd-schedule-option:has(input:checked) { border-color: var(--ik-green); background: var(--ik-mint-bg); }
.ik-cd-schedule-option.is-blocked { opacity: .6; cursor: not-allowed; background: var(--ik-cream-2); }
.ik-cd-schedule-option input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ik-green); flex: none; }
.ik-cd-schedule-option-body { flex: 1; min-width: 0; }
.ik-cd-schedule-option-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ik-cd-schedule-option-day { font-family: var(--ik-display); font-weight: 600; font-size: 14.5px; color: var(--ik-ink); }
.ik-cd-schedule-option-time { font-family: var(--ik-body); font-weight: 700; font-size: 12.5px; color: var(--ik-muted); display: block; margin-top: 2px; }
.ik-cd-schedule-option-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ik-cd-pill {
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 999px;
}
.ik-cd-pill--gray { background: var(--ik-cream-2); color: var(--ik-muted); }
.ik-cd-pill--ok { background: var(--ik-mint-bg); color: var(--ik-green-deep); }
.ik-cd-pill--warn { background: rgba(255, 212, 121, .3); color: #8a6412; }
.ik-cd-pill--full { background: var(--ik-pink-bg); color: #c23b3f; }
.ik-cd-status-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.ik-cd-status-row .ik-cd-pill { animation: ik-cd-badgeIn .2s ease; }
@keyframes ik-cd-badgeIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- toast (dependency-free feedback) ---------- */
.ik-cd-toast {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(-24px);
    z-index: 300;
    display: none;
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
    min-width: 280px;
    max-width: 90vw;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 22px 50px -16px rgba(0, 0, 0, .35);
    padding: 14px 18px;
}
.ik-cd-toast.is-open { display: block; }
.ik-cd-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.ik-cd-toast-row { display: flex; align-items: center; gap: 12px; }
.ik-cd-toast-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--ik-mint-bg); color: var(--ik-green-deep); display: grid; place-items: center; flex: none; }
.ik-cd-toast--error .ik-cd-toast-icon { background: #ffe0e0; color: #c23b3f; }
.ik-cd-toast-msg { font-family: var(--ik-body); font-weight: 600; font-size: 13.5px; color: var(--ik-muted); }

/* ---------- related courses ---------- */
.ik-cd-related-head { font-family: var(--ik-display); font-weight: 600; font-size: 21px; color: var(--ik-ink); margin: 0 0 16px; }

/* ============================================================
   Booking panel — one panel, ordered by who is looking.
   Prospect: enrol form only. Enrolled parent: their enrollments
   first, then "Add another". Replaces the old tall manager card
   plus its duplicate "Already enrolled" card.
   ============================================================ */
.ik-cd-panel {
    background: #fff;
    border: 1px solid var(--ik-border-soft);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 16px 38px -30px rgba(80, 55, 20, .5);
}
/* The panel is the decision, so it stays with the reader on desktop. */
@media (min-width: 992px) {
    .ik-cd-aside { align-self: start; }
    .ik-cd-panel { max-height: calc(100vh - 110px); overflow-y: auto; }
}

.ik-cd-yours {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ik-border-soft);
}
.ik-cd-yours-head {
    margin: 0 0 12px;
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--ik-ink);
}
.ik-cd-yours-student + .ik-cd-yours-student { margin-top: 14px; }
.ik-cd-yours-who { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ik-cd-yours-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--ik-mint-bg);
    color: var(--ik-green-deep);
    display: grid; place-items: center;
    font-family: var(--ik-display);
    font-weight: 700;
    font-size: 12px;
    flex: none;
}
.ik-cd-yours-name { font-family: var(--ik-display); font-weight: 600; font-size: 14.5px; }
/* One row per enrolled slot. Ticking rows arms the unenroll button below. */
.ik-cd-yours-slot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 9px 12px;
    margin-bottom: 7px;
    border: 1.5px solid var(--ik-border);
    border-radius: 12px;
    background: var(--ik-mint-bg);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.ik-cd-yours-slot:has(.unenroll-checkbox:checked) {
    border-color: var(--ik-red);
    background: var(--ik-pink-bg);
}
.ik-cd-yours-slot input { width: 17px; height: 17px; accent-color: var(--ik-red); flex: none; }
.ik-cd-yours-when {
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 13.5px;
    color: var(--ik-ink);
    min-width: 0;
}
.ik-cd-yours-when span {
    display: block;
    font-family: var(--ik-body);
    font-weight: 600;
    font-size: 12px;
    color: var(--ik-muted);
    font-variant-numeric: tabular-nums;
}
.ik-cd-yours-mark {
    margin-left: auto;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ik-gray);
}
.ik-cd-yours-slot:has(.unenroll-checkbox:checked) .ik-cd-yours-mark { color: var(--ik-red); }
.ik-cd-yours-btn {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
    border: 1.5px solid var(--ik-border);
    border-radius: 999px;
    background: #fff;
    color: var(--ik-red);
    font-family: var(--ik-display);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.ik-cd-yours-btn:hover { border-color: var(--ik-red); background: var(--ik-pink-bg); }

/* "Add another" — the seam between managing and buying. */
.ik-cd-add-sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 14px;
}
.ik-cd-add-sep::before, .ik-cd-add-sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--ik-border-soft);
}
.ik-cd-add-sep span {
    font-family: var(--ik-body);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ik-gray);
}

.ik-cd-schedule-option-sub {
    font-family: var(--ik-body);
    font-weight: 600;
    font-size: 12px;
    color: var(--ik-muted);
    margin-top: 3px;
}
.ik-cd-fineprint {
    margin: 10px 0 0;
    text-align: center;
    font-family: var(--ik-body);
    font-weight: 600;
    font-size: 12px;
    color: var(--ik-gray);
}
.ik-cd-enroll-btn { width: 100%; min-height: 48px; margin-top: 16px; }

/* ---- compact hero (course detail only; program pages keep the tall one) ----
   A parent arriving here has already chosen the subject, so the banner does not
   need to sell — it needs to identify the class and get out of the way. */
.ik-cd-hero {
    padding: clamp(96px, 11vh, 116px) clamp(22px, 5vw, 56px) clamp(28px, 4vw, 40px);
}

/* ---- progressive disclosure for secondary cards ----
   Requirements and teacher bios stay one click away instead of pushing the
   decision below the fold. */
.ik-cd-disclosure { padding: 0; }
.ik-cd-disclosure > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 22px;
    min-height: 56px;
    cursor: pointer;
    list-style: none;
    border-radius: 20px;
}
.ik-cd-disclosure > summary::-webkit-details-marker { display: none; }
.ik-cd-disclosure > summary h2 { margin: 0; }
.ik-cd-disclosure > summary:hover { background: var(--ik-mint-bg); }
.ik-cd-chev {
    flex: none;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ik-mint-bg);
    position: relative;
    transition: transform .22s cubic-bezier(.22, 1, .36, 1);
}
.ik-cd-chev::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 7px; height: 7px;
    border-right: 2.4px solid var(--ik-green-deep);
    border-bottom: 2.4px solid var(--ik-green-deep);
    transform: translateY(-2px) rotate(45deg);
}
.ik-cd-disclosure[open] .ik-cd-chev { transform: rotate(180deg); }
.ik-cd-disclosure-body { padding: 0 22px 22px; }

/* The action stays put while the panel's own content scrolls, so "Register my
   child" is reachable at any viewport height without hunting for it. */
@media (min-width: 992px) {
    .ik-cd-panel form { position: relative; }
    .ik-cd-enroll-btn {
        position: sticky;
        bottom: -1px;
        z-index: 2;
    }
    .ik-cd-panel .ik-cd-fineprint {
        position: sticky;
        bottom: -1px;
        background: #fff;
        padding-bottom: 4px;
        margin-top: 0;
        padding-top: 8px;
    }
}

/* Tighter hero + facts so the panel starts higher and the action reaches the fold. */
.ik-cd-hero { padding: clamp(92px, 10vh, 104px) clamp(22px, 5vw, 56px) clamp(20px, 3vw, 28px); }
.ik-cd-hero h1 { margin-bottom: 10px; }
/* Four one-line facts side by side instead of four stacked rows. */
.ik-cd-panel .ik-cd-info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
}
.ik-cd-panel .ik-cd-info-row {
    display: flex;
    flex-direction: column;
    gap: 1px;
    border: none;
    padding: 0;
}
.ik-cd-panel .ik-cd-info-label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ik-cd-panel .ik-cd-info-val { font-size: 13.5px; }
/* Related-course link was a 17px hit area. */
.ik-cd-layout .ik-class-link { min-height: 44px; display: inline-flex; align-items: center; }

/* On phones there is no sidebar column, so source order decides everything: the
   booking panel must come before the description, not after it. */
@media (max-width: 991.98px) {
    .ik-cd-layout { flex-direction: column; }
    .ik-cd-aside { order: -1; }
}

/* ---- mobile action bar ----
   Phones get no sidebar, so the booking panel scrolls out of reach. This pins the
   decision to the bottom and steps aside whenever the real panel is on screen. */
.ik-cd-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--ik-border);
    box-shadow: 0 -10px 30px -22px rgba(80, 55, 20, .8);
    transform: translateY(0);
    transition: transform .22s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}
.ik-cd-bar[hidden] { display: none; }
.ik-cd-bar.is-tucked {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
}
.ik-cd-bar-price {
    font-family: var(--ik-display);
    font-weight: 700;
    font-size: 19px;
    color: var(--ik-ink);
    white-space: nowrap;
}
.ik-cd-bar-price small {
    font-family: var(--ik-body);
    font-weight: 600;
    font-size: 12px;
    color: var(--ik-muted);
}
.ik-cd-bar-btn {
    flex: 1;
    min-height: 48px;
    justify-content: center;
    white-space: nowrap;
}
/* Desktop keeps the sticky side panel; the bar would be redundant there. */
@media (min-width: 992px) {
    .ik-cd-bar { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
    .ik-cd-bar { transition: none; }
}
