/* ==========================================================================
   Chosen v1.x 样式（重写版）
   - 自包含：不依赖雪碧图图片，箭头/图标全部用 CSS 绘制
   - 结构：与 chosen.jquery.min.js (v1.x) 输出的类名一一对应
   - 主题配色由 Themes/Default/main.css 增强层（.pricetab 前缀）覆盖
   ========================================================================== */

/* ---------- 基础容器 ---------- */
.chosen-container{
  position:relative;
  display:inline-block;
  vertical-align:middle;
  font-size:13px;
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
}
.chosen-container *{
  -webkit-box-sizing:border-box;
  -moz-box-sizing:border-box;
  box-sizing:border-box;
}
.chosen-container .chosen-drop{
  position:absolute;
  top:100%;
  left:-9999px;
  z-index:1010;
  width:100%;
  border:1px solid #d5cdb6;
  border-top:0;
  background:#fff;
  box-shadow:0 8px 20px rgba(96,74,20,.18);
}
.chosen-container.chosen-with-drop .chosen-drop{ left:0; }
.chosen-container a{ cursor:pointer; text-decoration:none; }

/* ---------- 单选：关闭态 ---------- */
.chosen-container-single .chosen-single{
  position:relative;
  display:block;
  overflow:hidden;
  padding:0 0 0 10px;
  height:32px;
  line-height:30px;
  border:1px solid #d5cdb6;
  border-radius:5px;
  background-color:#fff;
  background-image:none;
  box-shadow:none;
  color:#444;
  white-space:nowrap;
}
.chosen-container-single .chosen-default{ color:#999; }
.chosen-container-single .chosen-single span{
  display:block;
  overflow:hidden;
  margin-right:26px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.chosen-container-single .chosen-single-with-deselect span{ margin-right:38px; }
.chosen-container-single .chosen-single abbr{
  position:absolute;
  top:9px;
  right:24px;
  display:block;
  width:12px;
  height:12px;
  font-size:1px;
  line-height:1;
}
.chosen-container-single .chosen-single div{
  position:absolute;
  top:0;
  right:0;
  display:block;
  width:18px;
  height:100%;
}
.chosen-container-single .chosen-single div b{
  display:block;
  width:100%;
  height:100%;
  background:none;
}
/* 下拉箭头（CSS 三角，展开时翻转并变橙） */
.chosen-container-single .chosen-single div b:before{
  content:"";
  display:inline-block;
  width:0;
  height:0;
  margin:-2px 0 0 5px;
  vertical-align:middle;
  border-top:5px solid #b09a68;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
}
.chosen-container-single.chosen-with-drop .chosen-single div b:before{
  border-top:0;
  border-bottom:5px solid #f08200;
  margin-top:-7px;
}

/* ---------- 下拉内搜索框 ---------- */
.chosen-container-single .chosen-search{
  position:relative;
  margin:0;
  padding:7px 8px 4px;
  white-space:nowrap;
}
.chosen-container-single .chosen-search input[type="text"]{
  margin:1px 0;
  padding:4px 20px 4px 6px;
  width:100%;
  height:28px;
  outline:0;
  border:1px solid #d5cdb6;
  border-radius:4px;
  background-color:#fff;
  background-image:none;
  font-size:13px;
  color:#444;
}
.chosen-container-single-nosearch .chosen-search{
  position:absolute;
  left:-9999px;
}

/* ---------- 结果列表 ---------- */
.chosen-container .chosen-results{
  position:relative;
  overflow-x:hidden;
  overflow-y:auto;
  margin:0 4px 4px 0;
  padding:0 0 0 4px;
  max-height:240px;
  -webkit-overflow-scrolling:touch;
}
.chosen-container .chosen-results li{
  display:none;
  margin:0;
  padding:7px 8px;
  list-style:none;
  line-height:18px;
  font-size:13px;
  color:#555;
  word-wrap:break-word;
  border-radius:4px;
}
.chosen-container .chosen-results li.active-result{
  display:list-item;
  cursor:pointer;
}
.chosen-container .chosen-results li.disabled-result{
  display:list-item;
  color:#ccc;
  cursor:default;
}
.chosen-container .chosen-results li.highlighted{
  background-color:#fff3e0;
  background-image:none;
  color:#f07e02;
  font-weight:600;
}
.chosen-container .chosen-results li.no-results{
  display:list-item;
  background:#fffdf8;
  color:#bbb;
}
.chosen-container .chosen-results li.group-result{
  display:list-item;
  font-weight:600;
  cursor:default;
  color:#999;
}
.chosen-container .chosen-results li.group-option{ padding-left:15px; }
.chosen-container .chosen-results li em{
  font-style:normal;
  text-decoration:underline;
}

/* ---------- 多选（保留基本可用样式） ---------- */
.chosen-container-multi .chosen-choices{
  position:relative;
  overflow:hidden;
  margin:0;
  padding:0 5px;
  width:100%;
  height:auto !important;
  border:1px solid #d5cdb6;
  border-radius:5px;
  background-color:#fff;
  cursor:text;
}
.chosen-container-multi .chosen-choices li{
  float:left;
  list-style:none;
}
.chosen-container-multi .chosen-choices li.search-field{
  margin:0;
  padding:0;
  white-space:nowrap;
}
.chosen-container-multi .chosen-choices li.search-field input[type="text"]{
  margin:1px 0;
  padding:5px 0;
  height:25px;
  outline:0;
  border:0 !important;
  background:transparent !important;
  box-shadow:none;
  color:#555;
  font-size:13px;
}
.chosen-container-multi .chosen-choices li.search-choice{
  position:relative;
  margin:3px 5px 3px 0;
  padding:3px 20px 3px 6px;
  border:1px solid #e5ddc9;
  border-radius:3px;
  background-color:#faf6ea;
  color:#555;
  font-size:12px;
  line-height:14px;
  cursor:default;
}
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close{
  position:absolute;
  top:4px;
  right:3px;
  display:block;
  width:12px;
  height:12px;
  font-size:1px;
  line-height:1;
}
.chosen-container-multi .chosen-results{ margin:0; padding:0; }

/* ---------- 禁用态 ---------- */
.chosen-container.chosen-disabled{
  opacity:0.5 !important;
  cursor:default;
}
.chosen-container.chosen-disabled .chosen-single{ cursor:default; }
.chosen-container.chosen-disabled .chosen-choices .search-choice .search-choice-close{ cursor:default; }
