.grammarly-wrapper {
    margin-bottom: 32px;
}

.grammarly-icons {
    display: none;
}

#checker-form {
    margin-bottom: 0;
}

#checker-form + img {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}

.grammarly-embedded {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E5E5;
    box-sizing: border-box;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    margin-bottom: 32px;
}

#checker-textarea {
    font-family: Roboto, sans-serif;
    padding: 24px;
    border: none;
    outline: none;
    height: 228px;
    resize: none;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 24px;
    color: #818B94;
    box-sizing: border-box;
}

.submit-wrap {
    border-top: 1px solid #E5E5E5;
    padding: 16px;
    text-align: center;
}

#checker-submit {
    font-family: Roboto, sans-serif;
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 16px;
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 4px;
    text-transform: none;
    max-width: none;
    display: table;
    width: auto;
    outline: none;
    border: none;
    margin: 0 auto;
    opacity: 1;
}

#checker-submit strong {
    color: #FFFFFF;
}

#checker-submit:disabled,
#checker-submit.disabled {
    opacity: 0.5;
}

#checker-submit strong {
    text-transform: uppercase;
    font-weight: bold;
}

#checker-submit:hover,
#checker-submit:focus {
    border: none;
    outline: none;
}

#checker-textarea::-webkit-input-placeholder {
    color: #818B94;
}

#checker-textarea::-moz-placeholder {
    color: #818B94;
}

/*	Firefox	19+	*/
#checker-textarea:-moz-placeholder {
    color: #818B94;
}

/*	Firefox	18-	*/
#checker-textarea:-ms-input-placeholder {
    color: #818B94;
}

#checker-textarea:-ms-input-placeholder {
    color: #818B94;
}

#checker-textarea::-ms-input-placeholder {
    color: #818B94;
}

.check-block {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -100px;
    margin-top: -90px;
    width: 200px;
    height: 180px;
    background-color: white;
    z-index: 1001;
    text-align: center;
    border-radius: 5px;
}

.check-block img {
    -webkit-animation: rotate-center 1s linear infinite both;
    animation: rotate-center 1s linear infinite both;
}

@-webkit-keyframes rotate-center {
    0% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    100% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
}

@keyframes rotate-center {
    0% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
    100% {
        -webkit-transform: rotate(0);
        transform: rotate(0);
    }
}

@media all and (min-width: 768px) {
    .grammarly-icons {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 0 16px;
    }

    .grammarly-wrapper.wide .grammarly-icons {
        display: none;
    }

    .grammarly-icons::before,
    .grammarly-icons::after {
        display: none;
    }

    .grammarly-icon {
        max-width: 200px;
        text-align: center;
    }

    .grammarly-icon-img {
        margin-bottom: 16px
    }

    .grammarly-icon-img img {
        display: block;
        margin: 0 auto;
    }

    .grammarly-icon-text {
        font-family: Roboto, sans-serif;
        font-style: normal;
        font-weight: normal;
        font-size: 14px;
        line-height: 24px;
        max-width: 150px;
        margin: 0 auto;
        text-align: center;
    }
}

@media all and (min-width: 1200px) {
    .grammarly-wrapper.wide {
        display: flex;
        flex-wrap: wrap;
        max-width: 1145px;
        margin: 0 auto;
    }

    .grammarly-wrapper.wide .grammarly-embedded {
        flex: 1;
        max-width: 720px;
    }

    .grammarly-wrapper.wide .grammarly-icon {
        padding: 0 20px;
    }

    .grammarly-wrapper.wide .grammarly-icons {
        display: flex;
        justify-content: center;
        flex: 1;
        max-width: 425px;
    }
}
