.wmvoting-poll {
--wmvoting-accent: #be3144;
--wmvoting-accent-rgb: 190, 49, 68;
--wmvoting-selected-bg: #f7dfe5;
--wmvoting-result-bar: #e2e8f0;
--wmvoting-hover-bg: #f8fafc;
--wmvoting-hover-border: #cbd5e1;
--wmvoting-border: #dfe3e8;
--wmvoting-muted: #667085;
--wmvoting-text: currentColor;
box-sizing: border-box;
width: 100%;
max-width: 760px;
margin: 1.5em 0;
padding: clamp(18px, 3vw, 28px);
color: var(--wmvoting-text);
font-family: inherit;
font-size: 1rem;
line-height: 1.5;
background: #fff;
border: 1px solid var(--wmvoting-border);
border-radius: 18px;
box-shadow: 0 16px 34px rgba(15, 23, 42, 0.055);
}
.wmvoting-poll,
.wmvoting-poll * {
font-family: inherit;
}
.wmvoting-poll *,
.wmvoting-poll *::before,
.wmvoting-poll *::after {
box-sizing: border-box;
}
.wmvoting-poll-topline {
display: flex;
align-items: center;
gap: .65em;
margin-bottom: 1.1em;
color: var(--wmvoting-muted);
font-size: .82em;
font-weight: 700;
letter-spacing: .08em;
text-transform: uppercase;
}
.wmvoting-poll-topline strong {
margin-left: auto;
color: inherit;
font-size: 1em;
font-weight: 700;
letter-spacing: 0;
text-transform: none;
}
.wmvoting-live-dot {
width: 1em;
height: 1em;
flex: 0 0 auto;
border: .22em solid var(--wmvoting-accent);
border-radius: 999px;
background: #fff;
box-shadow: 0 0 0 .38em rgba(var(--wmvoting-accent-rgb), .12);
}
.wmvoting-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;
}
.wmvoting-options {
display: grid;
gap: .75em;
}
.wmvoting-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(--wmvoting-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;
}
.wmvoting-option,
.wmvoting-option:hover,
.wmvoting-option:focus,
.wmvoting-option:active,
.wmvoting-option:visited,
.wmvoting-option[disabled],
.wmvoting-option:disabled {
color: inherit;
}
.wmvoting-option[disabled],
.wmvoting-option:disabled {
background: #fff;
opacity: 1;
cursor: default;
box-shadow: none;
-webkit-text-fill-color: currentColor;
}
.wmvoting-option:not(:disabled):hover,
.wmvoting-option:not(:disabled):focus-visible {
background: var(--wmvoting-hover-bg) !important;
border-color: var(--wmvoting-hover-border);
box-shadow: 0 10px 22px rgba(15, 23, 42, .06);
outline: none;
transform: translateY(-1px);
}
.wmvoting-option:not(:disabled):active {
transform: translateY(0);
}
.wmvoting-option.is-selected,
.wmvoting-option.is-selected:disabled,
.wmvoting-option.is-selected[disabled] {
color: var(--wmvoting-accent);
background: #fff;
border-color: var(--wmvoting-accent);
box-shadow: 0 0 0 1px var(--wmvoting-accent) inset;
}
.wmvoting-choice-box {
position: relative;
display: flex;
align-items: center;
justify-content: center;
border-right: 1px solid var(--wmvoting-border);
background: #f8fafc;
}
.wmvoting-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;
}
.wmvoting-choice-box span {
position: absolute;
inset: 0;
background: var(--wmvoting-accent);
opacity: 0;
transition: opacity .18s ease;
}
.wmvoting-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);
}
.wmvoting-option.is-selected .wmvoting-choice-box,
.wmvoting-option.is-selected:disabled .wmvoting-choice-box {
border-right-color: var(--wmvoting-accent);
}
.wmvoting-option.is-selected .wmvoting-choice-box::before,
.wmvoting-option.is-selected .wmvoting-choice-box span {
opacity: 1;
}
.wmvoting-option-body {
position: relative;
display: flex;
align-items: center;
min-width: 0;
padding: .85em 1em;
overflow: hidden;
background: transparent;
}
.wmvoting-result-bar {
position: absolute;
left: 0;
top: .45em;
bottom: .45em;
width: 0;
max-width: 100%;
border-radius: 0 10px 10px 0;
background: var(--wmvoting-result-bar);
transition: width .32s ease;
}
.wmvoting-option.is-selected .wmvoting-result-bar,
.wmvoting-option.is-selected:disabled .wmvoting-result-bar {
background: var(--wmvoting-selected-bg);
}
.wmvoting-poll:not(.shows-results) .wmvoting-result-bar,
.wmvoting-poll:not(.shows-results) .wmvoting-option-percent {
display: none;
}
.wmvoting-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;
}
.wmvoting-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;
}
.wmvoting-end-notice {
margin: 0 0 1em;
padding: .9em 1em;
color: inherit;
background: #f8fafc;
border: 1px solid var(--wmvoting-border);
border-left: 4px solid var(--wmvoting-accent);
border-radius: 12px;
}
.wmvoting-end-notice p {
margin: 0 0 .65em;
}
.wmvoting-end-notice p:last-child {
margin-bottom: 0;
}
.wmvoting-poll.is-ended .wmvoting-option,
.wmvoting-poll.is-ended .wmvoting-option:disabled {
opacity: 1;
}
.wmvoting-feedback {
margin-top: 1em;
color: var(--wmvoting-muted);
font-size: .95em;
line-height: 1.5;
}
.wmvoting-message {
padding: .85em 1em;
border: 1px solid #dbe3ea;
border-radius: 10px;
background: #f8fafc;
}
@media (max-width: 640px) {
.wmvoting-poll {
padding: 18px;
border-radius: 14px;
}
.wmvoting-poll-topline {
flex-wrap: wrap;
}
.wmvoting-poll-topline strong {
flex-basis: 100%;
margin-left: 1.7em;
}
.wmvoting-option {
grid-template-columns: 48px minmax(0, 1fr) 72px;
min-height: 56px;
}
.wmvoting-choice-box span::after {
left: 18px;
top: 16px;
width: 8px;
height: 14px;
}
.wmvoting-option-body,
.wmvoting-option-percent {
padding-top: .75em;
padding-bottom: .75em;
}
} .wmvoting-poll,
.wmvoting-option,
.wmvoting-choice-box::before,
.wmvoting-result-bar,
.wmvoting-end-notice {
border-radius: 0 !important;
}
.wmvoting-feedback:empty {
display: none;
}
.wmvoting-powered-by {
margin-top: 10px;
text-align: right;
color: var(--wmvoting-muted);
font-size: 11px;
line-height: 1.4;
opacity: .72;
}
.wmvoting-powered-by a {
color: inherit;
text-decoration: underline;
text-underline-offset: 2px;
border: 0;
box-shadow: none;
}
.wmvoting-powered-by a:hover,
.wmvoting-powered-by a:focus {
color: inherit;
text-decoration: underline;
box-shadow: none;
outline: none;
}
.wmvoting-powered-by a {
display: inline-flex;
align-items: center;
gap: 3px;
}
.wmvoting-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;
} .wmvoting-powered-by-icon.dashicons,
.wmvoting-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;
}
.wmvoting-powered-by-icon.dashicons::before {
content: "\f504";
}