
*,
*:after,
*:before { box-sizing: border-box; }

.tabs {
  list-style: none;
  background: #27ae60;
  position: relative;
  padding: 0 25px;
  color: #fff;
}

.tabs:after {
  content: '';
  width: 100%;
  height: 5px;
  background: #FFF;
  position: absolute;
  z-index: 5;
  bottom: -5px;
  left: 0;
  border-top: 1px solid #a5a5a5;
}

.tab {
  display: inline-block;
  width: 175px;
  height: 26px;
  background: #2ecc71;
  padding: 5px 10px;
  position: relative;
  border-top: 1px solid #728cad;
  margin-right: 6px;
  font-size: 0;
}

.tab > span {
  font-family: sans-serif;
  font-size: 14px;
}

.tab:before,
.tab:after {
  content: '';
  width: 8px;
  height: 27px;
  background: #2ecc71;
  position: absolute;
  top: 0;
  border-radius: 4px 4px 0 0;
}

.tab:before {
  left: -5px;
  border-left: 1px solid #728cad;
  z-index: 3;
  -webkit-transform: rotate(15deg);
  -moz-transform: rotate(15deg);
  -ms-transform: rotate(15deg);
  -o-transform: rotate(15deg);
  transform: rotate(15deg);
}

.tab:after {
  right: -5px;
  border-right: 1px solid #728cad;
  z-index: 4;
  -webkit-transform: rotate(-15deg);
  -moz-transform: rotate(-15deg);
  -ms-transform: rotate(-15deg);
  -o-transform: rotate(-15deg);
  transform: rotate(-15deg);
}

.tab.active {
  background: #fff;
  border-bottom: 1px solid #fff;
  height: 27px;
  margin-bottom: -1px;
  z-index: 10;
  color: #000;
}

.tab.active:before,
.tab.active:after { background: #fff; }

button.close {
  padding: 0;
  cursor: pointer;
  background: 0 0;
  border: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.close {
  position: absolute;
  right: 5px;
  top: 5px;
  font-size: 20px;
  font-weight: 700;
  line-height: 0;
  width: 16px;
  height: 16px;
  color: #000;
  text-shadow: 0 1px 0 #FFF;
  opacity: .2;
  filter: alpha(opacity=20);
  border-radius: 16px;
}

.close:hover,
.close:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  opacity: .5;
  filter: alpha(opacity=50);
  background: red;
  font-weight: normal;
  text-shadow: none;
}

.tab-content { }

.tab-pane { display: none; }

.tab-pane.active { display: block; }
