.wmv-poll {
    --wmv-accent: #be3144;
    --wmv-accent-rgb: 190, 49, 68;
    --wmv-selected-bg: #f7dfe5;
    --wmv-result-bar: #e2e8f0;
    --wmv-hover-bg: #f8fafc;
    --wmv-hover-border: #cbd5e1;
    --wmv-border: #dfe3e8;
    --wmv-muted: #667085;
    --wmv-text: currentColor;
    box-sizing: border-box;
    width: 100%;
    max-width: 760px;
    margin: 1.5em 0;
    padding: clamp(18px, 3vw, 28px);
    color: var(--wmv-text);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    background: #fff;
    border: 1px solid var(--wmv-border);
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
}

.wmv-poll,
.wmv-poll * {
    font-family: inherit;
}

.wmv-poll *,
.wmv-poll *::before,
.wmv-poll *::after {
    box-sizing: border-box;
}

.wmv-poll-topline {
    display: flex;
    align-items: center;
    gap: .65em;
    margin-bottom: 1.1em;
    color: var(--wmv-muted);
    font-size: .82em;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.wmv-poll-topline strong {
    margin-left: auto;
    color: inherit;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.wmv-live-dot {
    width: 1em;
    height: 1em;
    flex: 0 0 auto;
    border: .22em solid var(--wmv-accent);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 0 .38em rgba(var(--wmv-accent-rgb), .12);
}

.wmv-question {
    margin: 0 0 1em;
    color: inherit;
    font-size: clamp(1.55rem, 1.15rem + 1.15vw, 2.35rem);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.025em;
}

.wmv-options {
    display: grid;
    gap: .75em;
}

.wmv-option {
    position: relative;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    align-items: stretch;
    width: 100%;
    min-height: 60px;
    margin: 0;
    padding: 0;
    color: inherit;
    background: #fff;
    border: 1px solid var(--wmv-border);
    border-radius: 14px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
    box-shadow: none;
    opacity: 1;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background-color .16s ease;
}

.wmv-option,
.wmv-option:hover,
.wmv-option:focus,
.wmv-option:active,
.wmv-option:visited,
.wmv-option[disabled],
.wmv-option:disabled {
    color: inherit;
}

.wmv-option[disabled],
.wmv-option:disabled {
    background: #fff;
    opacity: 1;
    cursor: default;
    box-shadow: none;
    -webkit-text-fill-color: currentColor;
}

.wmv-option:not(:disabled):hover,
.wmv-option:not(:disabled):focus-visible {
    background: var(--wmv-hover-bg) !important;
    border-color: var(--wmv-hover-border);
    box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
    outline: none;
    transform: translateY(-1px);
}

.wmv-option:not(:disabled):active {
    transform: translateY(0);
}

.wmv-option.is-selected,
.wmv-option.is-selected:disabled,
.wmv-option.is-selected[disabled] {
    color: var(--wmv-accent);
    background: #fff;
    border-color: var(--wmv-accent);
    box-shadow: 0 0 0 1px var(--wmv-accent) inset;
}

.wmv-choice-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--wmv-border);
    background: #f8fafc;
}

.wmv-choice-box::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    transition: border-color .16s ease, background-color .16s ease;
}

.wmv-choice-box span {
    position: absolute;
    inset: 0;
    background: var(--wmv-accent);
    opacity: 0;
    transition: opacity .18s ease;
}

.wmv-choice-box span::after {
    content: "";
    position: absolute;
    left: 21px;
    top: 18px;
    width: 9px;
    height: 17px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.wmv-option.is-selected .wmv-choice-box,
.wmv-option.is-selected:disabled .wmv-choice-box {
    border-right-color: var(--wmv-accent);
}

.wmv-option.is-selected .wmv-choice-box::before,
.wmv-option.is-selected .wmv-choice-box span {
    opacity: 1;
}

.wmv-option-body {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: .85em 1em;
    overflow: hidden;
    background: transparent;
}

.wmv-result-bar {
    position: absolute;
    left: 0;
    top: .45em;
    bottom: .45em;
    width: 0;
    max-width: 100%;
    border-radius: 0 10px 10px 0;
    background: var(--wmv-result-bar);
    transition: width .32s ease;
}

.wmv-option.is-selected .wmv-result-bar,
.wmv-option.is-selected:disabled .wmv-result-bar {
    background: var(--wmv-selected-bg);
}

.wmv-poll:not(.shows-results) .wmv-result-bar,
.wmv-poll:not(.shows-results) .wmv-option-percent {
    display: none;
}

.wmv-option-text {
    position: relative;
    z-index: 1;
    min-width: 0;
    font-size: clamp(1rem, .96rem + .25vw, 1.18rem);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.wmv-option-percent {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 82px;
    padding: .85em 1em .85em .5em;
    color: inherit;
    font-size: clamp(1rem, .94rem + .35vw, 1.22rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -.02em;
    background: transparent;
}

.wmv-end-notice {
    margin: 0 0 1em;
    padding: .9em 1em;
    color: inherit;
    background: #f8fafc;
    border: 1px solid var(--wmv-border);
    border-left: 4px solid var(--wmv-accent);
    border-radius: 12px;
}

.wmv-end-notice p {
    margin: 0 0 .65em;
}

.wmv-end-notice p:last-child {
    margin-bottom: 0;
}

.wmv-poll.is-ended .wmv-option,
.wmv-poll.is-ended .wmv-option:disabled {
    opacity: 1;
}

.wmv-feedback {
    margin-top: 1em;
    color: var(--wmv-muted);
    font-size: .95em;
    line-height: 1.5;
}

.wmv-message {
    padding: .85em 1em;
    border: 1px solid #dbe3ea;
    border-radius: 10px;
    background: #f8fafc;
}

@media (max-width: 640px) {
    .wmv-poll {
        padding: 18px;
        border-radius: 14px;
    }

    .wmv-poll-topline {
        flex-wrap: wrap;
    }

    .wmv-poll-topline strong {
        flex-basis: 100%;
        margin-left: 1.7em;
    }

    .wmv-option {
        grid-template-columns: 48px minmax(0, 1fr) 72px;
        min-height: 56px;
    }

    .wmv-choice-box span::after {
        left: 18px;
        top: 16px;
        width: 8px;
        height: 14px;
    }

    .wmv-option-body,
    .wmv-option-percent {
        padding-top: .75em;
        padding-bottom: .75em;
    }
}


/* 1.0.7: square frontend option styling */
.wmv-poll,
.wmv-option,
.wmv-choice-box::before,
.wmv-result-bar,
.wmv-end-notice {
    border-radius: 0 !important;
}


.wmv-feedback:empty {
    display: none;
}

.wmv-powered-by {
    margin-top: 10px;
    text-align: right;
    color: var(--wmv-muted);
    font-size: 11px;
    line-height: 1.4;
    opacity: .72;
}

.wmv-powered-by a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    border: 0;
    box-shadow: none;
}

.wmv-powered-by a:hover,
.wmv-powered-by a:focus {
    color: inherit;
    text-decoration: underline;
    box-shadow: none;
    outline: none;
}


.wmv-powered-by a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.wmv-powered-by-icon.dashicons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 11px;
    height: 11px;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
}


/* 1.0.14: ensure WordPress Dashicons render in frontend powered-by link. */
.wmv-powered-by-icon.dashicons,
.wmv-powered-by-icon.dashicons::before {
    font-family: dashicons !important;
    speak: never;
    font-style: normal;
    font-weight: 400;
    font-variant: normal;
    text-transform: none;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wmv-powered-by-icon.dashicons::before {
    content: "\f504";
}
