.vfd-poll {
    --vfd-color: #155faa;
    --vfd-color-light: #dce9f7;
    --vfd-border: #d6dbe1;
    --vfd-success: #26733b;
    max-width: none;
    width: 100%;
}

.vfd-title { margin-bottom: .5rem; }
.vfd-intro { margin: 1rem 0 1.25rem; }
.vfd-intro > :last-child { margin-bottom: 0; }
.vfd-total { font-size: 1.1rem; margin: 1rem 0 0; }
.vfd-choice-status { margin: .25rem 0 1rem; }

.vfd-options {
    border-top: 1px solid var(--vfd-border);
    margin-top: 1rem;
}

.vfd-option {
    align-items: center;
    border-bottom: 1px solid var(--vfd-border);
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(170px, 1.2fr) minmax(220px, 2fr) minmax(105px, auto);
    padding: .9rem 0;
}

.vfd-option__heading { align-items: center; display: flex; gap: .5rem; }
.vfd-option__title { font-weight: 600; }

.vfd-info-button {
    align-items: center;
    background: var(--vfd-color);
    border: 0;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: 700 .85rem/1 sans-serif;
    height: 1.55rem;
    justify-content: center;
    padding: 0;
    width: 1.55rem;
}

.vfd-result { align-items: center; display: grid; gap: .55rem; grid-template-columns: 1fr 4.5rem auto; }
.vfd-result__track { background: #e8ebef; border-radius: 999px; height: 1rem; overflow: hidden; }
.vfd-result__fill { background: var(--vfd-color); display: block; height: 100%; min-width: 0; transition: width .25s ease; }
.vfd-result__percentage { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; }
.vfd-result__votes { color: #565d64; font-size: .9rem; }
.vfd-option__action { text-align: right; }

.vfd-vote-button,
.vfd-modal__close {
    background: var(--vfd-color);
    border: 2px solid var(--vfd-color);
    border-radius: .3rem;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: .45rem .8rem;
}

.vfd-vote-button:hover,
.vfd-vote-button:focus-visible,
.vfd-modal__close:hover,
.vfd-modal__close:focus-visible { background: #0e477f; border-color: #0e477f; }
.vfd-selected { color: var(--vfd-success); font-weight: 700; }

.vfd-message { border-left: 4px solid var(--vfd-color); margin: .75rem 0; padding: .65rem .85rem; }
.vfd-message--success { background: #e8f5eb; border-color: var(--vfd-success); }
.vfd-message--info { background: #edf4fb; }
.vfd-message--error { background: #fbeaea; border-color: #b62929; }

.vfd-privacy { font-size: .9rem; margin-top: 1.25rem; }
.vfd-privacy summary { cursor: pointer; font-weight: 600; }

.vfd-modal[hidden] { display: none; }
.vfd-modal { inset: 0; position: fixed; z-index: 10000; }
.vfd-modal__backdrop { background: rgba(0, 0, 0, .62); inset: 0; position: absolute; }
.vfd-modal__dialog {
    background: #fff;
    border-radius: .45rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .3);
    display: flex;
    flex-direction: column;
    height: 92vh;
    left: 50%;
    max-height: 92vh;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.5rem;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96vw;
}
.vfd-modal__dialog h3 { margin-top: 0; padding-right: 2rem; }
.vfd-modal__content { flex: 0 0 auto; margin-bottom: 1.25rem; }
.vfd-modal__x { background: transparent; border: 0; cursor: pointer; font-size: 2rem; line-height: 1; position: absolute; right: .7rem; top: .5rem; }
.vfd-modal-open { overflow: hidden; }

.vfd-modal__iframe-container {
    flex: 1 1 auto;
    min-height: 420px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.vfd-modal__iframe {
    border: 1px solid var(--vfd-border);
    display: block;
    height: 100%;
    min-height: 420px;
    width: 100%;
}

.vfd-modal__embed {
    flex: 0 0 auto;
    margin-bottom: 1.25rem;
    overflow: visible;
    width: 100%;
}

.vfd-modal__embed iframe {
    display: block;
    max-width: 100%;
    width: 100%;
}

.vfd-modal__dialog--donation .vfd-modal__close {
    align-self: flex-start;
    flex: 0 0 auto;
}

@media (max-width: 700px) {
    .vfd-option { gap: .7rem; grid-template-columns: 1fr; }
    .vfd-option__action { text-align: left; }
    .vfd-result { grid-template-columns: 1fr 4.5rem auto; }
    .vfd-modal__dialog { height: 96vh; max-height: 96vh; padding: 1rem; width: 98vw; }
    .vfd-modal__iframe-container,
    .vfd-modal__iframe { min-height: 360px; }
}
