/* Purchased preparation and order history share the portal's compact sizing. */
#purchased-prep,
#orders {
  width: 100%;
  max-width: 1600px;
  min-width: 0;
  min-height: calc(100dvh - 64px);
  margin: 0 auto;
  padding: 28px 32px 40px;
  color: #202b3d;
  font: 400 16px/1.5 var(--body-font);
}

#purchased-prep h1,
#orders h1 {
  margin: 0;
  font: 700 40px/1.15 var(--heading-font);
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

.commerce-purchased-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.commerce-purchased-header > div { min-width: 0; }
.commerce-purchased-subtitle { margin: 12px 0 0; font-size: 18px; line-height: 1.45; }

.commerce-buy-outline,
.commerce-buy-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid #525d72;
  background: #fff;
  color: var(--purple, #393573);
  font: 700 14px/1.45 var(--body-font);
  text-decoration: none;
}

.commerce-buy-outline { flex-shrink: 0; min-width: 108px; }
.commerce-buy-outline:hover { background: #f5f3ff; }
.commerce-purchased-empty {
  width: 100%;
  max-width: 400px;
  padding: 16px;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
  background: #fff;
}

.commerce-purchased-empty > h2 {
  margin: 0 0 32px;
  font: 700 22px/1.4 var(--heading-font);
  letter-spacing: -.6px;
}

.commerce-buy-primary {
  width: 100%;
  border-color: var(--purple, #393573);
  background: var(--purple, #393573);
  color: #fff;
}
.commerce-buy-primary:hover { background: #4e478e; }
.commerce-arrow { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#orders > h1 { margin-bottom: 20px; }
.commerce-order-filter { margin: 0 0 16px; }
.commerce-order-filter label { display: block; margin-bottom: 4px; font-weight: 600; }
.commerce-order-filter select {
  display: block;
  width: 256px;
  max-width: 100%;
  min-height: 48px;
  padding: 11px 38px 11px 15px;
  border: 1px solid #a7a7a7;
  border-radius: 6px;
  box-shadow: 0 1px 2px #00000012;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath fill='%2366748e' d='M0 0h12L6 6z'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: #303038;
  font: 400 16px/1.5 var(--body-font);
  appearance: none;
  cursor: pointer;
}
.commerce-order-filter select:focus-visible,
.commerce-orders-table-region:focus-visible { outline: 3px solid #7770d7; outline-offset: 3px; }
.commerce-orders-table-region { width: 100%; max-width: 100%; overflow-x: auto; }
.commerce-orders-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  text-align: left;
}
.commerce-orders-table col:nth-child(1) { width: 23%; }
.commerce-orders-table col:nth-child(2) { width: 27%; }
.commerce-orders-table col:nth-child(3) { width: 23%; }
.commerce-orders-table col:nth-child(4) { width: 27%; }
.commerce-orders-table th { height: 56px; padding: 14px 16px; background: var(--purple, #393573); color: #fff; font-weight: 700; }
.commerce-orders-table td { padding: 10px 16px; text-align: center; color: #38383e; font-size: 14px; }
.commerce-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 1100px) {
  #purchased-prep,
  #orders { min-height: calc(100dvh - var(--desktop-header-height, 62px)); }
}
@media (min-width: 1500px) {
  #purchased-prep,
  #orders { padding-left: 56px; padding-right: 56px; }
}
@media (max-width: 699px) {
  #purchased-prep,
  #orders { padding: 24px 20px 36px; }
  #purchased-prep h1,
  #orders h1 { font-size: 32px; letter-spacing: -.8px; }
  .commerce-purchased-header { flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
  .commerce-purchased-subtitle { margin-top: 10px; font-size: 16px; }
  .commerce-purchased-empty > h2 { font-size: 21px; }
  .commerce-purchased-break { display: none; }
}
