.uspace-core-poll-container {
    font-family: inherit;
    width: 100%;
    max-width: 100%;
    margin: 0 0 24px;
    box-sizing: border-box;
    padding: 18px 18px 14px;
    background: linear-gradient(180deg, #fbfaf5 0%, #f4f2e9 100%);
    border: 1px solid #e5e0d0;
    border-radius: 16px;
    box-shadow: 0 14px 34px rgba(48, 55, 34, 0.08);
    color: #1f302f;
}

.uspace-core-poll-header {
    padding: 4px 4px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid #b8c9cc;
}

.uspace-core-poll-header h3 {
    margin: 0;
    font-size: clamp(1.15rem, 1.7vw, 1.65rem);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #173439;
    font-weight: 500;
}

.uspace-core-poll-body {
    min-height: 48px;
}

.uspace-core-poll-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.uspace-core-poll-loading {
    color: #64818a;
    font-size: 0.95rem;
}

.uspace-core-poll-message {
    display: none;
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.92rem;
    line-height: 1.4;
}

.uspace-core-poll-message.is-success,
.uspace-core-poll-message.is-info,
.uspace-core-poll-message.is-error {
    display: block;
}

.uspace-core-poll-message.is-success {
    background: #edf8f2;
    color: #1f6b4a;
}

.uspace-core-poll-message.is-info {
    background: #eef6f8;
    color: #2f6675;
}

.uspace-core-poll-message.is-error {
    background: #fff1f1;
    color: #b24040;
}

.uspace-core-poll-options {
    display: grid;
    gap: 0;
    border-top: 0;
}

.uspace-core-poll-option-btn,
.uspace-core-poll-result-content {
    width: 100%;
    min-height: 62px;
    display: grid;
    grid-template-columns: 18px 1fr auto;
    gap: 14px;
    align-items: center;
}

.uspace-core-poll-option-btn {
    appearance: none;
    border: 0;
    border-bottom: 1px solid #d7dccc;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
    -webkit-box-shadow: none;
    padding: 16px 4px;
    text-align: left;
    cursor: pointer;
    color: #223738;
    transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.uspace-core-poll-option-btn:hover {
    background: transparent !important;
    border-color: #d7dccc;
    border-image: none !important;
    border-radius: 0 !important;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.uspace-core-poll-option-btn:focus {
    outline: none;
    border-color: #d7dccc;
    border-image: none !important;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.uspace-core-poll-option-btn:focus-visible {
    outline: none;
    background: transparent !important;
    border-color: #d7dccc;
    border-image: none !important;
    border-radius: 0 !important;
    box-shadow: none;
    -webkit-box-shadow: none;
}

.uspace-core-poll-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.uspace-core-poll-option-btn:last-child {
    border-bottom: 0;
}

.uspace-core-poll-container .uspace-core-poll-option-btn,
.uspace-core-poll-container .uspace-core-poll-option-btn:hover,
.uspace-core-poll-container .uspace-core-poll-option-btn:focus,
.uspace-core-poll-container .uspace-core-poll-option-btn:focus-visible,
.uspace-core-poll-container .uspace-core-poll-option-btn:active,
.elementor-widget-container .uspace-core-poll-option-btn,
.elementor-widget-container .uspace-core-poll-option-btn:hover,
.elementor-widget-container .uspace-core-poll-option-btn:focus,
.elementor-widget-container .uspace-core-poll-option-btn:focus-visible,
.elementor-widget-container .uspace-core-poll-option-btn:active {
    border-radius: 0 !important;
    outline: none !important;
    border-image: none !important;
    box-shadow: none;
    -webkit-box-shadow: none;
    text-shadow: none !important;
    background-image: none !important;
}

.uspace-core-poll-option-indicator,
.uspace-core-poll-result-indicator {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    border: 1px solid #789095;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.8);
}

.uspace-core-poll-option-text,
.uspace-core-poll-result-text {
    font-size: 0.96rem;
    line-height: 1.5;
    color: #203536;
    padding-left: 10px;
}

.uspace-core-poll-option-text {
    padding-left: 8px;
}

.uspace-core-poll-result-percent {
    font-size: 0.86rem;
    font-weight: 500;
    color: #6d8e98;
    white-space: nowrap;
    letter-spacing: 0.01em;
    padding-right: 10px;
}

.uspace-core-poll-options.is-results {
    gap: 8px;
    border-top: 0;
}

.uspace-core-poll-result-bar-wrapper {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e2e4;
    border-radius: 6px;
    background: rgba(247, 250, 251, 0.9);
}

.uspace-core-poll-result-bar {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0;
    background: linear-gradient(90deg, #deedf1 0%, #d7eaee 100%);
    transition: width 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.uspace-core-poll-result-bar.is-selected {
    background: linear-gradient(90deg, #d7eef3 0%, #c4e6ee 100%);
}

.uspace-core-poll-result-content {
    position: relative;
    z-index: 1;
    padding: 14px 12px;
    grid-template-columns: 1fr auto;
}

.uspace-core-poll-result-content.is-selected .uspace-core-poll-result-indicator {
    border-color: #4d8fa1;
    background: #ffffff;
}

.uspace-core-poll-result-content.is-selected .uspace-core-poll-result-indicator::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: #4d8fa1;
}

.uspace-core-poll-footer {
    margin-top: 12px;
    font-size: 0.84rem;
    color: #72898d;
    text-align: right;
}

.uspace-core-poll-container.is-submitting .uspace-core-poll-option-btn {
    pointer-events: none;
}

@media (max-width: 640px) {
    .uspace-core-poll-container {
        padding: 16px 14px 14px;
        border-radius: 16px;
    }

    .uspace-core-poll-option-btn {
        grid-template-columns: 18px 1fr;
    }

    .uspace-core-poll-result-content {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 14px 14px 14px 18px;
    }

    .uspace-core-poll-result-text {
        min-width: 0;
        text-align: left;
        align-self: center;
    }

    .uspace-core-poll-result-percent {
        justify-self: end;
        align-self: center;
    }
}
