body .btw-contactform h2 {
    margin-bottom: 0px;
}
body .btw-contactform th {
    background-color: #2b6fa6;
    color: white;
    padding-left: 10px;
}
body .btw-contactform th:first-child {
    border-radius: 5px 0 0 0;
}
body .btw-contactform th:last-child {
    border-radius: 0 5px 0 0;
}
body .btw-contactform .form-table td {
    background-color: #f0f0f0;
    color: black;
    padding: 10px;
}
.btw-contactform form {
    display: inline-block;
    margin-right: 5px;
    max-width: 900px;
    width: 100%;
}
.btw-contactform {
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
}
.btw-contactform table {
    margin-bottom: 10px;
    width: 100%;
    border-collapse: collapse;
}
body .btw-contactform h1 {
    margin-bottom: 20px!important;
}
.btw-contactform select, 
.btw-contactform textarea, 
.btw-contactform input[type="date"], 
.btw-contactform input[type="datetime-local"], 
.btw-contactform input[type="datetime"], 
.btw-contactform input[type="email"], 
.btw-contactform input[type="month"], 
.btw-contactform input[type="number"], 
.btw-contactform input[type="password"], 
.btw-contactform input[type="search"], 
.btw-contactform input[type="tel"], 
.btw-contactform input[type="text"], 
.btw-contactform input[type="time"], 
.btw-contactform input[type="url"], 
.btw-contactform input[type="week"]{
    min-width: 200px;
    max-width: 200px;
}
.btw-contactform input[type="submit"] {
    margin-right: 10px!important;
    max-width: none!important;
}
.btw-contactform .right-align {
    text-align: right!important;
}
.btw-contactform .form-table{
    max-width: 900px;
}
.btw-contactform .form-table form{
    width: initial!important;
    max-width: initial!important;
}
.btw-contactform form .button.button-danger, .btw-contactform form .button.button-danger:focus
{
    background-color: #dc3232;
    border-color: #dc3232;
    color: #fff;
}
.btw-contactform form .button.button-danger:hover
{
    background-color: #a71d1d;
    border-color: #a71d1d;
    color: #fff;
}
.btw-contactform2 form .button.button-danger, .btw-contactform2 form .button.button-danger:focus{
    background-color: transparent;
    border-color: transparent;
    color: #a71d1d;
}
.btw-contactform2 form .button.button-danger:hover{
    background-color: transparent;
    border-color: transparent;
    color: #dc3232;
}
.btw-contactform .w100{
    width: 100%!important;
    max-width: 100%!important;
}
.btw-contactform td:first-child {
    width: 25%;
}
.btw-contactform table a{
    text-decoration: none;
    color: #0073aa;
    font-weight: bold;
}
.btw-contactform-messages-table td {
    background-color: #f1f7ff;
}
.btw-contact-messages-table {
    background: white;
    padding: 10px;
    margin-top: 20px;
}
.btw-contact-messages-list th{
    text-align: left;
}
.btw-contact-messages-table {
    width: 100%;
    min-height: 1000px;
}
.btw-contact-messages-list-container {
    width: 50%;
    vertical-align: top;
}
.btw-contact-message-content-container {
    width: 50%;
    vertical-align: top;
    border-left: 1px solid #dadada;
    padding-left: 20px;
}
.btw-contactform2 .button.button-danger {
    max-width: 20px;
    padding: 5px;
    line-height: 1;
    min-height: 20px;
}
.btw-contact-message-content-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.btw-contact-messages-list{
    border-spacing: 0;
    width: 100%;
}
.btw-contact-message-selected, .btw-contact-message-selected a{
    background-color: #08f;
    color: white !important;
}
.btw-contactform2 .btw-contact-messages-list th{
    padding-bottom: 5px;
}
.btw-contact-message-content-container tr > td{
    min-width: 200px;
}

@media screen and (max-width: 800px) {
    body .btw-contactform .form-table td{
        width: initial!important;
        padding: 5px;
        /* text-wrap: nowrap; */
    }
    body .btw-contactform th:last-child {
        border-radius: 0!important;
    }
    .btw-contactform .right-align {
        text-align: left!important;
    }
    .btw-contactform table tr{
        display: flex;
        align-items: center;
        background-color: #f0f0f0;
    }
    .btw-contactform table tr th{
        width: 100%;
        padding: 10px;
    }
    .btw-contactform .button.button-secondary{
        padding: 0!important;
        line-height: initial!important;
        min-height: initial!important;
        margin-bottom: 0!important;
        border-color: transparent!important;
        background-color: transparent!important;
    }
    .btw-contactform span{
        top: 0!important;
    }
    .btw-contactform .form-table td label{
        min-width: 150px!important;
    }
    .btw-contact-messages-list tr th:last-child, 
    .btw-contact-messages-list tr td:last-child{
        display: none;
    }
    .btw-contact-message-content-title{
        flex-direction: column;
    }
    .btw-contact-message-content-container tr > td{
        min-width: initial;
    }
}