/* ==========================================================================
   Wonders Kids — Course details + Checkout
   --------------------------------------------------------------------------
   1. Details layout   2. Media + head   3. Tabs & panels   4. Curriculum
   5. FAQs & reviews   6. Buy box + coupon   7. Related + mobile bar
   8. Checkout   9. Responsive
   Needs style.css + header.css + pages.css (+ courses.css on details page).
   ========================================================================== */

/* 1. DETAILS LAYOUT ======================================================== */
.cd { padding: 90px 0 100px; }
.cd__layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 40px; align-items: start; }
.cd__main { min-width: 0; }
.cd__aside { position: sticky; top: calc(var(--header-h-scrolled, 72px) + 24px); }
.cd-muted { color: var(--body); }
.cd-muted a { color: var(--primary); font-weight: 500; }

/* 2. MEDIA + HEAD ========================================================== */
.cd-media {
  position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 16 / 9; background: #EFEEFB;
  box-shadow: 0 30px 60px -40px rgba(22, 20, 57, .55);
}
.cd-media picture, .cd-media img { display: block; width: 100%; height: 100%; }
.cd-media img { object-fit: cover; }
.cd-media__noimg { display: grid; place-items: center; height: 100%; color: #B9B6EE; }
.cd-media__noimg .wk-icon { width: 80px; height: 80px; }
.cd-media__play {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  border: 0; cursor: pointer; color: #fff; background: linear-gradient(180deg, rgba(6, 4, 46, .05), rgba(6, 4, 46, .45));
  transition: background .3s;
}
.cd-media__play:hover { background: linear-gradient(180deg, rgba(6, 4, 46, .15), rgba(6, 4, 46, .6)); }
.cd-media__play-icon {
  position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
  background: var(--yellow); color: var(--heading); box-shadow: 0 16px 30px -10px rgba(6, 4, 46, .6);
  transition: transform .3s var(--ease);
}
.cd-media__play-icon .wk-icon { width: 30px; height: 30px; margin-left: 4px; }
.cd-media__play-icon::before, .cd-media__play-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8);
  animation: cd-ring 2.4s ease-out infinite;
}
.cd-media__play-icon::after { animation-delay: 1.2s; }
@keyframes cd-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.cd-media__play:hover .cd-media__play-icon { transform: scale(1.08); }
.cd-media__play-text {
  font-family: var(--font-heading); font-weight: 600; font-size: 16px; padding: 8px 16px; border-radius: 50px;
  background: rgba(6, 4, 46, .45);
}
@supports (backdrop-filter: blur(6px)) { .cd-media__play-text { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); } }

.cd-head { padding: 26px 0 8px; }
.cd-head__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.cd-head__cat {
  padding: 8px 16px; border-radius: 50px; font-size: 14px; font-weight: 600;
  background: var(--primary-soft); color: var(--primary); transition: background .2s, color .2s;
}
.cd-head__cat:hover { background: var(--primary); color: #fff; }
.cd-head__chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 50px; font-size: 14px; font-weight: 600; }
.cd-head__chip .wk-icon { width: 15px; height: 15px; }
.cd-head__chip--free { background: #E9F6DE; color: #4F8F1C; }
.cd-head__chip--soon { background: #FFF1E6; color: #C2410C; }
.cd-head__stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; color: var(--body); font-size: 15px; }
.cd-head__stats li { display: inline-flex; align-items: center; gap: 7px; }
.cd-head__stats .wk-icon { width: 17px; height: 17px; color: var(--primary); }
.cd-head__stats strong { color: var(--heading); font-weight: 600; }

/* Star bar: set --rating (0–5) */
.cd-head__stars {
  --size: 17px; display: inline-block; width: calc(var(--size) * 5); height: var(--size);
  background: linear-gradient(90deg, #F8BC24 calc(var(--rating, 0) / 5 * 100%), #DDDCE6 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.94 6.08 6.56.95-4.75 4.62 1.12 6.53L12 17.6l-5.87 3.08 1.12-6.53L2.5 9.53l6.56-.95Z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 2.5 2.94 6.08 6.56.95-4.75 4.62 1.12 6.53L12 17.6l-5.87 3.08 1.12-6.53L2.5 9.53l6.56-.95Z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
}
.cd-head__stars--sm { --size: 14px; }

/* 3. TABS & PANELS ========================================================= */
.cd-tabs { margin-top: 28px; }
.cd-tabs__nav { display: none; }
.cd-tabs.is-tabbed .cd-tabs__nav {
  display: flex; gap: 6px; padding: 6px; margin-bottom: 26px; border-radius: 50px; background: var(--hero-bg);
  overflow-x: auto; scrollbar-width: none;
}
.cd-tabs__nav::-webkit-scrollbar { display: none; }
.cd-tabs__btn {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px;
  border: 0; border-radius: 50px; background: transparent; cursor: pointer;
  font: 600 15px/1 var(--font-heading); color: var(--heading); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s;
}
.cd-tabs__btn span { min-width: 22px; padding: 3px 7px; border-radius: 20px; font-size: 12px; background: #fff; color: var(--primary); }
.cd-tabs__btn:hover { color: var(--primary); }
.cd-tabs__btn.is-active { background: var(--primary); color: #fff; box-shadow: 0 10px 20px -10px rgba(87, 81, 225, .9); }
.cd-tabs__btn.is-active span { background: rgba(255, 255, 255, .2); color: #fff; }

.cd-panel { outline: 0; }
.cd-tabs:not(.is-tabbed) .cd-panel + .cd-panel { margin-top: 50px; } /* no-JS: one after another */
.cd-tabs.is-tabbed .cd-panel { animation: cd-in .35s var(--ease); }
@keyframes cd-in { from { opacity: 0; transform: translateY(8px); } }
.cd-panel__title { font-size: 26px; font-weight: 700; margin-bottom: 18px; }
.cd-panel__sub { font-size: 20px; font-weight: 600; margin: 34px 0 16px; }
.cd-panel__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cd-panel__row .cd-panel__title { margin: 0; }

.cd-prose { font-size: 16px; line-height: 1.85; color: var(--body); overflow-wrap: anywhere; }
.cd-prose > * + * { margin-top: 14px; }
.cd-prose h2, .cd-prose h3, .cd-prose h4 { color: var(--heading); margin-top: 26px; line-height: 1.35; }
.cd-prose h2 { font-size: 22px; } .cd-prose h3 { font-size: 19px; } .cd-prose h4 { font-size: 17px; }
.cd-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.cd-prose ul, .cd-prose ol { padding-left: 22px; }
.cd-prose ul { list-style: disc; } .cd-prose ol { list-style: decimal; }
.cd-prose li::marker { color: var(--primary); }
.cd-prose li + li { margin-top: 6px; }
.cd-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.cd-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.cd-prose td, .cd-prose th { border: 1px solid #E5E5EE; padding: 8px 12px; }
.cd-prose blockquote { padding: 14px 18px; border-left: 4px solid var(--primary); background: #F7F7FC; border-radius: 0 12px 12px 0; }

.cd-gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cd-gets li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid #ECECF3; color: var(--body); }
.cd-gets li strong { color: var(--heading); }
.cd-gets li > span { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; }
.cd-gets .wk-icon { width: 20px; height: 20px; }

/* 4. CURRICULUM ============================================================ */
.cd-curr { display: grid; gap: 14px; }
.cd-curr__sec { border: 1px solid #E8E8F0; border-radius: 16px; background: #fff; overflow: hidden; transition: box-shadow .3s; }
.cd-curr__sec[open] { box-shadow: 0 20px 40px -30px rgba(22, 20, 57, .45); }
.cd-curr__sec > summary {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; list-style: none;
  background: #FAFAFD; transition: background .2s;
}
.cd-curr__sec > summary::-webkit-details-marker { display: none; }
.cd-curr__sec > summary:hover { background: #F4F4FB; }
.cd-curr__num {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  font: 700 14px/1 var(--font-heading); color: #fff; background: var(--grad-brand, var(--primary));
}
.cd-curr__name { flex: 1; min-width: 0; font-family: var(--font-heading); font-weight: 600; font-size: 17px; color: var(--heading); }
.cd-curr__meta { flex: none; font-size: 13px; color: var(--body); }
.cd-curr__chev, .cd-items__chev { flex: none; width: 18px; height: 18px; color: var(--body); transition: transform .3s var(--ease); }
.cd-curr__sec[open] > summary .cd-curr__chev, .cd-items__folder > details[open] > summary .cd-items__chev { transform: rotate(180deg); }
.cd-curr__note { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--body); }
.cd-curr__note .wk-icon { width: 16px; height: 16px; color: var(--primary); }

.cd-items { list-style: none; margin: 0; padding: 6px 10px 10px; }
.cd-items .cd-items { padding: 4px 0 6px 16px; margin-left: 12px; border-left: 2px dashed #E6E6EF; }
.cd-items__row, .cd-items__folder > details > summary {
  display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 10px; font-size: 15px;
}
.cd-items__row + .cd-items__row, .cd-items__row + .cd-items__folder, .cd-items__folder + .cd-items__row { border-top: 1px solid #F1F1F6; }
.cd-items__folder > details > summary { cursor: pointer; list-style: none; font-weight: 500; color: var(--heading); }
.cd-items__folder > details > summary::-webkit-details-marker { display: none; }
.cd-items__folder > details > summary:hover { background: #F7F7FB; }
.cd-items__folder > details > summary > .wk-icon:first-child { width: 20px; height: 20px; color: #E8B33F; flex: none; }
.cd-items__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #F1F0FD; color: var(--primary); }
.cd-items__icon .wk-icon { width: 17px; height: 17px; }
.cd-items__icon--video { background: #FCE8F3; color: #D23C8C; }
.cd-items__icon--quiz  { background: #E9F6DE; color: #4F8F1C; }
.cd-items__icon--image { background: #E3F7F6; color: #1F9C95; }
.cd-items__icon--audio { background: #FFF3D6; color: #B7850C; }
.cd-items__name { flex: 1; min-width: 0; color: var(--heading); overflow-wrap: anywhere; }
.cd-items__meta { flex: none; font-size: 13px; color: var(--body); }
.cd-items__lock { flex: none; color: #A9A8BA; display: grid; }
.cd-items__lock .wk-icon { width: 16px; height: 16px; }
.cd-items__soon { flex: none; padding: 4px 10px; border-radius: 30px; font-size: 12px; font-weight: 600; background: #FFF1E6; color: #C2410C; }
.cd-items__empty { margin: 0; padding: 10px 14px; font-size: 14px; color: var(--body); }

/* 5. FAQs & REVIEWS ======================================================== */
.cd-faq { display: grid; gap: 12px; }
.cd-faq__item { border: 1px solid #E8E8F0; border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .3s; }
.cd-faq__item[open] { border-color: transparent; box-shadow: 0 20px 40px -30px rgba(22, 20, 57, .45); }
.cd-faq__item summary {
  position: relative; padding: 18px 56px 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 16px; color: var(--heading);
}
.cd-faq__item summary::-webkit-details-marker { display: none; }
.cd-faq__icon { position: absolute; right: 18px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: var(--primary-soft); }
.cd-faq__icon::before, .cd-faq__icon::after { content: ""; position: absolute; left: 7px; right: 7px; top: 12px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .3s var(--ease); }
.cd-faq__icon::after { transform: rotate(90deg); }
.cd-faq__item[open] .cd-faq__icon { background: var(--primary); }
.cd-faq__item[open] .cd-faq__icon::before, .cd-faq__item[open] .cd-faq__icon::after { background: #fff; }
.cd-faq__item[open] .cd-faq__icon::after { transform: rotate(0); }
.cd-faq__a { padding: 0 20px 20px; color: var(--body); line-height: 1.8; }

.cd-rating {
  display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; align-items: center;
  padding: 24px; margin-bottom: 24px; border-radius: 18px; background: var(--hero-bg);
}
.cd-rating__score { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 14px; color: var(--body); }
.cd-rating__score strong { font: 700 52px/1 var(--font-heading); color: var(--heading); }
.cd-rating__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cd-rating__bars li { display: grid; grid-template-columns: 38px minmax(0, 1fr) 28px; align-items: center; gap: 10px; font-size: 14px; color: var(--body); }
.cd-rating__bars li > span:first-child { display: inline-flex; align-items: center; gap: 3px; }
.cd-rating__bars .wk-icon { width: 13px; height: 13px; color: #F8BC24; }
.cd-rating__bar { height: 8px; border-radius: 8px; background: #E4E3EC; overflow: hidden; }
.cd-rating__bar span { display: block; height: 100%; border-radius: 8px; background: #F8BC24; }

.cd-reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cd-review { display: flex; gap: 16px; padding: 20px; border: 1px solid #ECECF3; border-radius: 16px; }
.cd-review__avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cd-review__avatar--letter { display: grid; place-items: center; font: 700 20px/1 var(--font-heading); color: var(--primary); background: var(--primary-soft); }
.cd-review__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.cd-review__top strong { font-family: var(--font-heading); color: var(--heading); }
.cd-review p { margin: 0 0 6px; color: var(--body); line-height: 1.7; }
.cd-review time { font-size: 13px; color: #9A99AB; }

/* 6. BUY BOX + COUPON ====================================================== */
.cd-buy {
  padding: 26px; border-radius: 22px; background: #fff; border: 1px solid #ECECF3;
  box-shadow: 0 30px 60px -36px rgba(22, 20, 57, .45);
}
.cd-buy__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.cd-buy__price strong { font: 700 36px/1 var(--font-heading); color: var(--primary); }
.cd-buy__price del { font-size: 17px; color: #9A99AB; }
.cd-buy__off { padding: 5px 10px; border-radius: 30px; font-size: 13px; font-weight: 700; background: var(--yellow); color: var(--heading); }
.cd-buy__save { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; font-size: 14px; font-weight: 500; color: #4F8F1C; }
.cd-buy__save .wk-icon { width: 16px; height: 16px; }

.cd-coupon { margin-top: 18px; border-radius: 14px; background: #F8F8FC; border: 1px dashed #D6D5E8; }
.cd-coupon > summary {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600; color: var(--primary);
}
.cd-coupon > summary::-webkit-details-marker { display: none; }
.cd-coupon > summary .wk-icon { width: 16px; height: 16px; }
.cd-coupon__form { display: flex; gap: 8px; padding: 0 12px 12px; }
.cd-coupon__form input {
  flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  font: 600 15px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--heading); background: #fff;
}
.cd-coupon__form input::placeholder { letter-spacing: 0; text-transform: none; font-weight: 400; }
.cd-coupon__form input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(87, 81, 225, .12); }
.cd-coupon__form button {
  flex: none; height: 44px; padding: 0 18px; border: 0; border-radius: 10px; cursor: pointer;
  font: 600 14px/1 var(--font-body); background: var(--heading); color: #fff; transition: background .2s, opacity .2s;
}
.cd-coupon__form button:hover { background: var(--primary); }
.cd-coupon__form button.is-loading { opacity: .6; cursor: progress; }
.cd-coupon__msg { margin: 0; padding: 0 14px 12px; font-size: 13.5px; font-weight: 500; }
.cd-coupon__msg.is-ok { color: #3F7F14; }
.cd-coupon__msg.is-error { color: #C62F4B; }
.cd-coupon__remove { border: 0; background: none; padding: 0; font: inherit; color: var(--body); text-decoration: underline; cursor: pointer; }

.cd-buy__lines { margin: 16px 0 0; display: grid; gap: 8px; font-size: 14.5px; }
.cd-buy__lines[hidden] { display: none; }
.cd-buy__lines > div, .co-sum__lines > div { display: flex; justify-content: space-between; gap: 12px; }
.cd-buy__lines dt, .co-sum__lines dt { color: var(--body); }
.cd-buy__lines dd, .co-sum__lines dd { margin: 0; font-weight: 600; color: var(--heading); }
.is-discount dd { color: #3F7F14 !important; }
.is-discount span { font-weight: 600; color: var(--heading); }
.cd-buy__lines .is-total, .co-sum__lines .is-total { padding-top: 10px; border-top: 1px dashed #DCDCE6; font-size: 17px; }
.cd-buy__lines .is-total dt, .co-sum__lines .is-total dt { color: var(--heading); font-weight: 600; }

.cd-buy__btn { width: 100%; justify-content: center; gap: 10px; margin-top: 20px; padding: 17px 24px; font-size: 17px; font-weight: 700; }
.cd-buy__btn .wk-icon { width: 20px; height: 20px; }
.cd-buy__alt {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 12px;
  border-radius: 50px; border: 1px solid #E3E3EC; font-size: 14.5px; font-weight: 600; color: var(--heading); transition: border-color .2s, color .2s;
}
.cd-buy__alt .wk-icon { width: 18px; height: 18px; color: #25D366; }
.cd-buy__alt:hover { border-color: var(--primary); color: var(--primary); }
.cd-buy__title { margin: 26px 0 12px; padding-top: 22px; border-top: 1px solid #F0F0F5; font-size: 17px; font-weight: 600; }
.cd-buy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; color: var(--body); }
.cd-buy__list li { display: flex; align-items: center; gap: 10px; }
.cd-buy__list .wk-icon { flex: none; width: 18px; height: 18px; color: var(--primary); }

.cd-share { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #F0F0F5; }
.cd-share span { margin-right: auto; font-size: 14px; font-weight: 600; color: var(--heading); }
.cd-share a, .cd-share button {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: #F2F2F7; color: var(--heading); transition: background .2s, color .2s, transform .2s;
}
.cd-share .wk-icon { width: 17px; height: 17px; }
.cd-share a:hover, .cd-share button:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.cd-share button.is-copied { background: #86C04C; color: #fff; }

/* 7. RELATED + MOBILE BAR ================================================== */
.cd-related { padding: 0 0 110px; }
.cd-related__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.cd-related__head .section-title { margin: 0; }

.cd-bar { display: none; }

/* 8. CHECKOUT ============================================================== */
.co { padding: 80px 0 110px; }
.co-steps {
  list-style: none; margin: 0 auto 40px; padding: 0; max-width: 640px; display: flex; justify-content: space-between; gap: 10px;
  counter-reset: none; position: relative;
}
.co-steps::before { content: ""; position: absolute; left: 40px; right: 40px; top: 18px; height: 2px; background: repeating-linear-gradient(90deg, #D6D5E8 0 8px, transparent 8px 14px); }
.co-steps li { position: relative; display: grid; justify-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--body); text-align: center; }
.co-steps li > span {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 2px solid #D6D5E8;
  font: 700 15px/1 var(--font-heading); color: var(--body);
}
.co-steps li > span .wk-icon { width: 20px; height: 20px; }
.co-steps .is-done > span { background: #86C04C; border-color: #86C04C; color: #fff; }
.co-steps .is-current { color: var(--heading); font-weight: 600; }
.co-steps .is-current > span { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 6px var(--primary-soft); }

.co__layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 34px; align-items: start; }
.co-form { display: grid; gap: 22px; min-width: 0; }
.co-card { margin: 0; min-width: 0; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid #ECECF3; box-shadow: 0 24px 50px -40px rgba(22, 20, 57, .4); }
.co-card--plain { padding: 20px 24px; }
.co-card__title {
  display: flex; align-items: center; gap: 12px; float: left; width: 100%; margin: 0 0 22px; padding: 0;
  font: 600 20px/1.3 var(--font-heading); color: var(--heading);
}
.co-card__title + * { clear: both; }
.co-card__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 15px; color: #fff; background: var(--grad-brand, var(--primary)); }

.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.co-field { display: grid; gap: 7px; align-content: start; }
.co-field--full { grid-column: 1 / -1; }
.co-field label { font-size: 14px; font-weight: 600; color: var(--heading); }
.co-field label span { color: #E0466B; }
.co-field label small { font-weight: 400; color: var(--body); }
.co-field input {
  width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  font: 400 15px/1 var(--font-body); color: var(--heading); transition: border-color .2s, box-shadow .2s;
}
.co-field input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(87, 81, 225, .12); }
.co-field input[aria-invalid="true"] { border-color: #E0466B; box-shadow: 0 0 0 4px rgba(224, 70, 107, .1); }
.co-field__phone { display: flex; }
.co-field__phone span {
  display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px;
  background: #F7F7FB; font-weight: 600; color: var(--heading);
}
.co-field__phone input { border-radius: 0 12px 12px 0; }
.co-field__hint { margin: 0; font-size: 13px; color: var(--body); }
.co-field__error { margin: 0; font-size: 13px; font-weight: 500; color: #C62F4B; }

.co-pay { display: grid; gap: 12px; }
.co-pay__opt {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid #E3E3EC; transition: border-color .2s, background .2s, box-shadow .2s;
}
.co-pay__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-pay__opt:hover { border-color: #C9C7F3; }
.co-pay__opt:has(input:checked) { border-color: var(--primary); background: #FAFAFF; box-shadow: 0 12px 24px -18px rgba(87, 81, 225, .9); }
.co-pay__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.co-pay__icon .wk-icon { width: 20px; height: 20px; }
.co-pay__text { flex: 1; display: grid; gap: 2px; }
.co-pay__text strong { font-family: var(--font-heading); font-weight: 600; color: var(--heading); }
.co-pay__text small { font-size: 13px; color: var(--body); }
.co-pay__radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9C9D6; display: grid; place-items: center; }
.co-pay__radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .2s var(--ease); }
.co-pay__opt input:checked ~ .co-pay__radio { border-color: var(--primary); }
.co-pay__opt input:checked ~ .co-pay__radio::after { transform: scale(1); }
.co-pay__opt input:focus-visible ~ .co-pay__radio { box-shadow: 0 0 0 4px rgba(87, 81, 225, .2); }

.co-terms { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14.5px; color: var(--body); line-height: 1.6; }
.co-terms input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-terms__box { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 2px solid #C9C9D6; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.co-terms__box::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .2s var(--ease); }
.co-terms input:checked + .co-terms__box { background: var(--primary); border-color: var(--primary); }
.co-terms input:checked + .co-terms__box::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.co-terms input:focus-visible + .co-terms__box { box-shadow: 0 0 0 4px rgba(87, 81, 225, .2); }
.co-terms input[aria-invalid="true"] + .co-terms__box { border-color: #E0466B; }
.co-terms a { color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.co-terms__error { margin-top: 8px; padding-left: 32px; }

.co-sum { position: sticky; top: calc(var(--header-h-scrolled, 72px) + 24px); }
.co-sum__card { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid #ECECF3; box-shadow: 0 30px 60px -36px rgba(22, 20, 57, .45); }
.co-sum__title { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.co-sum__course { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #F0F0F5; }
.co-sum__thumb { flex: none; display: grid; place-items: center; width: 96px; height: 64px; overflow: hidden; border-radius: 12px; background: #EFEEFB; color: #B9B6EE; }
.co-sum__thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-sum__thumb .wk-icon { width: 28px; height: 28px; }
.co-sum__course strong { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--heading); line-height: 1.35; transition: color .2s; }
.co-sum__course small { display: block; margin-top: 4px; font-size: 13px; color: var(--body); }
.co-sum__course:hover strong { color: var(--primary); }
.co-sum__lines { margin: 18px 0 0; display: grid; gap: 10px; font-size: 15px; }
.co-sum__lines [hidden] { display: none; }
.co-sum__lines .is-total dd { font: 700 24px/1 var(--font-heading); color: var(--primary); }
.co-sum__pay { width: 100%; justify-content: center; gap: 10px; margin-top: 22px; padding: 17px 20px; font-size: 17px; font-weight: 700; }
.co-sum__pay .wk-icon { width: 18px; height: 18px; }
.co-sum__pay.is-loading { opacity: .7; cursor: progress; }
.co-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.55; }
.co-status.is-error { background: #FDECEF; color: #A3243D; }
.co-status.is-info { background: #EEF0FF; color: #3B35B5; }
.co-sum__trust { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid #F0F0F5; display: grid; gap: 10px; font-size: 14px; color: var(--body); }
.co-sum__trust li { display: flex; align-items: center; gap: 9px; }
.co-sum__trust .wk-icon { flex: none; width: 17px; height: 17px; color: var(--primary); }
.co-sum__trust a { color: var(--heading); font-weight: 600; }

/* 9. RESPONSIVE ============================================================ */
@media (max-width: 1199px) {
  .cd__layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; }
  .co__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; }
}
@media (max-width: 991px) {
  .cd { padding: 60px 0 70px; }
  .cd__layout, .co__layout { grid-template-columns: minmax(0, 1fr); }
  .cd__aside, .co-sum { position: static; }
  .cd__aside { order: -1; } /* price + Buy Now right after the video on tablets/phones */
  .cd__main { display: contents; }
  .cd-media { order: -2; }
  .cd-head { order: -1; padding-top: 0; }
  .cd-tabs { order: 1; margin-top: 10px; }
  .cd-related { padding-bottom: 90px; }

  .cd-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -12px 30px -16px rgba(6, 4, 46, .35);
    transform: translateY(110%); transition: transform .35s var(--ease);
  }
  .cd-bar.is-visible { transform: none; }
  .cd-bar__price { display: flex; align-items: baseline; gap: 8px; }
  .cd-bar__price strong { font: 700 22px/1 var(--font-heading); color: var(--primary); }
  .cd-bar__price del { font-size: 14px; color: #9A99AB; }
  .cd-bar .btn { padding: 12px 22px; font-weight: 700; box-shadow: 3px 4px 0 #1C1A4A; }
  body.has-buy-bar .back-to-top { bottom: 84px; }

  .co { padding: 60px 0 90px; }
}
@media (max-width: 767px) {
  .cd-gets { grid-template-columns: minmax(0, 1fr); }
  .cd-rating { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .cd-panel__title { font-size: 22px; }
  .cd-tabs.is-tabbed .cd-tabs__nav { border-radius: 16px; }
  .cd-tabs__btn { padding: 11px 16px; font-size: 14px; }
  .co-grid { grid-template-columns: minmax(0, 1fr); }
  .co-card { padding: 22px 18px; border-radius: 18px; }
  .co-steps li { font-size: 12.5px; }
}
@media (max-width: 575px) {
  .cd-media { border-radius: 18px; }
  .cd-media__play-icon { width: 66px; height: 66px; }
  .cd-buy, .co-sum__card { padding: 22px 18px; }
  .cd-curr__sec > summary { padding: 14px; gap: 10px; }
  .cd-curr__num { width: 32px; height: 32px; font-size: 13px; }
  .cd-curr__name { font-size: 15.5px; }
  .cd-items { padding: 4px 6px 8px; }
  .cd-items__row { flex-wrap: wrap; row-gap: 4px; }
  .cd-items__row .cd-items__name { flex-basis: calc(100% - 46px - 28px); }
  .cd-items__row .cd-items__meta { margin-left: 46px; order: 5; }
  .cd-items .cd-items { margin-left: 4px; padding-left: 10px; }
  .cd-review { padding: 16px; gap: 12px; }
  .cd-review__avatar { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .cd-media__play-icon::before, .cd-media__play-icon::after { animation: none; display: none; }
  .cd-tabs.is-tabbed .cd-panel { animation: none; }
}
/* "You're enrolled" state in the buy box */
.cd-enrolled { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #F4FBEE; border: 1px solid #CBE8B5; }
.cd-enrolled__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #E1F3D2; color: #3F7F14; }
.cd-enrolled__icon .wk-icon { width: 20px; height: 20px; }
.cd-enrolled strong { display: block; font-family: var(--font-heading); color: var(--heading); }
.cd-enrolled span:not(.cd-enrolled__icon) { font-size: 13.5px; color: #3F7F14; }
