.sample_container {
    display: flex;
}

.simple__outline__btn {
    color: #ADA8B2;
}

.simple__outline__btn:hover {
    color: #ADA8B2;
}

.same-as-selected {
    display: block;
}

.same-as-selected img {
    display: none;
}

.generated-response-footer {
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 12px 20px;
}


.footer_left {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}


.generated_response {
    padding: 0;
}

.response-div {
    position: relative;
}

.response-div #captcha {
    left: 50%;
    transform: translateX(-50%);
    top: 12px;
    bottom: unset;
    right: unset;
    z-index: 999999999999999;
}

.response-div-loader {
    position: relative;
    /* important so ::before stays inside */
    opacity: 0.8;
}

.response-div-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: var(--loader_gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 10em;
}


.generated-response-div {
    padding: 0 !important;
}

.generated-response-div .response-header {
    padding: 12px 20px !important;
    padding-bottom: 8px !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.generated-response-text {
    padding: 16px 24px;
}

.download-all,
.generated-response-text-copy {
    color: black;
}

.generated-response-text-download,
.generated-response-text-copy,
.generated-response-reset-btn {
    color: black;
}

.main-download img {
    filter: brightness(0) contrast(100%);
}

.main-download,
.generated-response-reset-btn {
    margin: 0;
}

.generated-response-text-download:hover,
.generated-response-reset-btn:hover {
    background-color: transparent;
}

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

.generated-response-text-copy:hover {
    padding: 0;
    background: none;
    border: none;
}

.feedback_stars_container img {
    background: none;
}

.feedback_stars_container .tooltip:not(.active) img.like:hover,
.feedback_stars_container img.like.liked,
.feedback_stars_container .tooltip:not(.active) img.dislike:hover,
.feedback_stars_container img.dislike.disliked {
    background: none;
}

.select-items img {
    display: none;
}

.footer_right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tool-input-outer {
    padding: 10px;
    border-radius: 24px;
}

.lang-more-option {
    min-height: 34px;
}

.p-style-modes-container-desktop-view {
    margin-bottom: 10px;
}

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

.tool-input-outer .tool-input-border textarea {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    padding-block: 10px;
    padding-inline: 15px;
    padding-right: 35px;
}

.clear_input {
    top: 10px;
    right: 10px;
}

.simple__outline__btn {
    padding: 6px 12px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #242424;
    opacity: 0.8;
}

.simple__outline__btn:hover,
.simple__outline__btn:focus {
    opacity: 1;
}

.simple__outline__btn:hover,
.simple__outline__btn:focus {
    color: #242424;
}

.paste-btn::before {
    background-image: var(--paste-dark);
}

.clear_input {
    background-color: transparent;
}

.clear_input {
    background-color: transparent;
}

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

.tool-counter-frame {
    font-weight: 500;
    font-size: 12px;
    line-height: 18px;
    margin-bottom: 10px;
}

.writing-mode .select-selected {
    padding: 6px 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.tool-modes.paragraph-tool-mode,
.tool-modes.ai-storyWriter-tool-mode {
    gap: 24px;

}

.tool-modes.paragraph-tool-mode {
    padding-inline: 15px;
}

/* @media only screen and (max-width: 768px) {
    .generated-response-div .response-header {
        position: sticky;
        top: 0;
        background-color: white;
    }
} */

/* Output Footer modes css */
.home-output-modes {
    display: flex;
    align-items: center;
    gap: 8px;
}

.p-style-more-mode-btn,
.lang-more-option {
    border-radius: 99px;
}

.home-output-modes .home-output-mode {
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #FFFFFF;
    outline: none;
    border: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 99px;
    padding: 6px 12px;
    border: 1px solid;
    border-color: #9803A959;
    color: #242424;
}

.home-output-modes .paraphrase-mode:hover svg path {
    fill: #9803A9;
}

.home-output-modes .humanize-mode-btn:hover svg path:first-child {
    stroke: #9803A9;
}

.home-output-modes .humanize-mode-btn:hover svg path:last-child {
    fill: #9803A9;
}

.paraphrase-menu-container {
    position: relative;
}

.paraphrase-menu {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 0;
    box-shadow: 0px 6px 60px 3px #0000001F;
    background: #FFFFFF;
    gap: 2px;
    padding: 8px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    display: none;
    grid-template-columns: auto;
    gap: 4px 2px;
    width: 100%;
}
.paraphrase-menu::-webkit-scrollbar-track {
    margin-block: 10px; /* THIS WORKS */
}

@media screen and (min-width:768px) {
    .p-style-more-mode-dropDown .p-style-mode {
        min-width: 126px;
    }

    .paraphrase-menu-container:has(.paraphrase-menu.show) .paraphrase-menu.show {
        padding: 8px;
        border-radius: 10px !important;
    }


    .paraphrase-menu-container:has(.paraphrase-menu.show) .paraphrase-menu-item:first {
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .paraphrase-menu-item {
        border-radius: 99px !important;
    }
    .paraphrase-menu-item:hover {
        background-color: #F7F5FF;
    }
}

.paraphrase-menu.show {
    display: grid;
}

.paraphrase-menu-item {
    padding: 6px 12px;
    border-radius: 99px;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: transparent;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
}

.paraphrase-menu-item:hover {
    background-color: #F7F5FF;
}

.paraphrase-menu-item.active {
    background-color: #F7F5FF;
    /* display: none; */
}

.output-mode-result-loader {
    width: 100%;
    background-color: var(--first-bg);
    border-radius: 20px;
    box-shadow: 0px 6px 60px 3px #0000000F;
    margin-top: 20px;
    max-width: 900px;
    margin-inline: auto;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.output-mode-result-loader .loader-img {
    width: 10em;
}

.mode-heading {
    padding: 4px 8px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    gap: 4px;
    background-color: #F7F5FF;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0%;
    text-align: center;
}

.result-number-heading {
    margin-right: 4px;
    padding: 4px 12px;
}

.mode-heading svg {
    width: 16px;
    height: 16px;
}

.mode-heading svg path {
    stroke: #BC37DF;
}

.tool-modes .w-quantity.paragraph-mode {
    gap: 12px;
}

.tool-modes .paragraph-mode label {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.generate-btn-container button {
    padding: 8px 24px;
    line-height: 24px;
    border-radius: 99px;
    flex-direction: row;
    align-items: center;
    gap: 6px;
}

.generate-btn-container button svg {
    width: 20px;
    height: 20px;
}

.generate-btn-container.paragraph-generate-btn {
    width: fit-content;
}

.undo-redo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.undo-redo-container button {
    all: unset;
    display: flex;
    cursor: pointer;
    position: relative;
}
.undo-redo-container button.tooltip:hover::before,
.undo-redo-container button.tooltip:hover::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
}

.undo-redo-container button:disabled svg path {
    stroke: #9A969E;
}


.generate-btn-container button:disabled svg {
    animation: rotateAnimation 1s infinite linear;
}

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

.lang__more__mode__dropDown {
    min-width: 154px;
}

.p-style-mode.custom {
    border-radius: 8px !important;
}

@media screen and (min-width: 768px) {
    .p-style-more-mode-dropDown {
        gap: 4px 2px;
    }


    .p-style-mode.custom .custom-input {
        font-weight: 400 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        color: #242424 !important;
    }
}

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

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

.search-lang {
    margin-bottom: 4px;
}


.p-style-modes-container .p-style-mode.active,
.more-lang-container .select__other__option.active {
    color: #F7F5FF !important;
}

@keyframes rotateAnimation {
    0% {
        transform: rotate(0);
    }

    100% {
        transform: rotate(360deg);
    }
}

.p-style-more-mode-btn .p-style-more-mode-selected,
.lang-more-option .p-style-more-mode-selected,
.lang-selected {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.selected-label {
    font-weight: 500 !important;
}

.download-option-div {
    left: unset;
    right: 0;
    border-radius: 10px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    border: 1px solid #EBE9F6;
}

.downloadOptionContainer .d-option {
    padding: 6px 8px;
    text-align: left;
}

.downloadOptionContainer .d-option:hover {
    background-color: #FCDEE0;
}

.generated-response-text {
    padding-top: 0;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
}

.feedback_container .feedback_stars_container {
    gap: 0;
}

.generated-response-text .split-para {
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
}

.footer_right {
    gap: 16px;
}

.generated-response-footer .feedback_stars_container {
    min-width: fit-content;
}

.tool-modes .writing-mode.paragraph-writing-mode .custom-select .select-selected {
    border-radius: 99px;
}

.container-remover {
    cursor: pointer;
}

.synonyms {
    font-size: 16px;
    font-weight: 500;
    color: #BC37DF;
}

/* Output Footer modes css end here */



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

    .modal-subtitle:not(:empty) {
        margin-bottom: 10px;
    }

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

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

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

    #selected-p-style-mode-mobile {
        border-radius: 99px;
        line-height: 20px;
    }

    .simple__outline__btn {
        display: flex;
    }
}

.mobile-popup-header {
    display: none;
    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;
}

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

.select-items .d-block,
.select-items .same-as-selected,
.select-items li {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    padding: 6px 12px;
    border-radius: 2rem;
}

.select-items {
    top: unset;
    bottom: calc(100% + 5px);
    border-radius: 10px;
    gap: 4px;
    margin-bottom: 0;
}

.select-selected.select-arrow-active {
    transform: rotate(0deg);
}

.bg-gray-overlay {
    content: '';
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: red;
    z-index: 9;
}

.p-style-more-mode-btn.selected,
.lang-more-option.selected {
    color: white !important;
}

.p-style-more-mode-btn.selected img,
.p-style-more-mode-btn.selected img {
    filter: invert();
}

/* .p-style-modes-container .p-style-mode.active:not(.custom), */
.more-lang-container .select__other__option.active {
    display: block;
    border: none;
    position: relative;
}

.p-style-mode.custom.p-style-more-for-mobile {
    display: none;
}

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

.select-items .d-block,
.select-items .same-as-selected,
.select-items li {
    display: block;
    padding: 6px 12px !important;
    border-radius: 99px;
    position: relative;
}

.search-lang {
    padding: 6px 12px;
}

.custom-input-container {
    display: flex;
    align-items: center;
}

.custom-input-container .defaultShowing {
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #BC37DF;
}

.custom-input-container .custom-mode-input {
    display: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    border: none;
    outline: none;
}

.custom-input-container .custom-mode-input:focus {
    border: none;
    outline: none;
}

.mobile-view-custom-mode {
    border: 1px solid #9803A959;
    background: #FFFFFF;
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;

    .custom-input {
        flex: 1;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        outline: none;
        border: none;
    }

    .clear-custom-input {
        font-weight: 500;
        font-size: 12px;
        line-height: 16px;
        color: #FF5F62;
    }

}

.p-style-more-mode-dropDown .p-style-mode.custom.active {
    display: block;
    background-color: transparent;
    border: 1px solid #EBE9F6;
    padding-right: 30px !important;
}

.p-style-more-mode-dropDown .p-style-mode.custom:placeholder-shown {
    padding-right: 0 !important;
}

.p-style-mode.custom:not(.active) {
    color: #BC37DF !important;
}



.p-style-mode.custom .custom-input::selection {
    background-color: default;
}


.p-style-modes-container .p-style-mode .custom-input:focus {
    height: -webkit-fill-available;
    color: #242424;
    background: #FFFFFF;
    padding: 0 12px;
}

.p-style-modes-container .p-style-mode .custom-input {
    color: #F7F5FF;
    background-color: #2A3342;
    font-size: 14px;
    line-height: 20px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 18px;
    outline: none;
    border: none;
}

@media screen and (max-width: 767px) {
    .search-lang {
        padding: 8px;
    }

    .select-selected img {
        transform: rotate(0deg);
    }
    
    .select-selected.select-arrow-active img {
        transform: rotate(180deg);
    }

    .p-style-mode.custom.p-style-more-for-mobile {
        width: 100%;
        display: flex;
        max-width: 100%;
        border-radius: 99px !important;
    }

    .p-style-mode.custom.p-style-more-for-mobile.active {
        background-color: #F7F5FF !important;
        border: none !important;
        color: #BC37DF !important;
    }

    .p-style-modes-container .p-style-mode .custom-input {
        max-width: 100%;
        background-color: transparent;
        color: #242424 !important;
        width: 100%;
        padding-right: 20px !important;
        border-radius: 0 !important;
    }

    .search-lang {
        padding-left: 8px;
    }

    .search-lang:placeholder-shown {
        padding-left: 32px;
    }

    .search-lang:placeholder-shown {
        background-image: url('/web_assets/frontend/images/home/Search.svg');
        background-position: 8px center;
        background-repeat: no-repeat;
    }

    .mobile-popup-header {
        display: flex;
    }

    .custom-select:has(.select-items:not(.select-hide))::before,
    .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,
    .paraphrase-menu-container:has(.paraphrase-menu.show)::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,
    .custom-select .select-items,
    .paraphrase-menu {
        position: fixed;
        top: unset;
        left: 0;
        bottom: 0;
        width: 100%;
        height: fit-content;
        padding: 16px;
        box-shadow: 0px 4px 16px -2px #0000001A;
        border-radius: 0;
        z-index: 999999;
        flex-direction: column;
        gap: 4px;
    }

    .p-style-modes-container.p-style-modes-desktop-view-on-mobile {
        display: flex !important;
    }

    .select-items:not(.select-hide) {
        display: flex;
    }

    .select-items .mobile-popup-header {
        padding: 0 !important;
    }

    .custom-select .select-items {
        list-style: none;
        margin-bottom: 0 !important;
    }

    .mobile-popup-header {
        background-color: transparent !important;
    }

    .select-items .d-block,
    .select-items .same-as-selected,
    .select-items li {
        display: block;
        padding: 6px 12px !important;
        border-radius: 99px;
        position: relative;
    }


    .lang__more__mode__dropDown {
        position: fixed;
        top: unset;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        align-items: start;
        flex-direction: column;
        padding: 16px;
        border-radius: 0;
        gap: 4px;
        overflow-y: hidden;
        overflow-x: hidden;
        max-height: fit-content;
        height: 100%;
        max-height: 360px;
        z-index: 999999;
    }

    .lang__more__mode__dropDown .mobile-popup-header,
    .lang__more__mode__dropDown .search-lang,
    .lang__more__mode__dropDown .language-option-container {
        width: 100%;
        max-width: 100%;
    }

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

    .p-style-modes-container .p-style-mode {
        border: none;
    }

    .p-style-modes-container .p-style-mode.active:not(.custom),
    .more-lang-container .select__other__option.active {
        display: block;
        background-color: #F7F5FF;
        color: #000000 !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%);
    }

    .lang__more__mode__dropDown .mobile-popup-header,
    .lang__more__mode__dropDown .search-lang {
        grid-column: span 3;
        height: fit-content;
    }
}

@media only screen and (max-width: 640px) {
    .tool-counter-frame {
        margin-bottom: 8px;
    }

    .downloadOptionContainer {
        margin-bottom: 0;
    }

    .generated-response-footer {
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .main-download {
        margin-top: 0;
        margin-right: 0;
    }

    .footer_left {
        flex-direction: row;
    }

    .footer_right {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer_right .downloadOptionContainer {
        display: flex;
        margin-bottom: 0;
    }

    .download-option-div {
        left: auto;
        right: 0;
        top: 35px;
    }

    .download-option-div span {
        display: block;
    }

    .footer_right .generated-response-reset-btn:hover {
        background-color: transparent;
    }

    .footer_right .generated-response-reset-btn {
        all: unset;
        min-width: fit-content !important;
        display: flex;
        margin-bottom: 0;
    }

    .footer_right .generated-response-text-download {
        color: black;
    }

    .tool-modes.paragraph-tool-mode,
    .tool-modes.ai-storyWriter-tool-mode {
        gap: 10px;
    }
}

@media only screen and (max-width: 610px) {
    .generated-response-footer {
        flex-direction: column;
        gap: 8px;
    }

    .generate-btn-container-desktop.paragraph-generate-btn button {
        max-width: 100% !important;
        padding: 6px 16px !important;
        font-weight: 500;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0px;
        text-align: center;
    }

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

    .paraphrase-menu-container {
        position: static;
    }

    .home-output-modes {
        position: relative;
    }

    .footer_right {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .generated-response-footer .footer_left,
    .home-output-modes,
    .home-output-modes .home-output-mode,
    .home-output-modes .paraphrase-menu-container {
        width: 100%;
    }

    .home-output-modes .home-output-mode,
    .home-output-modes .paraphrase-mode {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #tool-modes {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .generate-btn-container {
        margin: auto;
    }

    .select-items {
        border: 1px solid #EBE9F6;
        box-shadow: 0px 6px 60px 3px #0000000F;
    }

    .writing-mode.paragraph-writing-mode,
    .select-selected {
        max-width: 100% !important;
    }
}

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

    .writing-mode.paragraph-writing-mode,
    .select-selected {
        max-width: 100% !important;
    }
}

@media only screen and (max-width: 365px) {
    .feedback_container .feedback_stars_container {
        gap: 0;
    }

    .language-option-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .generated-response-div .response-header {
        gap: 5px;
    }

    .generated-response-footer {
        justify-content: center;
    }
}

@media only screen and (max-width: 346px) {
    .home-output-mode {
        padding-inline: 6px !important;
    }
}

@media only screen and (max-width:325px) {
    .footer_right {
        gap: 10px;
    }
}