.survey-summary {
    flex-direction: column;
    align-items: start;
    margin-block: 0.5em;
    border: 1px solid transparent;
    border-radius: 2px;
    padding: 1em;
}

.survey-summary-text {
    width: 100%;
    margin-block: 0.5em;
}

.survey-summary h2 {
    text-wrap: initial;
    line-height: 1.2;
}

.survey-summary h2,
.survey-summary p {
    margin: 0;
}

.survey-infos {
    text-wrap: nowrap;
}

@media screen and (width > 600px) {
    .survey-summary {
        flex-direction: row;
    }

    .survey-summary > div:last-child {
        text-align: right;
    }
}

#survey-show section {
    margin-bottom: 4em;
}

#survey form {
    margin: 1em 0;
}

#survey .survey-text {
    margin-block-end: 1em;
}

#survey .survey-text p,
#survey .survey-text h1 {
    margin: 0;
}

.progress-bar {
    display: flex;
    width: 100%;
    background-color: #eee;
}

.progress-bar > div {
    height: 20px;
    width: 100%;
}

.progress-bar > div:nth-child(1) {
    background-color: var(--primary-200);
}

.progress-bar > div:nth-child(2) {
    background-color: var(--primary-300);
}

.progress-bar > div:nth-child(3) {
    background-color: var(--primary-400);
}

.progress-bar > div:nth-child(4) {
    background-color: var(--primary-500);
}

.progress-bar > div:nth-child(5) {
    background-color: var(--primary-600);
}

#vote-form {
    margin: 1em;
    text-align: center;
}

#vote-form button {
    display: inline-flex;
    min-width: 80%;
    margin: 0.3em 0;
    align-items: center;
    justify-content: space-between;
    background-color: transparent;
    border: 1px solid transparent;

    &.choice,
    &:hover,
    &:focus-within {
        border: 1px solid #ddd;
    }

    &.choice {
        background-color: #fafafa;
    }
}

#vote-form button small {
    margin-inline-start: 0.2em;
    opacity: 0.6;
}

.vote-form-color {
    display: inline-block;
    width: 2em;
    height: 0.6em;
    margin-inline-end: 0.2em;
}

#vote-form button:nth-child(1) .vote-form-color {
    background-color: var(--primary-200);
}

#vote-form button:nth-child(2) .vote-form-color {
    background-color: var(--primary-300);
}

#vote-form button:nth-child(3) .vote-form-color {
    background-color: var(--primary-400);
}

#vote-form button:nth-child(4) .vote-form-color {
    background-color: var(--primary-500);
}

#vote-form button:nth-child(5) .vote-form-color {
    background-color: var(--primary-600);
}

.survey-info {
    width: max-content;
    margin: 2em auto 0;
}

.survey-info svg {
    margin-inline-end: 0.25em;
}

/* PARTAGE */

.survey-share input:focus-visible {
    color: inherit;
}

/* COMMENTS */

.comment-wrapper form button {
    display: none;
    margin: 0.5em;
}

.comment-wrapper form:focus-within button {
    display: initial;
}

.comment-item p[contenteditable] {
    margin-block: 0.5em;
    padding: 0.5em;
    background-color: var(--secondary);
}
