.poll-card {
    /* background: #fff; */
    /* border: 1px solid #ddd7e7; */
    /* border-radius: 1rem; */
    padding: 1rem;
    position: relative;
}

.poll-card.poll-style-inline .poll-card-options {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.poll-card.poll-style-inline .poll-card-form {
    flex: 1 1 16rem;
}

.poll-card-head {
    margin-bottom: 0.9rem;
}

.poll-card-title {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.22;
    margin: 0;
}

.poll-title,
.poll-option-title {
    display: block;
    font-weight: 700;
}

.poll-description,
.poll-option-description {
    color: #746f7b;
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 0.2rem;
}

.poll-card-subtitle {
    color: #67616f;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.55rem 0 0;
}

.poll-card-options {
    display: grid;
    gap: 0.8rem;
}

.poll-card-option {
    background: #fff;
    border: 1px solid #ded9e7;
    border-radius: 0.9rem;
    padding: 0.78rem 0.85rem 0.68rem;
}

.poll-card-option.is-selected {
    border-color: #c9b1f5;
    box-shadow: 0 0 0 2px rgba(141, 119, 180, 0.16);
}

.poll-card-option-row {
    align-items: center;
    display: grid;
    gap: 0.72rem;
    grid-template-columns: 2rem minmax(0, 1fr) auto;
}

.poll-card-option.is-custom-input .poll-card-option-row {
    grid-template-columns: minmax(0, 1fr);
}

.poll-card-check {
    align-items: center;
    background: #fff;
    border: 2px solid #d1ced8;
    border-radius: 0.48rem;
    color: transparent;
    display: inline-flex;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}

.poll-card-check i {
    font-size: 0.96rem;
}

.poll-card-check.is-selected {
    background: linear-gradient(180deg, #7f5dd6 0%, #6f4dca 100%);
    border-color: #6f4dca;
    color: #fff;
}

.poll-card-submit.poll-mode-single .poll-card-check {
    border-radius: 999px;
}

.poll-card-submit.poll-mode-single .poll-card-check i {
    display: none;
}

.poll-card-submit.poll-mode-single .poll-card-check.is-selected::after {
    background: #fff;
    border-radius: 999px;
    content: "";
    display: block;
    height: 0.6rem;
    width: 0.6rem;
}

.poll-card-submit.poll-mode-limited .poll-card-check i {
    display: none;
}

.poll-card-submit.poll-mode-limited .poll-card-check {
    color: #6f4dca;
    font-size: 0.84rem;
    font-weight: 800;
}

.poll-card-submit.poll-mode-limited .poll-card-check.is-selected {
    color: #fff;
}

.poll-card-submit.poll-mode-limited .poll-card-check.is-selected::after {
    content: attr(data-order);
}

.poll-card-option-label {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.2;
}

.poll-card-option-share {
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
}

.poll-card-option-meta {
    align-items: center;
    display: inline-flex;
    gap: 0.45rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.poll-card-option-votecount {
    background: #ede7f9;
    border: 1px solid #d5c7f2;
    border-radius: 999px;
    color: #5f4a93;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    min-width: 1.75rem;
    padding: 0.2rem 0.42rem;
    text-align: center;
}

.poll-card-option-description {
    color: #6f6878;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 0.34rem;
    padding-left: 2.72rem;
}

.poll-card-progress {
    background: #e9e3f3;
    border-radius: 99px;
    height: 0.34rem;
    margin-top: 0.58rem;
    overflow: hidden;
}

.poll-card-progress-fill {
    background: linear-gradient(90deg, #8d68db 0%, #7753ce 100%);
    display: block;
    height: 100%;
    max-width: 100%;
    min-width: 0;
}

.poll-card-form {
    margin: 0;
}

.poll-option-separator {
    border-bottom: 1px solid #e4deec;
    border-top: 1px solid #e4deec;
    color: #4f465f;
    margin: 0.25rem 0;
    padding: 0.75rem 0.1rem;
}

.poll-option-separator-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.poll-option-separator-description {
    color: #746f7b;
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.35;
    margin-top: 0.18rem;
}

.poll-order-separator {
    align-items: center;
    display: grid;
    gap: 0.18rem 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.poll-order-separator .poll-option-separator-description {
    grid-column: 1 / -1;
}

.poll-order-section-total {
    color: #746f7b;
    font-size: 0.86rem;
    font-weight: 700;
    justify-self: end;
}

.poll-order-separator.is-over-limit {
    border-color: #d9534f;
    color: #9f302c;
}

.poll-order-separator.is-over-limit .poll-order-section-total {
    color: #9f302c;
}

.poll-card-custom-input-wrap {
    align-items: stretch;
    display: flex;
    gap: 0;
    margin-top: 0.65rem;
    padding-left: 2.72rem;
}

.poll-card-custom-input {
    border: 1px solid #d7d1e4;
    border-radius: 0.5rem;
    font-size: clamp(1rem, 0.92rem + 0.35vw, 1.22rem);
    line-height: 1.2;
    max-width: clamp(20rem, 72vw, 34rem);
    padding: clamp(0.6rem, 0.45rem + 0.45vw, 0.9rem) clamp(0.75rem, 0.62rem + 0.4vw, 1rem);
    width: 100%;
}

.poll-card-custom-input:focus {
    border-color: #8d68db;
    box-shadow: 0 0 0 2px rgba(141, 104, 219, 0.18);
    outline: none;
}

.poll-select-wrap {
    align-items: stretch;
    display: flex;
    gap: 0;
    margin-top: 0.5rem;
    padding-left: 2.72rem;
}

.poll-select-description {
    color: #6f6878;
    font-size: 0.95rem;
    margin: 0.1rem 0 0.25rem;
    padding-left: 2.72rem;
}

.poll-select-input {
    border: 1px solid #d7d1e4;
    border-radius: 0.5rem;
    font-size: clamp(1rem, 0.92rem + 0.35vw, 1.22rem);
    line-height: 1.2;
    max-width: clamp(20rem, 72vw, 34rem);
    padding: clamp(0.6rem, 0.45rem + 0.45vw, 0.9rem) clamp(0.75rem, 0.62rem + 0.4vw, 1rem);
}

.poll-radio-wrap {
    display: grid;
    gap: 0.55rem;
    grid-template-columns: repeat(var(--poll-radio-cols, 1), minmax(0, 1fr));
    margin-top: 0.55rem;
    max-width: clamp(20rem, 72vw, 34rem);
    padding-left: 2.72rem;
}

.poll-radio-choice {
    margin: 0;
}

.poll-radio-label {
    align-items: center;
    background: #fff;
    border: 1px solid #d7d1e4;
    border-radius: 0.65rem;
    color: #30293d;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-weight: 700;
    gap: 0.2rem;
    justify-content: center;
    line-height: 1.15;
    min-height: 2.85rem;
    padding: 0.65rem 0.75rem;
    text-align: center;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
    width: 100%;
}

.poll-radio-description {
    color: #746a80;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
}

.poll-radio-input:checked + .poll-radio-label {
    border-color: #8d68db;
    box-shadow: 0 0 0 2px rgba(141, 104, 219, 0.16);
    color: #5d36a8;
}

.poll-radio-input:focus-visible + .poll-radio-label {
    border-color: #8d68db;
    box-shadow: 0 0 0 3px rgba(141, 104, 219, 0.22);
}

.poll-radio-submit {
    justify-self: start;
    margin-top: 0.15rem;
}

.poll-card-submit {
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: block;
    padding: 0;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.poll-card-submit:visited {
    color: inherit;
}

.poll-card-submit .poll-card-option {
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.poll-card-submit:hover .poll-card-option,
.poll-card-submit:focus-visible .poll-card-option {
    border-color: #cdbde9;
    box-shadow: 0 0 0 2px rgba(141, 119, 180, 0.16);
}

.poll-card-submit.error .poll-card-option {
    border-color: #d9534f;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.16);
}

.poll-card-submit.voted .poll-card-option {
    border-color: #c9b1f5;
    box-shadow: 0 0 0 2px rgba(141, 119, 180, 0.16);
}

.poll-card-submit-custom {
    background: linear-gradient(180deg, #7f5dd6 0%, #6f4dca 100%);
    border: 1px solid #6f4dca;
    color: #fff;
    display: inline-flex;
    justify-content: center;
    margin: 0;
    min-width: clamp(3.25rem, 2.9rem + 0.8vw, 4rem);
    padding: 0 clamp(0.85rem, 0.7rem + 0.35vw, 1.1rem);
    text-align: center;
    width: auto;
}

.poll-card-submit-custom:hover,
.poll-card-submit-custom:focus-visible {
    box-shadow: 0 0 0 2px rgba(141, 104, 219, 0.2);
}

.poll-card-submit-custom i {
    font-size: 2em;
    line-height: 1.5em;
}

.poll-range-wrap {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.65rem;
    padding-left: 2.72rem;
}

.poll-range-values {
    align-items: center;
    color: #5e536f;
    display: grid;
    font-size: 0.92rem;
    gap: 0.75rem;
    grid-template-columns: auto minmax(4rem, 1fr) auto;
    max-width: min(100%, 34rem);
}

.poll-range-values output {
    background: #f6f3fb;
    border: 1px solid #e2dbea;
    border-radius: 999px;
    color: #3f354f;
    font-weight: 700;
    justify-self: center;
    min-width: 4rem;
    padding: 0.18rem 0.7rem;
    text-align: center;
}

.poll-range-input {
    max-width: min(100%, 34rem);
}

.poll-range-number-wrap {
    max-width: min(100%, 18rem);
}

.poll-card.context-event-suggestions .poll-card-option {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0.35rem 0;
}

.poll-card.context-event-suggestions .poll-card-option.is-selected {
    border: 0;
    box-shadow: none;
}

.poll-card.context-event-suggestions .poll-card-option-row {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}

.poll-card.context-event-suggestions .poll-card-option-label {
    margin: 0 auto;
    max-width: min(100%, 34rem);
    text-align: center;
}

.poll-card.context-event-suggestions .poll-card-option-description,
.poll-card.context-event-suggestions .poll-card-custom-input-wrap,
.poll-card.context-event-suggestions .poll-select-wrap,
.poll-card.context-event-suggestions .poll-select-description,
.poll-card.context-event-suggestions .poll-radio-wrap,
.poll-card.context-event-suggestions .poll-range-wrap {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
}

.poll-order-list {
    display: grid;
    gap: 0.55rem;
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
}

.poll-order-list.is-reordering .poll-order-item:not(.is-dragging) {
    transition: transform 150ms ease, border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

.poll-order-drop-marker {
    align-items: center;
    display: flex;
    height: 0.65rem;
    margin: -0.18rem 0;
    pointer-events: none;
}

.poll-order-drop-marker::before {
    background: #8d68db;
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(141, 104, 219, 0.14);
    content: "";
    display: block;
    height: 0.18rem;
    width: 100%;
}

.poll-order-drop-marker::after {
    background: #8d68db;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 2px rgba(141, 104, 219, 0.18);
    content: "";
    height: 0.72rem;
    margin-left: -0.36rem;
    width: 0.72rem;
}

.poll-order-item {
    align-items: center;
    background: #fff;
    border: 1px solid #ded9e7;
    border-radius: 0.5rem;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: 0.75rem 0.9rem;
    transition: border-color 140ms ease, box-shadow 140ms ease, opacity 140ms ease, transform 140ms ease;
}

.poll-order-item .poll-card-option-description {
    color: #6f6878;
    font-size: 0.88rem;
    line-height: 1.35;
    margin-top: 0.2rem;
    padding-left: 0;
}

.poll-order-item.is-dragging {
    border-color: #c9b1f5;
    box-shadow: 0 0 0 2px rgba(141, 119, 180, 0.16);
    opacity: 0.72;
    transform: scale(1.015);
}

.poll-order-item.poll-order-item-moved {
    animation: pollOrderMoved 280ms ease;
}

@keyframes pollOrderMoved {
    0% {
        background: #f4efff;
        box-shadow: 0 0 0 3px rgba(141, 119, 180, 0.14);
    }
    100% {
        background: #fff;
        box-shadow: none;
    }
}

.poll-order-handle {
    align-items: center;
    color: #796f8b;
    cursor: grab;
    display: inline-flex;
    font-size: 1rem;
    justify-content: center;
    min-height: 2rem;
    min-width: 2rem;
    touch-action: none;
}

.poll-order-item.is-locked {
    cursor: default;
}

.poll-order-lock-icon {
    align-items: center;
    color: #796f8b;
    display: inline-flex;
    font-size: 0.95rem;
    justify-content: center;
    min-height: 2rem;
    min-width: 2rem;
}

.poll-order-item.is-dragging .poll-order-handle {
    cursor: grabbing;
}

.poll-order-rank {
    align-items: center;
    background: #f6f3fb;
    border: 1px solid #e2dbea;
    border-radius: 999px;
    color: #4f465f;
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    height: 2rem;
    justify-content: center;
    min-width: 2rem;
    padding: 0 0.45rem;
}

.poll-order-weight {
    color: #746f7b;
    font-size: 0.82rem;
    font-weight: 700;
}

.poll-order-custom-input {
    margin-top: 0.45rem;
    max-width: min(100%, 28rem);
}

.poll-order-select-input,
.poll-order-radio-wrap,
.poll-order-range-wrap {
    margin-top: 0.45rem;
    max-width: min(100%, 28rem);
}

.poll-order-radio-wrap {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(var(--poll-radio-cols, 1), minmax(0, 1fr));
}

.poll-order-radio-choice {
    margin: 0;
}

@media (max-width: 640px) {
    .poll-radio-wrap,
    .poll-order-radio-wrap {
        grid-template-columns: 1fr;
    }
}

.poll-order-range-wrap .poll-range-values {
    max-width: min(100%, 28rem);
}

.poll-order-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.poll-order-submit {
    align-items: center;
    display: inline-flex;
    gap: 0.4rem;
    min-width: 9rem;
}

.poll-order-completion {
    align-items: center;
    color: #6f6878;
    display: none;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.45rem;
    margin-left: 0.25rem;
}

.poll-order-completion.is-visible {
    display: inline-flex;
}

.poll-card-option-label-wrap {
    display: grid;
    gap: 0.18rem;
}

.btnPollOption {
    border: 1px solid #ded9e7;
    border-radius: 0.9rem;
    font-size: 1.08rem;
    font-weight: 700;
    padding: 0.9rem 1rem;
}

.btnPollOption.poll-style-inline {
    display: inline-flex;
    margin-right: 0.45rem;
    margin-bottom: 0.45rem;
}

.highlight .btnPollOption:not(.voted):not(.error) {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.highlight .btnPollOption:not(.voted):not(.error):hover,
.highlight .btnPollOption:not(.voted):not(.error):focus-visible {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.25rem rgba(141, 119, 180, 0.24);
    color: #fff;
    filter: brightness(0.9);
}

.btnPollOption.voted {
    background: #f2eaff;
    border-color: #c9b1f5;
}
.btnPollOption.voted::before {
    content: "✓";
    display: inline-block;
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

.btnPollOption.error {
    border-color: #d9534f;
    box-shadow: 0 0 0 2px rgba(217, 83, 79, 0.12);
}

.poll-vote-feedback {
    background: rgba(18, 18, 22, 0.9);
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    left: 0;
    opacity: 0;
    padding: 0.36rem 0.72rem;
    pointer-events: none;
    position: fixed;
    top: 0;
    transform: translate(-50%, -100%);
    transition: opacity 260ms ease, transform 260ms ease;
    z-index: 9999;
    white-space: nowrap;
}

.poll-vote-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 10px));
}

.poll-vote-feedback.is-fade {
    opacity: 0;
    transform: translate(-50%, calc(-100% - 16px));
}

.poll-hidden-after-vote {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 320ms ease, transform 320ms ease, max-height 320ms ease, margin 320ms ease, padding 320ms ease;
}

@media (max-width: 900px) {
    .poll-card-title {
        font-size: 1.45rem;
    }

    .poll-card-option-label {
        font-size: 1rem;
    }
}


.poll-single-custom-wrap {
	max-width: min(40rem, 100%);
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 575.98px) {
    .poll-single-custom-wrap {
        padding-left: 0;
        width: 100%;
    }
}

.poll-login-modal .modal-content {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(34, 29, 25, 0.2);
}

.poll-login-modal .modal-body {
    padding: 1.25rem;
}

.poll-login-modal .modal-body p {
    color: #67616f;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.poll-login-modal .modal-footer {
    display: block;
    padding: 0.85rem 1.25rem 1rem;
    text-align: center;
}

.poll-login-modal .modal-footer p {
    color: #746f7b;
    font-size: 0.78rem;
    line-height: 1.45;
    margin: 0;
}

.poll-login-modal .modal-footer a {
    color: inherit;
    font-weight: 700;
}
