.order-data-table .customs-order-summary-head,
.order-data-table .customs-order-summary-cell {
  box-sizing: border-box;
  width: 58px;
  min-width: 58px;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

.customs-order-summary-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.customs-order-summary-toggle {
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: #6b7a90;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.customs-order-summary-toggle:hover,
.customs-order-summary-toggle:focus-visible {
  color: #3478f6;
  background: #edf4ff;
  border-color: #cfe0ff;
  outline: none;
}

.customs-order-summary-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.customs-order-summary-toggle.is-open svg {
  transform: rotate(180deg);
}

.order-data-table .customs-order-summary-row,
.order-data-table .customs-order-summary-row:hover {
  cursor: default;
  background: #f7f9fc;
}

.order-data-table .customs-order-summary-row > td,
.order-data-table .customs-order-summary-row:hover > td {
  padding: 0;
  background: #f7f9fc;
  border-bottom: 1px solid #dfe6ef;
}

.customs-order-summary {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 18px 20px 22px;
  box-shadow: inset 0 1px 0 #e2e8f0, inset 0 -1px 0 #eef2f7;
  contain: layout paint;
}

.customs-order-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  color: #68778e;
  font-size: 13px;
  border-top: 1px solid #e7edf5;
}

.customs-order-pagination__meta,
.customs-order-pagination__controls,
.customs-order-pagination__size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.customs-order-pagination__size select {
  min-width: 76px;
  height: 34px;
  padding: 0 30px 0 10px;
  color: #263247;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #d7e0ec;
  border-radius: 7px;
}

.customs-order-pagination__size select:hover,
.customs-order-pagination__size select:focus-visible {
  border-color: #8db4fa;
  outline: 2px solid rgba(52, 120, 246, 0.14);
  outline-offset: 1px;
}

.customs-order-pagination__controls .ghost-btn {
  min-width: 64px;
}

.customs-order-summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.customs-order-summary__eyebrow {
  margin-bottom: 2px;
  color: #4b78d1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.customs-order-summary__title {
  margin: 0;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.customs-order-summary__link {
  flex: 0 0 auto;
  color: #3478f6;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.customs-order-summary__link:hover,
.customs-order-summary__link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.customs-order-summary__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.customs-order-summary__field {
  box-sizing: border-box;
  min-width: 0;
  min-height: 78px;
  padding: 13px 15px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dfe6ef;
  border-radius: 9px;
}

.customs-order-summary__field--span-2 {
  grid-column: span 2;
}

.customs-order-summary__label {
  display: flex;
  gap: 4px;
  align-items: center;
  margin-bottom: 10px;
  color: #68778e;
  font-size: 12px;
  font-weight: 700;
}

.customs-order-summary__required {
  color: #e06060;
}

.customs-order-summary__value {
  min-width: 0;
  overflow: hidden;
  color: #152033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customs-order-summary__value.is-empty {
  color: #b2bdcb;
  font-weight: 600;
}

.customs-order-summary__loading,
.customs-order-summary__error {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #6b7a90;
  font-size: 13px;
}

.customs-order-summary__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #d8e3f5;
  border-top-color: #3478f6;
  border-radius: 50%;
  animation: customs-order-summary-spin 700ms linear infinite;
}

.customs-order-summary__retry {
  padding: 6px 12px;
  color: #3478f6;
  font-weight: 700;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid #cfe0ff;
  border-radius: 7px;
}

.customs-order-summary__retry:hover,
.customs-order-summary__retry:focus-visible {
  background: #edf4ff;
  outline: none;
}

.theme-dark .order-data-table .customs-order-summary-row,
.theme-dark .order-data-table .customs-order-summary-row:hover,
.theme-dark .order-data-table .customs-order-summary-row > td,
.theme-dark .order-data-table .customs-order-summary-row:hover > td {
  background: #111a29;
  border-bottom-color: #2a3648;
}

.theme-dark .customs-order-summary {
  box-shadow: inset 0 1px 0 #2a3648, inset 0 -1px 0 #1c2738;
}

.theme-dark .customs-order-summary__title,
.theme-dark .customs-order-summary__value {
  color: #edf3fb;
}

.theme-dark .customs-order-summary__field {
  background: #172234;
  border-color: #2a3648;
}

.theme-dark .customs-order-summary__label,
.theme-dark .customs-order-summary__loading,
.theme-dark .customs-order-summary__error {
  color: #9cabbe;
}

.theme-dark .customs-order-summary-toggle:hover,
.theme-dark .customs-order-summary-toggle:focus-visible,
.theme-dark .customs-order-summary__retry:hover,
.theme-dark .customs-order-summary__retry:focus-visible {
  background: #1b3153;
  border-color: #2d5186;
}

.theme-dark .customs-order-summary__retry {
  background: #172234;
}

.theme-dark .customs-order-pagination {
  color: #9cabbe;
  border-top-color: #2a3648;
}

.theme-dark .customs-order-pagination__size select {
  color: #edf3fb;
  background: #172234;
  border-color: #2a3648;
}

@keyframes customs-order-summary-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1280px) {
  .customs-order-summary__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .customs-order-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .customs-order-pagination__controls {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .customs-order-summary-toggle,
  .customs-order-summary-toggle svg {
    transition: none;
  }

  .customs-order-summary__spinner {
    animation-duration: 1.4s;
  }
}
