.essay-result {
    padding: 0 120px;
}

.english-essay-result {
    margin: 0 auto;
    color: #000000DE;
    font-size: 20px;
    line-height: 1.5;
    font-weight: 500;
    padding-top: 20px;
    margin-bottom: 16px;
}

.english-essay-result__content {
    position: relative;
    max-height: 430px;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.english-essay-result__content:not(.expanded)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 158px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff 100%);
}

.english-essay-result__content.expanded {
    max-height: 3000px;
}

.english-essay-result.good .total-score,
.english-essay-result.excellent .total-score {
    background-color: #34C759;
}

.english-essay-result.good .score,
.english-essay-result.excellent .score {
    color: #34C759;
}

.english-essay-result.completed .total-score {
    background-color: #FF9500;
}

.english-essay-result.completed .score {
    color: #FF9500;
}

.english-essay-result.need_practice .total-score,
.english-essay-result.unrelated .total-score,
.english-essay-result.not_attempted .total-score {
    background-color: #FF3B30;
}

.english-essay-result.need_practice .score,
.english-essay-result.unrelated .score,
.english-essay-result.not_attempted .score {
    color: #FF3B30;
}

.english-essay-result__section:not(:last-child) {
    margin-bottom: 32px;
}

.english-essay-result__title {
    margin: 0 0 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}

.english-essay-result__subtitle {
    margin: 0 0 16px;
    color: #000000DE;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
}

/* .english-essay-result__subtitle--spark:before {
    content: "✦";
    display: inline-block;
    margin-right: 8px;
    color: #22c7df;
} */

.english-essay-result__score-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 20px;
}

.english-essay-result__score-row span:first-child {
    font-weight: 500;
}

.english-essay-result__score-row b {
    color: #34C759;
    font-size: 24px;
}

.english-essay-result__score-row--total {
    margin-bottom: 16px;
    font-weight: 700;
}

.english-essay-result__score-row--total span:first-child {
    font-weight: 700;
}

.english-essay-result__score-row--total div {
    min-width: 128px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 22px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.2;
    text-align: center;
}

.english-essay-result__score-row--total div strong {
    font-size: 24px;
}

.english-essay-result__score-row--total div span {
    font-size: 20px;
    font-weight: 500;
}

.english-essay-result__paragraph,
.english-essay-result__comment-item p,
.english-essay-result__answer-box p,
.english-essay-result__correction p,
.english-essay-result__note p {
    margin: 0;
}

.english-essay-result__paragraph {
    margin-bottom: 16px;
}

.english-essay-result__comment-item {
    margin-top: 16px;
}

.english-essay-result__comment-item h4 {
    margin: 0 0 8px;
    font-weight: 600;
    line-height: 1.5;
    font-size: 20px;
    padding-left: 4px;
}

.english-essay-result__answer-box,
.english-essay-result__correction,
.english-essay-result__note {
    border: 1px solid #0000001F;
    border-radius: 16px;
}

.english-essay-result__answer-box {
    padding: 14px 12px;
}

.english-essay-result__legend {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: 600;
}

.english-essay-result__legend-wrong,
.english-essay-result__word--wrong {
    color: #ff3b30;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.english-essay-result__legend-correct,
.english-essay-result__word--correct {
    color: #28c65a;
}

.english-essay-result__legend-correct:before {
    content: "✓";
    margin-right: 6px;
}

.english-essay-result__word {
    margin: 0 2px;
}

.english-essay-result__correction {
    padding: 16px;
}

.english-essay-result__correction div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.english-essay-result__correction:not(:last-child) {
    margin-bottom: 16px;
}

.english-essay-result__correction p {
    margin-top: 16px;
}

.english-essay-result__correction.english-essay-result__correction--perfect {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 16px;
}

.english-essay-result__pill {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 18px;
    font-weight: 500;
    line-height: 28px;
    min-height: 36px;
}

.english-essay-result__pill--wrong {
    background: #FF3B3014;
    color: #FF3B30;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}

.english-essay-result__pill--correct {
    background: #34C75914;
    color: #34C759;
}

.english-essay-result__note {
    padding: 16px;
}

.english-essay-result__note + .english-essay-result__note {
    margin-top: 16px;
}

.english-essay-result__note h4 {
    margin: 0 0 16px;
    font-weight: 600;
    font-size: 20px;
}

.english-essay-result__note p {
    position: relative;
}

.english-essay-result__note p + p {
    margin-top: 8px;
}

.english-essay-result__note--strength {
    border-color: #34C75952;
}

.english-essay-result__note--strength h4,
.english-essay-result__note--strength p:before {
    color: #28c65a;
}

.english-essay-result__note--improvement {
    border-color: #FF9F0A52;
}

.english-essay-result__note--improvement h4,
.english-essay-result__note--improvement p:before {
    color: #ff9800;
}

.english-essay-result__toggle {
    padding: 0;
    border: 0;
    background: transparent;
    color: #ff6609;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
}

.english-essay-result__toggle img {
    transition: transform 0.25s ease;
}

.english-essay-result__content.expanded + .english-essay-result__toggle img {
    transform: rotate(180deg);
}

.english-essay-result__footer {
    margin-top: 16px;
    border-top: 1px solid #0000001F;
    border-bottom: 1px solid #0000001F;
}

.english-essay-result__feedback {
    display: flex;
    align-items: center;
    padding-bottom: 16px;
    padding-top: 16px;
    gap: 12px;
}

.english-essay-result__feedback button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

.english-essay-result__feedback button.btn-dislike svg {
    transform: rotate(180deg);
}
.english-essay-result__feedback button.btn-dislike.active,
.english-essay-result__feedback button.btn-like.active {
    background: linear-gradient(315deg, #60EFFF 0%, #0061FF 100%);
}


.essay-comment {
    font-size: 20px;
    color: #000;
    font-weight: 400;
    padding-top: 20px;
}
.essay-comment--title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.essay-comment--rating {
    display: flex;
    align-items: center;
    font-size: 20px;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid #E0E0E0;
    border-bottom: 1px solid #E0E0E0;
}
.essay-comment--rating p {
    margin: 0;
}
.essay-comment--rating .rating-like, .essay-comment--rating .rating-unlike {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.essay-comment--rating .rating-like svg {
    transform: rotate(180deg);
}

.essay-comment--rating .rating-like:hover, .essay-comment--rating .rating-unlike:hover {
    background: linear-gradient(315deg, #60EFFF 0%, #0061FF 100%);
}

.essay-comment--rating .rating-like.active, .essay-comment--rating .rating-unlike.active {
    background: linear-gradient(315deg, #60EFFF 0%, #0061FF 100%);
}

.essay-comment--rating .rating-like.active svg, .essay-comment--rating .rating-like:hover svg, 
.essay-comment--rating .rating-unlike.active svg, .essay-comment--rating .rating-unlike:hover svg {
    fill: #fff;
}

.essay-comment ul {
    list-style-type: unset;
    padding-left: 16px;
}

.essay-answer {
    padding: 0 100px;
    font-size: 18px;
}

.essay-answer table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #E0E0E0;
}
.essay-answer table tr {
    border-bottom: 1px solid #E0E0E0;
}
.essay-answer table tr td, .essay-answer table tr th {
    padding: 10px;
    border-right: 1px solid #E0E0E0;
}

@media only screen and (max-width: 640px) {
    .essay-result {
        padding: 0 16px;
    }

    .essay-result *,
    .english-essay-result__comment-item h4 {
        font-size: 16px;
    }

    .english-essay-result {
        max-width: 100%;
    }

    .english-essay-result__section:not(:last-child) {
        margin-bottom: 24px;
    }

    .english-essay-result__subtitle {
        margin-bottom: 8px;
    }

    .english-essay-result__note h4 {
        margin: 0 0 8px;
        font-size: 16px;
    }

    .english-essay-result__score-row--total div {
        min-width: 110px;
    }

    .english-essay-result__score-row--total strong,
    .english-essay-result__score-row b {
        font-size: 18px;
    }
}
