.ftm-odds_calculator {
    display: block;
    margin: 10px auto;
    box-sizing: border-box;
    background-color: var(--ftm-odds-wrapper-bg, #efefef);
    padding: 15px 5px;

    form {
        >.oddsCalculator {
            display: flex;
            flex-direction: column;
            flex-wrap: nowrap;
            align-content: center;
            justify-content: flex-start;
            align-items: stretch;            

            >.row {
                display: flex;
                flex-direction: row;
                flex-wrap: wrap;
                align-content: center;
                justify-content: space-around;
                align-items: center;
                margin: unset;
                column-gap: 15px;          
                            

                .OddsCalcRow {
                    width: 100%;
                    min-width: 280px;
                    max-width: 46%;
                    display: flex;
                    flex-direction: column;
                    flex-wrap: nowrap;
                    align-content: center;
                    justify-content: center;
                    align-items: center;
                    min-height: 110px;
                    margin: unset;

                    &.payout {
                        display: flex;
                        flex-direction: column;
                        align-content: center;
                        justify-content: center;
                        align-items: center;
                        max-width: 500px;
                        background-color: var(---ftm-odds-total_results_bg, #444444);
                        border-radius: 8px;
                        padding: 15px;
                        row-gap: 15px;
                        margin-bottom: 20px;

                        .row{
                            >.label_box{
                                label{
                                    b{
                                        color: var( --ftm-odds-total_results_font_color,#fff);
                                    }
                                }
                            }
                        }
                        
                    }

                    .errorHighlight {
                        border: 2px solid #ff0000 !important;
                    }

                    .row {
                        display: block;
                        width: 100%;
                        margin-top: unset;

                        >.label_box {
                            position: relative;
                            margin-top: unset;

                            >label {
                                display: flex;
                                flex-direction: row;
                                flex-wrap: nowrap;
                                align-content: center;
                                justify-content: flex-start;
                                align-items: center;

                                >b {
                                    margin-right: 6px;
                                    color: var(--ftm-odds-labels_color, #000000);
                                }

                                .poppover {
                                    &.--active {
                                        .popover__menu {
                                            display: block;
                                            opacity: 1;
                                        }
                                    }

                                    >.popover__trigger {
                                        display: flex;
                                        border: none;
                                        border-radius: 50%;
                                        width: 20px;
                                        height: 20px;
                                        font-size: 13px;
                                        font-weight: 700;
                                        color: #9c9c9c;
                                        background-color: #d2d2d2;
                                        cursor: pointer;
                                        flex-direction: column;
                                        align-content: center;
                                        justify-content: center;
                                        align-items: center;
                                    }

                                    >ul.popover__menu {
                                        display: none;
                                        max-width: 450px;
                                        border-radius: 4px;
                                        list-style-type: none;
                                        margin: 8px 0;
                                        padding: 10px;
                                        position: absolute;
                                        margin-left: 22px;
                                        top: -20px;
                                        box-shadow: 0 2px 3px 0 rgba(63,63,68,.2);
                                        transition-property: transform, opacity;
                                        transition-duration: .2s;
                                        transition-timing-function: ease;
                                        transform: scale(0.9);
                                        transform-origin: top left;
                                        display: none;
                                        opacity: 0;
                                        background-color: #444;
                                        color: #fff;
                                        z-index: 20000;
                                        font-family: Inter, sans-serif;
                                    }
                                }
                            }
                        }

                        >.input_box {
                            margin-top: unset;

                            >input[type=text] {
                                width: 100%;
                                min-height: 40px;
                                font-family: helvetica;
                                font-size: 18px;
                                font-weight: 600;
                                color: var(--ftm-odds-font_color, #000000);
                                border: solid 2px #ccc;
                                border-radius: 5px;
                                padding: 0px 10px;
                            }
                        }
                    }

                    > .OddsCalcSubmit {
                        display: flex;
                        flex-direction: row;
                        align-content: center;
                        justify-content: center;
                        align-items: center;
                        width: 100%;

                        > input{
                            font-size: 18px;

                            &.covers-Calculators-calculateBtn {
                                border-radius: 5px;
                                font-weight: 700;
                                background-color: var(--ftm-odds-calculate_button_bg,#fd4f00);
                                color: var(--ftm-odds-calculate_button_font_color,#fff);
                                border: none !important;
                                display: inline-block;
                                width: 45%;
                                cursor: pointer;
                                -webkit-appearance: none;
                                -moz-appearance: none;
                                appearance: none;
                                opacity: 1;
                                padding-left: 5px;
                                height: 40px;
                            }

                            &.covers-Calculators-resetBtn {
                                background-color: var(--ftm-odds-reset_button_bg, #d8d8d8);
                                margin-left: 15px;
                                color: var(--ftm-odds-eset_button_font_color, #444);
                                -webkit-appearance: none;
                                -moz-appearance: none;
                                appearance: none;
                                opacity: 1;
                                cursor: pointer;
                                letter-spacing: .5px;
                                display: inline-block;
                                width: 47%;
                                border-radius: 5px;
                                font-weight: 700;
                                padding: 5px;
                                height: 40px;
                                border: none;

                                &:hover{
                                    background-color: var(--ftm-odds-reset_hover_bg_color, #fd4f00);
                                    color: var(--ftm-odds-reset_hover_color, #fff);
                                }
                            }

                        }

                    }
                }

                .covers-Calculators-errorField{
                    display: none;
                    width: 100%;
                    flex-direction: column;
                    align-content: center;
                    justify-content: center;
                    align-items: center;
                    color: #ff0000;
                    font-size: 16px;
                    font-weight: 500;
                    margin: 20px 0;

                    &.show{
                        display: flex;
                    }
                }                
            }
        }
    }
}

@media screen and (max-width:500px) {
    .ftm-odds_calculator{
        form{
            >.oddsCalculator{
                >.row{
                    flex-direction: column;

                    .OddsCalcRow{
                        max-width: 95%;
                    }
                }
            }
        }
    }
}