﻿
.twm_top_selectbox_custom{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom:15px;
    height: 40px;
}
.twm_top_selectbox_custom .selector, .twm_top_selectbox_custom .date-input-frame{
    position: relative;
    border: 1px solid #D4D4D4 !important;
    border-radius: 1000px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    cursor: pointer;
}
.twm_top_selectbox_custom .selector:after{
    display: block;
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    right: 1em;
    width: 8px;
    height: 8px;
    border-right: 1px solid #000;
    border-bottom: 1px solid #000;
    transform: translateY(-50%) rotate(45deg);
}
.twm_top_selectbox_custom .selector.active:after{
    top: calc(50% + 2px);
    border-right: 1px solid #FF6100;
    border-bottom: 1px solid #FF6100;
    transform: translateY(-50%) rotate(-135deg);
}
.twm_top_selectbox_custom .search-btn{
    position: relative;
    width: 38px;
    height: 38px;
    background-color: #000;
    margin-left: 5.625%;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 38px;
}
.twm_top_selectbox_custom .search-btn:hover{
    background-color: #FF6100;
}
.twm_top_selectbox_custom .search-btn img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.twm_top_selectbox_custom .selector-continent-frame{
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    border-right: 1px solid #D4D4D4;
    flex: 1;
}
.twm_top_selectbox_custom .selector-continent-frame.full{
    border-right: none;
    width: 50%;
    flex: inherit;
}
.twm_top_selectbox_custom .selector-continent-frame.full .selector{
    width: 100%;
}
.twm_top_selectbox_custom .selector-continent-frame .selector{
    height: 100%;
    width: 71.25%;
}
.twm_top_selectbox_custom .selector-continent-frame .selector .selector-in{
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}
.twm_top_selectbox_custom .selector-continent-frame .selector p{
    font-size: 16px;
    margin: 0;
    text-indent: 1em;
}
.twm_top_selectbox_custom .selector-continent-frame .selector-open {
    display: none;
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 300px;
    background-color: #fff;
    padding: 20px 10px;
    transform: translateY(100%);
    z-index: 200;
    box-shadow: 0 0 8px rgba(0,0,0,0.16);
    border-radius: 23px;
}
.twm_top_selectbox_custom .selector-continent-frame .selector-open > p{
    color: #8F8F8F;
    font-size: 14px;
    text-align: center;
}
.twm_top_selectbox_custom .selector-continent-frame .selector-open ul{
    list-style: none;
    padding-left: 0;
}
.twm_top_selectbox_custom .selector-continent-frame .selector-open ul li{
    font-size: 16px;
    color: #000;
    height: 36px;
    line-height: 36px;
    border-radius: 8px;
    padding-left: 1em;
    cursor: pointer;
}
.twm_top_selectbox_custom .selector-continent-frame .selector-open ul li:hover{
    background-color: #FF6100;
    color: #fff;
}
.twm_top_selectbox_custom .search-bar-frame{
    display: flex;
    align-items: center;
    width: 63.2184%;
    height: 100%;
}
.twm_top_selectbox_custom .search-bar-frame span.or{
    font-size: 16px;
    margin: 0 4.7273%;
}
.twm_top_selectbox_custom .search-bar-frame .search-bar{
    width: 77.8182%;
    height: 100%;
}
.twm_top_selectbox_custom .search-bar-frame .search-bar input{
    width: 100%;
    height: 100%;
    position: relative;
    border: 1px solid #D4D4D4;
    border-radius: 1000px;
    font-size: 16px;
    text-indent: 1em;
}
.twm_top_selectbox_custom .datepicker-frame{
    width: 63.4483%;
}
.twm_top_selectbox_custom .datepicker-frame + .search-bar-frame{
    width: 36.5517%;
}
.twm_top_selectbox_custom .datepicker-frame .datepicker{
    width: 44.5652%;
}
.twm_top_selectbox_custom .datepicker-frame .selector{
    width: 38.7681%;
    margin-left: 2.1739%;
}
.twm_top_selectbox_custom .datepicker-frame .search-btn{
    margin-left: 3.2609%;
}


@media (max-width: 600px) {
    .twm_top_selectbox_custom{
        flex-wrap: wrap;
        height: auto;
   }
    .twm_top_selectbox_custom .selector-continent-frame{
        order: 2;
        margin-top: 10px;
   }
    .twm_top_selectbox_custom .selector-continent-frame.full{
        width: 100%;
        flex: 1;
   }
    .twm_top_selectbox_custom .selector-continent-frame, .twm_top_selectbox_custom .datepicker-frame{
        width: 100%;
        border-right: none;
   }
    .twm_top_selectbox_custom .selector-continent-frame .selector{
        width: 100%;
        height: 40px;
   }
   .twm_top_selectbox_custom .selector-continent-frame .selector-1{
       width: 100% !important;
       flex: auto !important;
   }
    .twm_top_selectbox_custom .datepicker-frame{
        order: 2;
        margin-top: 10px;
   }
    .twm_top_selectbox_custom .search-bar-frame{
        width: 100%;
        height: 40px;
        margin-top: 10px;
   }
    .twm_top_selectbox_custom .search-bar-frame .search-bar{
        width: calc(100% - 38px);
   }
    .twm_top_selectbox_custom .datepicker-frame{
        flex-wrap: wrap;
        padding-bottom: 20px;
        border-bottom: 1px solid #ddd;
   }
    .twm_top_selectbox_custom .datepicker-frame .datepicker, .twm_top_selectbox_custom .datepicker-frame .selector{
        width: 100%;
   }
    .twm_top_selectbox_custom .datepicker-frame .selector{
        margin-top: 10px;
        margin-left: 0;
        flex: 1;
   }
    .twm_top_selectbox_custom .datepicker-frame .search-btn{
        margin-top: 10px;
   }
    .twm_top_selectbox_custom .search-bar-frame{
        width: 100% !important;
        margin-top: 0px;
        order: 1;
        height: auto;
        flex-wrap: wrap;
   }
    .twm_top_selectbox_custom .search-bar-frame .search-btn{
        margin-left: 3.2609%;
   }
    .twm_top_selectbox_custom .search-bar-frame span.or{
        order: 3;
        display: block;
        width: 100%;
        margin: 0;
        margin-top: 10px;
        text-align: center;
        position: relative;
   }
    .twm_top_selectbox_custom .search-bar-frame span.or:before{
        position: absolute;
        content: '';
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: calc(50% - 30px);
        height: 1px;
        background-color: #D4D4D4;
   }
    .twm_top_selectbox_custom .search-bar-frame span.or:after{
        position: absolute;
        content: '';
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        width: calc(50% - 30px);
        height: 1px;
        background-color: #D4D4D4;
   }
    .twm_top_selectbox_custom .search-bar-frame .search-bar{
        order: 1;
        flex: 1;
        height: 40px;
   }
    .twm_top_selectbox_custom .search-bar-frame .search-btn{
        order: 2;
   }
}
