﻿.phrase-input-wrapper {
    position: sticky;
    top: 80px;
    padding: 6px 15px 0;
    z-index: 1;
    background-color: white;
}

.number-of-remaining-requests {
    font-size: 1.7rem;
    float: right;
    margin-right: 12px;
}

    .number-of-remaining-requests span:last-child {
        font-size: 1.5rem;
    }

    .phrase-input-container {
        max-width: 1064px;
        margin-inline: auto;
    }

.search-table-wrapper {
    overflow: hidden;
    width: 100%;
    padding-inline: 30px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
    gap: 2rem;
    text-underline-offset: 2px;
}

    .pagination .selected-page {
        color: var(--dark-blue-color);
        text-decoration: underline;
    }

    .pagination a:hover {
        color: var(--dark-blue-color);
        text-decoration: none;
    }

    .ask-questions-form {
        background-color: white;
        padding: 50px 60px;
        min-height: 781px;
        flex: 0 1 500px;
        height: fit-content;
    }

.question-form-submit-wrapper {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.question-form-submit {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    width: min(500px, 100vw - 40px);
    padding: 30px 50px;
    margin: auto;
    background-color: white;
    border-radius: 20px;
}

    .question-form-submit div {
        color: var(--black-color);
        text-wrap: balance;
    }

.marketingovaya-hernya a.btn {
    width: 210px;
    padding-left: 5px;
    padding-right: 5px;
}

    .marketingovaya-hernya a.btn.blue-white {
        background-color: var(--blue-color);
    }

        .marketingovaya-hernya a.btn.blue-white:hover {
            background-color: white;
        }

            .marketingovaya-hernya a.btn.blue-white:hover .telegram-img {
                filter: invert(48%) sepia(65%) saturate(4366%) hue-rotate(199deg) brightness(96%) contrast(92%);
            }

    .marketingovaya-hernya a.btn.white-blue:hover {
        background-color: var(--blue-color);
    }

.marketingovaya-hernya-sticky a.btn {
    width: 210px;
    padding-left: 5px;
    padding-right: 5px;
}

    .marketingovaya-hernya-sticky a.btn.blue-white {
        background-color: var(--blue-color);
    }

        .marketingovaya-hernya-sticky a.btn.blue-white:hover {
            background-color: white;
        }

    .marketingovaya-hernya-sticky a.btn.white-blue:hover {
        background-color: var(--blue-color);
    }

@media (max-width: 1000px) {
    .phrase-input-wrapper .trending-history-wrapper {
        margin-inline: 15px;
    }
    
    .search-table-wrapper {
        overflow: initial;
    }

    .phrase-input-wrapper {
        top: 80px;
        padding: 6px 0 0;
        background-color: #f9fafc;
    }

    .phrase-input-container {
        margin-inline: 15px;
    }

    .search-table tr:has(th) {
        position: sticky;
        top: 160px;
        background-color: #f9fafc;
        box-shadow: inset 0 -10px 1px -10px #4c4c4c;
        z-index: 1;
    }

    .ask-questions-form {
        max-width: 500px;
        min-height: unset;
        flex: 0 1 auto;
    }

    .form-text-area {
        height: 180px;
    }
}

@media (max-width: 840px) {
}

@media (max-width: 500px) {
    .phrase-input-wrapper {
        top: 70px;
    }

    .phrase-input-wrapper .trending-history-wrapper {
        margin-inline: 8px;
    }
    
    .phrase-input-container {
        margin-inline: 8px;
    }
    
    .search-table-wrapper {
        padding-inline: 7px;
    }

    .search-table tr:has(th) {
        top: 140px;
    }

    .pagination {
        margin-top: 40px;
        font-size: 1.8rem;
        gap: 3rem;
    }

    .ask-questions-form {
        padding: 40px 30px 50px;
    }

    .marketingovaya-hernya a.btn {
        flex: 1 1 auto;
        width: unset;
    }

    .marketingovaya-hernya-sticky a.btn {
        flex: 1 1 auto;
        width: unset;
    }
}
