.gdpol-topic-poll {
    * {
        box-sizing: border-box;
    }

    box-sizing: border-box;
    margin: 5px 0 15px;
    padding: 0;
    clear: both;

    header {
        margin: 0;
        padding: 15px;

        h2 {
            margin: 0;
            font-size: 1.2em;
        }

        p {
            margin: 0;
        }
    }

    footer {
        margin: 0;
        overflow: auto;
        padding: 15px;

        .gdpol-footer-voters {
            float: right;
        }
    }

    .gdpol-choices-list {
        padding: 15px;

        fieldset {
            margin: 0;
            padding: 0;
            border: 0;
        }

        button {
            margin: 15px 0 0 !important;
            border: 1px solid #CCC;
            border-radius: 3px;
            padding: 5px 21px;
            height: 34px;
            line-height: 22px;
            font-size: 14px;
            background-color: #EEE;
            color: #333;
        }
    }

    .gdpol-poll-choices {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            margin: 4px 0 !important;
            padding: 0;
            line-height: 26px;
            list-style: none;

            input {
                float: left;
                margin: 4px 6px 0 0;
                width: 16px;
                height: 16px;
            }
        }

        &.gdpol-poll-disabled {
            li {
                list-style: disc inside !important;
            }
        }
    }

    .gdpol-poll-results {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            margin: 6px 0 !important;
            padding: 0;
            line-height: 26px;
            list-style: none;

            .gdpol-response-info {
                position: relative;
                font-size: 12px;
            }

            .gdpol-response-label {
                display: block;
            }

            .gdpol-response-bar,
            .gdpol-response-percent,
            .gdpol-response-votes {
                background-color: #FFF;
                display: inline-block;
            }

            .gdpol-response-bar {
                height: 28px;
                border: 2px solid #FFF;
                width: calc(100% - 160px);

                span {
                    display: inline-block;
                    height: 26px;
                }
            }

            .gdpol-response-percent,
            .gdpol-response-votes {
                border: 1px solid #FFF;
                line-height: 26px !important;
                padding: 0 0 0 12px;
                width: 80px;
                float: right;
            }
        }

        &.gdpol-results-compact {
            li {
                .gdpol-response-bar {
                    width: calc(100% - 80px);
                }

            }
        }
    }

    .gdpol-response-users {
        display: block;
        overflow: auto;
        margin: 0 0 0 2px;

        .gdpol-user-avatar {
            margin: 0 4px 0 0;
            display: block;
            float: left;

            img {
                border: 0;
                border-radius: 2px;
                box-shadow: none;
                display: block;
            }
        }

        .gdpol-more-users {
            display: block;
            float: left;
            vertical-align: top;
        }
    }
}

.gdpol-topic-poll-form {
    * {
        box-sizing: border-box;
    }

    box-sizing: border-box;

    p.gdpol-description {
        padding: 0;
        margin: 0;
        font-style: italic;
    }
}

.gdpol-fields-wrapper {
    margin: 1em 0 0 !important;

    .gdpol-field-regular {
        label > span {
            display: block;
        }

        select,
        input[type="number"],
        input.gdpol-end-datetime {
            width: 100%;
            max-width: 300px;
            margin: 5px 0 0;
        }

        textarea,
        input[type="text"] {
            width: 100%;
            margin: 5px 0 0;
        }

        textarea {
            width: 100%;
            min-height: 100px;
        }

        &.gdpol-field-inside {
            padding-left: 1em;
            border-left: 1px solid #DDD;
        }
    }

    ul.gdpol-responses-list {
        margin: 0;
        padding: 0;
        list-style: none;

        li {
            margin: 0 0 .5em !important;
            padding: 0;
            list-style: none;
            display: flex;

            span {
                display: block;
                padding: 0;

                &._label input {
                    width: 100%;
                }

                &._button button,
                &._label input {
                    margin: 5px 0 0;
                    border: 1px solid #CCC;
                    border-radius: 3px;
                    line-height: 20px;
                    font-size: 13px;
                }

                &._button {
                    width: auto;
                    flex-shrink: 1;
                    flex-grow: 0;
                    vertical-align: top;
                    padding: 0 0 0 9px;

                    button {
                        padding: 3px 12px;
                    }
                }

                &._label {
                    flex-grow: 1;
                    flex-shrink: 0;
                }
            }

            &:first-of-type {
                ._up {
                    display: none;
                }
            }

            &:last-of-type {
                ._down {
                    display: none;
                }
            }
        }
    }

    .gdpol-field-responses {
        button {
            &.gdpol-new-response {
                margin: 0 !important;
                border: 1px solid #CCC;
                border-radius: 3px;
                padding: 7px 21px;
                height: 38px;
                line-height: 22px;
                font-size: 14px;
                background-color: #EEE;
                color: #333;
            }
        }
    }
}

.gdpol-message {
    border-left: 4px solid #008000;
    background-color: #FFF;
    padding: 10px;
    margin: 0 0 15px;
    color: #008000;

    &.gdpol-message-error {
        border-left-color: #F00;
        color: #F00;
    }
}

.gdpol-widget-poll-item {
    margin: 0 0 1em;
    padding: 0 0 1em;
    border-bottom: 1px solid #DDD;
    line-height: 1.4;

    &:last-of-type {
        margin: 0;
        padding: 0;
        border-bottom: 0;
    }

    h5 {
        font-size: 1.1em;
        font-weight: 700;
        margin: 0 0 .5em;
        padding: 0;
    }
}

.bbp-image-mark-poll {
    background: transparent url(icons/chart.png);
    display: inline-block;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

#bbpress-forums {
    fieldset {
        &.bbp-form {
            .gdpol-field {
                margin: 0 0 10px;

                label {
                    display: block;
                    line-height: 24px;
                }

                &:last-of-type {
                    margin: 0;
                }
            }

            .gdpol-field-checkbox {
                label {
                    input {
                        float: left;
                        margin: 3px 7px 0 0;
                        height: 18px;
                        width: 18px;
                    }
                }
            }

            #gdpol-poll-status {
                margin: 0;
            }
        }
    }
}
