/* =========================================================
   PYTHON INLINE CODE
   ========================================================= */

.python-example {

    overflow: hidden;

    border: 1px solid #c5d0dc;

    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 2px 10px rgba(
            30,
            50,
            70,
            0.07
        );
}


/* =========================================================
   HEADER
   ========================================================= */

.lesson-code-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 38px;

    padding: 0 12px;

    box-sizing: border-box;

    border-bottom: 1px solid #d9e1e9;

    background: #ffffff;
}


.lesson-code-title {

    color: #344454;

    font-size: 12px;

    font-weight: 600;
}


.lesson-code-language {

    color: #718096;

    font-size: 10px;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    text-transform: lowercase;
}


/* =========================================================
   CODE EDITOR
   ========================================================= */

.lesson-code-editor {

    display: block;

    width: 100%;

    min-height: 130px;

    padding: 14px 16px;

    box-sizing: border-box;

    border: 0;

    outline: 0;

    resize: vertical;

    background: #f5f8fb;

    color: #202b36;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 13px;

    line-height: 1.7;

    tab-size: 4;
}


.lesson-code-editor:focus {

    background: #f3f7fb;
}


/* =========================================================
   ACTION BAR
   ========================================================= */

.lesson-code-actions {

    display: flex;

    align-items: center;

    justify-content: space-between;

    min-height: 46px;

    padding: 8px 12px;

    box-sizing: border-box;

    border-top: 1px solid #d9e1e9;

    background: #ffffff;
}


/* =========================================================
   RUN BUTTON
   ========================================================= */

.lesson-code-run {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 92px;

    height: 30px;

    padding: 0;

    box-sizing: border-box;

    border: 0;

    border-radius: 6px;

    background: var(--python-blue);

    color: #ffffff;

    font-size: 12px;

    line-height: 1;

    cursor: pointer;

    transition:
        opacity 0.15s ease;
}


.lesson-code-run:hover {

    opacity: 0.92;
}


.lesson-code-run:disabled {

    cursor: wait;

    opacity: 0.65;
}


/* =========================================================
   STATUS
   ========================================================= */

.lesson-code-status {

    color: #657384;

    font-size: 11px;

    line-height: 1;

    white-space: nowrap;
}


/* =========================================================
   RESULT
   ========================================================= */

.lesson-code-result {

    border-top: 1px solid #d5dee7;

    background: #f1f5f9;
}



/* =========================================================
   OUTPUT
   ========================================================= */


.lesson-code-output {

    display: block;

    box-sizing: border-box;

    width: 100%;

    min-height: 96px;

    margin: 0;

    padding: 11px 14px 14px;

    background: #eaf0f6;

    color: #000000;

    white-space: pre-wrap;

    overflow-x: auto;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size: 12px;

    line-height: 1.7;
}

.python-example .lesson-code-output,
.python-example .lesson-code-output code {
    color: #000000 !important;
    opacity: 1 !important;
    text-shadow: none !important;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .lesson-code-header {

        min-height: 36px;

        padding: 0 10px;
    }


    .lesson-code-editor {

        min-height: 120px;

        padding: 12px;

        font-size: 12px;
    }


    .lesson-code-actions {

        min-height: 44px;

        padding: 7px 10px;
    }


    .lesson-code-run {

        width: 92px;

        height: 30px;

        font-size: 11px;
    }


    .lesson-code-output {

        min-height: 54px;

        padding: 10px 12px 13px;

        font-size: 11px;
    }

}