
/* LAITNO FIXED COMPLETION ACTIONS V63.93 */

/* Reserve space for the fixed action dock.
   Applies exclusively to the completed lesson card. */

:root .page .study-summary-card.lx-reward-v6360 {
    padding-bottom:calc(112px + env(safe-area-inset-bottom,0px)) !important;
}

/* Prevent completion-page animations or transformed
   ancestors from trapping fixed-position controls. */

@supports selector(:has(*)) {

    :where(
        :has(.study-summary-card.lx-reward-v6360 .study-summary-actions),
        .study-summary-card.lx-reward-v6360:has(.study-summary-actions)
    ) {
        transform:none !important;
        translate:none !important;
        rotate:none !important;
        scale:none !important;
        perspective:none !important;
        filter:none !important;
        backdrop-filter:none !important;
        -webkit-backdrop-filter:none !important;
        contain:none !important;
        content-visibility:visible !important;
        will-change:auto !important;
    }

    :root .page:has(.study-summary-card.lx-reward-v6360 .study-summary-actions) {
        padding-bottom:calc(108px + env(safe-area-inset-bottom,0px)) !important;
    }
}

/* Fixed completion navigation.
   The original buttons and handlers are preserved. */

:root .page .study-summary-card.lx-reward-v6360
.study-summary-actions {
    position:fixed !important;
    top:auto !important;
    bottom:0 !important;
    left:0 !important;
    right:0 !important;

    width:calc(100% - 16px) !important;
    max-width:540px !important;
    min-width:0 !important;

    margin:0 auto !important;
    padding:10px 10px
        max(12px,env(safe-area-inset-bottom,0px)) !important;

    box-sizing:border-box !important;

    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    align-items:stretch !important;
    gap:8px !important;

    background:var(--lx-surface,var(--card,#ffffff)) !important;
    border:1px solid var(--lx-border,#cbd5e1) !important;
    border-radius:20px 20px 0 0 !important;

    box-shadow:0 -8px 30px rgba(15,35,55,.12) !important;

    transform:none !important;
    z-index:25;
}

:root .page .study-summary-card.lx-reward-v6360
.study-summary-actions > :is(button,a,.btn) {
    width:100% !important;
    min-width:0 !important;
    min-height:48px !important;
    height:auto !important;
    margin:0 !important;
    padding:10px 6px !important;
    box-sizing:border-box !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    white-space:normal !important;
    text-align:center !important;
    font-size:clamp(12px,3.4vw,14px) !important;
    line-height:1.55 !important;
    overflow-wrap:anywhere;

    border-radius:14px !important;
}

/* Keep a single available action full width. */

:root .page .study-summary-card.lx-reward-v6360
.study-summary-actions > :only-child {
    grid-column:1 / -1;
}

@media (prefers-reduced-motion:reduce) {

    :root .page .study-summary-card.lx-reward-v6360
    .study-summary-actions {
        animation:none !important;
        transition:none !important;
    }
}

/* END LAITNO FIXED COMPLETION ACTIONS V63.93 */
