/* Custom Select Dropdown - Bypasses Safari WebKit PAC_FAIL bug */

.cs-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.cs-trigger {
  display: block;
  width: 100%;
  height: 34px;
  padding: 6px 30px 6px 12px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  margin-bottom: 15px;
}

.cs-trigger:hover {
  border-color: #aaa;
}

.cs-trigger:focus {
  border-color: #002b80;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

.cs-trigger:after {
  content: "";
  position: absolute;
  right: 10px;
  top: 14px;
  border: 5px solid transparent;
  border-top: 6px solid #555;
  pointer-events: none;
}

.cs-wrap.open .cs-trigger:after {
  border-top: 0;
  border-bottom: 6px solid #555;
}

.cs-opts {
  position: fixed;
  z-index: 99999;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.cs-wrap.open .cs-opts {
  display: block;
}

.cs-opt {
  padding: 4px 12px;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  white-space: nowrap;
}

.cs-opt:before {
  content: "";
  display: inline-block;
  width: 16px;
}

.cs-opt:hover,
.cs-opt.hl {
  background: #002b80;
  color: #fff;
}

.cs-opt.sel:before {
  content: "✓";
  width: 16px;
}

select.cs-hidden {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

body.cs-open {
  overflow: hidden !important;
}
