/* LL2 0.6.352 — PollFlowV2: the nominations-phase checkbox-list
 * flow (John, 2026-11-25; 0.6.348, the inline-contact tuck rule
 * is 0.6.349, the two-column wide list is 0.6.350). Loaded only
 * on a season poll in its Nominations phase while the flow is
 * on. Layers over poll-seasons.css / poll-nomination-page.css:
 * the nominee list is ONE checkbox column on narrow screens
 * and two on wide, rows become label+checkbox lines, and the
 * popups take the 0.6.334 modal shapes under the flow's own
 * class names. */

.ll2-poll-flow__share-hidden {
    display: none !important;
}

/* The inline contact block, tucked by the driver on init
 * (0.6.349): with JS the email step lives only in popup 1, so
 * the block the markup renders inline (the no-JS fallback —
 * this class is only ever added by the driver) is display:none
 * on the page; the driver removes the class while the block
 * sits in the modal and re-adds it on restore. */
.ll2-poll-flow__contact--tucked {
    display: none !important;
}

.ll2-poll-flow__why {
    margin: 0 0 1rem;
    line-height: 1.55;
}

.ll2-poll-flow__notice {
    margin: 0 0 1rem;
}

/* The checkbox column: one column on narrow screens. At the
 * 720px breakpoint poll-nomination-page.css set for its own
 * two-column ballot list (0.6.337) the flow's list runs in
 * two columns instead (0.6.350, John's request) — the same
 * columns mechanism and the same gap. Multi-column flow reads
 * down the first column, then the second, so the list's order
 * is preserved, and a row never splits across the break. The
 * "Add another" row spans the full width below the columns. */
.ll-poll-page.ll2-poll-flow-page form.ll2-poll-flow__form .ll2-poll-flow__nominees ul {
    columns: 1;
    column-gap: 0;
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

@media (min-width: 720px) {
    .ll-poll-page.ll2-poll-flow-page form.ll2-poll-flow__form .ll2-poll-flow__nominees ul {
        columns: 2;
        column-gap: 2.5rem;
    }
}

.ll2-poll-flow__row {
    break-inside: avoid;
    padding: 0.45rem 0;
    border-bottom: 1px solid #e6ebef;
}

.ll2-poll-flow__add-row {
    column-span: all;
}

.ll2-poll-flow__row:last-child {
    border-bottom: 0;
}

.ll2-poll-flow__choice {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-weight: 400;
}

.ll2-poll-flow__choice input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    flex: 0 0 auto;
    accent-color: #127044;
}

.ll2-poll-flow__add-row .ll2-poll-flow__choice {
    color: #127044;
}

.ll2-poll-flow__added-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.ll2-poll-flow__added-row .ll2-poll-flow__choice {
    flex: 1 1 auto;
}

.ll2-poll-flow__remove {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #576575;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.3rem 0.45rem;
    cursor: pointer;
}

.ll2-poll-flow__remove:hover,
.ll2-poll-flow__remove:focus-visible {
    color: #b3261e;
}

.ll2-poll-flow__finder {
    margin-top: 1rem;
}

.ll2-poll-flow__manual-add-row {
    margin: 0.75rem 0 0;
}

.ll2-poll-flow__manual-add {
    border: 1px solid #127044;
    background: #ffffff;
    color: #127044;
    border-radius: 7px;
    padding: 0.55rem 1rem;
    font-weight: 700;
    cursor: pointer;
}

.ll2-poll-flow__manual-add:hover,
.ll2-poll-flow__manual-add:focus-visible {
    background: #127044;
    color: #ffffff;
}

.ll2-poll-flow__contact {
    margin-top: 1.25rem;
}

.ll2-poll-flow__contact-heading {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.ll2-poll-flow__subscribe {
    display: block;
    margin-top: 0.75rem;
    line-height: 1.45;
}

.ll2-poll-flow__subscribe-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: #576575;
}

/* 0.6.356: the flow's SUBMIT runs wider and centered (John:
 * the button read narrow and left-aligned under the list).
 * 0.6.357: the single-class rule lost to OceanWP's
 * button[type=submit] (specificity 0,1,1 beats 0,1,0) — the button
 * rendered inline-block at its natural width, left-aligned. The
 * two-class selector (0,2,0) wins, and the width is explicit. The
 * button's color is unchanged on purpose (John asked only for
 * wider + centered; the blue is the theme's).
 * 0.6.358: the width is stated in px, not rem — the theme sets
 * html{font-size:62.5%}, so 16rem computed to ~160px (measured
 * 158px live, centered correctly) instead of the intended
 * ~256px. */
.ll2-poll-flow__form .ll2-poll-flow__submit {
    display: block;
    width: 256px;
    max-width: 100%;
    margin: 1.25rem auto 0;
}

/* Popups (the 0.6.334 modal shapes, flow class names). */
.ll2-poll-flow-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(23, 32, 51, 0.55);
}

.ll2-poll-flow-modal__card {
    position: relative;
    width: 100%;
    max-width: 30rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #ffffff;
    /* 0.6.355: a soft green wash across the head of the card. */
    background: linear-gradient(180deg, #edf5f0 0, #ffffff 8.5rem);
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(23, 32, 51, 0.35);
    padding: 2rem;
    color: #172033;
}

/* 0.6.355: a green check-mark medallion by the heading. A
 * pseudo-element, so the driver's show/hide mechanics and the
 * states it renders into the card are untouched.
 * 0.6.356: the medallion moves off the card and onto the head
 * row (John: "Place 'Thanks for taking part!' next to the
 * checkmark") — the heading now sits on the medallion's line. */
.ll2-poll-flow-modal__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ll2-poll-flow-modal__head::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #127044;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
}

.ll2-poll-flow-modal__title {
    margin: 0 2rem 0 0;
    font-size: 1.5rem;
    line-height: 1.25;
}

.ll2-poll-flow-modal__lead {
    margin: 0 0 1rem;
    line-height: 1.55;
}

.ll2-poll-flow-modal__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    border: 0;
    background: transparent;
    color: #576575;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
}

.ll2-poll-flow-modal__actions {
    margin-top: 1.25rem;
    text-align: right;
}

.ll2-poll-flow-modal__ok {
    border: 0;
    background: #127044;
    color: #ffffff;
    border-radius: 7px;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    cursor: pointer;
}

.ll2-poll-flow-modal__ok:hover,
.ll2-poll-flow-modal__ok:focus-visible {
    background: #0d5a37;
}

.ll2-poll-flow-modal__ok:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* The ask (0.6.351): the email field, its error line, and the
 * "No thanks" dismissal beside the green affirmative.
 * (0.6.355: the field's visible "Email address" label.) */
.ll2-poll-flow-modal__emaillabel {
    display: block;
    margin: 0 0 0.4rem;
    font-weight: 600;
}

.ll2-poll-flow-modal__email {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 0.25rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #c3ccd4;
    border-radius: 7px;
    font-size: 1rem;
}

.ll2-poll-flow-modal__error {
    margin: 0.6rem 0 0;
    color: #b3261e;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ll2-poll-flow-modal__no {
    border: 0;
    background: transparent;
    color: #576575;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.ll2-poll-flow-modal__no:hover,
.ll2-poll-flow-modal__no:focus-visible {
    color: #172033;
    text-decoration: underline;
}

/* 0.6.356: the ask's small print — the unsubscribe line under
 * the buttons, smaller and muted. */
.ll2-poll-flow-modal__fineprint {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: #576575;
    line-height: 1.45;
}

.ll2-poll-flow__contact-note {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: #576575;
    line-height: 1.45;
}
