/* ----------------------------------
* Tabs
* ---------------------------------- */

.bb-tablist:before {
  content: "";
  position: absolute;
  bottom: 4.5rem;
  left: 0;
  width: 100%;
  height: 0;
  border-top: 0.1rem solid rgba(189,189,189, 0.2);
}

.bb-tablist {
  display: flex;
  align-items: flex-end;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 0;
}

.bb-tablist > li {
  -moz-box-sizing: content-box;
  margin: 0;
  padding: 0;
  height: 4.5rem;
  background-color: #ffffff;
  list-style: none;
  pointer-events: all;
  flex: 1 1 0;
}

.bb-tablist > li > a,
.bb-tablist > li > button {
  position: relative;
  -moz-box-sizing: content-box;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: #5f5f5f;
  font-size: 1.6rem;
  text-decoration: none;
  text-align: center;
  line-height: 4.5rem;
  border: 0;
  background-color: transparent;
  background-size: 3rem auto;
  background-repeat: no-repeat;
  outline: none;
}

.bb-tablist > li > button {
  background-image: none;
}

.bb-tablist > li > button::-moz-focus-inner {
  border: none;
  outline: none;
}

.bb-tablist > li > .icon {
  font-size: 0;
  background-position: 50% 0;
}

.bb-tablist > li > a:active,
.bb-tablist > li > button:active {
  border-radius: 0;
  background-color: #00aacc;
}

/* ----------------------------------
 * Skin: dark
 * ---------------------------------- */
.bb-tablist.skin-dark:before {
  border-color: rgba(189,189,189, 0.1);
}

.bb-tablist.skin-dark > li:before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4.5rem;
  background-color: #000000;
  z-index: -1;
}

.bb-tablist.skin-dark > li {
  background-color: transparent;
}

.bb-tablist.skin-dark > li > a,
.bb-tablist.skin-dark > li > button {
  color: #ffffff;
  background-color: transparent;
}

.bb-tablist.skin-dark > li > a:active,
.bb-tablist.skin-dark > li > button:active {
  background-color: rgb(0,170,204);
}

/* Selected state */
.bb-tablist > li > a:after,
.bb-tablist > li > button:after {
  display: none;
}

.bb-tablist > li > a:target,
.bb-tablist > li > button:target,
.bb-tablist > li > a[aria-selected="true"],
.bb-tablist > li > button[aria-selected="true"] {
  color: #00aacc;
  font-weight: 500;
  background-position: 50% 100%;
}

.bb-tablist > li > a:target:after,
.bb-tablist > li > button:target:after,
.bb-tablist > li > a[aria-selected="true"]:after,
.bb-tablist > li > button[aria-selected="true"]:after {
  display: inline-block;
  content: "";
  position: absolute;
  width: 100%;
  left: 0;
  height: calc(100% - 0.3rem);
  border-bottom: 0.3rem solid rgba(0,202,242, 0.75);
}

.bb-tablist > li > a:target:active,
.bb-tablist > li > button:target:active {
  color: #5f5f5f;
  background-position: 50% 0;
}

.bb-tablist > li > a:target:active:after,
.bb-tablist > li > button:target:active:after,
.bb-tablist.skin-dark > li > a:target:active:after,
.bb-tablist.skin-dark > li > button:target:active:after {
  border-bottom-color: transparent;
}

.bb-tablist.skin-dark > li > a:target:active,
.bb-tablist.skin-dark > li > button:target:active,
.bb-tablist.skin-dark > li > a[aria-selected="true"]:active,
.bb-tablist.skin-dark > li > button[aria-selected="true"]:active {
  color: #ffffff !important;
}

.bb-tablist.skin-dark > li > a:target:after,
.bb-tablist.skin-dark > li > button:target:after {
  border-bottom-color: rgba(0,202,242, 0.75);
}

/* Disabled state */
.bb-tablist > li[aria-disabled="true"] > a,
.bb-tablist > li[aria-disabled="true"] > button,
.bb-tablist > li[disabled] > a,
.bb-tablist > li[disabled] > button,
.bb-tablist > li > a[aria-disabled="true"],
.bb-tablist > li > button[aria-disabled="true"],
.bb-tablist > li > a[disabled],
.bb-tablist > li > button[disabled] {
  color: #333333;
  opacity: 0.25;
  pointer-events: none;
}

.bb-tablist.skin-dark > li[aria-disabled="true"] > a,
.bb-tablist.skin-dark > li[aria-disabled="true"] > button,
.bb-tablist.skin-dark > li[disabled] > a,
.bb-tablist.skin-dark > li[disabled] > button,
.bb-tablist.skin-dark > li > a[aria-disabled="true"],
.bb-tablist.skin-dark > li > button[aria-disabled="true"],
.bb-tablist.skin-dark > li > a[disabled],
.bb-tablist.skin-dark > li > button[disabled] {
  opacity: 0.35;
}

.bb-tablist .bb-tabpanel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 4.5rem;
  left: 0;
  visibility: hidden;
  z-index: -2;
  overflow: auto;
}

.bb-tablist :target ~.bb-tabpanel,
.bb-tablist [aria-selected="true"] ~.bb-tabpanel {
  z-index: -1;
  visibility: visible;
}

/* ----------------------------------
 * Filters
 * ---------------------------------- */

.bb-tablist[data-type="filter"] {
  display: flex;
  position: relative;
  height: 4rem;
}

.bb-tablist[data-type="filter"] > li {
  height: 4rem;
  background: none;
}

.bb-tablist[data-type="filter"] > li > a,
.bb-tablist[data-type="filter"] > li > button {
  height: 3.9rem;
  border: none;
}

.bb-tablist[data-type="filter"].bottom  > li > a,
.bb-tablist[data-type="filter"].bottom  > li > button {
  top: calc(100% - 4rem);
}

.bb-tablist[data-type="filter"] > li:before,
.bb-tablist[data-type="filter"] > li > a:target:after,
.bb-tablist[data-type="filter"] > li > button:target:after {
  display: none;
}

.bb-tablist[data-type="filter"] > li {
  color: #737272;
  text-align: center;
  border-left: 0.1rem solid #b6b6b6;
}

.bb-tablist[data-type="filter"] > li > a,
.bb-tablist[data-type="filter"] > li > button {
  width: calc(100% - 1rem);
  padding: 0 0.5rem;
  color: #333333;
  line-height: 3.9rem;
  text-decoration: none;
  text-overflow: ellipsis;
  border-bottom: 0.1rem solid #b6b6b6;
  background-color: #eee;
}

.bb-tablist[data-type="filter"] > li:first-child {
  border-left: none;
}

/* Selected state */
.bb-tablist[data-type="filter"] > li > a:target,
.bb-tablist[data-type="filter"] > li > button:target,
.bb-tablist[data-type="filter"] > li > a[aria-selected="true"],
.bb-tablist[data-type="filter"] > li > button[aria-selected="true"] {
  color: #000000;
  background: #ffffff;
  border-bottom-color: transparent;
}

.bb-tablist[data-type="filter"] > li > a[aria-selected="true"]:after,
.bb-tablist[data-type="filter"] > li > button[aria-selected="true"]:after {
  display: none;
}

.bb-tablist[data-type="filter"] > li > a:active,
.bb-tablist[data-type="filter"] > li > button:active {
  color: #ffffff;
  background-color: #00aacc;
}

/* Skin Grey */
.bb-tablist[data-type="filter"].skin-grey > li {
  border-color: #a6a6a6;
}

.bb-tablist[data-type="filter"].skin-grey > li > a,
.bb-tablist[data-type="filter"].skin-grey > li > button {
  border-color: #a6a6a6;
  background-color: #cdcdcd;
}

.bb-tablist[data-type="filter"].skin-grey > li > a:target,
.bb-tablist[data-type="filter"].skin-grey > li > button:target,
.bb-tablist[data-type="filter"].skin-grey > li > a[aria-selected="true"],
.bb-tablist[data-type="filter"].skin-grey > li > button[aria-selected="true"] {
  border-bottom-color: #e7e7e7;
  background-color: #e7e7e7;
}

.bb-tablist[data-type="filter"].skin-grey > li > a:active,
.bb-tablist[data-type="filter"].skin-grey > li > button:active {
  border-color: #00aacc;
  background-color: #00aacc;
}


/* Position bottom */
.bb-tablist[data-type="filter"].bottom > li > a,
.bb-tablist[data-type="filter"].bottom > li > button {
  border-top: 0.1rem solid #a6a6a6;
  border-bottom: none;
}

.bb-tablist[data-type="filter"].bottom > li > a:target,
.bb-tablist[data-type="filter"].bottom > li > button:target,
.bb-tablist[data-type="filter"].bottom > li > a[aria-selected="true"],
.bb-tablist[data-type="filter"].bottom > li > button[aria-selected="true"] {
  border-top-color: transparent;
}

