.votolet-poll,
.votolet-my-votes {
    --votolet-ink: #1f2933;
    --votolet-muted: #64747d;
    --votolet-line: #d9e3e7;
    --votolet-panel: #ffffff;
    --votolet-soft: #f6faf9;
    --votolet-primary: #0f766e;
    --votolet-primary-dark: #115e59;
    --votolet-accent: #b45309;
    background: var(--votolet-panel);
    border: 1px solid var(--votolet-line);
    border-radius: var(--votolet-radius, 8px);
    box-shadow: 0 12px 28px rgba(31, 41, 51, 0.08);
    color: var(--votolet-ink);
    margin: 28px 0;
    overflow: hidden;
}

.votolet-poll__header {
    background: var(--votolet-header, #f0faf7);
    border-bottom: 1px solid var(--votolet-line);
    padding: 22px 24px;
}

.votolet-poll__header h2,
.votolet-my-votes h2 {
    color: var(--votolet-ink);
    font-size: 28px;
    line-height: 1.18;
    margin: 10px 0 0;
}

.votolet-poll__description {
    color: var(--votolet-muted);
    font-size: 15px;
    max-width: 780px;
}

.votolet-poll__description p:last-child {
    margin-bottom: 0;
}

.votolet-poll__meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.votolet-pill,
.votolet-deadline {
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    padding: 8px 11px;
}

.votolet-pill--open {
    background: #dcfce7;
    color: #166534;
}

.votolet-pill--closed {
    background: #f1f5f9;
    color: #475569;
}

.votolet-deadline {
    background: #fff7ed;
    color: #9a3412;
}

.votolet-form {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 22px 24px;
}

.votolet-field {
    display: grid;
    gap: 7px;
}

.votolet-field label,
.votolet-options legend {
    color: var(--votolet-ink);
    font-weight: 700;
}

.votolet-field input {
    border: 1px solid #c8d4d8;
    border-radius: var(--votolet-radius-sm, 6px);
    max-width: 480px;
    min-height: 42px;
    padding: 8px 11px;
    width: 100%;
}

.votolet-field input:focus {
    border-color: var(--votolet-primary);
    box-shadow: 0 0 0 1px var(--votolet-primary);
    outline: none;
}

.votolet-hp {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    visibility: hidden;
    width: 0;
}

.votolet-options {
    background: var(--votolet-panel);
    border: 1px solid var(--votolet-line);
    border-radius: var(--votolet-radius, 8px);
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 16px;
}

.votolet-options label,
.votolet-consent {
    align-items: flex-start;
    background: var(--votolet-soft);
    border: 1px solid #e2eaed;
    border-radius: var(--votolet-radius-sm, 7px);
    display: flex;
    gap: 8px;
    padding: 10px 12px;
}

.votolet-options label:hover {
    border-color: #99d8c9;
}

.votolet-options input,
.votolet-consent input {
    accent-color: var(--votolet-primary);
    margin-top: 2px;
}

.votolet-form button {
    background: var(--votolet-primary);
    border: 0;
    border-radius: var(--votolet-radius-sm, 6px);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    justify-self: start;
    min-height: 42px;
    padding: 10px 18px;
}

.votolet-form button:hover,
.votolet-form button:focus {
    background: var(--votolet-primary-dark);
}

.votolet-message {
    background: #f6f7f7;
    border-left: 4px solid #646970;
    color: #1f2933;
    margin: 16px 0;
    padding: 10px 12px;
}

.votolet-success {
    border-left-color: #008a20;
}

.votolet-error {
    border-left-color: #d63638;
}

.votolet-results {
    background: var(--votolet-soft, #fbfdfd);
    border-top: 1px solid var(--votolet-line);
    display: grid;
    gap: 8px;
    margin-top: 0;
    padding: 22px 24px;
}

.votolet-results h3 {
    color: var(--votolet-ink);
    margin: 0 0 8px;
}

.votolet-confirmed-summary {
    background: var(--votolet-panel, #ffffff);
    border: 1px solid var(--votolet-line);
    border-radius: var(--votolet-radius, 8px);
    margin: 16px 0;
    padding: 16px;
}

.votolet-confirmed-summary h3 {
    margin-top: 0;
}

.votolet-confirmed-summary ul {
    margin-bottom: 0;
}

.votolet-confirmation.votolet-confirmation--success,
.votolet-confirmation.votolet-confirmation--info,
.votolet-confirmation.votolet-confirmation--summary {
    background: var(--votolet-confirmation-background, #f6f7f7);
    border: 1px solid var(--votolet-confirmation-border, #d9e3e7);
    border-radius: var(--votolet-confirmation-radius, 8px);
    box-sizing: border-box;
    color: var(--votolet-confirmation-text, #1f2933);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.votolet-message.votolet-confirmation {
    border-left-width: 4px;
}

.votolet-confirmation.votolet-confirmation--success {
    --votolet-confirmation-background: #f0faf7;
    --votolet-confirmation-border: #008a20;
}

.votolet-confirmation.votolet-confirmation--summary {
    --votolet-confirmation-background: #ffffff;
}

.votolet-confirmation.votolet-error {
    border-left-color: #d63638;
}

.votolet-confirmation.votolet-confirmation--summary h3,
.votolet-confirmation.votolet-confirmation--summary p,
.votolet-confirmation.votolet-confirmation--summary strong,
.votolet-confirmation.votolet-confirmation--summary div,
.votolet-confirmation.votolet-confirmation--summary ul,
.votolet-confirmation.votolet-confirmation--summary li {
    color: var(--votolet-confirmation-text, #1f2933);
}

.votolet-result-row {
    align-items: center;
    background: var(--votolet-panel, #ffffff);
    border: 1px solid #e4ecef;
    border-radius: var(--votolet-radius-sm, 7px);
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
}

.votolet-result-row strong {
    background: #ecfdf5;
    border-radius: 999px;
    color: var(--votolet-primary-dark);
    min-width: 32px;
    padding: 5px 9px;
    text-align: center;
}

.votolet-my-votes table {
    border-collapse: collapse;
    width: 100%;
}

.votolet-my-votes th,
.votolet-my-votes td {
    border-bottom: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

@media (max-width: 640px) {
    .votolet-poll__header,
    .votolet-form,
    .votolet-results {
        padding: 18px;
    }

    .votolet-poll__header h2,
    .votolet-my-votes h2 {
        font-size: 24px;
    }
}
