﻿div.box-cauhoi:has(.ranking-question) {
}

.ranking-question, .ranked-question {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    background-color: rgb(240,240,240);
}

.group-cautraloi-ykien li.ranking-question-item label {
    float: none;
}

.ranking-question-item {
    flex: 1;
    justify-content: space-between;
    align-items: center;
    -webkit-box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 5px;
    padding-inline: auto;
    background-color: white;
    width: 33% !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
}

    .ranking-question-item.ranked {
        list-style: decimal;
    }

li.ranking-question-item.ranked::marker {
    color: #bbb;
}

li.ranking-question-item p {
    margin-block-end: 0.2em;
}

.ranked-question {
    background: rgba(0,0,0,0.7);
    border: 2px dashed #bbb;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    text-align: center;
}

    .ranked-question:not(:has(.ranked)) {
        min-height: 4rem;
    }

        .ranked-question:not(:has(.ranked))::after {
            content: 'Vui lòng kéo thả các câu trả lời bạn muốn xếp hạng vào hộp này!';
            font-weight: bold;
            font-size: 16px;
            color: #bbb;
        }

.khaosat__item .item__body:has(.ranked-question) {
    overflow: hidden;
    height: 0 !important;
    transform: unset !important;
    transition: height 0.1s ease-in-out !important;
}

.khaosat__item.active .item__body:has(.ranked-question) {
    display: block;
    height: auto !important;
    transform: unset !important;
}

[draggable] {
    user-select: none;
}
