.order-invoice {
  padding: clamp(1.5rem, 4vw, 3rem) 1rem 3rem;
  background: #f3f1ec;
}

.order-invoice__sheet {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid #e7e2da;
  box-shadow: 0 12px 40px rgba(37, 41, 35, 0.08);
}

.order-invoice__brand {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ece8e2;
}

.order-invoice__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
}

.order-invoice__brand h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--main-color, #303e34);
}

.order-invoice__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.order-invoice__actions a,
.order-invoice__print {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #111;
  background: #fff;
  color: #111 !important;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  cursor: pointer;
}

.order-invoice__print {
  background: var(--main-color, #303e34);
  border-color: var(--main-color, #303e34);
  color: #fff !important;
}

.order-invoice__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.35rem 0;
  padding: 1rem;
  background: #f7f6f2;
  border: 1px solid #ece8e2;
}

.order-invoice__meta span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
}

.order-invoice__meta strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: #252923;
}

.order-invoice__caps {
  text-transform: capitalize;
}

.order-invoice__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.order-invoice__grid article {
  padding: 1rem 1.1rem;
  border: 1px solid #ece8e2;
}

.order-invoice__grid h2,
.order-invoice__items h2 {
  margin: 0 0 0.65rem;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #777;
  font-weight: 600;
}

.order-invoice__grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #252923;
}

.order-invoice__items table {
  width: 100%;
  border-collapse: collapse;
}

.order-invoice__items th,
.order-invoice__items td {
  padding: 0.85rem 0.5rem;
  border-bottom: 1px solid #ece8e2;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.order-invoice__items th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
  font-weight: 600;
}

.order-invoice__items th:nth-child(2),
.order-invoice__items td:nth-child(2),
.order-invoice__items th:nth-child(3),
.order-invoice__items td:nth-child(3),
.order-invoice__items th:nth-child(4),
.order-invoice__items td:nth-child(4) {
  text-align: right;
  white-space: nowrap;
}

.order-invoice__product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.order-invoice__product img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border: 1px solid #ece8e2;
  background: #f7f6f2;
}

.order-invoice__totals {
  margin-top: 1.25rem;
  margin-left: auto;
  max-width: 280px;
  display: grid;
  gap: 0.45rem;
}

.order-invoice__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 14px;
}

.order-invoice__grand {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid #111;
  font-size: 16px !important;
}

.order-invoice__footnote {
  margin: 1.75rem 0 0;
  color: #777;
  font-size: 13px;
}

@media (max-width: 767.98px) {
  .order-invoice__meta,
  .order-invoice__grid {
    grid-template-columns: 1fr 1fr;
  }

  .order-invoice__brand {
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .order-invoice__meta,
  .order-invoice__grid {
    grid-template-columns: 1fr;
  }

  .order-invoice__items th:nth-child(3),
  .order-invoice__items td:nth-child(3) {
    display: none;
  }
}

@media print {
  .order-invoice {
    padding: 0;
    background: #fff;
  }

  .order-invoice__sheet {
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .order-invoice__actions {
    display: none !important;
  }

  .myNav,
  footer,
  .chat-support-dock,
  .skip-link {
    display: none !important;
  }
}
