.sentence-counter {
    width: 100%;
    margin: 0 auto;
}

.sc-results-wrap {
    padding: 15px 5px;
    background: #f7f8f9;
    border-radius: 20px 20px 0 0;
    color: #000;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.sc-results {
    text-align: center;
    border-right: 1px solid #b2b2be;
    padding: 5px 2px;
    display: block;
}

.sc-results:last-child,
.sc-resultsnb {
    border-right: none;
}

.sc-resultspan {
    font-size: 1.6rem;
    font-weight: 600;
}

.sc-small-label {
    font-size: 1rem;
}

.sc-input {
    width: 100%;
    min-height: 400px;
    padding: 30px;
    border-radius: 0 0 20px 20px;
    background: #fff;
    box-sizing: border-box;
    display: block;
}

.sentence-counter button {
    margin-top: 10px;
    margin-right: 10px;
    font-size: 1.1rem;
}

.sentence-counter.has-custom-button-color button {
    background-color: var(--sc-button-bg);
}

.sentence-counter.has-custom-font-color button {
    color: var(--sc-button-color);
}

.sc-screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 998px) {
    .sc-results-wrap {
        grid-template-columns: repeat(4, 1fr);
    }

    .sc-results {
        width: auto;
    }

    .sc-results:nth-child(4n) {
        border-right: none;
    }

    .sc-resultsnb {
        border-right: 1px solid #b2b2be;
    }

    .sc-resultspan {
        font-size: 1.5rem;
        font-weight: 600;
    }
}

@media (max-width: 640px) {
    .sc-results-wrap {
        grid-template-columns: repeat(4, 1fr);
    }

    .sc-results {
        width: auto;
        font-size: 1rem;
    }

    .sc-results:nth-child(4n) {
        border-right: none;
    }

    .sc-resultsnb {
        border-right: 1px solid #b2b2be;
    }

    .sc-resultspan {
        font-size: 1.3rem;
        font-weight: 600;
    }
}

@media (max-width: 440px) {
    .sc-results-wrap {
        grid-template-columns: repeat(3, 1fr);
        padding: 5px;
    }

    .sc-results {
        width: auto;
        font-size: 1rem;
        margin: 5px 0;
    }

    .sc-results:nth-child(3n) {
        border-right: none;
    }

    .sc-resultsnbmob {
        display: none;
    }

    .sc-resultsnbsmall,
    .sc-resultsnb {
        border-right: none;
    }

    .sc-resultspan {
        font-size: 1.2rem;
        font-weight: 600;
    }
}