[data-page-name="account_history"] .account-info-col {
  margin-top: 0;
}

#account-history .panel {
  margin-bottom: 20px;
}

#account-history .panel-default {
  border-color: #f4f4f4;
  border-radius: 5px;
  border-width: 1.5px;
}

#account-history .panel-heading {
  padding: 0 !important;
  background-color: transparent;
  cursor: pointer;
}

#account-history .panel-heading span,
#account-history .panel-heading div {
  font-size: 14px;
}

#account-history .panel-heading .order-id {
  font-size: 12px;
}

#account-history .panel-heading > div {
  display: flex;
  justify-content: space-between;
  padding: 35px 40px;
} 

#account-history img {
  max-width: 60px;
  max-height: 75px;
}

#account-history .panel-header-products {
  display: flex;
  align-items: center;
  gap: 40px;
}

#account-history .panel-header-products svg {
  font-size: 24px;
  transition: all .3s ease;
}

#account-history .panel-header-products-img {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 210px;
}

#account-history .collapse.in .panel-body {
  border-top-color: #fff; 
}

#account-history .panel-title:not(.collapsed) svg {
  transform: rotate(180deg);
}

#account-history .panel-title:not(.collapsed) {
  padding-bottom: 0;
}

#account-history .panel-title:not(.collapsed) .order-total,
#account-history .panel-title:not(.collapsed) .panel-header-products-img {
  visibility: hidden;
}

#account-history .count-products {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  width: 50px;
  border: 1.5px solid #f4f4f4;
  font-size: 18px !important;
}

#account-history .panel-body {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 0 40px 40px;
  font-size: 14px;
}

#account-history .panel-body:before,
#account-history .panel-body:after {
  display: none;
}

#account-history h4 {
  font-size: 14px;
  color: var(--color-grey-light);
  font-weight: 700;
}

#account-history ul {
  margin: 0;
  list-style: none;
}

#account-history ul li {
  margin-bottom: 2px;
}

#account-history .product-info {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
}

#account-history .product-info img {
  margin-right: 5px;
}                                 

#account-history .product-info > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
}

#account-history .product-info .product-details {
  display: flex;
  gap: 20px;
}

#account-history .product-info .product-details > div {
  display: flex;
  flex-direction: column;
  align-items: center
}

#account-history .product-review {
  width: 100%;
}

#account-history .product-review .btn {
  display: flex;
  align-items: center;
  max-width: 140px;
  margin-left: auto;
  background-color: #999;
}

#account-history .actions {
  margin-top: 40px;
}

#account-history .actions .btn {
  margin-left: auto;
}

#account-history .order-info ul li {
  display: flex;
  justify-content: space-between;
}

#account-history .order-details {
  max-width: 330px;
}

@media (max-width: 768px) {
  #account-history .panel-heading > div {
    padding: 25px;
  }

  #account-history .panel-body {
    flex-direction: column;
    padding: 0 25px 25px;
  }
  #account-history .panel-title {
    position: relative;
    flex-direction: column;
    gap: 20px;
  }

  #account-history .panel-title svg {
    position: absolute;
    top: 20px;
    right: 20px;
  }

  #account-history .products-details h4 {
    margin-bottom: 20px;
  }

  #account-history .products-details .product-details {
    margin: 0 auto;
  }

  #account-history .panel-title:not(.collapsed) .order-total,
  #account-history .panel-title:not(.collapsed) .panel-header-products-img {
    display: none;
  }

  #account-history .product-review .btn,
  #account-history .panel-body .btn {
    max-width: unset;
    width: 100%;
    margin: 0;
  }
}