.vc-order-page main {
  max-width: 1160px;
  margin: 24px auto 64px;
  padding: 0 24px;
}
.vc-order-page #app {
  min-width: 0;
}
.vc-order-page h1 {
  font-size: 30px;
  overflow-wrap: anywhere;
}
.vc-order-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 18px 0;
}
.vc-order-heading p {
  margin: 8px 0;
  color: #63776a;
}
.vc-order-heading .eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  font-weight: 800;
  color: #6b7b54;
}
.vc-order-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #1b543c;
  text-decoration: none;
  font-weight: 700;
}
.vc-order-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.vc-order-shortcuts a {
  background: #edf2e8;
  border: 1px solid #dbe4d4;
  padding: 12px 16px;
  border-radius: 10px;
  color: #23533d;
  text-decoration: none;
}
.vc-order-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 14px;
  background: #fff;
  padding: 20px;
  border: 1px solid #dee7dc;
  border-radius: 18px;
}
.vc-order-filters label {
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
}
.vc-order-reset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.vc-order-filter-actions {
  display: flex;
  gap: 16px;
  align-items: end;
  padding-bottom: 2px;
}
.vc-order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.vc-order-tile {
  border: 1px solid #dce4d6;
  border-radius: 18px;
  background: #fff;
  padding: 22px;
  margin: 0;
  box-shadow: 0 5px 20px #1b4d3510;
}
.vc-order-tile-top,
.vc-order-tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.vc-branch-pill {
  font-size: 12px;
  color: #255639;
  background: #edf3e8;
  border-radius: 20px;
  padding: 6px 10px;
  font-weight: 700;
}
.vc-order-tile-top small {
  font-size: 11px;
  color: #647265;
}
.vc-order-id {
  display: flex;
  align-items: center;
  min-height: 44px;
  justify-content: space-between;
  font-weight: 800;
  font-size: 19px;
  color: #184b35;
  text-decoration: none;
  margin: 18px 0 10px;
  overflow-wrap: anywhere;
}
.vc-order-status {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.vc-order-status span {
  border-radius: 20px;
  background: #eef1eb;
  padding: 6px 10px;
  font-size: 12px;
  color: #51604d;
}
.vc-order-status [data-payment-state="paid"] {
  color: #186243;
  background: #e3f3e9;
}
.vc-order-status [data-payment-state="review"] {
  background: #fff1de;
  color: #8a5011;
}
.vc-order-status [data-payment-state="waiting"] {
  background: #fcf4d9;
  color: #795c20;
}
.vc-order-products {
  padding: 8px 0 16px;
  list-style: none;
  border-bottom: 1px solid #edf0e9;
}
.vc-order-products li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}
.vc-order-products span {
  overflow-wrap: anywhere;
  min-width: 0;
}
.vc-order-products b {
  white-space: nowrap;
}
.vc-order-tile-bottom small {
  display: block;
  color: #6a7867;
  font-size: 12px;
}
.vc-order-tile-bottom div {
  text-align: right;
}
.vc-order-tile-bottom strong {
  font-size: 22px;
  color: #194c35;
}
.vc-order-open {
  margin-top: 18px;
  display: block;
  text-align: center;
  background: #184f38;
  color: #fff !important;
  border-radius: 10px;
  text-decoration: none;
  min-height: 44px;
}
.vc-order-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0;
}
.vc-order-detail {
  background: transparent;
  padding: 0;
  border: 0;
}
.vc-order-detail > section,
.vc-checkout-form {
  background: #fff;
  border: 1px solid #e0e6db;
  border-radius: 16px;
  margin: 18px 0;
  padding: 24px;
}
.vc-order-detail h2 {
  font-size: 19px;
}
.vc-order-timeline {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}
.vc-order-timeline li {
  position: relative;
  border-left: 2px solid #cbd9be;
  padding: 0 0 22px 20px;
  margin-left: 6px;
}
.vc-order-timeline li:before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3c6a40;
  position: absolute;
  left: -6px;
  top: 5px;
}
.vc-order-timeline time {
  display: block;
  font-size: 12px;
  color: #667564;
  margin-top: 5px;
}
.vc-group-payment {
  background: #f7f4e7;
  border: 1px solid #e2d6a3;
  border-radius: 12px;
  padding: 16px;
}
.vc-group-payment a {
  overflow-wrap: anywhere;
}
.vc-payment-paid {
  padding: 14px;
  background: #e5f4e9;
  color: #1b623f;
  border-radius: 10px;
}
.vc-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.vc-order-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px 20px;
}
.vc-reorder-dialog {
  max-width: 660px;
  width: calc(100% - 32px);
  max-height: calc(var(--vc-visible-height, 100dvh) - 32px);
  overflow: auto;
}
.vc-reorder-row {
  display: flex;
  gap: 12px;
  align-items: start;
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid #e6eadd;
}
.vc-reorder-row input {
  width: 20px;
  height: 20px;
  flex: none;
}
.vc-reorder-row small,
.vc-reorder-row em {
  display: block;
  margin-top: 8px;
}
.vc-reorder-row em,
.vc-reorder-errors {
  color: #a2482f;
}
.vc-order-page button,
.vc-order-page input,
.vc-order-page select {
  min-height: 44px;
}
.vc-order-page dialog {
  max-height: calc(var(--vc-visible-height, 100dvh) - 24px);
  overflow: auto;
}
.vc-order-page .order-invoice {
  max-width: 100%;
  overflow: hidden;
}
.vc-order-page [data-order-update]:empty {
  display: none;
}
.vc-order-page [data-order-update]:not(:empty) {
  padding: 14px;
  background: #fff5d9;
  border-radius: 12px;
}
.vc-order-page .postal-row {
  display: flex;
  gap: 8px;
}
.vc-order-page .postal-row input {
  min-width: 0;
}
.vc-order-page .address-fields select {
  width: 100%;
}
.vc-order-page .payments-panel {
  margin: 18px 0;
  max-width: none;
}
.vc-order-page .vc-checkout-form #products .product {
  padding: 14px 0;
  border-bottom: 1px solid #e4e9de;
}
.vc-order-page .vc-checkout-form #products label {
  max-width: calc(100% - 95px);
}
.vc-order-page .vc-checkout-form #products input {
  width: 80px;
  flex: none;
}
@media (max-width: 760px) {
  .vc-order-page main {
    margin: 0 auto;
    padding: 12px 16px 32px;
  }
  .vc-order-page .vc-order-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .vc-order-page h1 {
    font-size: 25px;
  }
  .vc-order-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .vc-order-filters {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
    gap: 12px;
  }
  .vc-order-filters > label:first-child {
    grid-column: 1/-1;
  }
  .vc-order-filter-actions {
    grid-column: 1/-1;
    justify-content: space-between;
  }
  .vc-order-tile {
    padding: 18px;
  }
  .vc-order-tile-top {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .vc-order-tile-top small {
    margin-left: auto;
  }
  .vc-order-detail > section,
  .vc-checkout-form {
    padding: 16px;
  }
  .vc-order-actions > * {
    flex: 1;
    min-width: 140px;
  }
  .vc-order-page .grid {
    grid-template-columns: 1fr;
  }
  .vc-order-shortcuts {
    gap: 8px;
  }
  .vc-order-shortcuts a {
    font-size: 13px;
    flex: 1;
    text-align: center;
  }
  .vc-order-page #order-form > button:not(.secondary) {
    position: sticky;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: 100%;
    box-shadow: 0 4px 20px #16463133;
    z-index: 10;
  }
  .vc-order-page .vc-order-detail .order-invoice-settlement {
    display: block;
  }
  .vc-order-page .vc-order-detail .order-payment-details {
    margin-bottom: 16px;
  }
  .vc-order-page .vc-order-detail .order-payment-details section {
    padding: 12px;
  }
  .vc-order-page .order-card {
    margin: 0;
  }
  .vc-order-page .vc-order-heading h1 {
    margin: 4px 0;
  }
}

.vc-checkout-form [data-receipt-picker] {
  display: none;
}
.vc-checkout-recovery {
  padding: 24px;
  background: #fff;
  border: 1px solid #dbe4d7;
  border-radius: 16px;
}
.vc-checkout-recovery a {
  display: block;
  margin-top: 16px;
}
/* Repeat a fulfilled order without competing with the order-detail link. */
.vc-order-tile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.vc-order-tile-actions .vc-order-open,
.vc-order-tile-actions .vc-order-reorder {
  flex: 1 1 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 650;
}
.vc-order-tile-actions .vc-order-reorder {
  background: #edf4ec;
  border: 1px solid #9cb69e;
  color: #18513a;
}
.vc-order-tile-actions .vc-order-reorder:hover {
  background: #dfeddf;
  border-color: #326343;
}
.vc-order-tile-actions :focus-visible {
  outline: 3px solid #927021;
  outline-offset: 3px;
}

.vc-order-filter-panel {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  background: transparent;
}
.vc-order-filter-panel > summary {
  display: none;
}
.vc-order-filter-panel > .vc-order-filters {
  margin: 0;
}
@media (max-width: 1024px), (max-width: 1366px) and (pointer: coarse) {
  .vc-order-filter-panel {
    border: 1px solid #dce5d6;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
  }
  .vc-order-filter-panel > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
    box-sizing: border-box;
    padding: 14px 18px;
    color: #194e37;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .vc-order-filter-panel > summary::-webkit-details-marker {
    display: none;
  }
  .vc-order-filter-panel > summary::after {
    content: "＋";
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
  }
  .vc-order-filter-panel[open] > summary::after {
    content: "−";
  }
  .vc-order-filter-panel > summary:focus-visible {
    outline: 3px solid #927021;
    outline-offset: -3px;
  }
  .vc-filter-count {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: #5e745d;
    text-align: right;
  }
  body.vc-mobile-shell .vc-order-filter-panel > .vc-order-filters {
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding-top: 8px;
  }
}
