/* ==========================================================
   PPS CUSTOMER ORDERS
========================================================== */

.account-orders-page {
  padding-bottom: 30px;
}

.account-orders-hero {
  padding: 46px 0 28px;
}

.account-orders-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;

  padding: 42px 46px;
  border-radius: 32px;

  background:
    radial-gradient(circle at 90% 18%, rgba(77, 83, 159, .24), transparent 34%),
    radial-gradient(circle at 8% 10%, rgba(46, 47, 121, .15), transparent 30%),
    linear-gradient(135deg, #f8f9ff 0%, #eef0fb 48%, #f7f8fc 100%);

  border: 1px solid rgba(46, 47, 121, .12);
  box-shadow: 0 26px 64px rgba(31, 25, 84, .11);
}

.account-orders-eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.account-orders-hero h1 {
  margin: 0 0 12px;
  color: var(--primary-dark);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.account-orders-hero p {
  max-width: 720px;
  margin: 0;
  color: #686d84;
  font-size: 16px;
  line-height: 1.7;
}

.account-orders-hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.account-orders-back-link {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.account-orders-back-link:hover {
  text-decoration: underline;
}

.account-orders-section {
  padding: 34px 0 84px;
}

.account-orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  margin-bottom: 24px;
  padding: 22px 24px;

  border: 1px solid rgba(46, 47, 121, .11);
  border-radius: 22px;

  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 25, 84, .07);
}

.account-orders-toolbar > div span,
.account-orders-toolbar > div strong {
  display: block;
}

.account-orders-toolbar > div span {
  margin-bottom: 4px;
  color: #85899b;
  font-size: 12px;
  font-weight: 700;
}

.account-orders-toolbar > div strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.account-orders-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.account-orders-filters a {
  padding: 8px 12px;

  border-radius: 999px;

  color: #74798f;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;

  transition:
    background .2s ease,
    color .2s ease;
}

.account-orders-filters a:hover,
.account-orders-filters a.is-active {
  background: var(--accent-soft);
  color: var(--primary);
}

.account-orders-list {
  display: grid;
  gap: 22px;
}

.account-orders-card {
  padding: 26px;

  border: 1px solid rgba(46, 47, 121, .11);
  border-radius: 26px;

  background: #fff;
  box-shadow: 0 18px 48px rgba(31, 25, 84, .08);
}

.account-orders-card__head,
.account-orders-card__footer,
.account-orders-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.account-orders-card__number {
  display: block;

  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 900;
}

.account-orders-card__head small {
  display: block;
  margin-top: 5px;

  color: #85899b;
  font-size: 12px;
}

.account-orders-card__statuses {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-payment-status {
  display: inline-flex;
  padding: 7px 11px;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 800;
}

.account-payment-status--unpaid,
.account-payment-status--pending {
  background: #fff4df;
  color: #8a5a00;
}

.account-payment-status--paid {
  background: #e8f7ee;
  color: #28713b;
}

.account-payment-status--failed {
  background: #fff0ef;
  color: #a7352d;
}

.account-payment-status--refunded {
  background: #eef0ff;
  color: #35398a;
}

.account-orders-card__progress {
  height: 8px;
  margin: 20px 0 12px;

  overflow: hidden;
  border-radius: 999px;
  background: #e7e9f2;
}

.account-orders-card__progress-bar {
  height: 100%;
  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--primary),
      var(--accent)
    );
}

.account-orders-card__message {
  margin: 0 0 22px;

  color: #71768b;
  font-size: 13px;
  line-height: 1.6;
}

.account-orders-products {
  display: grid;
  gap: 12px;
}

.account-orders-product {
  padding: 14px;

  border: 1px solid rgba(46, 47, 121, .09);
  border-radius: 16px;

  background: #fafbfe;
}

.account-orders-product__media {
  display: flex;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  border-radius: 14px;

  border: 1px solid rgba(46, 47, 121, .09);
  background: #fff;
}

.account-orders-product__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.account-orders-product__media span {
  color: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.account-orders-product__content {
  flex: 1;
  min-width: 0;
}

.account-orders-product__content strong,
.account-orders-product__content span {
  display: block;
}

.account-orders-product__content strong {
  margin-bottom: 5px;

  color: var(--text-main);
  font-size: 14px;
}

.account-orders-product__content span {
  color: #85899b;
  font-size: 11px;
  line-height: 1.5;
}

.account-orders-product__total {
  color: var(--primary-dark);
  font-size: 14px;
  white-space: nowrap;
}

.account-orders-card__footer {
  margin-top: 22px;
  padding-top: 20px;

  border-top: 1px solid rgba(46, 47, 121, .09);
}

.account-orders-card__shipping span,
.account-orders-card__shipping strong,
.account-orders-card__total span,
.account-orders-card__total strong {
  display: block;
}

.account-orders-card__shipping span,
.account-orders-card__total span {
  margin-bottom: 4px;
  color: #85899b;
  font-size: 11px;
}

.account-orders-card__shipping strong,
.account-orders-card__total strong {
  color: var(--primary-dark);
  font-size: 14px;
}

.account-orders-card__total strong {
  font-size: 18px;
}

.account-orders-card__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.account-orders-secondary-button {
  min-height: 38px;
  padding: 0 12px;

  border: 1px solid rgba(46, 47, 121, .14);
  border-radius: 10px;

  background: #fff;
  color: #a4a8b8;

  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: not-allowed;
}

.account-orders-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;

    border: 1px solid #c62828;
    border-radius: 10px;

    background: #ffffff;
    color: #c62828;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.account-orders-cancel-button:hover {
    background: #c62828;
    color: #ffffff;
    border-color: #c62828;
    box-shadow: 0 8px 20px rgba(198, 40, 40, 0.18);
    transform: translateY(-1px);
}

.account-orders-cancel-button:focus-visible {
    outline: 3px solid rgba(198, 40, 40, 0.22);
    outline-offset: 2px;
}

.account-orders-cancel-button:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.account-orders-empty {
  padding: 70px 24px;

  border: 1px dashed rgba(46, 47, 121, .18);
  border-radius: 28px;

  background: #f9faff;
  text-align: center;
}

.account-orders-empty__icon {
  display: flex;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  align-items: center;
  justify-content: center;

  border-radius: 18px;

  background: var(--accent-soft);
  color: var(--primary);

  font-size: 13px;
  font-weight: 900;
}

.account-orders-empty h2 {
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.account-orders-empty p {
  margin: 0 0 24px;
  color: #777c91;
  line-height: 1.65;
}

.account-orders-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;

  margin-top: 28px;
}

.account-orders-pagination a {
  min-height: 42px;
  padding: 0 16px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(46, 47, 121, .14);
  border-radius: 12px;

  background: #fff;
  color: var(--primary);

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.account-orders-pagination a:hover {
  background: var(--accent-soft);
}

.account-orders-pagination span {
  color: #777c91;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .account-orders-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-orders-card__footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-orders-card__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .account-orders-hero__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 32px 24px;
  }

  .account-orders-hero__actions {
    width: 100%;
    justify-content: space-between;
  }

  .account-orders-card {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .account-orders-card__head,
  .account-orders-card__footer,
  .account-orders-product {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-orders-card__statuses {
    justify-content: flex-start;
  }

  .account-orders-product__media {
    width: 54px;
    height: 54px;
  }

  .account-orders-product__total {
    margin-left: 64px;
  }

  .account-orders-filters {
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .account-orders-filters a {
    flex: 0 0 auto;
  }
}