/* E-Voting Public Styles */

/* ── Ukrycie tytułu strony głosowania (renderowanego przez motyw) ────────── */

.openvote-vote-page .entry-title,
.openvote-vote-page .page-title,
.openvote-vote-page .post-title,
.openvote-vote-page h1.page-header,
.openvote-vote-page .page-header .page-title,
.openvote-vote-page header.entry-header .entry-title {
    display: none !important;
}

/* ── Ukrycie przypisów prawnych / stopki motywu na stronie głosowania ────── */

.openvote-vote-page .site-footer,
.openvote-vote-page #colophon,
.openvote-vote-page .site-info,
.openvote-vote-page footer.site-footer,
.openvote-vote-page .footer-widgets-wrap,
.openvote-vote-page .ct-footer,
.openvote-vote-page footer[role="contentinfo"],
body.openvote-vote-page > footer {
    display: none !important;
}

/* ── Wrapper strony głosowania ───────────────────────────────────────────── */

.openvote-vote-page-wrap {
    max-width: 720px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.openvote-page-title {
    margin-bottom: 1.5rem;
}

.openvote-vote-page-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #555;
    flex-wrap: wrap;
}

.openvote-vote-page-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

/* ── Zakładki ───────────────────────────────────────────────────────────── */

.openvote-tabs {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2.5rem;
    border-bottom: 2px solid #e2e4e7;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.openvote-tab {
    display: inline-block;
    padding: 0.6rem 0.1rem;
    margin-bottom: -2px;
    /* font-size: ustawiony dynamicznie przez PHP z motywu (wp_add_inline_style) */
    font-weight: 700;
    font-family: inherit;
    color: #888;
    text-decoration: none !important;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease;
    letter-spacing: -0.01em;
}

.openvote-tab:hover,
.openvote-tab:focus {
    color: var(--wp--preset--color--primary, #0073aa);
    text-decoration: none !important;
    outline: none;
}

.openvote-tab--active {
    color: var(--wp--preset--color--primary, #0073aa);
    border-bottom-color: var(--wp--preset--color--primary, #0073aa);
}

.openvote-tab-content {
    padding-top: 0.5rem;
}

/* ── Zakończone głosowania — blok wyników (styl spójny z aktywnym blokiem) ─ */

/* Widok zwinięty: kwadracik z datą początku + tytuł, zakończono, opis, przycisk Rozwiń */
.openvote-closed-poll-block__summary {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 4px 0;
}

.openvote-closed-poll-block__date-start {
    flex-shrink: 0;
    width: 4.5rem;
    height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f4f8;
    border: 1px solid #c5d9e2;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.2;
    text-align: center;
    padding: 4px;
}

.openvote-closed-poll-block__summary-body {
    flex: 1;
    min-width: 0;
}

.openvote-closed-poll-block__summary-title {
    margin: 0 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1d2327;
}

.openvote-closed-poll-block__summary-date {
    font-size: 0.8rem;
    color: #646970;
    display: block;
    margin-bottom: 6px;
}

.openvote-closed-poll-block__summary-desc {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #50575e;
    line-height: 1.45;
}

.openvote-closed-poll-block__expand-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: #0073aa;
    border: 2px solid #005a87;
    border-radius: 6px;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .1s;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
}

.openvote-closed-poll-block__expand-btn:hover {
    background: #005a87;
    border-color: #004466;
    color: #fff;
}

.openvote-closed-poll-block__expand-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Szczegóły (frekwencja, pytania, PDF) — ukryte dopóki nie kliknięto Rozwiń */
.openvote-closed-poll-block__details[hidden] {
    display: none !important;
}

.openvote-closed-poll-block__details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e4e7;
}

/* Pasek statusu nad tytułem */
.openvote-closed-poll-block__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.openvote-closed-poll-block__date {
    font-size: 0.8rem;
    color: #888;
}

.openvote-closed-poll__status {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.openvote-closed-poll__status--voted {
    background: #d4edda;
    color: #155724;
}

.openvote-closed-poll__status--absent {
    background: #f8d7da;
    color: #721c24;
}

/* Etykieta "Tytuł:" / "Opis:" / "Pytanie N:" */
.openvote-closed-poll-block__label {
    font-weight: 700;
    color: #555;
    margin-right: 5px;
}

/* Pasek frekwencji */
.openvote-closed-poll-block__turnout {
    font-size: 0.85rem;
    color: #555;
    margin: 12px 0 16px;
}

.openvote-closed-poll-block__turnout-bar {
    height: 8px;
    background: #e2e4e7;
    border-radius: 4px;
    margin-top: 5px;
    overflow: hidden;
}

.openvote-closed-poll-block__turnout-fill {
    height: 100%;
    background: #0073aa;
    border-radius: 4px;
    transition: width .4s ease;
}

/* Pytanie — reużywa .openvote-poll__question, nadpisuje tylko to co potrzebne */
.openvote-closed-poll-block__question {
    border: none; /* fieldset reset */
}

.openvote-closed-poll-block__question legend {
    font-weight: 600;
    font-size: 1.05em;
    padding: 0 4px;
}

/* Odpowiedź + pasek */
.openvote-closed-poll-block__answer {
    margin-bottom: 8px;
    padding: 2px 0;
}

.openvote-closed-poll-block__answer:last-child {
    margin-bottom: 0;
}

.openvote-closed-poll-block__answer-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 4px;
    gap: 0.5rem;
}

.openvote-closed-poll-block__answer-stat {
    white-space: nowrap;
    color: #444;
}

.openvote-closed-poll-block__answer-stat strong {
    font-weight: 700;
}

.openvote-closed-poll-block__answer-stat small {
    color: #999;
    font-size: 0.8em;
    margin-left: 3px;
}

.openvote-closed-poll-block__bar-track {
    height: 14px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.openvote-closed-poll-block__bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .4s ease;
    min-width: 2px;
}

.openvote-rbar--winner  { background: #28a745; }
.openvote-rbar--normal  { background: #6c757d; }
.openvote-rbar--abstain { background: #ffc107; }

/* Przycisk PDF */
.openvote-closed-poll-block__footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e4e7;
}

.openvote-closed-poll-block__pdf-btn {
    display: inline-block;
    padding: 7px 16px;
    background: #1d2327;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none !important;
    transition: background .15s;
}

.openvote-closed-poll-block__pdf-btn:hover {
    background: #3c434a;
    text-decoration: none !important;
}

/* ── Blok pojedynczego głosowania ───────────────────────────────────────── */

.openvote-poll-block {
    max-width: 720px;
    margin: 24px auto;
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.openvote-poll__title {
    margin: 0 0 8px;
    font-size: 1.4em;
}

.openvote-poll__description {
    color: #555;
    margin-bottom: 16px;
}

.openvote-poll__countdown {
    margin-bottom: 16px;
    font-weight: 600;
    color: #0073aa;
}

.openvote-poll__question {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    background-color: #e8f4f8;
}

.openvote-poll__question legend {
    font-weight: 600;
    font-size: 1.05em;
    padding: 0 4px;
}

.openvote-poll__option {
    display: block;
    padding: 6px 0;
    cursor: pointer;
}

.openvote-poll__option input[type="radio"] {
    margin-right: 8px;
}

.openvote-poll__vote-mode {
    font-size: 0.75rem !important;
    margin-top: 12px;
}

.openvote-poll__vote-mode legend {
    font-size: 1em !important;
    font-weight: 600;
}

.openvote-poll__vote-mode .openvote-poll__option {
    font-size: 1em !important;
}

.openvote-poll__submit {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 24px;
    font-size: 1em;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.openvote-poll__submit:hover {
    background: #005f8d;
}

.openvote-poll__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.openvote-poll__message {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 4px;
}

.openvote-poll__message--success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.openvote-poll__message--error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.openvote-poll__login-notice,
.openvote-poll__already-voted,
.openvote-poll__not-started,
.openvote-poll__status {
    padding: 12px 16px;
    border-radius: 4px;
    background: #f0f0f1;
    color: #50575e;
}

/* Results */
.openvote-results__participation {
    background: #f9f9f9;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.openvote-results__participation h4 {
    margin: 0 0 10px;
    font-size: 1em;
    font-weight: 700;
}

.openvote-results__bar--eligible { background: #0073aa; }
.openvote-results__bar--voted    { background: #28a745; }
.openvote-results__bar--absent   { background: #adb5bd; }

.openvote-results__question {
    margin-bottom: 20px;
}

.openvote-results__question h4 {
    margin: 0 0 8px;
}

.openvote-results__bar-container {
    margin-bottom: 6px;
}

.openvote-results__bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
    font-size: 0.9em;
}

.openvote-results__bar {
    height: 22px;
    border-radius: 3px;
    transition: width 0.4s ease;
}

.openvote-results__bar--za {
    background: #28a745;
}

.openvote-results__bar--przeciw {
    background: #dc3545;
}

.openvote-results__bar--wstrzymuje_sie {
    background: #ffc107;
}

.openvote-results__voters-section {
    margin-top: 20px;
}

.openvote-voters-toggle {
    background: none;
    border: 1px solid #0073aa;
    color: #0073aa;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.openvote-voters-toggle:hover {
    background: #0073aa;
    color: #fff;
}

.openvote-results__voters {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

.openvote-results__voters h4 {
    margin-bottom: 4px;
}

.openvote-results__voters ul {
    list-style: none;
    padding: 0;
}

.openvote-results__voters li {
    padding: 2px 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANKIETY — strona publiczna
   ═══════════════════════════════════════════════════════════════════════════ */

/* Wrapper strony */
.openvote-survey-page-wrap {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Kontener całości */
.openvote-survey-wrap {
    max-width: 780px;
    margin: 0 auto;
}

/* ── Karta ankiety ─────────────────────────────────────────────────────── */
.openvote-survey-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.openvote-survey-card__header {
    background: var(--wp--preset--color--background, #f8f9fa);
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid #ddd;
}

.openvote-survey-card__title {
    margin: 0 0 .5rem;
    font-size: 1.25rem;
    color: var(--wp--preset--color--primary, #0073aa);
}

.openvote-survey-card__desc {
    margin: 0 0 .5rem;
    color: #555;
    font-size: .95em;
}

.openvote-survey-card__meta {
    margin: 0;
    font-size: .85em;
    color: #888;
}

/* ── Dane z profilu (read-only) ───────────────────────────────────────── */
.openvote-survey-profile {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.25rem;
}

.openvote-survey-profile__title {
    margin: 0 0 .35em;
    font-size: 1rem;
    font-weight: 600;
    color: #1d2327;
}

.openvote-survey-profile__desc {
    margin: 0 0 .75rem;
    font-size: .8125rem;
    color: #646970;
    line-height: 1.4;
}

.openvote-survey-profile__list {
    margin: 0;
    display: grid;
    gap: 0;
}

.openvote-survey-profile__row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) 2fr;
    gap: .75rem 1rem;
    align-items: baseline;
    padding: .4rem 0;
    border-bottom: 1px solid #e8eaed;
}

.openvote-survey-profile__row:last-child {
    border-bottom: 0;
}

.openvote-survey-profile__label {
    margin: 0;
    font-size: .8125rem;
    font-weight: 600;
    color: #50575e;
}

.openvote-survey-profile__required {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.openvote-survey-profile__required input[type="checkbox"] {
    margin: 0;
    width: 1rem;
    height: 1rem;
    accent-color: #0073aa;
    pointer-events: none;
}

.openvote-survey-profile__value {
    margin: 0;
    font-size: .875rem;
    color: #1d2327;
}

.openvote-survey-profile__actions {
    margin: .75rem 0 0;
}

.openvote-survey-profile__edit-btn {
    padding: .4rem .85rem;
    font-size: .875rem;
    color: #0073aa;
    background: transparent;
    border: 1px solid #0073aa;
    border-radius: 4px;
    cursor: pointer;
}

.openvote-survey-profile__edit-btn:hover {
    color: #fff;
    background: #0073aa;
}

/* Formularz edycji profilu */
.openvote-survey-profile__edit .openvote-survey-profile__title {
    margin-bottom: .25em;
}

.openvote-survey-profile-edit-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: .5rem;
}

.openvote-survey-profile-edit__row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

.openvote-survey-profile-edit__label {
    font-size: .8125rem;
    font-weight: 600;
    color: #50575e;
}

.openvote-survey-profile-edit__input,
.openvote-survey-profile-edit__select {
    padding: .5rem .75rem;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: .9375rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
}

.openvote-survey-profile-edit__select {
    cursor: pointer;
    background: #fff;
    appearance: auto;
}

.openvote-survey-profile-edit__input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.openvote-survey-profile-edit__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .25rem;
}

.openvote-survey-profile-edit__submit,
.openvote-survey-profile-edit__cancel {
    padding: .5rem 1rem;
    font-size: .875rem;
    border-radius: 4px;
    cursor: pointer;
}

.openvote-survey-profile-edit__submit {
    background: #0073aa;
    color: #fff;
    border: none;
}

.openvote-survey-profile-edit__submit:hover {
    background: #005a87;
}

.openvote-survey-profile-edit__cancel {
    background: transparent;
    color: #50575e;
    border: 1px solid #8c8f94;
}

.openvote-survey-profile-edit__cancel:hover {
    background: #f0f0f1;
}

.openvote-survey-profile-edit__message {
    font-size: .8125rem;
    font-weight: 600;
}

@media ( max-width: 480px ) {
    .openvote-survey-profile__row {
        grid-template-columns: 1fr;
    }
}

/* ── Powiadomienia wewnątrz karty ─────────────────────────────────────── */
.openvote-survey-notice {
    padding: .75rem 1.5rem;
    border-bottom: 1px solid #ddd;
}

.openvote-survey-notice p {
    margin: 0;
    font-size: .9em;
}

.openvote-survey-notice--success {
    background: #edfaef;
    color: #2a6930;
    border-left: 4px solid #46b450;
}

.openvote-survey-notice--draft {
    background: #f4f1fa;
    color: #4a3a78;
    border-left: 4px solid #826eb4;
}

.openvote-survey-notice--warning {
    background: #fef8ee;
    color: #7a4f00;
    border-left: 4px solid #ffb900;
}

/* ── Formularz ankiety ─────────────────────────────────────────────────── */
.openvote-survey-form {
    padding: 1.2rem 1.5rem;
}

.openvote-survey-intro {
    margin: 0 0 1.2rem;
    font-size: 1em;
    color: #444;
}

/* ── Jedno pole ankiety ──────────────────────────────────────────────── */
.openvote-survey-field {
    margin-bottom: 1rem;
}

.openvote-survey-field__label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
    color: #333;
    font-size: .95em;
}

.openvote-survey-field__input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: .5rem .75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    color: #333;
    background: #fff;
    transition: border-color .15s;
}

.openvote-survey-field__input:focus {
    outline: none;
    border-color: var(--wp--preset--color--primary, #0073aa);
    box-shadow: 0 0 0 2px rgba(0,115,170,.15);
}

.openvote-survey-field__limit {
    display: block;
    margin-top: .25rem;
    font-size: .75em;
    color: #999;
}

/* Pole ankiety wrażliwe — wyraźna wizualna informacja */
.openvote-survey-field--sensitive .openvote-survey-field__label {
    color: #b45309;
    font-weight: 700;
}
.openvote-survey-field--sensitive .openvote-survey-field__input {
    border: 2px solid #d97706;
    background: #fffbeb;
    color: #92400e;
}
.openvote-survey-field--sensitive .openvote-survey-field__input::placeholder {
    color: #b45309;
    opacity: 0.85;
}
.openvote-survey-field--sensitive .openvote-survey-field__input:focus {
    border-color: #b45309;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.35);
    background: #fff;
}
.openvote-survey-field__sensitive-notice {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #b45309;
    font-weight: 600;
}

/* ── Przyciski akcji ────────────────────────────────────────────────── */
.openvote-survey-form__actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.openvote-survey-btn {
    display: inline-block;
    padding: .55rem 1.25rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: .95em;
    font-weight: 600;
    transition: opacity .15s;
}

.openvote-survey-btn:hover:not(:disabled) {
    opacity: .88;
}

.openvote-survey-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.openvote-survey-btn--draft {
    background: #e0e0e0;
    color: #333;
}

.openvote-survey-btn--ready {
    background: var(--wp--preset--color--primary, #0073aa);
    color: #fff;
}

/* ── Brak ankiet / zaloguj ───────────────────────────────────────────── */
.openvote-survey-empty,
.openvote-survey-login-notice {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.openvote-survey-login-notice a {
    font-weight: 600;
    color: var(--wp--preset--color--primary, #0073aa);
}

/* ════════════════════════════════════════════════════════════════════════════
   Formularz uzupełnienia brakujących pól profilu (ankiety i głosowania)
   ════════════════════════════════════════════════════════════════════════════ */

.openvote-profile-complete {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0 1.5rem;
}

/* Baner ostrzeżenia */
.openvote-profile-complete__notice {
    background: #fff8e1;
    border-left: 4px solid #f9a825;
    padding: 0.75rem 1rem;
    border-radius: 0 4px 4px 0;
    margin-bottom: 1rem;
}

.openvote-profile-complete__notice p {
    margin: 0;
    font-size: 0.9rem;
    color: #5a4000;
}

/* Tekst pomocniczy */
.openvote-profile-complete__desc {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Pola formularza */
.openvote-profile-complete__fields {
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) );
    gap: 0.875rem;
    margin-bottom: 1.25rem;
}

.openvote-profile-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.openvote-profile-field__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
}

.openvote-profile-field__required {
    color: #dc3232;
}

.openvote-profile-field__input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #23282d;
    transition: border-color 0.15s;
    box-sizing: border-box;
}

.openvote-profile-field__input:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Pole wrażliwe — wyraźna wizualna informacja */
.openvote-profile-field--sensitive .openvote-profile-field__label {
    color: #b45309;
    font-weight: 700;
}
.openvote-profile-field--sensitive .openvote-profile-field__input {
    border: 2px solid #d97706;
    background: #fffbeb;
    color: #92400e;
}
.openvote-profile-field--sensitive .openvote-profile-field__input::placeholder {
    color: #b45309;
    opacity: 0.85;
}
.openvote-profile-field--sensitive .openvote-profile-field__input:focus {
    border-color: #b45309;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.35);
    background: #fff;
}
.openvote-profile-field__sensitive-notice {
    margin: 0.375rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #b45309;
    font-weight: 600;
}

/* Footer z przyciskiem i komunikatem */
.openvote-profile-complete__footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.openvote-profile-complete__btn {
    padding: 0.5625rem 1.5rem;
    background: var(--wp--preset--color--primary, #0073aa);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}

.openvote-profile-complete__btn:hover:not(:disabled) {
    background: #005a87;
}

.openvote-profile-complete__btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Komunikaty zwrotne */
.openvote-profile-complete__message {
    display: none;
    font-size: 0.875rem;
    font-weight: 600;
}

.openvote-profile-complete__message--info    { color: #0073aa; }
.openvote-profile-complete__message--success { color: #46b450; }
.openvote-profile-complete__message--error   { color: #dc3232; }

@media ( max-width: 480px ) {
    .openvote-profile-complete__fields {
        grid-template-columns: 1fr;
    }
}

/* ── Blok: Zgłoszenia ankiet (Nie spam) ─────────────────────────────────── */
.openvote-survey-responses-block {
    margin: 1.5rem 0;
}

.openvote-survey-responses-block__login-notice {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin: 0;
}

.openvote-survey-responses-block__login-notice a {
    font-weight: 600;
    color: var(--wp--preset--color--primary, #0073aa);
}

.openvote-survey-responses-block__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.openvote-survey-responses-block__empty {
    color: #666;
    font-style: italic;
    margin: 0;
}

.openvote-survey-responses-block__list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.openvote-survey-responses-block__card {
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.openvote-survey-responses-block__card-header {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e2e4e7;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    font-size: 0.875rem;
}

.openvote-survey-responses-block__survey-title {
    width: 100%;
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 0.25rem;
}

.openvote-survey-responses-block__user-name {
    margin: 0;
}

.openvote-survey-responses-block__user-nick,
.openvote-survey-responses-block__user-meta {
    color: #555;
}

.openvote-survey-responses-block__date {
    margin-left: auto;
    color: #888;
    font-size: 0.8125rem;
}

.openvote-survey-responses-block__answers {
    margin: 0;
    padding: 0.75rem 1rem;
}

.openvote-survey-responses-block__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 0.5rem 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid #f0f0f1;
}

.openvote-survey-responses-block__row:last-child {
    border-bottom: 0;
}

.openvote-survey-responses-block__q {
    margin: 0;
    font-size: 0.8125rem;
    color: #666;
    font-style: italic;
}

.openvote-survey-responses-block__a {
    margin: 0;
    font-size: 0.875rem;
}

/* Sekcja: Zgłoszenia nie zatwierdzone (minimalne info) */
.openvote-survey-responses-block__title--pending {
    margin-top: 2rem;
}

.openvote-survey-responses-block__list--pending {
    margin-top: 0.5rem;
}

.openvote-survey-responses-block__card--pending {
    padding: 0.65rem 1rem;
}

.openvote-survey-responses-block__pending-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.openvote-survey-responses-block__pending-row:last-of-type {
    margin-bottom: 0;
}

.openvote-survey-responses-block__pending-row--right {
    justify-content: space-between;
}

.openvote-survey-responses-block__pending-label {
    color: #666;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.openvote-survey-responses-block__pending-title {
    font-size: 0.9375rem;
}

.openvote-survey-responses-block__pending-desc {
    color: #555;
}

.openvote-survey-responses-block__pending-notice {
    margin: 0.5rem 0 0;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-size: 0.8125rem;
    color: #856404;
    font-weight: 600;
}

@media ( max-width: 480px ) {
    .openvote-survey-responses-block__row {
        grid-template-columns: 1fr;
    }
}

