@layer theme-custom {
/* 呂緋國文：隱藏所有前台課程購買／學員人數 */
body.b_course_list .course-block-footer li:has(.fa-user),
body.b_course_intro .course-info-list li:has(.fa-user) {
  display: none !important;
}

/* 手機版課程銷售頁：固定價格＋立即購買列 */
@media (max-width: 767.98px) {
  body.b_course_intro {
    padding-bottom: 82px;
  }

  body.b_course_intro a[data-url*="/cart/quick-checkout/course/"][data-sellable="yes"] {
    position: fixed !important;
    left: 12px;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 1045;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    margin: 0 !important;
    padding: 12px 20px !important;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 16px !important;
    background: linear-gradient(135deg, #7f2940 0%, #a94854 55%, #c5745d 100%) !important;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.25;
    text-align: center;
    box-shadow: 0 10px 30px rgba(88, 31, 48, .32);
  }

  body.b_course_intro a[aria-label*="LINE"],
  body.b_course_intro a[title*="LINE"],
  body.b_course_intro a[href*="line.me"][style*="position: fixed"] {
    bottom: 82px !important;
  }
}

/* event-7 registration-flow image fix */
body.b_event_detail #event-apply-procedure{scroll-margin-top:120px;clear:both;position:relative;z-index:1}
body.b_event_detail #event-apply-procedure .html-info h4 span{display:flex;flex-direction:column;align-items:stretch;gap:18px;font-size:18px!important;line-height:1.5}
body.b_event_detail #event-apply-procedure img[src*="f426ebd9-396a-467d-a1b4-ab5a4087f333.png"]{float:none!important;display:block!important;width:100%!important;height:auto!important;max-width:800px!important;margin:0 auto 8px!important;position:static!important}
body.b_event_detail #event-apply-procedure .html-info h4,
body.b_event_detail #event-apply-procedure .html-info p,
body.b_event_detail #event-apply-procedure .html-info ul{clear:both;position:relative;z-index:2}
body.b_event_detail #event-apply-procedure .html-info{overflow:visible;display:block}

/* event-7 readability refinement */
body.b_event_detail .lf-event{word-break:normal;overflow-wrap:break-word}
body.b_event_detail .lf-event .lf-panel{min-width:0}
body.b_event_detail .lf-event .lf-syllabus-grid{grid-template-columns:1fr}
body.b_event_detail .lf-event .lf-lesson{grid-template-columns:52px minmax(0,1fr)}
body.b_event_detail #event-apply-procedure img[src*="f426ebd9-396a-467d-a1b4-ab5a4087f333.png"]{max-width:680px!important;border-radius:16px;box-shadow:0 8px 24px rgba(80,45,52,.08)}
body.b_event_detail .purchase-block .purchase-content{word-break:normal;overflow-wrap:break-word}
body.b_event_detail .purchase-block .purchase-content p{line-height:1.65;margin-bottom:10px}
body.b_event_detail .purchase-block h4{line-height:1.45}

}
