.region.region-header{
    position:relative;
}
.block.transferfix-promoting-text ul{
    display: flex;
    flex-wrap: wrap;
    
}
.block.transferfix-promoting-text ul li{
    color: #CF3339;
    width: 50%;
    min-width: 240px;
}
.tbs-search-block,
.tbs-search-block *{
    max-width: 100%;
    box-sizing: border-box;
    float: left; 
}
div.search-widget{
    width: 100%;
    background: #f7f7f7;
    border: 1px solid #13a7d5;
}
#right_sidebar #flexible_tbs_block{
    margin-bottom: 15px;
}
#edit_tbs_block{
    padding-top: 10px;
}
/*.search-widget .content{
    grid-column-gap: 2px;
}*/
.search-widget > div,
.search-widget form{
    width: 100%;
}
#block-title{
    width: 50%;
    font-size: 16px;
    font-weight:bold;
    color: #3e3d3d;
    padding: 10px;
    font-family:MenuFont;
}
#block-subtitle{
    display: none; /* only display on narrower blocks */ 
}
#usage-statistics{
    width: 50%;
    text-align: right;    
    padding: 10px;
}
.search-widget form,
#payment-methods{
    padding: 0 10px;
}
.search-widget .form-row{
/*    width: 100%;*/
    float: left;
    margin-right: 10px;
    margin-bottom: 10px;
    line-height: 16px; 
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid #ccc;
    background-color: #fff;
    padding: 5px 7px;
}
.form-row.language-row{
    display: none !important;
}
.form-row.route{
    width: 31%;
    min-width: 281px;
    border: none;
    background: none;
    padding: 0;    
    position: relative;
}
.search-widget .form-row .swap-locations{
    display: block;
    position: absolute;
    height: 40px;
    width: 40px !important;
    min-width: unset !important;
    top: calc(50% - 20px);
    right: 40px;
    background-image: url('/sites/all/modules/custom/transferfix_blocks/images/swap-circle_blue.svg');
    background-size: cover;
    background-repeat: no-repeat;
}
.form-row.location-row{
    margin: 0;
}
.location-row.from-row{
    margin-bottom: 10px;
}
.form-row.route > div{
    width: 100%;
}
.form-row.transfer-type-row,
.form-row.journey-type-row{
    width: 22%;
    min-width: 114px; 
}
.form-row.transfer-type-row br,
.form-row.journey-type-row br{
    display: none;
    visibility: hidden;
}
.form-row.datetime-row{
    width: 32%;
    min-width: 244px; 
}
.form-row.passengers-row{
    width: 12%;
    min-width: 91px;
    margin-right: 0;
}
.search-widget .form-row label,
.search-widget .form-row label span{
    font-family:MenuFont;
}
/*.form-row.transfer-type-row label,
.form-row.journey-type-row label{
    margin-bottom: 5px;
}*/
.form-row.transfer-type-row > div,
.form-row.journey-type-row > div {
    width: 100%;
    padding: 6px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.search-widget .form-row > :first-child{
    min-width: 100px;
    width: 100%;
/*    margin-right: 10px;*/
}
.search-widget .form-row > :last-child{
/*    min-width: 130px;*/
}
.search-widget .form-row .select-div{
    background: url('/sites/all/modules/custom/booking_transfer/css/arrow.png') no-repeat calc(100% - 5px) #fff;
}
.search-widget .form-row select{
    /* width: calc(100% + 17px); */
    max-width: none;
    border: 0;
    height: 34px;
    margin: 0px 5px 0 0;
    padding: 5px 0 5px 2px;
/*    vertical-align:top;*/
}
.search-widget .form-row.transfer-type-row > :first-child,
.search-widget .form-row.journey-type-row > :first-child{
    margin-bottom: 3px;
}
.search-widget .radio-row:not(:last-child){
    margin-right: 15px;
}
.search-widget .radio-row label{
    font-weight: normal;
    line-height: 19px;
    color: #444;
}
.search-widget .datetime-row label .hide{
    display:none;
}
.search-widget .form-row.second-trip-row{
    /*display: none;*/
    opacity: 0.4;
}

.search-widget .form-row .datetime-inputs{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: 230px;
}
.search-widget .form-row .datetime-inputs .input-div.date{
    min-width: 120px;
    width: calc(100% - 110px);
    margin-right: 5px;
}
.search-widget .form-row .datetime-inputs .input-div.date input{
    background: url('/sites/all/modules/custom/booking_transfer/css/arrow.png') no-repeat calc(100% - 5px) #fff;
    border: none;
    line-height: 30px;
    margin: 0 5px 0 0;
    padding: 3px 20px 2px 10px;
    width: 100%;
}

#ui-datepicker-div{
    max-width: 280px !important;
}
.ui-datepicker .ui-datepicker-header .ui-datepicker-next,
.ui-datepicker .ui-datepicker-header .ui-datepicker-prev{
    width:32px;
    height:32px;
    margin:2px;
    border:0px;
    top: 1px;
}
.ui-datepicker .ui-datepicker-header .ui-datepicker-prev{
    left: 1px;
}
.ui-datepicker .ui-datepicker-header .ui-datepicker-next{
    right: 1px;
}

.ui-widget-header .ui-icon{
    width:100%;
    height:100%;
}
.ui-state-hover{
    border:0!important;
    background:none!important;
}
.ui-datepicker-title{
    margin: 6px 0;
}
.ui-widget-header .ui-icon.ui-icon-circle-triangle-e{
    background-image: url(/sites/all/modules/custom/transferfix_blocks/images/arrow-right.png);
    background-position: 0 0;
    margin: 0!important;
    left: 0!important;
    top: 0!important;
}
.ui-widget-header .ui-icon.ui-icon-circle-triangle-w{
    background-image: url(/sites/all/modules/custom/transferfix_blocks/images/arrow-left-2.png);
    background-position: 0 0;
    margin: 0!important;
    left: 0!important;
    top: 0!important;
}

.form-row .datetime-inputs .input-div.time{
    width: 50px;
}
.form-row .datetime-inputs .input-div.time.hour{
    margin-right: 5px;
}
.form-row .datetime-inputs .input-div.time select{
    margin:0;
}
.form-row.submit-row{
    width: 12%;
    background: none;
    border: none;
    margin-right: 0;
    padding: 0;
}
/*.i18n-fr .search-widget .form-row.submit-row{
    display: inline-block;
}
.i18n-fr .search-widget .form-row.submit-row > div{
    width: 100%;
}*/
/*.search-widget .submit-div{
    min-width: unset;
    width: 114px;    
}*/
.search-widget .submit-div button{
    min-width:114px;
    width: 100%;
    height: 61px;
    background: #13A7D5;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    font-family:MenuFont;
}
.search-widget .submit-div button:hover{
    background:#231657;
}
#block-footer{
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    margin-bottom: 10px;
}
#tfix-branding {
    width: calc((100% - 290px ) / 2);
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}
#tfix-branding > div:not(:last-child) {
    margin-right: 10px;
}
#tfix-logo {
    background: url('/sites/all/modules/custom/transferfix_blocks/images/logo+right-text_transferfix.svg') no-repeat;
    background-size: contain;
    display: block;
    height: 44px;
    width: 156px;
}
#terms-links{    
    width: calc((100% - 290px ) / 2);
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}
#terms-links > a{
    width: auto;
    display: inline-block;
    color:#231657;
}
#terms-links > a+a{
    display: inline-block;
}
#terms-links > a:first-child{
    margin-right: 15px;
}
#payment-methods{    
    width: 290px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    align-content: center;
}
#payment-methods img{
    width: 37px;
    height: 23px;
}
#payment-methods br{
    display: none;
    visibility: hidden;
}

.max-width-960.search-widget .form-row:not(.location-row){
    width: calc(50% - 5px);    
}
.max-width-960.search-widget .form-row.datetime-row,
.max-width-960.search-widget .form-row.transfer-type-row,
.max-width-960.search-widget .form-row.submit-row{
    margin-right: 0;
}
.max-width-960.search-widget .form-row.passengers-row{
    margin-right: 10px;
}

.max-width-360 #block-title{
    width: 100%;
    text-align: center;
    padding-bottom: 5px;
}
.max-width-360 #block-subtitle{
    display: block;
    font-size: 14px;
    text-align:center;
    margin-bottom: 5px;
    padding: 0 10px;
}
.max-width-360 #usage-statistics{
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    background: #13A7D5;
    text-align: center;
    color: #fff;
}
.max-width-360 .form-row{
    width: 100%;
}
.max-width-360.search-widget .form-row.transfer-type-row > div, 
.max-width-360.search-widget .form-row.journey-type-row > div{
    justify-content: flex-start;
}
.search-widget:not(.max-width-360) .form-row.second-trip-row{
    display: block !important;
    opacity: 0.4;
}
.max-width-360.search-widget .submit-div button{
    height: auto;
}
.max-width-360 #tfix-branding,
.max-width-360 #terms-links{
    width: 50%;
}
.max-width-360 #branding-text{
    font-size: 12px;
    line-height: 12px;
}
.max-width-360 #tfix-logo{
    height: 37px;
    width: 130px;
}
.max-width-360 #terms-links{
    line-height: 19px;
}
.max-width-360 #payment-methods{
    margin-top: 10px;
}

/*.iPad-fallback .search-widget .form-row{
    width: 100%;
    float: left;
    margin-bottom: 10px;
    line-height: 16px;    
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-content: stretch;
}
.iPad-fallback .search-widget .form-row > :first-child{
    width: 100px;
    margin-right: 10px;
}
.iPad-fallback .search-widget .form-row > :last-child{
    max-width: calc(100% - 130px);
}
.iPad-fallback .search-widget .form-row .terms-links{
    min-width: 206px;
    width: calc(100% - 124px);
}
.iPad-fallback .search-widget .form-row .submit-div{
    min-width: unset;
    width: 114px;    
}

.iPad-fallback #payment-methods .content{
    width: 100%;    
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
}
.iPad-fallback #payment-methods .content img{
    min-width: 47px; max-width: 60px;
}

.iPad-fallback #wide_tbs_block{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
}

.iPad-fallback #wide_tbs_block .wide-block-left{
    width: 370px;   
}
.iPad-fallback #wide_tbs_block .wide-block-right{
    width: calc(100% - 370px);
    padding: 15px;
}*/


