.poll_widget h2 {
    width: 100%;
    border-bottom-color: var(--mr-color-secondary);
    border-bottom-width: 5px;
}

div[id^="poll"] h3 {
    font-family: var(--mr-font-main);
    margin: 1rem 0;
}



div[id^="poll"] form label input {
    opacity: 0;
    position: absolute;
    inset: 0;
    z-index: 999;
}

.poll_widget h2 {
    width: 100%;
    border-bottom-color: var(--mr-color-secondary);
    border-bottom-width: 5px;
}

div[id^="poll"] h3 {
    font-family: var(--mr-font-main);
    margin: 1rem 0;
}

div[id^="poll"] form label {
    display: block;
    margin-bottom: .5rem;
    position: relative;
    background: #eaeaea;
}


div[id^="poll"] form label span,
div[id^="poll"] #poll-results li {
    padding: 0.8rem 1.1rem;
    display: block;
    background: #eeeded;
    font-weight: 700;
    border: 3px solid transparent;
}


div[id^="poll"] form label input:checked+span,
div[id^="poll"] form label.active input+span {
    border: 3px solid #6b5440;
}

div[id^="poll"] form label.active>span::before {
    content: '\f058';
    font-family: "FontAwesome";
    font-weight: 900;
    position: relative;
    z-index: 9;
    color: var(--mr-color-accent);
    background-color: white;
    border-radius: 50%;
    margin-right: .75rem;
}

div[id^="poll"] button {
    background: var(--mr-color-secondary);
    width: 100%;
    padding: 1rem;
    color: white;
    font-family: var(--mr-font-heading);
    font-weight: 900;
    border: 0;
    margin-top: 1rem;
}

div#poll-results ul {
    list-style: none;
    padding: 0;
}

div#poll-results ul li {
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
}


#poll-results {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 999999999;
    width: 100%;
    height: 100%;
}

.bar-container {
    height: 20px;
    background-color: #ddd;
    position: relative;
}

.bar {
    height: 100%;
    background-color: var(--mr-color-secondary);
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    z-index: 1;
    transition: width 0.5s ease-in-out;
    opacity: 0.3;
}

.percentage {
    position: absolute;
    inset: 0;
    display: flex;
    line-height: 20px;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    z-index: 99999;
}

.result-item {
    position: relative;
}

div[id^="poll"] {
    position: relative;
}


#vote-button {
    margin-top: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

#results {
    margin-top: 20px;
    display: none;
}

.result-bar {
    background-color: #4CAF50;
    height: 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    position: relative;
}

.result-label {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin: auto;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.answer {
    position: relative;
    padding: 0.8rem 1.1rem;
    display: flex;
    background: #eeeded;
    font-weight: 700;
    border: 3px solid transparent;
    margin-bottom: .5rem;
    align-items: center;
}

.answer>span {
    position: relative;
    z-index: 99999;
}




div[id^="poll"] button {
    background: var(--mr-color-secondary);
    width: 100%;
    padding: 1rem;
    color: white;
    font-family: var(--mr-font-heading);
    font-weight: 900;
    border: 0;
    margin-top: 1rem;
    font-size: 1rem;
}

div#poll-results ul {
    list-style: none;
    padding: 0;
}

div#poll-results ul li {
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
}


#poll-results {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    z-index: 999999999;
    width: 100%;
    height: 100%;
}

.bar-container {
    height: 20px;
    background-color: #ddd;
    position: relative;
}




.result-item {
    position: relative;
}

#vote-button {
    margin-top: 20px;
    padding: 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

#results {
    margin-top: 20px;
    display: none;
}

.result-bar {
    background-color: #4CAF50;
    height: 20px;
    border-radius: 5px;
    margin-bottom: 5px;
    position: relative;
}

.result-label {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin: auto;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.answer {
    position: relative;
    padding: 0.8rem 1.1rem;
    display: flex;
    background: #eeeded;
    font-weight: 700;
    border: 3px solid transparent;
    margin-bottom: .5rem;
    align-items: center;
}

.answer>span {
    position: relative;
    z-index: 99999;
}

.votecount {
    font-size: clamp(1rem, 1.5vw, 22px);
    margin-bottom: 1rem;
    color: grey;
}

div.poll_widget {
    width: 100%;
    max-width: 550px;
}