.poll-addon{
    margin: 0;
    max-height: 65vh;
}

.results-title{
	width: 100%;
    margin-top: 0;
    text-align: center;
	display: flex;
	justify-content: center;
	align-content: center;
	color: #303030;
	font-size: 10pt;
	padding: 8px;
}

.poll-title{
	color: #303030;
	font-size: 10pt;
	padding: 0;
	margin: 0;
}

.poll-addon p{
	text-align: left;
}

.poll-ended{
    font-size: 10pt !important;
    line-height; 10pt; !important
    color: white !important;
}

.poll-counter{
	color: white;
	font-size: 10pt;
	line-height; 10pt;
    display: inline-block;
  text-align: center;
  margin: 0 auto;
}

.poll-question {
    text-align: left;
	font-size: 16pt;
	line-height: 20pt;
    color: white;
	font-weight: 600;
	margin: 0;
	padding: 0 0 8px 0;
}


.poll-addon form,
.poll-addon ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    padding: 0;
    list-style: none;
    color: white;
    font-size: 10pt;
}

/* Voting cards + result cards */
.poll-answer,
.poll-addon ul li {
	background: #070087; /* Match label.poll-answer background */
	flex: 0 0 calc(25% - 4px); /* 2 items per row, subtract half the gap on each side */
	border-radius: 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	box-sizing: border-box;
	padding: 8px;
	position: relative;
}


.poll-answer:hover {
    
}

.poll-answer img.poll-answer-image,
.poll-addon ul li img {
    width: 70%;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 8px;
    aspect-ratio: 1 / 1;
}

.poll-answer label {
    cursor: pointer;
    font-weight: bold;
}

label.poll-answer{
	background: #070087;
}

/* Style the Vote button */
.poll-addon form button {
    width: 25%;
    background: linear-gradient(45deg, #00846E, #00F067);
    border: none;
    border-radius: 16px;
    cursor: pointer;
	color: white;
	font-size: 16pt;
	line-height: 14pt;
	font-weight: 600;
	height: 60px;
	align-content: space-around;
}

.poll-addon form button:hover {
	background: linear-gradient(45deg, #4FD290, #56F3B6);
}



/* Progress bar inside each result card */
.poll-addon .result-bar-container {
    width: 100%;
    background: #1700D5;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 16px;
    position: relative;
}

.poll-addon .result-bar {
    background: linear-gradient(45deg, #00846E, #00DA5E);
    height: 100%;
    transition: width 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.poll-addon .result-bar-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-size: 10pt;
    line-height: 24px;
    width: 100%;
    pointer-events: none;
    padding: 8px 0;
}

/* Small label text below */
.poll-addon small {
    margin-top: 5px;
    color: #555;
}

.poll-answer input[type="radio"] {
    display: none;
}

.poll-answer-text {
    font-weight: bold;
    margin: 0px;
    color: white;
}

.poll-answer {
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

/* Selected effect */
.poll-answer input[type="radio"]:checked + .poll-answer-text {
    color: #ffffff;
    font-weight: bold;
}

.poll-answer:has(input[type="radio"]:checked) {
    background: #4129FF;
}

/* Wrap result bar at the bottom of the card */
.poll-addon .result-bar-container {
    width: 90%;
    background: #1700D5;
    border-radius: 16px;
    overflow: hidden;
    margin-top: auto; /* Push to bottom */
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translatey(-50%);
}

/* Result label underneath bar, always aligned */
.poll-addon small {
    margin-top: 4px;
    color: #ccc;
    font-size: 10pt;
    text-align: center;
}

li:has(.result-bar-container) {
  background-color: rgba(7, 0, 7, 0.3);
}


li:has(.result-bar-container) img{
  opacity: 0.4;
}

.poll-ended-button {
    background: #444;
    color: #fff;
    text-align: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: bold;
    opacity: 0.7;
    margin-top: 10px;
}

.poll-timer{
    margin-top: 8px;
}

@media (max-width: 800px) {
    .poll-addon ul {
        display: flex;
        flex-wrap: wrap;
        gap: 8px; /* Equal horizontal and vertical gap */
        padding: 0;
        margin: 0;
    }

    .poll-addon ul li,
    .poll-answer {
        flex: 0 0 calc(50% - 4px); /* 2 items per row, subtract half the gap on each side */
        box-sizing: border-box;
    }

    .poll-addon form button {
        flex: 0 0 100%;
    }
}

