/* Container for an individual order item in the order history */
.order-history-item {
}

/* Date element within an order item */
.order-history-item__date {
}

/* Container for products within an order item */
.order-history-item__products {
  display: grid;
  gap: 1rem;
}

.order-history-item__product {
  display: grid;
  grid-template-columns: 5fr 1fr;
  padding: 30px 0;
  border-bottom: 1px solid rgba(128, 128, 128, 0.114);
}

.order-history-item__product:last-of-type {
  border-bottom: none;
}

/* Container for information about each product */
.order-history-item__product-info {
  display: grid;
  grid-template-columns: 1fr 10fr;
  gap: 10px;
}

/* Product image */
.order-history-item__product-image {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 10px;
}

/* Container for product details such as name and characteristics */
.order-history-item__details {
  display: grid;
}

/* Container for main headline text of the product */
.order-history-item__headline {
  font-size: 16px;
  font-weight: 600;
  color: #ee575c;
}

/* Container for product characteristics */
.order-history-item__characteristics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: flex-end;
}

/* Product characteristic for body color */
.order-history-item__characteristic-color {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Label for characteristic, e.g., "Цвета корпуса" */
.order-history-item__characteristic-label {
  font-size: 12px;
  color: #8f8f8f;
}

/* Value for characteristic, e.g., color name */
.order-history-item__characteristic-value {
  display: flex;
  align-items: center;
}

/* Product quantity label, e.g., "Кол-во:" */
.order-history-item__quantity-label {
}

/* Quantity of product, e.g., "5 шт" */
.order-history-item__quantity-value {
}

/* Container for product price */
.order-history-item__price {
  font-size: 18px;
  color: #000;
  font-weight: 600;
}

.order-history-item__characteristic-color-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}

.order-history-item__quantity {
  color: #8f8f8f;
  font-size: 12px;
}

.order-history-item__characteristics-name {
  color: #8f8f8f;
  font-size: 12px;
}

@media (max-width: 600px) {
  .order-history-item__characteristics {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .order-history-item__product-info {
    grid-template-columns: 1fr 2fr;
  }

  .order-history-item__product {
    grid-template-columns: 4fr 1fr;
  }

  .order-history-item__delete {
    cursor: pointer;
    color: #acacac;
    fill: #acacac;
    stroke: #acacac;
    display: flex;
    justify-content: flex-end;
  }

  .order-history-item__delete:hover {
    color: #ee575c;
    fill: #ee575c;
    stroke: #ee575c;
  }

  .order-history-item__delete svg {
    fill: inherit;
  }
  .order-history-item__delete path {
    stroke: inherit;
  }

  .order-history-item__delete img {
    width: auto;
    height: auto;
  }
}
