/* Shared lesson navigation. Completion is a normal protected POST before navigation. */
body.ec-reader-body .ec-reader.ec-reader--completion-navigation {
    --reader-bottom: 64px !important;
}
body.ec-reader-body .ec-reader-nav.ec-reader-nav--completion {
    grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto !important;
    height: var(--reader-bottom) !important;
    gap: 12px;
    padding: 8px 16px;
    overflow: visible;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__prev,
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__next,
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__chapter {
    min-width: 0 !important;
    min-height: 44px;
    height: 44px !important;
    padding: 0 8px !important;
    border-radius: 7px;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__chapter {
    padding: 0 12px !important;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__prev,
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__next {
    display: inline-flex !important;
    align-items: center !important;
    color: inherit !important;
    font: 800 15px/1 Arial, Helvetica, sans-serif !important;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
    height: 44px;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__next {
    flex: 0 0 auto;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    min-height: 44px;
    height: 44px !important;
    margin: 0;
    padding: 0 14px !important;
    border: 1px solid rgba(255, 255, 255, .8) !important;
    border-radius: 8px;
    background: #fff !important;
    color: #075f5b !important;
    font: 700 14px/1.2 Arial, Helvetica, sans-serif !important;
    text-shadow: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 49, 47, .12);
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__button:hover {
    background: #e4faf6 !important;
    border-color: #e4faf6 !important;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__button:disabled {
    opacity: .7;
    cursor: wait;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__button svg,
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__status svg {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 7px;
    background: rgba(0, 63, 60, .18);
    color: #fff;
    font: 700 13px/1.2 Arial, Helvetica, sans-serif;
    white-space: nowrap;
}
body.ec-reader-body .ec-reader-nav--completion :is(a, button):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__button:focus-visible {
    outline-color: #0a4744;
    box-shadow: 0 0 0 4px #fff;
}
.ec-reader-completion-notice {
    max-width: 1160px;
    margin: 0 auto 22px;
    padding: 14px 16px;
    border: 1px solid #c9e2db;
    border-left: 4px solid #0f918b;
    border-radius: 8px;
    background: #edf8f5;
    color: #19493e;
    font: 400 15px/1.5 Arial, Helvetica, sans-serif;
}
.ec-reader.is-dark .ec-reader-completion-notice {
    border-color: #35746a;
    background: #163d38;
    color: #e7f8f3;
}
@media (max-width: 700px) {
    body.ec-reader-body .ec-reader.ec-reader--completion-navigation {
        --reader-bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    }
    body.ec-reader-body .ec-reader-nav.ec-reader-nav--completion {
        grid-template-columns: 44px minmax(0, 1fr) auto !important;
        grid-template-rows: 28px 44px;
        column-gap: 8px;
        row-gap: 4px;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__chapter {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 28px;
        height: 28px !important;
        padding: 0 8px !important;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__chapter span {
        max-width: 100% !important;
        padding: 0 !important;
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__chapter small {
        display: none !important;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__prev {
        grid-column: 1;
        grid-row: 2;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__actions {
        grid-column: 2 / -1;
        grid-row: 2;
        gap: 8px;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__prev,
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav__next {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px !important;
        max-width: 44px;
        padding: 0 !important;
        justify-content: center !important;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav-label,
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav-preview {
        display: none !important;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-nav-icon {
        width: 32px !important;
        height: 32px !important;
        flex-basis: 32px !important;
        padding: 6px !important;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__button {
        padding: 0 12px !important;
        font-size: 13px !important;
    }
    body.ec-reader-body .ec-reader-nav--completion .ec-reader-complete__status {
        padding: 6px 8px;
        font-size: 12px;
    }
}
