/* Downloads page styles - matching live sabiana.it */
#downloads h1 {
  font-size: 60px;
  color: #58595b;
}

#downloads h3.header {
  background: #404041;
  font-size: 48px;
  color: #ffffff;
  padding: 10px 0;
}

#downloads .product_category {
  background: #f7f7f7;
  font-size: 16px;
  height: 70px;
  font-weight: bold;
  margin-bottom: 4px;
  padding: 5px 15px;
}

#downloads .product_category i {
  margin: 0 10px;
}

/* Icon colors matching live site variables */
#downloads .product_category i.icon-unit-heaters { color: #f98787; }
#downloads .product_category i.icon-radiant-panels { color: #f4ac90; }
#downloads .product_category i.icon-fan-coils { color: #80d6ed; }
#downloads .product_category i.icon-air-handling-units { color: #629ff9; }
#downloads .product_category i.icon-recovery-units { color: #c5d984; }
#downloads .product_category i.icon-filters { color: #80ca96; }
#downloads .product_category i.icon-stainless-steel-flues { color: #aaaaaa; }
#downloads .product_category i.icon-evaporative-coolers { color: #80d6ed; }
#downloads .product_category i.icon-radiant-systems { color: #f4ac90; }
#downloads .product_category i.icon-other-products { color: #f9ce64; }
#downloads .product_category i.icon-fan-convector { color: #85CEE4; }

#downloads .product_category span {
  margin-top: 16px;
}

#downloads .product_category a {
  color: #58595b;
  cursor: pointer;
  display: block;
  line-height: 60px;
}

#downloads .product_category a div {
  float: left;
}

#downloads .product_category a .name {
  margin-top: 10px;
  max-width: 145px;
}

#downloads .product_category a .arrow {
  float: right;
}

#downloads .download_product {
  height: 35px;
  padding: 0 15px;
  background: #f7f7f7;
  font-size: 16px;
  font-weight: normal;
  border-bottom: 1px solid #808080;
}

#downloads .download_product span:not(.glyphicon) {
  margin-top: 8px;
}

#downloads .download_product a {
  display: block;
  color: #58595b;
  cursor: pointer;
  line-height: 35px;
}

#downloads .download_product a span:not(.glyphicon) {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

#downloads .download_category {
  height: 35px;
  padding: 0 15px;
  background: #f7f7f7;
  font-size: 16px;
  font-weight: normal;
  border-bottom: 1px solid #808080;
}

#downloads .download_category span:not(.glyphicon) {
  margin-top: 4px;
  display: inline-block;
  max-width: 235px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

#downloads .download_category a {
  display: block;
  color: #58595b;
  cursor: pointer;
  margin-left: 10px;
  line-height: 35px;
}

#downloads .download_files {
  padding: 0 15px;
  background: #ddd;
  font-size: 16px;
  font-weight: normal;
  border-bottom: 1px solid #404041;
}

#downloads .download_files span:not(.glyphicon) {
  margin-top: 8px;
  display: inline-block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

#downloads .download_files a {
  display: block;
  color: #58595b;
  cursor: pointer;
  padding: 5px 0;
}

#downloads .download_files p {
  padding: 5px 0;
  margin: 0;
}

.other_downloads div {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid #808080;
  padding: 15px 10px;
}

.other_downloads div a {
  display: inline-block;
  max-width: 310px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #58595b;
}

.other_downloads div span {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.other_downloads div i {
  margin-top: -10px;
}

/* Chevron rotation on expand */
#downloads .glyphicon-chevron-right {
  transition: transform 0.3s;
  line-height: inherit;
}

#downloads [aria-expanded="true"] > .glyphicon-chevron-right,
#downloads a[aria-expanded="true"] .glyphicon-chevron-right {
  transform: rotate(90deg);
}

/* Plus to minus on expand */
#downloads .download_category a[aria-expanded="true"] .glyphicon-plus:before {
  content: "\2212";
}

/* Responsive */
@media only screen and (min-width: 768px) {
  #downloads .product_category a .name {
    max-width: 300px;
  }
}

@media only screen and (max-width: 1199px) {
  #downloads .product_category a {
    line-height: normal;
    padding: 5px 0;
  }
}

/* New categories */
#downloads .product_category i.icon-controls-accessories { color: #9b59b6; }
#downloads .product_category i.icon-associated-brands { color: #e67e22; }

/* Desktop: flexbox for arrow alignment */
@media only screen and (min-width: 1200px) {
  #downloads .product_category a {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  #downloads .product_category a i {
    flex-shrink: 0;
  }
  #downloads .product_category a .glyphicon-chevron-right {
    margin-left: auto;
    float: none;
    flex-shrink: 0;
  }
}

/* Smooth accordion animation */
#downloads .collapsing {
  transition: height 0.35s ease;
  overflow: hidden;
}
