﻿.tabs {
  position: relative;
}
.tabs > input {
  opacity: 0;
  position: absolute;
  left: 0;
  top: 0;
}

.tabs-nav::after {
  content: "";
  display: table;
  clear: both;
}
.tabs-nav--center .tabs-nav {
  text-align: center;
}
.tabs-nav label {
  user-select: none;
  float: left;
  padding: 0 20px;
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}
.tabs-nav--center label {
  display: inline-block;
  float: none;
}
.tabs-nav-extra {
  float: right;
  line-height: 27px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.6);
}
.tabs-content .tab-panel {
  display: none;
}
.tabs-card .tabs-nav {
  height: 48px;
  line-height: 48px;
}
.tabs-card label {
  border-radius: 8px 8px 0 0;
}
.tabs-default label {
  padding-bottom: 21px;
  position: relative;
}
.tabs-vertical {
  display: flex;
}
.tabs-vertical label {
  width: 208px;
  line-height: 60px;
  text-align: center;
  float: none;
  display: block;
  background: #F2F2F2;
  color: rgba(0,0,0,0.85);
}
.tabs-vertical label + label {
  margin-top: 12px;
}
.tabs-default label::before {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  border-bottom: 4px solid #c50001;
}
.tabs-card .tabs-content {
  background: #fef8f3;
  border-radius: 0 0 8px 8px;
}
.tabs-default .tabs-nav {
  border-bottom: 1px solid #d9d9d9;
}
.tabs > input:nth-of-type(1):checked ~ .tabs-nav label:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tabs-nav label:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tabs-nav label:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tabs-nav label:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .tabs-nav label:nth-of-type(5),
.tabs > input:nth-of-type(6):checked ~ .tabs-nav label:nth-of-type(6),
.tabs > input:nth-of-type(7):checked ~ .tabs-nav label:nth-of-type(7),
.tabs > input:nth-of-type(8):checked ~ .tabs-nav label:nth-of-type(8) {
  color: #c50001;
  font-weight: bold;
}
.tabs-card > input:nth-of-type(1):checked ~ .tabs-nav label:nth-of-type(1),
.tabs-card > input:nth-of-type(2):checked ~ .tabs-nav label:nth-of-type(2),
.tabs-card > input:nth-of-type(3):checked ~ .tabs-nav label:nth-of-type(3),
.tabs-card > input:nth-of-type(4):checked ~ .tabs-nav label:nth-of-type(4),
.tabs-card > input:nth-of-type(5):checked ~ .tabs-nav label:nth-of-type(5) {
  background: #fef8f3;
}
.tabs-vertical> input:nth-of-type(1):checked ~ .tabs-nav label:nth-of-type(1),
.tabs-vertical> input:nth-of-type(2):checked ~ .tabs-nav label:nth-of-type(2),
.tabs-vertical> input:nth-of-type(3):checked ~ .tabs-nav label:nth-of-type(3),
.tabs-vertical> input:nth-of-type(4):checked ~ .tabs-nav label:nth-of-type(4),
.tabs-vertical> input:nth-of-type(5):checked ~ .tabs-nav label:nth-of-type(5),
.tabs-vertical> input:nth-of-type(6):checked ~ .tabs-nav label:nth-of-type(6){
  background: rgba(197,0,1,0.10);
  border-left: 4px solid #c50001;
}
.tabs-default
  > input:nth-of-type(1):checked
  ~ .tabs-nav
  label:nth-of-type(1)::before,
.tabs-default
  > input:nth-of-type(2):checked
  ~ .tabs-nav
  label:nth-of-type(2)::before,
.tabs-default
  > input:nth-of-type(3):checked
  ~ .tabs-nav
  label:nth-of-type(3)::before,
.tabs-default
  > input:nth-of-type(4):checked
  ~ .tabs-nav
  label:nth-of-type(4)::before,
.tabs-default
  > input:nth-of-type(5):checked
  ~ .tabs-nav
  label:nth-of-type(5)::before {
  transition: all 0.2s linear;
  right: 0;
}

.tabs > input:nth-of-type(1):checked ~ .tabs-content .tab-panel:nth-of-type(1),
.tabs > input:nth-of-type(2):checked ~ .tabs-content .tab-panel:nth-of-type(2),
.tabs > input:nth-of-type(3):checked ~ .tabs-content .tab-panel:nth-of-type(3),
.tabs > input:nth-of-type(4):checked ~ .tabs-content .tab-panel:nth-of-type(4),
.tabs > input:nth-of-type(5):checked ~ .tabs-content .tab-panel:nth-of-type(5),
.tabs > input:nth-of-type(6):checked ~ .tabs-content .tab-panel:nth-of-type(6),
.tabs > input:nth-of-type(7):checked ~ .tabs-content .tab-panel:nth-of-type(7),
.tabs > input:nth-of-type(8):checked ~ .tabs-content .tab-panel:nth-of-type(8) {
  display: block;
}
