/*  
    downloads-product-list-container
    downloads-product-list-content
    downloads-product-button-handler
    downloads-product-button-handler-list
*/

#downloads-firmaware {
  display: grid;
  grid-template-columns: 700px 1fr;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

#downloads-firmaware p {
  margin-bottom: 0;
}

.downloads-product-sidebar-content,
.downloads-product-change-log-area {
  padding: 25px;
  display: flex;
  flex-direction: column;

  background: #eeeeee;
  height: min-content;
  width: 100%;
}

.downloads-product-change-log-container.loading {
  filter: brightness(85%);
}

.downloads-product-change-log-container.loading + .simple-spinner {
  display: flex;
}

.downloads-product-app-item-container {
  border-bottom: 1px solid;
  margin-top: 30px;
  padding-bottom: 15px;
}

.downloads-product-app-item-container:last-child {
  border-bottom: 0;
}

.downloads-product-button-handler {
  display: flex;
  gap: 15px;
  align-items: center;
  cursor: pointer;
  color: var(--primary-color);
}

.downloads-product-button-handler {
  transition: 100ms ease-in-out;
}

.downloads-product-button-handler.hidden {
  color: #000;
}

.downloads-product-button-handler-list i {
  transform: rotate(180deg);
}

.downloads-product-button-handler-list.hidden i {
  transform: rotate(-90deg);
}

.downloads-product-button-open-change-log.hidden i {
  display: none;
}

.downloads-product-button-open-change-log i {
  transform: rotate(-180deg);
}

.downloads-products-changelog-slug {
  color: var(--primary-color);
  font-weight: 700;
}

.downloads-product-list-container {
  transition: 100ms ease-in-out;
  margin-left: 150px;
}

.downloads-product-list-container.kernel-list {
  margin-left: 250px;
}

.downloads-product-list-container.hidden,
.downloads-product-list-container.hidden * {
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  width: 0 !important;
  font-size: 0 !important;
}

.downloads-product-list-content {
  display: flex;
  flex-direction: column;
}

.downloads-products-changelog-btn-download {
  border: 0;
  padding: 10px;
  background: #438700;
  margin-top: 10px;
  width: auto !important;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
}

.downloads-products-changelog-btn-download i {
  font-size: 25px;
}

.downloads-products-changelog-download-size,
.downloads-products-changelog-download-hash {
  font-size: 12px;
}

.downloads-products-changelog-details-title-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.downloads-products-changelog-details-title-container i {
  color: var(--primary-color);
  transform: rotate(90deg);
}

.downloads-products-changelog-details-title-container.collapsed i {
  color: var(--primary-color);
  transform: rotate(-90deg);
}

.downloads-products-changelog-details-text {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 0;
}

.change-log-list {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  list-style-type: none;
}

.change-log-list li {
  padding-left: 10px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;

  position: relative;
  margin-bottom: 2px;
  list-style: none;
  white-space: pre-wrap;
  text-wrap: wrap;
}

.downloads-product-change-log-container-table {
  width: 100%;
}

.downloads-product-change-log-container-table i {
  font-size: 20px;
  color: var(--primary-color);
  cursor: pointer;
}

.downloads-product-change-log-container-table,
.downloads-product-change-log-container-table th,
.downloads-product-change-log-container-table td {
  font-size: 14px;
  text-align: center;
}

.downloads-product-security-firmware-container {
  color: var(--primary-color);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.downloads-product-security-firmware-container i {
  font-size: 20px;
  margin-right: 10px;
}

.download-products-share-link {
  color: var(--primary-color);
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 1200px) {
  #downloads-firmaware {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
  }

  .downloads-product-sidebar-container {
    overflow: auto;
  }

  .downloads-product-sidebar-content {
    min-width: 700px;
  }
}

.simple-spinner {
  width: 30px;
  height: 30px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

.simple-spinner span {
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid transparent;
  border-radius: 50%;
  border-right-color: rgba(56, 56, 56, 0.7);
  animation: spinner-anim 0.8s linear infinite;
}

@keyframes spinner-anim {
  from {
    transform: rotate(0);
  }
  to {
    transform: rotate(360deg);
  }
}
