/* || 修改紀錄 ||===============================

20170319: rename from [_prod_choosing_simple]

============================================ */
.search_bar {
  background-color: #eeeeee;
  position: relative;
  z-index: 9;
  padding: 30px;
  padding-top:50px;
  text-align: center;
}

.search_bar form{
  margin: auto;
  text-align: center;
  display: inline-block;
  /* width: 750px; */
  width: 100%;
  max-width: 100%;
  box-shadow: 1px 1px 10px 0 rgba(0,0,0,.3);
  padding: 15px;
  background: #fff;
  border-radius: 4px;
}

.search_bar form legend {
  width: 100%;
  padding: 10px;
  color: #fff;
  background-color: #ccc;
  position: relative;
  border-bottom: 2px solid #ab1d33;
  text-shadow: 0 0 5px 0 #484848;

  font-size: initial;
}

  .search_bar fieldset, .search_bar ul, .search_bar li {
    border: none;
    background-image: none;
    background-color: transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none; }
  .search_bar ul {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: ''; }

  .search_bar form fieldset {
    padding: 0;
    font-size: 0px;
    /* border: 1px solid #bdbdbd; */
    border-radius: 4px;
  }

  .search_bar form fieldset * *{font-size: initial;}

    .search_bar form fieldset .selectGroup {
      position: relative;
      width: 20%;
      /* width: 100%; */
      display: inline-block;
      height: 40px;
      /* border-top: 1px solid #bdbdbd; */
      /* border-bottom: 1px solid #bdbdbd; */
      
      cursor: pointer;
      margin-top: 15px;
    }

    /* brd_t_b_l: border top bottom left */
    .search_bar form fieldset .selectGroup.brd_t_b_l{
      border-top: 1px solid #bdbdbd;
      border-bottom: 1px solid #bdbdbd;
      border-left: 1px solid #bdbdbd;
    }

    .search_bar form fieldset .selectGroup.brd_t_b{
      border-top: 1px solid #bdbdbd;
      border-bottom: 1px solid #bdbdbd;
    }

    .search_bar form fieldset .selectGroup.border_round{
      border-radius: 4px 0 0 4px;
      border-left: 1px solid #bdbdbd;
    }

      /* selecHead____________________________________ */
      .search_bar form fieldset .selectGroup .selecHead{
        color: #484848;
        height: 100%;
        width: 100%;
      }

      .search_bar form fieldset .selectGroup .selecHead:before{
        content:attr(data-title);
        display: block;
        width: 79.77%;
        height: 100%;
        line-height: 40px;
        float:left;
        text-align: center;
        font-size: 14px;

        overflow: hidden;
        text-overflow:ellipsis;
      }

    .search_bar form fieldset .selectGroup div[name="imageField"] {
      width: 20%;
      height: 100%;
      position: absolute;
      right: 0;
      top: 0;
      border: none;
      background: #ccc;
      padding: 0;
      transition: all .25s;
      text-align: center;
  }


  .search_bar form fieldset .selectGroup div[name="imageField"] .search-icon {
    display: inline-block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px;
    border-color: #686868 transparent transparent transparent;
    margin-bottom: -10px;
}

.search_bar form fieldset .selectGroup.clicking div[name="imageField"] .search-icon {
  transform: scaleY(-1);
  margin-bottom: -5px;
}


      /* ul___________________________________________ */

      .search_bar form fieldset .selectGroup ul {
        color: #484848;
        line-height: 24px;
        cursor: pointer;
        pointer-events: auto;

        /* height: 100%; */
        /* max-height: 100%; */
        /* width: 78.999%; */
        /* float: left; */
        overflow: hidden;

        position: absolute;
        left:0;
        /* top:45px; */
        max-height: 0;
      }

      .search_bar form fieldset .selectGroup ul,
      .search_bar form fieldset .selectGroup ul li{font-size: 14px;/* .8em */}


      .search_bar form fieldset .selectGroup.selectGroup.clicking>div[name="imageField"]{z-index: 3;}
      .search_bar form fieldset .selectGroup.selectGroup.clicking ul{
        /* overflow: visible; */
        /* position: relative; */
        z-index: 1012;

        height: auto;
        max-height: 200px;
        overflow-y: scroll;
        overflow-x: hidden;
        width: 100%;
      }

      .search_bar form fieldset .selectGroup ul li{
        line-height: 40px;
        border-bottom: .5px solid rgb(180, 180, 180);
        padding: 0px 15px;
        transition: all .125s;
        background-image: linear-gradient(#EEEEEE 0%, rgb(221, 221, 221) 100%);
        /* min-width: 200px; */
      }

      /*:not(:first-child)
      .search_bar form fieldset .selectGroup ul li{
        background-image: linear-gradient(#EEEEEE 0%, rgb(221, 221, 221) 100%);
        min-width: 200px;
      }*/
      .search_bar form fieldset .selectGroup ul li:hover{background-image:none;background-color:#ab1d33;color:#efefef;}

      .search_bar form fieldset .selectGroup.clicking div[name="imageField"] .search-icon {
        border-top-color: #ab1d33; }

  .search_bar .submit_choice {
    display: inline-block;
    height: 40px;

    background-color: #ed4960;
    position: relative;
    cursor:pointer;
    overflow: hidden;
    width: 20%;
  }

  .submit_choice::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 100%);
}

.submit_choice.no-shadow::before{
  display:none;
}

  .search_bar .submit_choice.border_round{border-radius:4px;}

  .search_bar .submit_choice i{
    position: absolute;
    top: 0;
    right:0;
    bottom:0;
    left:0;
    margin: auto;

    color:#fff;
  }
  .search_bar .submit_choice i::after{
    content:'';
    display: inline-block;
    height: 100%;
    width:0px;
    vertical-align: middle;
  }

    .search_bar .submit_choice input {
      color: #fff;
      background-color: transparent;
      border:none;
      cursor: pointer;

      height: 100%;
      /* background-color: #ed4960; */
    }


@media screen and (max-width: 767px) { /* 740px */

  .search_bar form fieldset .selectGroup.border_round{border-radius: 0px;border-left:none;}

  .search_bar form fieldset .selectGroup div[name="imageField"]::before{display: none;}

    .search_bar form fieldset .selectGroup {
      width: 100%;
      padding-left: 0px;
      padding-right: 0px;
      margin-left: 0;
      border-top:none;
    }

    .search_bar .submit_choice.border_round{width:100%;border-radius: 0 0 4px 4px;}


  } /* 740px */

/*[style001] ============================================== */

.search_bar.style001 form legend{
  
}