/* Центруємо контент акаунта */
.woocommerce-MyAccount-content {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 48px 120px;
}

.woocommerce-MyAccount-content {
  width: 80%;
  padding: 0px;
}
.account-orders-title {
  font-family: var(--ak-font-ui);
  font-size: 45px;
  font-weight: 600;
  color: var(--ak-black);
  margin-bottom: 45px;
}

.account-orders-subtitle {
  font-size: 20px;
  font-weight: 600;
  color: var(--ak-black);
  padding-bottom: 20px;
  border-bottom: 1px solid #dfdfdf;
}
.order-group {
  padding: 20px 0;
  border-bottom: 1px solid #dfdfdf;
}

.order-group__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.order-group__date {
  font-size: 20px;
  font-weight: 600;
  color: var(--ak-black);
  margin-bottom: 5px;
}

.order-group__count {
  font-size: 14px;
  color: var(--ak-green);
  margin-bottom: 24px;
}
.order-toggle {
  width: 33px;
  height: 33px;
  border-radius: 7px;
  background: var(--ak-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.order-toggle svg {
  width: 18px;
  height: 18px;
}

.order-group.is-collapsed .order-toggle {
  transform: rotate(180deg);
}
.order-item {
  display: grid;
  grid-template-columns: 120px 0.35fr 0.65fr;
  gap: 11px;
  /* padding: 20px 0; */
  border-bottom: 1px solid #efefef;
  margin-bottom: 15px;
}

.order-item__image {
  width: 120px;
  height: 147px;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
}

.order-item__title {
  font-size: 16px;
  font-weight: 500;
  color: #101010;
  max-width: 300px;
}

.order-item__price {
  font-size: 14px;
  font-weight: 500;
  color: #009846;
}

.order-item__status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 100px;
  background: #d4ede0;
  font-size: 14px;
  color: var(--ak-black);
}

.order-item__data-gty {
  display: flex;
  flex-direction: row;
  column-gap: 45px;
  flex-wrap: nowrap;
}

.order-repeat-btn {
  height: 65px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0px 46px;
  border-radius: 15px;
  background: var(--ak-green);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  margin-left: auto;
  text-decoration: none !important;
  min-width: max-content;
}

.order-repeat-btn:hover {
  background: #007a39;
}
.order-item__price {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-item__price-old {
  font-size: 14px;
  font-weight: 400;
  color: #c4c4c4;
  text-decoration: line-through;
}

.order-item__price-current {
  font-size: 16px;
  font-weight: 600;
  color: #009846;
}
.data-qty-title {
  color: #737373;
  font-family: var(--ak-font-ui);
  font-size: 14px;
  font-weight: 400;
}
.data-qty-title strong {
  font-family: var(--ak-font-ui);
  color: var(--ak-black);
  font-size: 14px;
  font-weight: 500;
}
/* === Logout spacing === */

.order-item__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 12px;
  border-radius: 100px;

  font-size: 14px;
  font-weight: 500;
  line-height: 1;

  white-space: nowrap;
}

/* Крапочка */
.order-item__status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.order-item__status--completed {
  background: #e6f6ee;
  color: #009846;
}

.order-item__status--completed::before {
  background: #009846;
}
.order-item__status--pending {
  background: #fff4e5;
  color: #f59e0b;
}

.order-item__status--pending::before {
  background: #f59e0b;
}
.order-item__status--processing {
  background: #e8f2ff;
  color: #2563eb;
}

.order-item__status--processing::before {
  background: #2563eb;
}
.order-item__status--cancelled {
  background: #fdecec;
  color: #ef4444;
}

.order-item__status--cancelled::before {
  background: #ef4444;
}
.order-item__status--delivered {
  background: #e6f6ee;
  color: #009846;
}

.order-item__status--delivered::before {
  background: #009846;
}

/*------------------------------------------------------------------------media-------------------------------------------------------------------------------------*/

@media (max-width: 1475px) {
  .account-orders-title {
    font-size: 34px;

    margin-bottom: 20px;
  }
  .account-orders-subtitle {
    margin-bottom: 20px;
  }
  .order-item__title {
    font-size: 14px;
  }
  .order-repeat-btn {
    height: 55px;

    font-size: 14px;
  }
  .data-qty-title {
    font-size: 12px;
  }
  .data-qty-title strong {
    font-size: 14px;
  }
}

@media (max-width: 1025px) {
  .order-item__title {
    font-size: 12px;
  }

  .order-item {
    display: grid;
    grid-template-columns: 70px 210px 0.5fr;
  }

  .order-group__date {
    font-size: 16px;
  }

  .order-group__count {
    font-size: 12px;

    margin-bottom: 20px;
  }
  .order-item__status {
    padding: 6px 8px;

    font-size: 10px;
  }
  .order-item__price-current {
    font-size: 12px;
  }
  .order-item__price-old {
    font-size: 12px;
  }
  .order-item__image {
    width: 70px;
    height: 85px;
    border-radius: 10px;
  }
  .order-item__data-gty {
    column-gap: 35px;
    flex-wrap: nowrap;
    margin-left: 20px;
  }
  .data-qty-title {
    font-size: 10px;
  }
  .data-qty-title strong {
    font-size: 12px;
  }
}

@media (max-width: 968px) {
  .order-item__data-gty {
    column-gap: 22px;
    flex-wrap: wrap;
    margin-left: 19px;
  }
}

@media (max-width: 768px) {
  .woocommerce-MyAccount-content {
    width: 100%;
  }
  .page-account .ak-account-nav {
    width: 100%;
  }
}

@media (max-width: 426px) {
  .account-orders-title {
    font-size: 24px;

    margin-bottom: 15px;
  }
  .account-orders-subtitle {
    margin-bottom: 16px;
  }
  .account-orders-subtitle {
    margin-bottom: 0px;
  }

  .order-item {
    grid-template-columns: 70px 1fr;
    grid-template-areas:
      "image content"
      "image content";
    column-gap: 20px;
    row-gap: 16px;
  }

  .order-item__image {
    grid-area: image;
  }

  .order-item__content {
    grid-area: content;
  }

  .order-item__meta {
    grid-area: meta;
    display: flex;
    gap: 40px;
    align-items: center;
  }

  .order-item__actions {
    grid-area: actions;
    display: flex;
    justify-content: flex-end;
  }
  .order-repeat-btn {
    width: 100%;
  }
  .order-item-content-block {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .order-item__data-gty {
    margin-left: 0px;
  }
}
