
.order-card {
  padding: 10px;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 24px;
  color: #000000;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background-color: #fff;
  transition: background-color 0.3s;
}
.order-card.is-active {
  background-color: #f8f8f8;
  transition: background-color 0.3s;
}
@media (max-width: 767px) {
  .order-card {
    font-size: 14px;
  }
}

.order-card__header {
  display: flex;
  cursor: pointer;
}
@media (max-width: 767px) {
  .order-card__header {
    flex-wrap: wrap;
  }
}

.order-card__number-wrapper {
  width: 41%;
  min-width: 200px;
}
@media (max-width: 767px) {
  .order-card__number-wrapper {
    width: 50%;
    min-width: auto;
  }
}

.order-card__user-info {
  flex-grow: 1;
}
@media (max-width: 767px) {
  .order-card__user-info {
    width: 100%;
    margin-top: 8px;
    order: 1;
  }
}

.order-card__status-wrapper {
  min-width: 200px;
  text-align: right;
}
@media (max-width: 767px) {
  .order-card__status-wrapper {
    width: 50%;
    min-width: auto;
  }
}

.order-card__number {
  display: block;
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .order-card__number {
    margin-bottom: 10px;
  }
}

.order-card__date {
  display: block;
  position: relative;
  padding-left: 30px;
}
.order-card__date::before {
  content: "";
  display: block;
  position: absolute;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  left: 0;
  top: calc(50% - 10px);
  width: 20px;
  height: 20px;
  -webkit-mask-image: url("/themes/custom/fourcheeses/assets/img/icons/stack.svg#calendar");
          mask-image: url("/themes/custom/fourcheeses/assets/img/icons/stack.svg#calendar");
  background-color: #d9d9d9;
}

.order-card__user-name {
  display: block;
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .order-card__user-name {
    margin-bottom: 10px;
  }
}

.order-card__user-phone {
  display: block;
}

.order-card__status {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
  padding: 0 19px 0 29px;
  font-size: 14px;
  line-height: 22px;
  color: #000000;
  border: 1px solid #d9d9d9;
  border-radius: 999rem;
  background: #ffffff;
}
.order-card__status::before {
  content: "";
  display: block;
  position: absolute;
  left: 8px;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.order-card__status.accepted::before {
  background-color: #42bcc5;
}
.order-card__status.assembly::before {
  background-color: #e4d01c;
}
.order-card__status.waiting-payment::before {
  background-color: #e0912a;
}
.order-card__status.order-adjustment::before {
  background-color: #e41c1c;
}
.order-card__status.cancelled::before {
  background-color: #d9d9d9;
}
.order-card__status.paid {
  padding-left: 19px;
  color: #ffffff;
  border-color: #297cac;
  background: #297cac;
}
.order-card__status.paid::before {
  display: none;
}
.order-card__status.delivery {
  padding-left: 19px;
  color: #ffffff;
  border-color: #ae65b3;
  background: #ae65b3;
}
.order-card__status.delivery::before {
  display: none;
}
.order-card__status.completed {
  padding-left: 19px;
  color: #ffffff;
  border-color: #28995e;
  background: #28995e;
}
.order-card__status.completed::before {
  display: none;
}
@media (max-width: 767px) {
  .order-card__status {
    margin-bottom: 11px;
    padding-right: 14px;
    padding-left: 27px;
    font-size: 12px;
    line-height: 18px;
  }
  .order-card__status::before {
    left: 7px;
  }
  .order-card__status.paid, .order-card__status.delivery, .order-card__status.completed {
    padding-left: 14px;
  }
}

.order-card__sum {
  display: block;
}

.order-card__sum-value {
  padding-left: 5px;
  font-weight: 800;
}

.order-card__body-header {
  padding-top: 20px;
  padding-bottom: 20px;
}
@media (max-width: 767px) {
  .order-card__body-header {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.order-card__user-address {
  display: block;
  position: relative;
  padding-left: 30px;
}
.order-card__user-address::before {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background-image: url("/themes/custom/fourcheeses/assets/img/icons/stack.svg#local");
  background-repeat: no-repeat;
  background-position: center;
}

.order-card__product-wrapper {
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
}

.order-card__product-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  padding-bottom: 20px;
}
@media (max-width: 767px) {
  .order-card__product-list {
    padding-bottom: 8px;
  }
}

.order-card__product-item {
  display: flex;
  margin-top: 15px;
  font-size: 14px;
  line-height: 24px;
}
@media (max-width: 767px) {
  .order-card__product-item {
    margin-top: 10px;
  }
}

.order-card__product-name {
  width: 63%;
  padding-right: 10px;
  color: #005f60;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  .order-card__product-name {
    width: 52%;
  }
}

.order-card__product-name-link {
  color: #005f60;
}
.order-card__product-name-link:hover {
  color: #000000;
}

.order-card__product-quantity {
  min-width: 100px;
  flex-grow: 1;
  padding-right: 10px;
}
@media (max-width: 767px) {
  .order-card__product-quantity {
    min-width: 65px;
  }
}

.order-card__product-price {
  width: 150px;
  text-align: right;
}
@media (max-width: 767px) {
  .order-card__product-price {
    width: 70px;
    min-width: 70px;
  }
}

.order-card__body-info {
  position: relative;
  padding-top: 10px;
  padding-left: 30px;
  font-size: 14px;
  line-height: 24px;
}
.order-card__body-info::before {
  content: "";
  display: block;
  position: absolute;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  left: 0;
  top: 12px;
  width: 20px;
  height: 25px;
  -webkit-mask-image: url("/themes/custom/fourcheeses/assets/img/icons/stack.svg#comment");
          mask-image: url("/themes/custom/fourcheeses/assets/img/icons/stack.svg#comment");
  background-color: #d9d9d9;
}
.order-card__body-info p {
  margin: 0;
}

.order-card__body-footer-date-wrapper {
  display: flex;
  gap: 20px;
  padding-top: 10px;
}

.order-card__date--time::before {
  -webkit-mask-image: url("/themes/custom/fourcheeses/assets/img/icons/stack.svg#clock");
          mask-image: url("/themes/custom/fourcheeses/assets/img/icons/stack.svg#clock");
}
