/* Glosowanie w bocznej kolumnie. Styl trzyma sie reszty serwisu: biala karta,
   zaokraglenie 6-10 px, delikatny cien, czerwony akcent. */

.mf-poll {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 4px 2px rgba(181, 181, 181, .1);
    padding: 18px 16px 16px;
    color: #3b3a3a;
    font-size: 14px;
    line-height: 1.45;
}

.mf-poll-question {
    font-family: 'bold', sans-serif;
    font-size: 16px;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #1d1d1d;
}

.mf-poll fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.mf-poll-legend {
    font-size: 12px;
    color: #6b6b6b;
    margin-bottom: 8px;
    padding: 0;
}

.mf-poll-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s ease;
    margin-bottom: 4px;
}

.mf-poll-option:hover {
    background: var(--mf-accent-soft);
}

/* Wlasciwy input zostaje w drzewie dostepnosci, tylko go nie widac. */
.mf-poll-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.mf-poll-mark {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    border: 2px solid #c4c4c4;
    border-radius: 50%;
    position: relative;
    transition: border-color .15s ease;
}

.mf-poll-option input[type="checkbox"] + .mf-poll-mark {
    border-radius: 5px;
}

.mf-poll-option input:checked + .mf-poll-mark {
    border-color: var(--mf-accent);
}

.mf-poll-option input:checked + .mf-poll-mark:after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--mf-accent);
    border-radius: inherit;
}

.mf-poll-option input:focus-visible + .mf-poll-mark {
    outline: 3px solid var(--mf-accent);
    outline-offset: 2px;
}

.mf-poll-label {
    flex: 1 1 auto;
}

.mf-poll-submit {
    margin-top: 10px;
    width: 100%;
    border: 0;
    border-radius: 8px;
    background: var(--mf-accent);
    color: #fff;
    font: inherit;
    font-family: 'bold', sans-serif;
    padding: 10px 14px;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}

.mf-poll-submit:hover {
    background: var(--mf-accent-strong);
}

.mf-poll-submit:active {
    transform: translateY(1px);
}

.mf-poll-submit[disabled] {
    background: #b8b8b8;
    cursor: default;
}

/* Wyniki */
.mf-poll-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mf-poll-result {
    margin-bottom: 12px;
}

.mf-poll-result-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 5px;
}

.mf-poll-result-label {
    flex: 1 1 auto;
}

.mf-poll-result-percent {
    font-family: 'bold', sans-serif;
    white-space: nowrap;
}

.mf-poll-mine {
    color: #2e7d32;
    margin-left: 4px;
    font-weight: 700;
}

.mf-poll-result.is-mine .mf-poll-result-label {
    font-family: 'bold', sans-serif;
}

.mf-poll-bar {
    background: #ececec;
    border-radius: 5px;
    height: 9px;
    overflow: hidden;
}

.mf-poll-bar span {
    display: block;
    height: 100%;
    background: var(--mf-accent);
    border-radius: 5px;
    width: 0;
    transition: width .6s cubic-bezier(.2, .6, .2, 1);
}

.mf-poll-result.is-mine .mf-poll-bar span {
    background: #2e7d32;
}

.mf-poll-total {
    margin: 12px 0 0;
    font-size: 12px;
    color: #6b6b6b;
}

.mf-poll-msg {
    margin: 10px 0 0;
    font-size: 13px;
    min-height: 0;
}

.mf-poll-msg.is-error {
    color: #b32d2e;
}

.mf-poll-msg.is-ok {
    color: #2e7d32;
}

.mf-poll-wrap {
    margin: 0 0 18px 10px;
}

@media (max-width: 1100px) {
    .mf-poll-wrap {
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mf-poll-bar span,
    .mf-poll-option,
    .mf-poll-submit {
        transition: none;
    }
}
