.tab,
.tab-no-js {
  display: flex;
  justify-content: center;
  flex-direction: row;
}

.vertical .tab {
  flex-direction: column;
  max-width: 25%;
  float: left;
  margin-right: 32px;
  margin-top: 96px !important;
  justify-content: flex-start;
}

.vertical .tab-content-view h3 {
  font-size: 32px;
  line-height: 38.4px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 32px;
}

.vertical .tab-content-view .product-header {
  margin-bottom: 0;
}

.vertical .tab-content-view .product-header h3 {
  text-align: left;
  font-size: 18px;
  margin-bottom: 0;
}

.vertical .tab-content-view .owner .info-owner .owner-img {
  width: 64px;
  height: 64px;
  min-width: 64px;
  background-size: cover;
  margin-right: 16px;
}

.vertical .tab-content-view p {
  font-size: 18px;
  line-height: 28.8px;
  font-weight: 400;
}

.vertical .tab button {
  text-align: left;
  background-color: var(--second-background-color);
  border-bottom: none;
  margin-bottom: 1px;
  padding: 14px 54px 14px 16px;
  line-height: 27.2px;
  font-size: 16px;
  font-weight: 400;
  color: var(--secondary-font-color);
  background-image: url(../images/angle-right.svg);
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.vertical .tab button.active,
.vertical .tab button:hover {
  background-color: var(--secondary-font-color) !important;
  color: #ffffff !important;
  border: none;
  font-weight: 400;
}

.vertical .tab button:first-of-type {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.vertical .tab button:last-of-type {
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.tab button,
.tab-no-js button {
  background-color: inherit;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 15px 16px;
  transition: 0.3s;
  border-bottom: 1px solid #e2e4e9;
  width: auto;
  font-size: 14px;
  color: #a7afbe;
  flex: 1;
}

.tab button:hover,
.tab-no-js button:hover {
  border-bottom: 1px solid var(--primary-font-color);
}

.tab button.active,
.tab-no-js button.active {
  border-bottom: 2px solid var(--primary-font-color);
  color: var(--secondary-font-color);
  font-weight: 600;
}

.tab-content-view {
  display: none;
}

.vertical .tab-content-view {
  max-width: 70%;
  width: 100%;
  margin-top: 96px;
  float: right;
}

.tab-content-view {
  animation: fadeEffect 1s;
}

.tab-content-view .two-columns {
  margin-top: 64px;
}

@keyframes fadeEffect {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.tab-content-view ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  margin-top: 60px;
}

.tab-content-view .main.product:last-of-type .product-section {
  border-bottom: none;
}

.tab-content-view .product-header h3,
.tab-content-view .product-header.pin-header h3 {
  margin-bottom: 32px;
}

.hidden-area .content-to-hidden {
  display: none;
}

.show-area .content-to-hidden .header-content-to-hidden {
  font-weight: 600;
  font-size: 32px;
  line-height: 120%;
  margin-bottom: 32px;
}

.tab-content-view .show-area ul {
  margin-top: 30px;
}

ul.downloadable {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.tab-content-view ul.downloadable {
  margin: 64px 0 0 0;
}

/* Akapit (np. link „Polityka dobroczynności…") wstawiony w zakładce tuż nad listą plików —
   bez tego 64 px marginesu listy odkleja go od niej (Ład korporacyjny na /o-firmie/). */
.tab-content-view > p + .compare-info + .main.product ul.downloadable {
  margin-top: 16px;
}

ul.downloadable li {
  display: flex;
  background: var(--second-background-color);
  border-radius: 8px;
  flex-direction: row;
  justify-content: space-between;
  padding: 18px 7px 10px 18px;
  align-items: center;
  margin-bottom: 4px;
}

ul.downloadable li span {
  font-size: 14px;
  font-weight: normal;
}

ul.downloadable li>span {
  display: flex;
  flex-direction: row;
  align-items: center;
}

ul.downloadable li span.date {
  color: #a7afbe;
  min-width: 95px;
}

ul.downloadable li span.ico-type {
  width: 28px;
  height: 28px;
  margin-right: 16px;
  background: url("../images/file.svg") no-repeat left top;
}

ul.downloadable li span.ico-type img {
  display: none;
}

ul.downloadable li span.ico-type-pdf {
  background: none;
}

ul.downloadable li span.ico-type-pdf img {
  display: inline-block;
}

ul.downloadable li span.title {
  font-weight: 600;
}

ul.downloadable li span.sub-title {
  text-align: right;
  padding-right: 13px;
}

ul.downloadable li span.ico-download {
  min-width: 30px;
}

ul.downloadable .checkbox-container .checkmark {
  margin-top: -8px;
}

.tab-content-view .checkbox-container {
  padding-left: 40px;
}

.content {
  position: relative;
}

.older-box {
  margin: 64px 0;
  width: 100%;
  position: relative;
}

.older-box .separator {
  border-top: 1px solid #e2e4e9;
  position: absolute;
  width: 100%;
  top: 11px;
  z-index: -1;
}

.older {
  background-color: #fff;
  color: var(--primary-font-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  margin: 0 auto;
  display: block;
  border: none;
  cursor: pointer;
  padding: 0 8px;
}

.older .fa {
  vertical-align: middle;
  margin-bottom: 3px;
  transition: transform 0.3s;
  transform: rotate(0);
  color: inherit;
}

.show-area .older .fa {
  transition: transform 0.3s;
  transform: rotate(180deg);
}

.older span {
  color: inherit;
  text-decoration: inherit;
  font-weight: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0 8px;
}

.hidden-area .older .state2,
.show-area .older .state1 {
  display: none;
}

.tab button.opendropdown {
  display: none;
}

.tab-content-view h2 {
  display: none;
}

@media only screen and (max-width: 768px) {
  .tab {
    position: relative;
    flex-direction: column;
    height: 54px;
    overflow: hidden;
    justify-content: space-between;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-box-pack: justify;
    margin: 20px auto 0;
  }

  .tab-content-view .two-columns {
    margin-bottom: 16px !important;
  }

  .tab.open {
    height: auto !important;
  }

  .tab button, .tab-no-js button {
    padding: 15px 6px;
  }

  .tab button {
    width: initial;
    -webkit-box-flex: 0;
    flex: 0 0 auto;
    padding: 16px 6px 14px 6px;
  }

  .tab button.active,
  .tab button.active:hover {
    justify-content: space-between;
    display: block;
    color: var(--secondary-font-color);
    font-weight: 600;
    border-bottom: 1px solid var(--primary-font-color);
    color: #fff;
    background-color: var(--primary-font-color);
    border-radius: 8px;
    -webkit-box-ordinal-group: -1;
    order: -1;
    transition: transform 0.3s;
    position: relative;
  }

  .tab button.active,
  .tab button.active:hover {
    background-color: transparent;
    color: var(--secondary-font-color);
    border-bottom: 1px solid var(--primary-font-color);
    border-radius: 0;
  }

  .tab button.active:after {
    display: none;
  }

  .tab .dropdown-arrow {
    position: absolute;
    top: 0;
    width: 100%;
    height: 46px;
  }

  .tab button.active:after,
  .tab button.active:before,
  .tab.compare-funds .dropdown-arrow:after,
  .tab.compare-funds .dropdown-arrow:before {
    position: initial;
    right: 12px;
    top: 18px;
    content: "\f078";
    font-size: inherit;
    font-family: "FontAwesome";
    color: var(--primary-font-color);
    display: inline-block;
    transition: transform 0.3s;
    transform: rotate(0);
  }

  .vertical .tab button:before {
    display: none;
  }

  .tab button.active:after {
    margin-left: 10px;
  }

  .tab button.active:before {
    margin-right: 10px;
  }
  .tab.compare-funds button.active:after {
    display: none;
  }

  .tab.open button.active:after,
  .tab.open button.active:before,
  .tab.compare-funds.open .dropdown-arrow:after,
  .tab.compare-funds.open .dropdown-arrow:before {
    transition: transform 0.3s;
    transform: rotate(180deg);
  }

  .tab-content-view h2 {
    display: block;
    margin-bottom: -10px;
    margin-top: 30px;
  }

  .tab-content-view ul {
    margin-top: 25px;
  }

  ul.downloadable {
    margin-top: 16px !important;
    padding-bottom: 20px;
    background: var(--second-background-color);
  }

  ul.downloadable li {
    padding: 15px 28px;
    justify-content: normal;
    align-items: flex-start;
    flex-wrap: wrap;
    position: relative;
    border-radius: 0;
    margin-bottom: 0;
  }

  ul.downloadable li .checkbox-container {
    padding-left: 0;
    position: absolute;
    top: 26px;
  }

  ul.downloadable li .checkbox-container .checkmark {
    margin-top: 0;
  }

  ul.downloadable li>span:last-of-type {
    bottom: 10px;
    right: 24px;
    display: block;
    justify-content: flex-end;
    position: relative;
    margin-left: 62px;
    margin-top: 5px;
  }

  ul.downloadable li span.ico-type,
  ul.downloadable li span.date,
  ul.downloadable li span.title,
  ul.downloadable li span.sub-title,
  ul.downloadable li span.ico-download {
    /*width: 50%;*/
    padding: 0;
    order: 2;
  }

  ul.downloadable li span.sub-title {

  }

  ul.downloadable li span.ico-type,
  ul.downloadable li span.date {
    /*width: 25%;*/
  }

  ul.downloadable li span.date {
    width: auto;
    margin-right: auto;
    margin-top: 30px;
    position: absolute;
    bottom: 0;
    left: 98px;
  }

  ul.downloadable li span.ico-type {
    margin: 0 7px;
  }

  ul.downloadable li span.title {
    order: 1;
    position: relative;
    left: 0;
    margin-bottom: 10px;
    margin-top: 10px;
    margin-left: 38px;
    margin-right: auto;
  }

  ul.downloadable li span.ico-download {
    /*width: 20%;*/
    text-align: right;
    order: 1;
    position: absolute;
    right: 0;
    bottom: -36px;
  }

  ul.downloadable li span.ico-download a {
    display: block;
    padding: 5px;
  }

  .show-area .content-to-hidden .header-content-to-hidden {
    text-align: center;
  }

  ul.downloadable li>span {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  ul.downloadable li span.ico-type {
    margin-left: 36px;
    margin-top: 0;
    position: absolute;
    bottom: -8px;
    height: 30px;
  }

  .vertical .tab {
    max-width: 100%;
    margin-top: 20px !important;
    margin-right: 0;
  }

  .vertical .tab button {
    background-image: none;
  }

  .vertical .tab-content-view {
    max-width: 100%;
  }

  .tab-content-view .content {
    margin: 0;
  }

  .vertical .tab button {
    line-height: initial;
  }

  .vertical .tab button.active,
  .vertical .tab button:hover {
    border-radius: 8px;
  }
}

@media only screen and (min-width: 769px) {
  .tab.tab-button {
    margin-top: 64px;
    margin-bottom: 64px;
  }

  .tab.tab-button button {
    border-bottom: none;
    border: 1px solid #d3d7de;
    box-sizing: border-box;
    border-radius: 9px;
    font-weight: 600;
    font-size: 16px;
    line-height: 170%;
    padding: 10px 5px;
    margin-right: 8px;
    justify-content: space-between;
    color: var(--secondary-font-color);
  }

  .tab.tab-button button:last-child {
    margin-right: 0;
  }

  .tab.tab-button button.active,
  .tab.tab-button button:hover {
    color: #fff;
    background-color: var(--primary-font-color);
    border-color: var(--primary-font-color);
  }

  .tab.no-simetric button {
    flex: auto;
  }

  ul.downloadable li>span:first-child {
    flex: 3;
  }

  ul.downloadable li>span:last-child {
    flex: 1;
    justify-content: flex-end;
  }
}