.voting-tool__card {
    overflow: hidden;
    border-color: var(--sw-primary-brand-disabled);
    border-radius: 1.5rem;
}

.voting-tool__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    color: var(--sw-primary-brand-BITV);
    background: var(--sw-light-green);
    font-size: 2.4rem;
}

.voting-tool__icon--active {
    color: var(--sw-white);
    background: var(--sw-primary-brand-BITV);
}

.voting-tool__answers,
.voting-tool__results {
    display: grid;
    gap: 1.5rem;
    margin-top: 3rem;
}

.voting-tool__answer,
.voting-tool__result {
    border-color: var(--sw-primary-brand-disabled);
}

.voting-tool__answer {
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.voting-tool__answer:hover,
.voting-tool__answer.is-active,
.voting-tool__result.is-selected {
    border-color: var(--sw-primary-brand-BITV);
}

.voting-tool__radio {
    flex: 0 0 2.6rem;
    width: 2.6rem;
    height: 2.6rem;
    margin: 0;
    cursor: pointer;
}

.voting-tool__answer-text {
    font-weight: 700;
}

.voting-tool__meta {
    color: var(--sw-black);
}

.voting-tool__meta i {
    color: var(--sw-primary-brand-BITV);
    font-size: 2.4rem;
}

.voting-tool__meta strong,
.voting-tool__meta span {
    display: block;
}

.voting-tool__time,
.voting-tool__total {
    margin-left: auto;
    justify-content: flex-end;
    text-align: right;
}

.voting-tool__total-count {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.voting-tool__total .voting-tool__total-count i {
    font-size: 1.1rem;
}

.voting-tool__check {
    display: inline-flex;
    flex: 0 0 3rem;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--sw-primary-brand-BITV);
    border-radius: 50%;
    color: var(--sw-white);
    background: transparent;
}

.voting-tool__check--checkbox {
    border-radius: 0.35rem;
}

.voting-tool__check i {
    visibility: hidden;
}

.voting-tool__result.is-selected .voting-tool__check {
    background: var(--sw-primary-brand-BITV);
}

.voting-tool__result.is-selected .voting-tool__check i {
    visibility: visible;
}

.voting-tool__numbers {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
}

.voting-tool__numbers p {
    margin: 0;
}

.voting-tool__result-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem 1rem;
    width: 100%;
}

.voting-tool__result-content .voting-tool__answer-text {
    grid-column: 1;
    grid-row: 1;
}

.voting-tool__result-content .voting-tool__numbers {
    grid-column: 2;
    grid-row: 1;
}

.voting-tool__result-content .voting-tool__progress {
    grid-column: 1 / -1;
    grid-row: 2;
}

.voting-tool__numbers strong {
    display: block;
    color: var(--sw-primary-brand-BITV);
    font-size: 2.4rem;
    line-height: 1;
}

.voting-tool__numbers span {
    display: block;
    margin-top: 0.4rem;
    font-size: 1.4rem;
}

.voting-tool__progress {
    overflow: hidden;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--sw-light-green);
}

.voting-tool__progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--sw-primary-brand-BITV);
}

@media (max-width: 767.98px) {
    .voting-tool__answer-text,
    .voting-tool .card-title,
    .voting-tool .card-text {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
        -webkit-hyphens: auto;
        hyphens: auto;
        hyphenate-character: "-";
    }

    .voting-tool__form > .d-flex:last-child,
    [data-voting-after] > .card-body > .d-flex:last-child {
        flex-direction: column;
        align-items: stretch !important;
        gap: 1.25rem;
    }

    .voting-tool__form button[type="submit"] {
        width: 100%;
        min-height: 3rem;
    }

    .voting-tool__meta:not(.voting-tool__time) {
        width: 100%;
        align-items: flex-start !important;
    }

    .voting-tool__time {
        width: auto;
        align-items: center !important;
    }

    .voting-tool__total {
        align-items: center !important;
        justify-content: flex-end;
    }

    .voting-tool__result-content {
        grid-template-columns: minmax(0, 1fr);
    }

    .voting-tool__result-content .voting-tool__answer-text {
        grid-column: 1;
        grid-row: 1;
    }

    .voting-tool__result-content .voting-tool__progress {
        grid-column: 1;
        grid-row: 2;
    }

    .voting-tool__result-content .voting-tool__numbers {
        grid-column: 1;
        grid-row: 3;
        justify-self: end;
    }
}
