.tool-input-outer {
    padding: 0;
    background-color: #FFFFFF;
    border-radius: 24px;
}

.p-style-modes-container-desktop-view {
    padding: 10px;
    background: #FAFBFC;
    border-bottom: 1px solid #F3F4F6;
    border-radius: 24px 24px 0px 0px;
}

.p-style-modes-container .p-style-mode.active,
.more-lang-container .select__other__option.active {
    background: #FFFFFF;
    border: 1px solid #BC37DF;
    color: #BC37DF;
}

.p-style-modes-container .p-style-mode:hover {
    background: #FFFFFF;
    color: #BC37DF;
}

.p-style-more-mode-btn {
    background-color: transparent;
    border-color: transparent;
    padding: 6px 14px;
    padding-right: 32px;
    min-width: fit-content;
}

.p-style-more-mode-btn:hover {
    background-color: #FFFFFF;
    color: #BC37DF;
}

.p-style-more-mode-dropDown .p-style-mode.active {
    display: inline-block;
}

.p-style-modes-container .p-style-mode,
.more-lang-container .select__other__option,
.p-style-more-mode-dropDown .p-style-mode,
.lang-more-option .lang-selected,
.p-style-more-mode-btn {
    color: #242424;
}

.p-style-modes-container .p-style-mode,
.more-lang-container .select__other__option,
.p-style-more-mode-dropDown .p-style-mode {
    padding: 6px 14px;
}

.p-style-more-mode-dropDown {
    gap: 4px 2px;
}

.p-style-more-mode-dropDown,
.lang__more__mode__dropDown {
    border-radius: 10px;
}

.p-style-more-mode-btn.selected {
    background-color: #FFFFFF;
    color: #BC37DF;
    border-color: #BC37DF;
}

.p-style-more-mode-btn img,
.lang-more-option img {
    filter: none;
    transition: none;
}

.p-style-more-mode-btn.selected img,
.p-style-more-mode-btn:hover img {
    filter: brightness(0) saturate(100%) invert(32%) sepia(90%) saturate(1603%) hue-rotate(266deg) brightness(86%) contrast(104%) !important;
}

.lang-more-option {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
}

.lang-more-option:hover,
.more-options-dropdown-container.active .lang-more-option {
    background-color: #2A3342 !important;
    color: #FFFFFF !important;

    .lang-selected {
        color: #FFFFFF;
    }

    img {
        filter: brightness(0) saturate(100%) invert(100%) sepia(8%) saturate(345%) hue-rotate(220deg) brightness(114%) contrast(100%);
    }
}

.tool-input-outer .tool-input-border {
    padding: 0;
}

.tool-input-outer .tool-input-border textarea {
    padding: 15px;
    padding-bottom: 0;
    margin-bottom: 30px;
    line-height: 24px;
    max-height: 170px;
    height: 170px !important;
    padding-right: 30px;
}

.tool-modes.paragraph-tool-mode {
    padding: 12px 15px;
    row-gap: 10px;
    background: #FAFBFC;
    border-top: 1px solid #F3F4F6;
    border-radius: 0px 0px 24px 24px;
}

.generate-btn-container button {
    padding: 8px 24px;
    min-width: 180px;
    line-height: 24px;
}

.paste-btn::before {
    top: 0;
}

.simple__outline__btn {
    justify-content: center;
}

.generated_response,
.generated-response-div {
    padding: 0;
    background: #FFFFFF;
    box-shadow: 0px 6px 60px 3px rgba(0, 0, 0, 0.06);
    border-radius: 20px;
}

.response-header {
    justify-content: end !important;
    align-items: center !important;
    padding: 10px !important;
    gap: 20px !important;
    background: rgba(249, 250, 251, 0.8);
    border-bottom: 1px solid #F3F4F6;
    border-radius: 20px 20px 0px 0px;
}

.generated-response-text-download,
.generated-response-text-copy,
.generated-response-reset-btn {
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: unset;
    display: flex;
}

.download-all:hover,
.generated-response-text-copy:hover,
.generated-response-text-download:hover,
.generated-response-reset-btn:hover {
    background-color: transparent;
    border: 0 !important;
}

.generated-response-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

.generated-response-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    align-content: flex-end;
    padding: 12px 15px;
    row-gap: 10px;
    background: #FAFBFC;
    border-top: 1px solid #F3F4F6;
    border-radius: 0 0 20px 20px;
}

.feedback_container .feedback_stars_container {
    gap: 0;
}

.footer_right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.feedback_stars_container .tooltip:not(.active) img.dislike,
.feedback_stars_container .tooltip:not(.active) img.like {
    background-color: transparent !important;
}

.feedback_stars_container img.like.liked,
.feedback_stars_container img.dislike.disliked {
    background-color: transparent !important;
}

.main-download {
    margin-right: 0 !important;
}

.clear_input {
    background-color: transparent;
    top: 0px;
    right: 10px;
}

.clear_input:hover {
    background-color: #F7F5FF;
}

#words {
    display: none;
}

#custom-words-input {
    top: 0 !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
}

/* remove spinner */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

@media screen and (max-width:768px) {
    .tool-modes.paragraph-tool-mode {
        flex-direction: column;
    }

    .generate-btn-container.paragraph-generate-btn {
        margin: auto;
        width: 100%;
    }

    .tool-modes .w-quantity.paragraph-mode {
        width: 100%;
        flex-direction: column;
    }

    .tool_dropdown {
        width: 100%;
        max-width: 100%;
    }

    .tool_dropdown_selected svg {
        margin-left: auto;
    }

    .generate-btn-container-desktop.paragraph-generate-btn button {
        max-width: 100% !important;
    }

    .tool_dropdown.active .tool_dropdown_options {
        width: 100%;
        max-width: 100%;
    }

    .generated-response-text {
        max-height: 400px;
        overflow: auto;
    }
}

@media screen and (min-width:767px) {
    .mobile-popup-header {
        display: none;
    }
}

.language-option-container {
    display: grid;
    grid-template-columns: auto;
    gap: 4px;
}

.more-lang-container .select__other__option.active {
    display: flex;
}

.more-lang-container .select__other__option.active {
    background-color: #F7F5FF;
    color: #242424;
    border-color: transparent;
}

@media screen and (max-width:767px) {
    #selected-p-style-mode-mobile {
        border: 1px solid #E5E7EB !important;
        flex: 1;
    }

    .p-style-modes-container-desktop-view {
        gap: 20px;
    }

    .p-style-modes-desktop-view-on-mobile,
    .lang__more__mode__dropDown {
        position: fixed;
        bottom: 0;
        top: unset;
        left: 0;
        border-radius: 0;
        width: 100%;
        grid-template-columns: auto;
        padding: 16px;
        z-index: 999999;
    }

    .lang__more__mode__dropDown {
        display: flex;
        flex-direction: column;
        gap: 4px;
        height: 100%;
        max-height: 360px;
    }

    .search-lang {
        width: 100%;
        max-width: 100%;
    }



    .mobile-popup-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 4px;
    }

    .mobile-popup-header-heading {
        color: #242424;
        font-weight: 600;
        font-size: 16px;
        line-height: 24px;
    }

    .p-style-modes-desktop-view-on-mobile span,
    .p-style-modes-container .p-style-mode.active:not(.custom) {
        display: flex;
    }

    .language-option-container {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        max-height: 260px;
        overflow-y: auto;
        overflow-x: hidden;
        width: 100%;
    }

    .p-style-modes-container-desktop-view:has(.p-style-modes-container.p-style-modes-desktop-view-on-mobile)::before,
    .more-options-dropdown-container:has(.lang__more__mode__dropDown:not(.d-none))::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.25);
        z-index: 999998;
    }

    .p-style-modes-container .p-style-mode.active:not(.custom),
    .more-lang-container .select__other__option.active {
        display: block;
        background-color: #F7F5FF;
        color: #BC37DF !important;
        border: none;
        position: relative;
    }

    .p-style-modes-container .p-style-mode.active::before,
    .more-lang-container .select__other__option.active::before,
    .custom-select .select-items .same-as-selected::before {
        content: '';
        width: 16px;
        height: 16px;
        background-image: url(/web_assets/frontend/images/selected_option_tick.svg);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
    }
}