/* Responsive Bunny Stream frame. All rules are scoped to this plugin. */
.tkwcl-bunny-video {
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #001b2e;
    border-radius: 6px;
    line-height: 0 !important;
}

.tkwcl-bunny-video > iframe,
.tkwcl-bunny-iframe {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}


/* Keep Bunny embedded videos at the full available Tutor LMS lesson width. */
.tkwcl-bunny-video {
    width: 100% !important;
    max-width: none !important;
}

.tkwcl-bunny-video iframe {
    width: 100% !important;
    max-width: none !important;
}

/* Standalone maximize control. The Bunny player also retains its own fullscreen control. */
.tkwcl-maximize-button {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 2147482000 !important;
    min-width: 44px !important;
    width: auto !important;
    height: 42px !important;
    min-height: 42px !important;
    gap: 5px !important;
    padding: 0 10px !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: rgba(0, 0, 0, .72) !important;
    color: #fff !important;
    font-size: 26px !important;
    line-height: 42px !important;
    text-align: center !important;
    cursor: pointer !important;
    opacity: .9 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3) !important;
    transition: opacity .2s ease, transform .2s ease !important;
}

.tkwcl-maximize-icon {
    display: inline-block !important;
    font-size: 24px !important;
    line-height: 1 !important;
}

.tkwcl-maximize-label {
    display: inline-block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.tkwcl-maximize-button:hover,
.tkwcl-maximize-button:focus {
    opacity: 1 !important;
    transform: scale(1.04) !important;
    outline: 2px solid rgba(255,255,255,.8) !important;
    outline-offset: 1px !important;
}

.tkwcl-bunny-video:fullscreen,
.tkwcl-bunny-video:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
}

.tkwcl-bunny-video:fullscreen > iframe,
.tkwcl-bunny-video:-webkit-full-screen > iframe {
    width: 100% !important;
    height: 100% !important;
}

.tkwcl-bunny-video:fullscreen .tkwcl-maximize-button,
.tkwcl-bunny-video:-webkit-full-screen .tkwcl-maximize-button {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
}

.tkwcl-bunny-host { }

.tkwcl-bunny-host {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Tutor LMS can wrap the intro/lesson iframe in a constrained video box.
   Remove those constraints for our Bunny embed so it uses the full available
   course column instead of inheriting a small fixed player size. */
.tutor-video-player:has(.tkwcl-bunny-video),
.tutor-video-player:has(.tkwcl-bunny-iframe),
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-video),
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-iframe),
.tutor-course-content .tutor-video-player:has(.tkwcl-bunny-video),
.tutor-course-content .tutor-video-player:has(.tkwcl-bunny-iframe) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.tutor-video-player:has(.tkwcl-bunny-video) .tutor-ratio,
.tutor-video-player:has(.tkwcl-bunny-iframe) .tutor-ratio,
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-video) .tutor-ratio,
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-iframe) .tutor-ratio {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.tutor-video-player:has(.tkwcl-bunny-video) .tkwcl-bunny-video,
.tutor-video-player:has(.tkwcl-bunny-iframe) .tkwcl-bunny-video {
    width: 100% !important;
    max-width: none !important;
}

/* Keep the custom control above Tutor's player controls and make it impossible
   for common Tutor button rules to hide it. */
.tutor-video-player .tkwcl-maximize-button,
.tutor-course-details-page .tkwcl-maximize-button,
.tutor-course-content .tkwcl-maximize-button {
    display: flex !important;
    visibility: visible !important;
    opacity: .95 !important;
    z-index: 2147483647 !important;
}

.tkwcl-rotate-hint {
    position: absolute;
    right: 10px;
    top: 50%;
    z-index: 9999;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(0, 0, 0, .72);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .24);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    line-height: 1;
}

.tkwcl-rotate-hint.is-visible {
    display: flex;
    animation: tkwclHintFade 5s ease forwards;
}

.tkwcl-phone-icon {
    width: 11px;
    height: 19px;
    border: 2px solid #efba42;
    border-radius: 3px;
    position: relative;
    box-sizing: content-box;
    animation: tkwclPhoneRotate 1.35s ease-in-out infinite;
}

.tkwcl-phone-icon::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #fff;
    left: 50%;
    bottom: 2px;
    transform: translateX(-50%);
}

.tkwcl-phone-icon::before {
    content: '↻';
    position: absolute;
    right: -12px;
    top: -9px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

@keyframes tkwclPhoneRotate {
    0%, 22% { transform: rotate(0deg); }
    48%, 72% { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tkwclHintFade {
    0% { opacity: 0; transform: translateY(-50%) scale(.9); }
    12%, 82% { opacity: 1; transform: translateY(-50%) scale(1); }
    100% { opacity: 0; transform: translateY(-50%) scale(.92); }
}

@media (max-width: 900px) {
    .tkwcl-bunny-video {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 4px;
    }

    .tkwcl-bunny-host { }

.tkwcl-bunny-host {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Tutor LMS can wrap the intro/lesson iframe in a constrained video box.
   Remove those constraints for our Bunny embed so it uses the full available
   course column instead of inheriting a small fixed player size. */
.tutor-video-player:has(.tkwcl-bunny-video),
.tutor-video-player:has(.tkwcl-bunny-iframe),
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-video),
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-iframe),
.tutor-course-content .tutor-video-player:has(.tkwcl-bunny-video),
.tutor-course-content .tutor-video-player:has(.tkwcl-bunny-iframe) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.tutor-video-player:has(.tkwcl-bunny-video) .tutor-ratio,
.tutor-video-player:has(.tkwcl-bunny-iframe) .tutor-ratio,
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-video) .tutor-ratio,
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-iframe) .tutor-ratio {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.tutor-video-player:has(.tkwcl-bunny-video) .tkwcl-bunny-video,
.tutor-video-player:has(.tkwcl-bunny-iframe) .tkwcl-bunny-video {
    width: 100% !important;
    max-width: none !important;
}

/* Keep the custom control above Tutor's player controls and make it impossible
   for common Tutor button rules to hide it. */
.tutor-video-player .tkwcl-maximize-button,
.tutor-course-details-page .tkwcl-maximize-button,
.tutor-course-content .tkwcl-maximize-button {
    display: flex !important;
    visibility: visible !important;
    opacity: .95 !important;
    z-index: 2147483647 !important;
}

.tkwcl-rotate-hint {
        right: 7px;
        width: 36px;
        height: 36px;
    }

    /* When the phone itself turns to landscape, make the lesson video follow
       the new orientation and occupy the visible screen. */
    .tkwcl-bunny-video.tkwcl-landscape-mobile {
        position: fixed !important;
        inset: 0 !important;
        z-index: 2147483000 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-width: none !important;
        aspect-ratio: auto !important;
        margin: 0 !important;
        border-radius: 0 !important;
        background: #000 !important;
    }

    html.tkwcl-video-landscape-active,
    body.tkwcl-video-landscape-active {
        overflow: hidden !important;
    }
}

@media (min-width: 901px) {
    .tkwcl-bunny-host { }

.tkwcl-bunny-host {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Tutor LMS can wrap the intro/lesson iframe in a constrained video box.
   Remove those constraints for our Bunny embed so it uses the full available
   course column instead of inheriting a small fixed player size. */
.tutor-video-player:has(.tkwcl-bunny-video),
.tutor-video-player:has(.tkwcl-bunny-iframe),
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-video),
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-iframe),
.tutor-course-content .tutor-video-player:has(.tkwcl-bunny-video),
.tutor-course-content .tutor-video-player:has(.tkwcl-bunny-iframe) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.tutor-video-player:has(.tkwcl-bunny-video) .tutor-ratio,
.tutor-video-player:has(.tkwcl-bunny-iframe) .tutor-ratio,
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-video) .tutor-ratio,
.tutor-course-details-page .tutor-video-player:has(.tkwcl-bunny-iframe) .tutor-ratio {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.tutor-video-player:has(.tkwcl-bunny-video) .tkwcl-bunny-video,
.tutor-video-player:has(.tkwcl-bunny-iframe) .tkwcl-bunny-video {
    width: 100% !important;
    max-width: none !important;
}

/* Keep the custom control above Tutor's player controls and make it impossible
   for common Tutor button rules to hide it. */
.tutor-video-player .tkwcl-maximize-button,
.tutor-course-details-page .tkwcl-maximize-button,
.tutor-course-content .tkwcl-maximize-button {
    display: flex !important;
    visibility: visible !important;
    opacity: .95 !important;
    z-index: 2147483647 !important;
}

.tkwcl-rotate-hint { display: none !important; }
}


/* Keep the player large enough to be comfortable on phones while retaining
   the video's natural landscape shape. */
@media (max-width: 600px) and (orientation: portrait) {
    .tkwcl-bunny-video {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        aspect-ratio: 16 / 9 !important;
        min-height: 210px !important;
    }
}


/* v3.5.4: browser fullscreen must take over the whole viewport on both
   desktop and mobile. These rules also prevent Tutor LMS from constraining
   the wrapper while it is fullscreen. */
.tkwcl-bunny-video:fullscreen,
.tkwcl-bunny-video:-webkit-full-screen,
.tkwcl-bunny-video.tkwcl-browser-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
}

.tkwcl-bunny-video:fullscreen iframe,
.tkwcl-bunny-video:-webkit-full-screen iframe,
.tkwcl-bunny-video.tkwcl-browser-fullscreen iframe {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    border: 0 !important;
}

.tkwcl-maximize-button {
    position: absolute !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 7px 10px !important;
    border: 0 !important;
    border-radius: 5px !important;
    background: rgba(0,0,0,.78) !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}

.tkwcl-maximize-button .tkwcl-maximize-icon {
    font-size: 21px !important;
    line-height: 1 !important;
}

.tkwcl-bunny-video:fullscreen .tkwcl-maximize-button,
.tkwcl-bunny-video:-webkit-full-screen .tkwcl-maximize-button,
.tkwcl-bunny-video.tkwcl-browser-fullscreen .tkwcl-maximize-button {
    right: 16px !important;
    bottom: 16px !important;
}

@media (max-width: 600px) {
    .tkwcl-maximize-button {
        min-width: 42px !important;
        min-height: 42px !important;
        padding: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
    }

    .tkwcl-maximize-button .tkwcl-maximize-label {
        display: none !important;
    }

    .tkwcl-maximize-button .tkwcl-maximize-icon {
        font-size: 24px !important;
    }
}


/* v3.5.5 — Tutor LMS container-level sizing fix */
.tkwcl-bunny-video,
.tutor-course-single-content .tkwcl-bunny-video,
.tutor-course-single-sidebar-wrap .tkwcl-bunny-video,
.tutor-course-single-content-wrap .tkwcl-bunny-video {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

.tkwcl-bunny-video .tkwcl-bunny-video-frame,
.tkwcl-bunny-video iframe {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 9 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Neutralize common Tutor LMS media sizing rules when our embedded player
   is inside the single-course content area. */
.tutor-course-single-content .tkwcl-bunny-video,
.tutor-course-single-content .tkwcl-bunny-video iframe,
.tutor-course-single-content .tkwcl-bunny-video > div,
.tutor-course-single-content .tkwcl-bunny-video .tkwcl-bunny-video-frame {
    flex: 0 0 100% !important;
    align-self: stretch !important;
}

.tutor-course-single-content .tkwcl-bunny-video iframe {
    width: 100% !important;
}

/* If Tutor wraps the plugin element in a media container, let the plugin
   determine the media's intrinsic 16:9 size. */
.tutor-course-single-content .tutor-video-player,
.tutor-course-single-content .tutor-video-player-wrap,
.tutor-course-single-content .tutor-course-single-media,
.tutor-course-single-content .tutor-course-single-media-wrap {
    max-width: none !important;
    width: 100% !important;
}

@media (max-width: 767px) {
    .tkwcl-bunny-video,
    .tkwcl-bunny-video iframe {
        width: 100% !important;
        max-width: 100% !important;
    }
}
