.summarizer-header>div {
    flex: 1
}

.js-result {
    padding-top: 20px !important;
}

.editor+.result.d-none+.editor {
    display: none;
}

.summary-length {
    text-align: center;
}

.summary-length>span {
    font-size: var(--font-size-x-small);
    color: #C7C7CD;
}

.action-btns .js-after-result-btns {
    display: none;
    padding: 12px 16px;
    border-left: none !important;
    flex-wrap: wrap;
}

.length-selection {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 8px;
}

.length-selection label {
    font-size: var(--font-size-small);
    color: #C7C7CD;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    position: relative;
    transition: all 0.3s;
}

.length-selection label>input[type="radio"] {
    display: none;
}

.length-selection label:has(:checked),
.length-selection label:hover {
    color: #fff;
}

.length-selection label::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #C7C7CD;
    border-radius: 50%;
}

.length-selection label:has(:checked)::before {
    border-color: var(--orange);
}

.length-selection label:has(:checked)::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--yellow);
    position: absolute;
    left: 5.2px;
    top: 5.4px;
    transform: translateX(-10%);
}

.summarizer-header>.result-type {
    display: flex;
    justify-content: end;
}

.result-type-container {
    border: 1px solid var(--dark-gray);
    background-color: var(--color-434459);
    border-radius: 8px;
    padding: 4px;
    display: flex;
    justify-content: space-between;
    width: fit-content;
    gap: 4px;
}

.result-type-container .result-type {
    padding: 6px 8px;
    border-radius: 5px;
    color: #C7C7CD;
    display: inline-flex;
    gap: 5px;
    cursor: pointer;
    font-size: var(--font-size-small);
    transition: all 0.3s;
}

.result-type-container .result-type.active,
.result-type-container .result-type:hover {
    background-color: var(--dark);
    color: white;
}

.result-type-container .result-type:not(.active) img {
    filter: contrast(0) brightness(1.5);
}

.tool .result>div ul {
    padding-left: 16px;
}

.tool .result>div ul li {
    margin-bottom: 8px;
}

@media only screen and (max-width: 800px) {

    .summarizer-header>.result-type {
        position: absolute;
        top: 354px;
        z-index: 9;
        width: 100%;
    }

    .result-type-container {
        width: 100%;
    }

    .js-before-result-btns>.word-counter-flex {
        position: absolute;
        left: 0px;
    }

    .js-after-result-btns>.word-counter-flex {
        position: absolute;
        top: -97px;
        left: 100px;
    }

    .tool-btn {
        margin-top: 42px;
    }

    .word-count-type {
        margin-left: 2px !important;
        font-size: 14px !important;
    }

    .word-count {
        font-size: 16px !important;

    }

    .word-counter-flex-inner {
        flex-direction: column !important;
    }

    .js-result {
        padding-top: 30px !important;
    }
}

@media only screen and (max-width: 375px) {

    .summarizer-header>.result-type {
        top: 411px;
    }

    .result-type-container {

        width: 100%;
    }

}

@media screen and (max-width: 768px) {
    .toggle__Modes.d-none {
        display: none !important;
    }

    .length-selection label {
        font-size: var(--font-size-x-small);
    }

    .summarizer-header>.result-type:has(.d-none) {
        display: none;
    }

    .tool-section .mobile__view.summarizer-header {
        /* flex-direction: row !important; */
        flex-wrap: wrap;
    }

    .summarizer-header .choice__mobile__holder {
        min-width: auto !important;
        position: relative !important;
    }

    .length-selection label:has(:checked)::after {
        top: 6px;
    }

    .choice-row {
        top: 52px;
        left: -6px !important;
    }

    .choice.active {
        background-color: var(--color-434459);
        color: white;
        border-color: #656577;
        border-width: 2px;
        width: 100%;
    }

    .summarizer-header .choice__mobile__holder .down__arrow {
        background-color: #656577;
        right: 2px;
    }

    .summarizer-header .choice__mobile__holder .down__arrow img {
        filter: brightness(5);
    }
}

@media only screen and (max-width: 800px) {

    .feedback-thanks,
    .feedback-form {
        left: -18px;
    }
}

@media screen and (min-width: 1024px) {

    .plagiarism-btn,
    .grammar-btn,
    .summarizer-btn {
        position: relative !important;
        left: 0px !important;
        transform: none !important;
    }
}

@media only screen and (max-width: 1350px) {
    .choice__mobile__holder {
        position: relative !important;
    }

    .choice-row {
        width: 219px;
        left: 35%;
    }

    .choice__mobile__holder {
        width: 200px !important;
        max-width: 210px !important;
    }
    .mobile__view{
        flex-wrap: wrap;
    }
}
