body.course-promo-open {
    overflow: hidden;
}

.course-promo-float-wrap {
    position: fixed;
    right: 18px;
    left: auto;
    top: 50%;
    z-index: 9800;
    width: max-content;
    max-width: min(300px, calc(100vw - 36px));
    overflow: visible;
    animation: course-promo-bounce 2.6s ease-in-out infinite;
}

.course-promo-float-wrap:hover,
.course-promo-float-wrap:focus-within {
    animation-play-state: paused;
}

.course-promo-float-wrap[hidden] {
    display: none;
}

.course-promo-float {
    position: relative;
    display: flex;
    align-items: center;
    overflow: visible;
    width: max-content;
    max-width: 100%;
    margin: 0;
    padding: 1rem 1.50rem 1rem 5.7rem;
    border: solid 2px #784200;
    border-radius: 999px;
    background: #fff;
    color: #2d1b10;
    box-shadow: 0 14px 36px rgba(45, 27, 16, 0.18);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    font-family: "Prompt", "Segoe UI", sans-serif;
}

.course-promo-float__dismiss {
    position: absolute;
    top: -11px;
    right: -6px;
    z-index: 3;
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 1.5px solid #784200;
    border-radius: 50%;
    background: #fff;
    color: #784200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(45, 27, 16, 0.16);
}

.course-promo-float__dismiss svg {
    display: block;
    width: 12px;
    height: 12px;
}

.course-promo-float__dismiss:hover,
.course-promo-float__dismiss:focus-visible {
    background: #784200;
    color: #fff;
    outline: 2px solid #3e522d;
    outline-offset: 2px;
}

.course-promo-float:hover,
.course-promo-float:focus-visible {
    color: #2d1b10;
    text-decoration: none;
    outline: 2px solid #3e522d;
    outline-offset: 3px;
}

.course-promo-float__spark,
.course-promo-float__spark::before,
.course-promo-float__spark::after {
    position: absolute;
    background: #e23b3b;
    border-radius: 2px;
    pointer-events: none;
}

.course-promo-float__spark {
    top: -10px;
    right: 42px;
    width: 3px;
    height: 14px;
    transform: rotate(18deg);
    animation: course-promo-spark 2.6s ease-in-out infinite;
}

.course-promo-float__spark::before,
.course-promo-float__spark::after {
    content: "";
}

.course-promo-float__spark::before {
    top: 5px;
    left: 11px;
    width: 14px;
    height: 3px;
    rotate: 122deg;
}

.course-promo-float__spark::after {
    top: 1px;
    right: 15px;
    width: 3px;
    height: 10px;
    transform: rotate(-28deg);
}

.course-promo-float__avatar {
    position: absolute;
    left: -2.75rem;
    top: 50%;
    width: 7.5rem;
    height: 7.5rem;
    transform: translateY(-50%);
}

.course-promo-float__avatar img {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 0 0 1.5px rgba(45, 27, 16, 0.16), 0 10px 22px rgba(45, 27, 16, 0.16);
}

.course-promo-float__dot {
    position: absolute;
    top: 12px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #2fae5b;
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(47, 174, 91, 0.35);
}

.course-promo-float__copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.course-promo-float__title {
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: #2d1b10;
}

.course-promo-float__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b7565;
}

.course-promo-float__cta i {
    color: #3e522d;
}

@keyframes course-promo-bounce {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 7px)); }
}

@keyframes course-promo-spark {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.45; }
}

.course-promo-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10040;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    font-family: "Prompt", "Segoe UI", sans-serif;
}

.course-promo-modal.is-open {
    display: flex;
}

.course-promo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 27, 16, 0.58);
    backdrop-filter: blur(5px);
}

.course-promo-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: min(82vh, 720px);
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.4rem 1.3rem;
    border-radius: 24px;
    background: #f7f3ec;
    box-shadow: 0 28px 70px rgba(45, 27, 16, 0.28);
}

.course-promo-modal__close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    box-sizing: border-box;
    width: 2.4rem;
    height: 2.4rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #2d1b10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
}

.course-promo-modal__close svg {
    display: block;
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.course-promo-modal__close:hover,
.course-promo-modal__close:focus-visible {
    outline: 2px solid #3e522d;
    outline-offset: 2px;
}

.course-promo-modal__eyebrow {
    margin: 0 2rem 0.25rem 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3e522d;
}

.course-promo-modal__title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: #2d1b10;
}

.course-promo-modal__lead {
    margin: 0.35rem 0 1rem;
    color: #6b7565;
}

.course-promo-modal__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 0;
    overflow: auto;
}

.course-promo-modal__item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.65rem 0.75rem;
    border-radius: 16px;
    background: #fff;
    color: #2d1b10;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(62, 82, 45, 0.08);
}

.course-promo-modal__item:hover,
.course-promo-modal__item:focus-visible {
    color: #2d1b10;
    text-decoration: none;
    outline: 2px solid #3e522d;
    outline-offset: 2px;
}

.course-promo-modal__order {
    flex: 0 0 auto;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #3e522d;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.course-promo-modal__item img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
}

.course-promo-modal__body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.course-promo-modal__badge {
    display: inline-flex;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: #e7efe2;
    color: #3e522d;
    font-size: 0.72rem;
    font-weight: 700;
}

.course-promo-modal__name {
    font-weight: 700;
    line-height: 1.35;
}

.course-promo-modal__arrow {
    flex: 0 0 auto;
    color: #3e522d;
}

@media (max-width: 767.98px) {
    .course-promo-float-wrap {
        right: 10px;
        left: auto;
        max-width: min(230px, calc(100vw - 28px));
    }

    .course-promo-float {
        padding: 0.45rem 0.85rem 0.45rem 3.35rem;
    }

    .course-promo-float__dismiss {
        top: -9px;
        right: -4px;
        width: 22px;
        height: 22px;
    }

    .course-promo-float__avatar,
    .course-promo-float__avatar img {
        width: 4.7rem;
        height: 4.7rem;
    }

    .course-promo-float__avatar {
        left: -1.45rem;
    }

    .course-promo-float__avatar img {
        border-width: 4px;
    }

    .course-promo-float__title {
        font-size: 0.82rem;
    }

    .course-promo-float__cta {
        font-size: 0.72rem;
    }

    .course-promo-modal__item img {
        width: 52px;
        height: 52px;
    }
}
