/* 
Hier zitten al onze overwrites in voor de Hostfact formulieren.
Houd rekening met dat Elementor zelf een hoop globale CSS heeft voor bijvoorbeeld de buttons.
Verder gebruikt het origineel van de forms bootstrap, maar vinden wij het overkill om heel Bootstrap in te laden. Daarom hebben we slechts het grid ingeladen.
*/

.w_form {
    >form {
        .dragArea {
            justify-content: center;
        }

        input[name="whois_domain"] {
            text-align: center;

            &:focus {
                outline: none;
            }
        }

        .mbr-section-btn {
            position: relative;
            width: 250px !important;
            flex: 0 0 auto;

            .wf_form_submit {
                width: 100%;
                height: 100%;
                position: relative;
                padding-right: 40px !important;
            }

            &:after {
                position: absolute;
                content: '';
                display: block;
                height: 20px;
                width: 20px;
                background-size: contain;
                background-position: center;
                background-repeat: no-repeat;
                top: 53%;
                right: 58px;
                transform: translateY(-50%);
            }
        }


    }
}

.w_result {
    table {

        td,
        th {
            background-color: transparent !important;
            border-bottom-color: rgba(255, 255, 255, .2) !important;
            vertical-align: middle !important;
            color: #fff !important;
        }

        tbody tr:last-child td {
            border-bottom: none !important;
        }
    }

    .domain_td_checked_available,
    .domain_td_checked_unavailable {
        span {
            display: inline-block;
            padding: 2px 10px;
            border-radius: 25px;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 0.02em;
        }
    }

    .domain_td_checked_unavailable span {
        background-color: rgba(239, 68, 68, 0.15);
        color: #f87171;
    }

    .domain_td_checked_available span {
        background-color: rgba(74, 222, 128, 0.15);
        color: var(--e-global-color-a44a3e1);
    }

    .domain_td_order a,
    a.show_other_tlds {
        display: inline-block;
        padding: 6px 13px;
        border-radius: 25px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: capitalize;
        border: 1px solid var(--e-global-color-primary);
        text-align: center;

        background-color: var(--e-global-color-primary);
        font-family: var(--e-global-typography-819d1f6-font-family), Sans-serif;
        font-weight: var(--e-global-typography-819d1f6-font-weight);
        color: var(--e-global-color-text);

        transition: all .3s ease;

        &:hover,
        &:focus {
            background-color: transparent;
            color: #fff;
        }
    }

    a.show_other_tlds {
        line-height: 1.8;
        margin-bottom: 10px;
    }

    .footer_excl_incl_vat {
        font-size: 16px;
    }
}

.o_form {
    .progress {
        border: none !important;
        height: 10px !important;
        position: relative;

        ol li {
            z-index: 3;
            border-color: var(--e-global-color-primary);

            /* targets the last .active */
            &.active:not(:has(~ .active)) {
                background-color: var(--e-global-color-77df036);
                border-color: var(--e-global-color-77df036);
            }

            /* All with active, but not the last one */
            &.active:has(~ .active) {
                background-color: var(--e-global-color-primary);
                border-color: var(--e-global-color-primary);
            }
        }

        &:after {
            content: '';
            display: block;
            position: absolute;
            left: 0;
            top: -5px;
            width: 100%;
            height: 2px;
            background-color: var(--e-global-color-primary);
        }
    }

    table {

        td,
        th {
            background-color: transparent !important;
            border-bottom-color: rgba(255, 255, 255, .2) !important;
            vertical-align: middle !important;
            color: #fff !important;
        }

        tbody tr:last-child td {
            border-bottom: none !important;
        }
    }

    .ico-del {
        right: 0 !important;
        margin-top: -3px;
    }

    .domain_table p>a,
    .nav a {
        display: inline-block;
        padding: 6px 13px;
        border-radius: 25px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: capitalize;
        border: 1px solid var(--e-global-color-primary);
        text-align: center;
        line-height: 1.8;

        background-color: var(--e-global-color-primary);
        font-family: var(--e-global-typography-819d1f6-font-family), Sans-serif;
        font-weight: var(--e-global-typography-819d1f6-font-weight);
        color: var(--e-global-color-text);

        transition: all .3s ease;

        &:hover,
        &:focus {
            background-color: transparent;
            color: #fff;
        }
    }

    .footer_excl_incl_vat {
        color: #fff;
    }

    .nav {
        a {
            background-color: var(--e-global-color-a44a3e1);
            border-color: var(--e-global-color-a44a3e1);
            color: var(--e-global-color-accent) !important;
            font-size: 16px !important;

            &:hover,
            &:focus {
                color: #fff !important;
            }
        }
    }

    select {
        display: inline-block;
    }

    #NewCustomerDiv,
    #CustomInvoiceAddressDiv,
    #ExistingCustomerDiv,
    #CustomWHOISDiv {

        input,
        select {
            margin-top: 3px;
            margin-bottom: 3px;
            height: 46px;
            border-radius: 8px;

            &:focus {
                outline: none;
            }
        }

        label {
            margin-right: 15px;
        }
    }

    .payment_box {
        padding: 0;
        margin-bottom: 10px;
        min-height: 0;

        table {
            margin-bottom: 0;
            background-color: rgba(255, 255, 255, .05);
        }

        &.active table {
            background-color: var(--e-global-color-primary);
        }

        tr {

            td:nth-child(2),
            td:nth-child(3) {
                border-left: none !important;
                border-right: none !important;
            }
        }

        td {
            height: 60px !important;
            padding-bottom: 5px;
            padding-top: 5px;
            vertical-align: middle !important;

            img {
                height: 30px !important;
                width: auto !important;
                margin-bottom: -3px;
                border-radius: 3px;
            }
        }
    }

    table.cart {
        min-width: 250px;

        .noborder {
            background-color: transparent !important;
        }
    }
}

@media screen and (max-width: 750px) {
    .w_form {
        >form {
            >.row {
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            .dragArea {
                input[name="whois_domain"] {
                    width: 100%;
                    flex-basis: 100%;
                    margin-bottom: 10px;
                }
            }

            .mbr-section-btn {
                width: 100% !important;
                padding-left: 0;
                padding-right: 0;

                input.wf_form_submit {
                    width: 100% !important;
                    min-height: 52px !important;
                }
            }
        }
    }

    .w_result {
        table {
            td.domain_td_order {
                width: 100%;
                padding-bottom: 17px;
                padding-top: 5px;
            }

            tr td:nth-child(1),
            tr td.domain_td_checked_available:nth-child(2),
            tr td.domain_td_checked_unavailable:nth-child(2) {
                border-top: 1px solid rgba(255, 255, 255, .2) !important;
            }
        }
    }

    .o_form {
        .progress {
            &:after {
                top: -2px;
            }
        }
    }
}