.orders-history-title {
  color: #212529;
  font-size: 2rem;
  font-weight: 400;
  margin: 0;
}

.orders-history {
  color: #1f2933;
  font-family: inherit;
  margin: 0 auto;
  max-width: 1180px;
}

.ohu-toolbar {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 360px) 220px 210px 112px auto;
  margin-bottom: 18px;
}

.ohu-search,
.ohu-date-filter,
.ohu-status-filter {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 22px;
  display: flex;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
}

.ohu-search .material-icons,
.ohu-date-filter .material-icons,
.ohu-status-filter .material-icons {
  color: #667085;
  font-size: 20px;
}

.ohu-search input,
.ohu-date-filter select,
.ohu-status-filter select {
  background: transparent;
  border: 0;
  box-shadow: none;
  box-sizing: border-box;
  color: #1f2933;
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  height: 22px !important;
  line-height: 22px !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
  max-height: 22px !important;
  min-width: 0;
  outline: 0;
  padding: 0 !important;
}

.ohu-date-filter select,
.ohu-status-filter select {
  cursor: pointer;
}

#introCheckout .ohu-search input,
#introCheckout .ohu-date-filter select,
#introCheckout .ohu-status-filter select {
  margin-bottom: 0 !important;
}

.ohu-count {
  color: #52606d;
  font-size: 0.95rem;
  justify-self: start;
  white-space: nowrap;
}

.ohu-list {
  display: grid;
  gap: 12px;
}

.ohu-card {
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  overflow: hidden;
}

.ohu-card-main {
  align-items: center;
  background: #fff;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 10px 16px;
  grid-template-columns: 120px 150px 132px 120px minmax(220px, 380px) 112px;
  min-height: 86px;
  padding: 14px 22px;
  text-align: left;
  width: 100%;
}

.ohu-card-main:hover {
  background: #f8fafc;
}

.ohu-card-code {
  color: #002a5c;
  font-size: 1rem;
  font-weight: 700;
}

.ohu-card-date,
.ohu-summary small,
.ohu-summary span {
  color: #667085;
}

.ohu-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  white-space: nowrap;
}

.ohu-pill-delivered {
  background: #e8f7ee;
  color: #169b4f;
}

.ohu-pill-received,
.ohu-pill-processing,
.ohu-pill-shipping {
  background: #e8f1ff;
  color: #0b5cad;
}

.ohu-pill-cancelled {
  background: #fff1f1;
  color: #bf2b2b;
}

.ohu-total {
  color: #111827;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.ohu-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  margin-left: -8px;
  overflow: hidden;
  width: 46px;
}

.ohu-thumb:first-child {
  margin-left: 0;
}

.ohu-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.ohu-thumb-fallback {
  background: #f2f5f8;
  color: #002a5c;
}

.ohu-thumb-fallback .material-icons {
  font-size: 21px;
}

.ohu-summary {
  display: grid;
  gap: 2px;
  justify-self: start;
  max-width: 380px;
  min-width: 0;
  width: 100%;
}

.ohu-summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ohu-open {
  color: #0b66d8;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.ohu-detail {
  border-top: 1px solid #e5e7eb;
  padding: 18px 22px 22px;
}

.ohu-detail-top {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(360px, 620px) minmax(180px, 1fr);
  margin-bottom: 18px;
}

.ohu-detail-top p {
  color: #002a5c;
  margin: 0;
  text-align: center;
}

.ohu-detail-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.ohu-steps {
  border: 1px solid #d9dee5;
  border-radius: 999px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  max-width: 620px;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ohu-step {
  align-items: center;
  border-bottom: 4px solid transparent;
  border-right: 1px solid #d9dee5;
  color: #002a5c;
  display: flex;
  gap: 7px;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  white-space: nowrap;
}

.ohu-step:last-child {
  border-right: 0;
}

.ohu-step-dot {
  border: 2px solid currentColor;
  border-radius: 50%;
  height: 12px;
  width: 12px;
}

.ohu-step.is-done {
  border-bottom-color: #55b15e;
  color: #14a94f;
}

.ohu-step-icon {
  font-size: 19px;
  line-height: 1;
}

.ohu-status-cancelled {
  color: #bf2b2b;
  font-weight: 700;
  text-align: center;
}

.ohu-items {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}

.ohu-items-head,
.ohu-item {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 70px 110px 110px;
  padding: 12px 16px;
}

.ohu-items-head {
  background: #f8fafc;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ohu-item {
  border-top: 1px solid #e5e7eb;
}

.ohu-item-product {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.ohu-item-product strong {
  display: block;
  font-weight: 500;
}

.ohu-item-product small {
  color: #667085;
}

.ohu-item > span,
.ohu-item > strong,
.ohu-items-head > span:not(:first-child) {
  text-align: right;
}

.ohu-totals {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px 16px;
}

.ohu-totals dl {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  margin: 0;
}

.ohu-totals div {
  align-content: center;
  display: grid;
  gap: 3px;
  min-height: 44px;
}

.ohu-totals .ohu-tax-row {
  border-left: 1px solid #d9dee5;
  padding-left: 14px;
}

.ohu-totals .ohu-tax-row + div {
  border-left: 1px solid #d9dee5;
  padding-left: 14px;
}

.ohu-totals .ohu-tax-row + div dt,
.ohu-totals .ohu-tax-row + div dd {
  color: #002a5c;
  font-size: 1.05rem;
  font-weight: 700;
}

.ohu-totals dt {
  color: #667085;
  font-size: 0.82rem;
  font-weight: 400;
  text-align: left;
}

.ohu-totals dd {
  font-weight: 700;
  margin: 0;
  text-align: left;
}

.ohu-btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  text-decoration: none;
}

.ohu-btn-primary {
  background: #179b48;
  color: #fff;
}

.ohu-btn-primary:disabled {
  background: #d9dee5;
  color: #667085;
  cursor: not-allowed;
}

.ohu-btn-secondary {
  background: #002a5c;
  color: #fff;
  justify-self: start;
  min-width: 112px;
}

.ohu-empty,
.ohu-empty-line {
  background: #fff;
  border: 1px solid #d9dee5;
  border-radius: 8px;
  color: #667085;
  margin: 0;
  padding: 24px;
  text-align: center;
}

@media (max-width: 1199.98px) {
  .ohu-card-main {
    grid-template-columns: 110px 130px 120px 110px minmax(180px, 1fr) 96px;
  }
}

@media (max-width: 767.98px) {
  .orders-history-title {
    font-size: 1.55rem;
  }

  .ohu-toolbar {
    grid-template-columns: 1fr;
  }

  .ohu-search,
  .ohu-date-filter,
  .ohu-status-filter {
    height: 42px;
  }

  .ohu-search input,
  .ohu-date-filter select,
  .ohu-status-filter select {
    height: 22px !important;
    line-height: 22px !important;
    max-height: 22px !important;
  }

  .ohu-card-main {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 16px;
  }

  .ohu-summary {
    max-width: none;
  }

  .ohu-card-date,
  .ohu-pill,
  .ohu-total,
  .ohu-summary,
  .ohu-open {
    grid-column: auto;
  }

  .ohu-summary {
    grid-column: 1 / -1;
  }

  .ohu-summary span {
    white-space: normal;
  }

  .ohu-open {
    text-align: left;
  }

  .ohu-detail {
    padding: 16px;
  }

  .ohu-detail-top {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .ohu-detail-top p {
    text-align: left;
  }

  .ohu-detail-action {
    justify-content: stretch;
  }

  .ohu-detail-action .ohu-btn {
    width: 100%;
  }

  .ohu-steps {
    border-radius: 8px;
    grid-template-columns: 1fr;
  }

  .ohu-steps:after {
    display: none;
  }

  .ohu-step {
    border-bottom: 1px solid #d9dee5;
    border-right: 0;
    justify-content: flex-start;
  }

  .ohu-step:last-child {
    border-bottom: 0;
  }

  .ohu-items {
    border: 0;
  }

  .ohu-items-head {
    display: none;
  }

  .ohu-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 10px;
    padding: 12px;
  }

  .ohu-item-product {
    grid-column: 1 / -1;
  }

  .ohu-item-product .ohu-thumb {
    flex: 0 0 46px;
    margin-left: 0;
  }

  .ohu-item-product strong {
    line-height: 1.25;
  }

  .ohu-item-qty,
  .ohu-item-unit,
  .ohu-item-total {
    background: #f8fafc;
    border-radius: 6px;
    display: grid;
    gap: 3px;
    min-height: 52px;
    padding: 8px 6px;
    text-align: center !important;
  }

  .ohu-item-qty:before,
  .ohu-item-unit:before,
  .ohu-item-total:before {
    color: #667085;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  .ohu-totals {
    padding: 12px;
  }

  .ohu-totals dl {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .ohu-totals div {
    grid-template-columns: 1fr auto;
    min-height: 0;
  }

  .ohu-totals .ohu-tax-row,
  .ohu-totals .ohu-tax-row + div {
    border-left: 0;
    border-top: 1px solid #d9dee5;
    padding-left: 0;
    padding-top: 10px;
  }

  .ohu-totals dd {
    text-align: right;
  }
}
