body.course-item-popup .lp-single-course #learn-press-course-curriculum {
    padding-top: 0;
}

.course-actions {
    padding: 16px 25px;
    position: sticky;
    bottom: 0;
    width: 100%;
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.course-action-lists .course-actions {
    padding: 16px 12px;
}

.fa.brand {
    color: #A85C62 !important;
}

.la-check {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    background: url('assets/svg/checkbox.svg') no-repeat;
    background-size: contain;
    flex-shrink: 0;
    cursor: pointer;
}

.la-heart {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    background: url('assets/svg/heart-outline.svg') no-repeat;
    background-size: contain;
    flex-shrink: 0;
    cursor: pointer;
}

.section-item-link .la-heart {
    margin-right: 0;
}

.la-heart.active {
    background: url('assets/svg/heart-fill-color.svg') no-repeat;
    background-size: contain;
}

.la-check.active {
    background: url('assets/svg/checkbox-checked.svg') no-repeat;
    background-size: contain;
}

.section-item-link .first-group {
    display: flex;
    align-items: center;
}

.section-item-link .fa {
    margin-left: 5px;
}

.course-actions .fa {
    margin-right: 5px;
}

.course-actions .btns-box {
    display: flex;
    gap: 12px;
}

.course-action-lists .course-actions .btns-box {
    width: 100%;
}

/* Consolidated styles for .watch-later & .watched */
.course-actions .watch-later,
.course-actions .watched {
    background-color: #F7F7F7;
    border: 2px solid #EAEAEA;
    color: #A9A9A9;
    display: inline-flex;
    padding: 12px 50px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    height: 45px;
}

/* Hover effect - shared */
.course-actions .watch-later:hover,
.course-actions .watched:hover {
    background-color: #F7F7F7;
    color: #A85C62;
    border: 2px solid #A85C62;
}

.course-actions .btn-text {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    justify-content: center;
    width: 100%;
    user-select: none;
}

/* Active watch-later & watched */
.course-actions .watch-later.active,
.course-actions .watch-later.active:hover {
    background-color: #A85C62;
    color: #fff;
    border: 2px solid #A85C62;
}

.course-actions .watched.active,
.course-actions .watched.active:hover {
    background-color: #59B453;
    color: #fff;
    border: 2px solid #59B453;
}

/* Consolidated active override */
.course-action-lists .course-actions .watched.active,
.course-action-lists .course-actions .watch-later.active {
    background-color: #F7F7F7;
    color: #A85C62;
    border: 2px solid #A85C62;
}

/* Shared base for all .btn-text::before icons */
.course-actions .btn-text::before,
.course-action-lists .course-actions .watched.active .btn-text::before,
.course-action-lists .course-actions .watch-later.active .btn-text::before,
.course-actions .watched .btn-text::before,
.course-action-lists .watched .btn-text::before,
.course-actions .watched.active .btn-text::before,
.course-actions .watch-later .btn-text::before,
.course-actions .watch-later.active .btn-text::before {
    content: '';
    display: block;
    background-size: contain;
    margin-top: -2px;
}

/* Only changing icons */
.course-actions .watched .btn-text::before {
    background: url('./assets/svg/checkbox.svg') no-repeat;
    width: 16px;
    height: 16px;
}

.course-action-lists .watched .btn-text::before {
    background: url('./assets/svg/checkbox-checked.svg') no-repeat;
    width: 16px;
    height: 16px;
}

.course-actions .watched.active .btn-text::before {
    background: url('./assets/svg/checkbox-checked-white.svg') no-repeat;
    width: 16px;
    height: 16px;
}

.course-actions .watch-later .btn-text::before {
    background: url('./assets/svg/heart-outline.svg') no-repeat;
    width: 18px;
    height: 18px;
}

.course-actions .watch-later.active .btn-text::before {
    background: url('./assets/svg/heart-outline-fill.svg') no-repeat;
    width: 18px;
    height: 18px;
}

.course-action-lists .course-actions .watched.active .btn-text::before {
    background: url('./assets/svg/checkbox-checked.svg') no-repeat;
}

.course-action-lists .course-actions .watch-later.active .btn-text::before {
    background: url('./assets/svg/heart-outline.svg') no-repeat;
}

.course-actions .lesson {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.course-actions .lesson-name {
    display: flex;
}

.course-actions .lesson-name .pre {
    font-size: 16px;
    font-weight: 500;
    color: #000;
    border-right: 1px solid #000;
    margin-right: 6px;
    padding-right: 6px;
}

/* Watch-later & Watched override */
.course-action-lists .course-actions .watch-later,
.course-action-lists .course-actions .watched {
    padding: 12px 0px;
    width: 100%;
    border: 2px solid #d1d1d1;
    color: #A9A9A9;
}

/* Curriculum list reset */
.curriculum-sections ul.section-content-watched,
.curriculum-sections ul.section-content-watch-later {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Curriculum section-left */
.curriculum-sections.watched .section-left,
.curriculum-sections.watch-later .section-left {
    display: block;
    padding: 0 20px;
}

/* Section link layout */
.curriculum-sections ul.section-content-watched a.section-item-link,
.curriculum-sections ul.section-content-watch-later a.section-item-link {
    padding: 0 20px 0 45px;
    position: relative;
    width: 100%;
    display: flex;
    min-height: 56px;
    align-items: center;
}

/* Odd item background */
.curriculum-sections ul.section-content-watched .course-item:nth-child(odd),
.curriculum-sections ul.section-content-watch-later .course-item:nth-child(odd) {
    background-color: #f8f8f8;
}

/* Item name padding */
.curriculum-sections ul.section-content-watched .course-item .item-name,
.curriculum-sections ul.section-content-watch-later .course-item .item-name {
    padding: 10px 0;
}

/* Margin tweak for course popup layout */
body.single-lp_course.course-item-popup .curriculum-sections.watch-later,
body.single-lp_course.course-item-popup .curriculum-sections.watched {
    margin-bottom: 10px;
}

/* Media queries */
@media (max-width: 767px) {
    .course-actions.footer .lesson {
        display: none;
    }

    .course-actions.footer .watch-later,
    .course-actions.footer .watched {
        padding: 12px 20px;
    }
}

@media (max-width: 480px) {
    .course-actions {
        padding: 16px;
    }

    .safari .course-actions.footer {
        padding: 16px 28px 16px 10px;
    }

    .course-actions.footer {
        padding: 16px 22px 16px 16px;
    }

    .course-actions.footer .btns-box {
        width: 100%;
    }

    .course-actions.footer .watch-later,
    .course-actions.footer .watched {
        width: 100%;
    }

    .course-action-lists .course-actions .watched,
    .course-action-lists .course-actions .watch-later {
        font-size: 12px;
    }

    .course-action-lists .btns-box {
        flex-direction: row;
    }

    .course-action-lists .course-actions .btn-text {
        gap: 2px;
        margin-top: 4px;
    }
}
