
/* =========================================================
   WIRTZ HUB · SHOPIFY · PEDIDOS
   DISEÑO EJECUTIVO
   CSS COMPLETO · PARTE 1 DE 2
   ========================================================= */

/* =========================================================
   VARIABLES · MODO CLARO
   ========================================================= */

.shopify-orders-host {
  --shopify-orders-bg: #f4f5f7;
  --shopify-orders-bg-soft: #f7f8fa;
  --shopify-orders-bg-muted: #eceff2;
  --shopify-orders-bg-hover: #f1f3f5;

  --shopify-orders-surface: #ffffff;
  --shopify-orders-surface-2: #f8f9fa;
  --shopify-orders-surface-3: #f1f3f5;

  --shopify-orders-text: #25292f;
  --shopify-orders-text-strong: #090b0e;
  --shopify-orders-text-soft: #424953;

  --shopify-orders-muted: #626a75;
  --shopify-orders-muted-2: #858d98;

  --shopify-orders-border: #d9dde3;
  --shopify-orders-border-strong: #c4c9d1;
  --shopify-orders-border-extra: #aeb5bf;

  --shopify-orders-primary: #111318;
  --shopify-orders-primary-hover: #262a30;
  --shopify-orders-primary-text: #ffffff;

  --shopify-orders-success: #087443;
  --shopify-orders-success-soft: #eff9f4;
  --shopify-orders-success-border: #afdcc6;

  --shopify-orders-warning: #9b5b08;
  --shopify-orders-warning-soft: #fff8e9;
  --shopify-orders-warning-border: #e8cb93;

  --shopify-orders-danger: #bd2727;
  --shopify-orders-danger-soft: #fff3f3;
  --shopify-orders-danger-border: #edb4b4;

  --shopify-orders-info: #175aaf;
  --shopify-orders-info-soft: #f1f6fc;
  --shopify-orders-info-border: #b7cee9;

  --shopify-orders-radius-xs: 4px;
  --shopify-orders-radius-sm: 6px;
  --shopify-orders-radius-md: 8px;
  --shopify-orders-radius-lg: 10px;
  --shopify-orders-radius-xl: 12px;

  --shopify-orders-fast:
    110ms cubic-bezier(0.2, 0, 0, 1);

  --shopify-orders-normal:
    150ms cubic-bezier(0.2, 0, 0, 1);

  --shopify-orders-shadow: none;

  width: 100%;
  min-width: 0;
  min-height: 100%;

  overflow-x: hidden;

  color: var(--shopify-orders-text);

  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 13px;
  font-weight: 650;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   VARIABLES · MODO OSCURO
   ========================================================= */

html[data-theme="dark"]
.shopify-orders-host {
  --shopify-orders-bg: #08090a;
  --shopify-orders-bg-soft: #0b0c0e;
  --shopify-orders-bg-muted: #17191c;
  --shopify-orders-bg-hover: #1b1d20;

  --shopify-orders-surface: #0f1012;
  --shopify-orders-surface-2: #141619;
  --shopify-orders-surface-3: #1b1d21;

  --shopify-orders-text: #e9eaec;
  --shopify-orders-text-strong: #ffffff;
  --shopify-orders-text-soft: #d2d5da;

  --shopify-orders-muted: #a6a9ae;
  --shopify-orders-muted-2: #858a92;

  --shopify-orders-border: #32353a;
  --shopify-orders-border-strong: #4a4e55;
  --shopify-orders-border-extra: #626872;

  --shopify-orders-primary: #ffffff;
  --shopify-orders-primary-hover: #e5e7eb;
  --shopify-orders-primary-text: #090b0e;

  --shopify-orders-success: #68d59c;
  --shopify-orders-success-soft: #11251a;
  --shopify-orders-success-border: #326a48;

  --shopify-orders-warning: #f3bc62;
  --shopify-orders-warning-soft: #291e10;
  --shopify-orders-warning-border: #73572c;

  --shopify-orders-danger: #ff8585;
  --shopify-orders-danger-soft: #291516;
  --shopify-orders-danger-border: #784043;

  --shopify-orders-info: #8bb9ff;
  --shopify-orders-info-soft: #122033;
  --shopify-orders-info-border: #3d5c80;
}

/* =========================================================
   RESET LOCAL
   ========================================================= */

.shopify-orders-host *,
.shopify-orders-host *::before,
.shopify-orders-host *::after {
  box-sizing: border-box;
}

.shopify-orders-host button,
.shopify-orders-host input,
.shopify-orders-host select,
.shopify-orders-host textarea {
  font-family: inherit;
}

.shopify-orders-host button {
  -webkit-tap-highlight-color: transparent;
}

.shopify-orders-host input,
.shopify-orders-host select,
.shopify-orders-host textarea {
  min-width: 0;
}

.shopify-orders-host [hidden] {
  display: none !important;
}

.shopify-orders-host svg {
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.shopify-orders-host button,
.shopify-orders-host input,
.shopify-orders-host select {
  box-shadow: none;
}

.shopify-orders-host button:focus-visible,
.shopify-orders-host input:focus-visible,
.shopify-orders-host select:focus-visible {
  outline: 2px solid var(--shopify-orders-text-strong);
  outline-offset: 2px;
  box-shadow: none;
}

/* =========================================================
   PÁGINA
   ========================================================= */

.shopify-orders-page {
  width: 100%;
  min-width: 0;
  min-height: 100%;

  display: flex;
  flex-direction: column;

  gap: 14px;
  padding: 18px;

  color: var(--shopify-orders-text);

  background: var(--shopify-orders-bg);

  animation:
    shopifyOrdersPageIn
    170ms
    cubic-bezier(0.2, 0, 0, 1)
    both;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.shopify-orders-head {
  width: 100%;
  min-width: 0;

  border: 0;
  border-radius: 0;

  background: transparent;

  overflow: visible;
}

.shopify-orders-head__content {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;

  gap: 24px;

  padding: 0;

  background: transparent;
}

.shopify-orders-head__identity {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 12px;
}

.shopify-orders-head__icon {
  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: 8px;

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text-strong);
}

.shopify-orders-head__icon svg {
  width: 19px;
  height: 19px;
}

.shopify-orders-head__identity > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-orders-eyebrow {
  display: block;

  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.1;
  font-weight: 850;

  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.shopify-orders-head h1 {
  min-width: 0;
  margin: 0;

  color: var(--shopify-orders-text-strong);

  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.06;

  font-weight: 850;
  letter-spacing: -0.04em;
}

.shopify-orders-head p {
  max-width: 760px;

  margin: 0;

  color: var(--shopify-orders-muted);

  font-size: 11px;
  line-height: 1.5;

  font-weight: 650;
}

.shopify-orders-head__actions {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 6px;
}

/* =========================================================
   BOTONES GENERALES
   ========================================================= */

.shopify-orders-button {
  appearance: none;
  -webkit-appearance: none;

  min-height: 36px;

  padding: 7px 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text-strong);

  font-size: 11px;
  line-height: 1;

  font-weight: 800;

  white-space: nowrap;
  cursor: pointer;

  box-shadow: none;

  transition:
    background-color var(--shopify-orders-fast),
    border-color var(--shopify-orders-fast),
    color var(--shopify-orders-fast),
    transform var(--shopify-orders-fast),
    opacity var(--shopify-orders-fast);
}

.shopify-orders-button svg {
  width: 15px;
  height: 15px;
}

.shopify-orders-button:hover:not(:disabled) {
  border-color: var(--shopify-orders-border-extra);
  background: var(--shopify-orders-surface-2);

  transform: translateY(-1px);
}

.shopify-orders-button:active:not(:disabled) {
  transform: none;
}

.shopify-orders-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.shopify-orders-button--primary {
  border-color: var(--shopify-orders-primary);
  background: var(--shopify-orders-primary);

  color: var(--shopify-orders-primary-text);
}

.shopify-orders-button--primary:hover:not(:disabled) {
  border-color: var(--shopify-orders-primary-hover);
  background: var(--shopify-orders-primary-hover);

  color: var(--shopify-orders-primary-text);
}

.shopify-orders-button--secondary {
  border-color: var(--shopify-orders-border-strong);
  background: var(--shopify-orders-surface);

  color: var(--shopify-orders-text-strong);
}

.shopify-orders-button--secondary:hover:not(:disabled) {
  border-color: var(--shopify-orders-border-extra);
  background: var(--shopify-orders-surface-2);
}

.shopify-orders-button.is-loading svg,
.shopify-orders-icon-button.is-loading svg {
  animation:
    shopifyOrdersSpin
    800ms
    linear
    infinite;
}

/* =========================================================
   SINCRONIZACIÓN
   ========================================================= */

.shopify-orders-sync-status {
  min-height: 37px;

  margin-top: 12px;
  padding: 8px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  gap: 8px 16px;

  border: 1px solid var(--shopify-orders-border);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface);
}

.shopify-orders-sync-status__item {
  min-width: 0;

  display: inline-flex;
  align-items: center;

  flex-wrap: wrap;
  gap: 7px;

  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 750;
}

.shopify-orders-sync-status__item svg {
  width: 14px;
  height: 14px;

  color: var(--shopify-orders-text-strong);
}

.shopify-orders-sync-status__item strong {
  color: var(--shopify-orders-text-strong);
  font-size: 9px;
  font-weight: 850;
}

.shopify-orders-sync-status__result {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;

  gap: 7px 12px;

  color: var(--shopify-orders-muted);

  font-size: 9px;
  font-weight: 750;
}

.shopify-orders-sync-status__result > span,
.shopify-orders-sync-status__result > strong {
  display: inline-flex;
  align-items: center;

  gap: 5px;
}

.shopify-orders-sync-status__result > strong,
.shopify-orders-sync-result__state {
  color: var(--shopify-orders-text-strong);
  font-weight: 850;
}

.shopify-orders-sync-status__result .is-error {
  color: var(--shopify-orders-danger);
}

.shopify-orders-sync-status__result svg {
  width: 14px;
  height: 14px;
}

/* =========================================================
   MÉTRICAS
   ========================================================= */

.shopify-orders-metrics {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 7px;
}

.shopify-orders-metric {
  min-width: 0;
  min-height: 92px;

  padding: 12px;

  display: flex;
  align-items: center;

  gap: 10px;

  border: 1px solid var(--shopify-orders-border);
  border-radius: var(--shopify-orders-radius-md);

  overflow: hidden;

  background: var(--shopify-orders-surface);

  box-shadow: none;

  transition:
    background-color var(--shopify-orders-normal),
    border-color var(--shopify-orders-normal),
    transform var(--shopify-orders-normal);
}

.shopify-orders-metric:hover {
  border-color: var(--shopify-orders-border-strong);
  background: var(--shopify-orders-surface-2);

  transform: translateY(-1px);
}

.shopify-orders-metric__icon {
  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-orders-border);
  border-radius: 7px;

  background: var(--shopify-orders-surface-2);
  color: var(--shopify-orders-text-strong);
}

.shopify-orders-metric__icon svg {
  width: 16px;
  height: 16px;

  stroke-width: 2.1;
}

.shopify-orders-metric > div {
  min-width: 0;

  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shopify-orders-metric > div > span {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 750;
}

.shopify-orders-metric > div > strong {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-orders-text-strong);

  font-size: 17px;
  line-height: 1.15;

  font-weight: 850;
  letter-spacing: -0.035em;

  font-variant-numeric: tabular-nums;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   PANEL PRINCIPAL
   ========================================================= */

.shopify-orders-panel {
  position: relative;

  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-md);

  overflow: hidden;

  background: var(--shopify-orders-surface);

  box-shadow: none;
}

/* =========================================================
   BARRA DE HERRAMIENTAS
   ========================================================= */

.shopify-orders-toolbar {
  width: 100%;
  min-width: 0;

  min-height: 58px;

  padding: 9px 10px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 8px;

  border-bottom: 1px solid var(--shopify-orders-border-strong);

  background: var(--shopify-orders-surface-2);
}

.shopify-orders-toolbar > .shopify-orders-button {
  flex: 0 0 auto;
}

.shopify-orders-toolbar
.shopify-orders-button.is-active,
.shopify-orders-toolbar
.shopify-orders-button.has-active-filters {
  border-color: var(--shopify-orders-text-strong);

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text-strong);
}

/* =========================================================
   BÚSQUEDA
   ========================================================= */

.shopify-orders-search {
  position: relative;

  width: 100%;
  min-width: 0;

  max-width: 760px;

  height: 37px;

  display: flex;
  align-items: center;

  gap: 8px;

  padding: 0 7px 0 11px;

  border: 1px solid var(--shopify-orders-border);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface);

  color: var(--shopify-orders-muted);

  transition:
    background-color var(--shopify-orders-fast),
    border-color var(--shopify-orders-fast);
}

.shopify-orders-search:hover {
  border-color: var(--shopify-orders-border-strong);
}

.shopify-orders-search:focus-within {
  border-color: var(--shopify-orders-text-strong);
}

.shopify-orders-search > svg {
  width: 14px;
  height: 14px;

  flex: 0 0 14px;

  color: var(--shopify-orders-muted);
}

.shopify-orders-search input {
  width: 100%;
  min-width: 0;

  height: 100%;

  flex: 1;

  padding: 0;

  border: 0;
  outline: 0;

  background: transparent;
  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  font-weight: 700;
}

.shopify-orders-search input::placeholder {
  color: var(--shopify-orders-muted-2);
  opacity: 1;
}

.shopify-orders-search input:focus-visible {
  outline: none;
}

/* =========================================================
   LIMPIAR BÚSQUEDA
   ========================================================= */

.shopify-orders-search__clear {
  width: 25px;
  height: 25px;

  flex: 0 0 25px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid transparent;
  border-radius: 4px;

  background: transparent;
  color: var(--shopify-orders-muted);

  cursor: pointer;

  transition:
    background-color var(--shopify-orders-fast),
    border-color var(--shopify-orders-fast),
    color var(--shopify-orders-fast);
}

.shopify-orders-search__clear:hover {
  border-color: var(--shopify-orders-border);
  background: var(--shopify-orders-surface-3);
  color: var(--shopify-orders-text-strong);
}

.shopify-orders-search__clear svg {
  width: 13px;
  height: 13px;
}

/* =========================================================
   CONTADOR DE FILTROS
   ========================================================= */

.shopify-orders-filter-count {
  min-width: 19px;
  height: 19px;

  padding: 0 5px;

  display: inline-grid;
  place-items: center;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: 5px;

  background: var(--shopify-orders-surface-2);
  color: var(--shopify-orders-text-strong);

  font-size: 9px;
  line-height: 1;

  font-weight: 850;
}

/* =========================================================
   FILTROS AVANZADOS
   ========================================================= */

.shopify-orders-filters {
  width: 100%;
  min-width: 0;

  padding: 10px;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 8px;

  border-bottom: 1px solid var(--shopify-orders-border-strong);

  background: var(--shopify-orders-surface);

  animation:
    shopifyOrdersFiltersOpen
    120ms
    ease-out;
}

.shopify-orders-field {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.shopify-orders-field > span {
  padding-left: 1px;

  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 800;
}

.shopify-orders-field input,
.shopify-orders-field select {
  width: 100%;
  min-width: 0;

  height: 36px;

  padding: 0 9px;

  border: 1px solid var(--shopify-orders-border);
  border-radius: var(--shopify-orders-radius-sm);

  outline: none;

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  font-weight: 750;

  cursor: pointer;

  transition:
    background-color var(--shopify-orders-fast),
    border-color var(--shopify-orders-fast);
}

.shopify-orders-field input:hover,
.shopify-orders-field select:hover {
  border-color: var(--shopify-orders-border-strong);
}

.shopify-orders-field input:focus,
.shopify-orders-field select:focus {
  border-color: var(--shopify-orders-text-strong);
}

.shopify-orders-field input::placeholder {
  color: var(--shopify-orders-muted-2);
}

.shopify-orders-field select option {
  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text-strong);
}

.shopify-orders-filters__actions {
  grid-column: 1 / -1;

  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 6px;

  padding-top: 7px;

  border-top: 1px solid var(--shopify-orders-border);
}

/* =========================================================
   TABLA · CONTENEDOR
   ========================================================= */

.shopify-orders-table-wrap {
  width: 100%;
  min-width: 0;

  overflow-x: auto;
  overflow-y: hidden;

  background: var(--shopify-orders-surface);

  scrollbar-width: thin;
  scrollbar-color:
    var(--shopify-orders-border-strong)
    transparent;

  transition:
    opacity var(--shopify-orders-fast);
}

.shopify-orders-table-wrap.is-loading {
  opacity: 0.48;
  pointer-events: none;
}

.shopify-orders-table-wrap::-webkit-scrollbar {
  height: 7px;
}

.shopify-orders-table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.shopify-orders-table-wrap::-webkit-scrollbar-thumb {
  background: var(--shopify-orders-border-strong);
  border-radius: 999px;
}

/* =========================================================
   TABLA · ESTRUCTURA
   ========================================================= */

.shopify-orders-table {
  width: 100%;
  min-width: 1080px;

  border-collapse: separate;
  border-spacing: 0;

  table-layout: fixed;

  background: var(--shopify-orders-surface);
}

.shopify-orders-table th,
.shopify-orders-table td {
  padding: 10px;

  border-right: 1px solid var(--shopify-orders-border);
  border-bottom: 1px solid var(--shopify-orders-border);

  text-align: left;
  vertical-align: middle;
}

.shopify-orders-table th:last-child,
.shopify-orders-table td:last-child {
  border-right: 0;
}

.shopify-orders-table tbody tr:last-child td {
  border-bottom: 0;
}

.shopify-orders-table thead th {
  height: 38px;

  background: var(--shopify-orders-surface-2);
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 850;
  letter-spacing: 0.035em;

  text-transform: uppercase;
  white-space: nowrap;

  border-bottom-color: var(--shopify-orders-border-strong);
}

.shopify-orders-table tbody tr {
  transition:
    background-color var(--shopify-orders-fast);
}

.shopify-orders-table tbody td {
  background: var(--shopify-orders-surface);

  color: var(--shopify-orders-text);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 650;

  transition:
    background-color var(--shopify-orders-fast);
}

.shopify-orders-table tbody tr:hover td {
  background: var(--shopify-orders-surface-2);
}

.shopify-orders-table tbody tr.is-cancelled td {
  background: var(--shopify-orders-danger-soft);
}

.shopify-orders-table tbody tr.is-cancelled:hover td {
  background: var(--shopify-orders-danger-soft);
}

/* =========================================================
   TABLA · ANCHOS
   ========================================================= */

.shopify-orders-table th:nth-child(1) {
  width: 112px;
}

.shopify-orders-table th:nth-child(2) {
  width: 110px;
}

.shopify-orders-table th:nth-child(3) {
  width: 170px;
}

.shopify-orders-table th:nth-child(4) {
  width: 235px;
}

.shopify-orders-table th:nth-child(5) {
  width: 135px;
}

.shopify-orders-table th:nth-child(6) {
  width: 115px;
}

.shopify-orders-table th:nth-child(7) {
  width: 135px;
}

.shopify-orders-table th:nth-child(8) {
  width: 90px;
}

.shopify-orders-table th:nth-child(9) {
  width: 92px;
}

.shopify-orders-table .is-actions {
  text-align: center;
}

/* =========================================================
   CONTENIDO · TABLA
   ========================================================= */

.shopify-orders-number,
.shopify-orders-date,
.shopify-orders-customer,
.shopify-orders-total,
.shopify-orders-products,
.shopify-orders-product {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-orders-number > strong,
.shopify-orders-date > strong,
.shopify-orders-customer > strong,
.shopify-orders-total > strong,
.shopify-orders-product > strong {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 850;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-orders-date > span,
.shopify-orders-customer > span,
.shopify-orders-total > span,
.shopify-orders-product > span {
  min-width: 0;

  overflow: hidden;

  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 700;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-orders-products {
  gap: 7px;
}

.shopify-orders-product {
  padding-bottom: 6px;

  border-bottom: 1px solid var(--shopify-orders-border);
}

.shopify-orders-product:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.shopify-orders-products__more,
.shopify-orders-products-empty {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  font-weight: 750;
}

.shopify-orders-origin {
  display: block;

  min-width: 0;
  overflow: hidden;

  color: var(--shopify-orders-text-soft);

  font-size: 9px;
  font-weight: 750;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   ETIQUETAS Y ESTADOS
   ========================================================= */

.shopify-orders-badge,
.shopify-orders-status {
  width: fit-content;
  max-width: 100%;

  min-height: 22px;

  padding: 4px 7px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 4px;

  border: 1px solid var(--shopify-orders-border);
  border-radius: 5px;

  background: var(--shopify-orders-surface-2);
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.1;

  font-weight: 850;

  text-align: center;
  white-space: nowrap;
}

.shopify-orders-badge.is-success,
.shopify-orders-status.is-success {
  border-color: var(--shopify-orders-success-border);
  background: var(--shopify-orders-success-soft);
  color: var(--shopify-orders-success);
}

.shopify-orders-badge.is-warning,
.shopify-orders-status.is-warning {
  border-color: var(--shopify-orders-warning-border);
  background: var(--shopify-orders-warning-soft);
  color: var(--shopify-orders-warning);
}

.shopify-orders-badge.is-danger,
.shopify-orders-status.is-danger {
  border-color: var(--shopify-orders-danger-border);
  background: var(--shopify-orders-danger-soft);
  color: var(--shopify-orders-danger);
}

.shopify-orders-badge.is-info,
.shopify-orders-status.is-info {
  border-color: var(--shopify-orders-info-border);
  background: var(--shopify-orders-info-soft);
  color: var(--shopify-orders-info);
}

.shopify-orders-badge.is-neutral,
.shopify-orders-status.is-neutral {
  border-color: var(--shopify-orders-border);
  background: var(--shopify-orders-surface-2);
  color: var(--shopify-orders-muted);
}

/* =========================================================
   ACCIONES DE TABLA
   ========================================================= */

.shopify-orders-actions {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 5px;
}

.shopify-orders-icon-button {
  appearance: none;

  width: 30px;
  height: 30px;

  flex: 0 0 30px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-orders-border);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-muted);

  cursor: pointer;

  box-shadow: none;

  transition:
    border-color var(--shopify-orders-fast),
    background-color var(--shopify-orders-fast),
    color var(--shopify-orders-fast),
    transform var(--shopify-orders-fast);
}

.shopify-orders-icon-button svg {
  width: 14px;
  height: 14px;
}

.shopify-orders-icon-button:hover:not(:disabled) {
  border-color: var(--shopify-orders-border-strong);
  background: var(--shopify-orders-surface-2);

  color: var(--shopify-orders-text-strong);

  transform: translateY(-1px);
}

.shopify-orders-icon-button:active:not(:disabled) {
  transform: none;
}

.shopify-orders-icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   CARGANDO · SIN RESULTADOS
   ========================================================= */

.shopify-orders-empty,
.shopify-orders-loading {
  min-height: 240px;

  padding: 28px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 9px;

  color: var(--shopify-orders-muted);

  text-align: center;
}

.shopify-orders-empty > svg {
  width: 34px;
  height: 34px;

  color: var(--shopify-orders-muted-2);
}

.shopify-orders-empty h3 {
  margin: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 13px;
  font-weight: 850;
}

.shopify-orders-empty p,
.shopify-orders-loading span {
  max-width: 440px;

  margin: 0;

  color: var(--shopify-orders-muted);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 650;
}

.shopify-orders-spinner {
  width: 25px;
  height: 25px;

  border: 2px solid var(--shopify-orders-border);
  border-top-color: var(--shopify-orders-text-strong);

  border-radius: 50%;

  animation:
    shopifyOrdersSpin
    800ms
    linear
    infinite;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */

.shopify-orders-pagination {
  min-height: 50px;

  padding: 8px 11px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-top: 1px solid var(--shopify-orders-border-strong);

  background: var(--shopify-orders-surface);
}

.shopify-orders-pagination__summary {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  font-weight: 750;
}

.shopify-orders-pagination__actions {
  display: flex;
  align-items: center;

  gap: 6px;
}

.shopify-orders-pagination__button {
  appearance: none;

  min-height: 32px;

  padding: 5px 9px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 6px;

  border: 1px solid var(--shopify-orders-border);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text-strong);

  font-size: 9px;
  font-weight: 800;

  cursor: pointer;

  transition:
    border-color var(--shopify-orders-fast),
    background-color var(--shopify-orders-fast),
    color var(--shopify-orders-fast);
}

.shopify-orders-pagination__button svg {
  width: 14px;
  height: 14px;
}

.shopify-orders-pagination__button:hover:not(:disabled) {
  border-color: var(--shopify-orders-border-strong);
  background: var(--shopify-orders-surface-2);
}

.shopify-orders-pagination__button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shopify-orders-pagination__current {
  min-width: 95px;

  color: var(--shopify-orders-text-strong);

  font-size: 9px;
  font-weight: 850;

  text-align: center;
}

/* =========================================================
   SCROLLBARS
   ========================================================= */

.shopify-orders-page *,
.shopify-orders-page *::before,
.shopify-orders-page *::after {
  scrollbar-width: thin;
  scrollbar-color:
    var(--shopify-orders-border-strong)
    transparent;
}

.shopify-orders-page *::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.shopify-orders-page *::-webkit-scrollbar-track {
  background: transparent;
}

.shopify-orders-page *::-webkit-scrollbar-thumb {
  background: var(--shopify-orders-border-strong);
  border-radius: 999px;
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes shopifyOrdersPageIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shopifyOrdersFiltersOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shopifyOrdersSpin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   FIN PARTE 1 DE 2
   CONTINUAR CON PARTE 2 EN EL MISMO ARCHIVO
   ========================================================= */

/* =========================================================
   WIRTZ HUB · SHOPIFY · PEDIDOS
   DISEÑO EJECUTIVO
   CSS COMPLETO · PARTE 2 DE 2
   ========================================================= */

/* =========================================================
   VARIABLES DEL MODAL
   ========================================================= */

.shopify-orders-modal {
  --shopify-orders-bg: #f4f5f7;
  --shopify-orders-bg-soft: #f7f8fa;
  --shopify-orders-bg-muted: #eceff2;
  --shopify-orders-bg-hover: #f1f3f5;

  --shopify-orders-surface: #ffffff;
  --shopify-orders-surface-2: #f8f9fa;
  --shopify-orders-surface-3: #f1f3f5;

  --shopify-orders-text: #25292f;
  --shopify-orders-text-strong: #090b0e;
  --shopify-orders-text-soft: #424953;

  --shopify-orders-muted: #626a75;
  --shopify-orders-muted-2: #858d98;

  --shopify-orders-border: #d9dde3;
  --shopify-orders-border-strong: #c4c9d1;
  --shopify-orders-border-extra: #aeb5bf;

  --shopify-orders-primary: #111318;
  --shopify-orders-primary-hover: #262a30;
  --shopify-orders-primary-text: #ffffff;

  --shopify-orders-success: #087443;
  --shopify-orders-success-soft: #eff9f4;
  --shopify-orders-success-border: #afdcc6;

  --shopify-orders-warning: #9b5b08;
  --shopify-orders-warning-soft: #fff8e9;
  --shopify-orders-warning-border: #e8cb93;

  --shopify-orders-danger: #bd2727;
  --shopify-orders-danger-soft: #fff3f3;
  --shopify-orders-danger-border: #edb4b4;

  --shopify-orders-info: #175aaf;
  --shopify-orders-info-soft: #f1f6fc;
  --shopify-orders-info-border: #b7cee9;

  --shopify-orders-radius-xs: 4px;
  --shopify-orders-radius-sm: 6px;
  --shopify-orders-radius-md: 8px;
  --shopify-orders-radius-lg: 10px;
  --shopify-orders-radius-xl: 12px;

  --shopify-orders-fast:
    110ms cubic-bezier(0.2, 0, 0, 1);

  --shopify-orders-normal:
    150ms cubic-bezier(0.2, 0, 0, 1);

  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 13px;
  font-weight: 650;

  color: var(--shopify-orders-text);

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* =========================================================
   VARIABLES · MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .shopify-orders-modal {
  --shopify-orders-bg: #08090a;
  --shopify-orders-bg-soft: #0b0c0e;
  --shopify-orders-bg-muted: #17191c;
  --shopify-orders-bg-hover: #1b1d20;

  --shopify-orders-surface: #0f1012;
  --shopify-orders-surface-2: #141619;
  --shopify-orders-surface-3: #1b1d21;

  --shopify-orders-text: #e9eaec;
  --shopify-orders-text-strong: #ffffff;
  --shopify-orders-text-soft: #d2d5da;

  --shopify-orders-muted: #a6a9ae;
  --shopify-orders-muted-2: #858a92;

  --shopify-orders-border: #32353a;
  --shopify-orders-border-strong: #4a4e55;
  --shopify-orders-border-extra: #626872;

  --shopify-orders-primary: #ffffff;
  --shopify-orders-primary-hover: #e5e7eb;
  --shopify-orders-primary-text: #090b0e;

  --shopify-orders-success: #68d59c;
  --shopify-orders-success-soft: #11251a;
  --shopify-orders-success-border: #326a48;

  --shopify-orders-warning: #f3bc62;
  --shopify-orders-warning-soft: #291e10;
  --shopify-orders-warning-border: #73572c;

  --shopify-orders-danger: #ff8585;
  --shopify-orders-danger-soft: #291516;
  --shopify-orders-danger-border: #784043;

  --shopify-orders-info: #8bb9ff;
  --shopify-orders-info-soft: #122033;
  --shopify-orders-info-border: #3d5c80;
}

/* =========================================================
   RESET DEL MODAL
   ========================================================= */

.shopify-orders-modal *,
.shopify-orders-modal *::before,
.shopify-orders-modal *::after {
  box-sizing: border-box;
}

.shopify-orders-modal button,
.shopify-orders-modal input,
.shopify-orders-modal select,
.shopify-orders-modal textarea {
  font-family: inherit;
}

.shopify-orders-modal button {
  -webkit-tap-highlight-color: transparent;
}

.shopify-orders-modal [hidden] {
  display: none !important;
}

.shopify-orders-modal svg {
  flex: 0 0 auto;
  stroke-width: 2.1;
}

.shopify-orders-modal *,
.shopify-orders-modal *::before,
.shopify-orders-modal *::after {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shopify-orders-modal button:focus-visible,
.shopify-orders-modal a:focus-visible {
  outline: 2px solid var(--shopify-orders-text-strong);
  outline-offset: 2px;
}

/* =========================================================
   MODAL · CONTENEDOR
   ========================================================= */

.shopify-orders-modal {
  position: fixed;

  inset: 0;

  z-index: 12000;

  display: grid;
  place-items: center;

  padding: 18px;

  overflow: hidden;

  isolation: isolate;
}

.shopify-orders-modal__backdrop {
  position: absolute;

  inset: 0;

  z-index: 0;

  background: rgba(0, 0, 0, 0.72);

  animation:
    shopifyOrdersBackdropIn
    140ms
    ease-out
    both;
}

/* =========================================================
   MODAL · VENTANA
   ========================================================= */

.shopify-orders-modal__dialog {
  position: relative;

  z-index: 1;

  width: min(1240px, 100%);
  height: min(920px, calc(100dvh - 36px));

  min-width: 0;
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-lg);

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text);

  opacity: 1;

  box-shadow: none;

  animation:
    shopifyOrdersModalIn
    170ms
    cubic-bezier(0.2, 0, 0, 1)
    both;
}

/* =========================================================
   MODAL · ENCABEZADO
   ========================================================= */

.shopify-orders-modal__head {
  width: 100%;
  min-height: 70px;

  flex: 0 0 auto;

  padding: 12px 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border-bottom: 1px solid var(--shopify-orders-border-strong);

  background: var(--shopify-orders-surface);
}

.shopify-orders-modal__head > div:first-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 5px;
}

.shopify-orders-modal__head h2 {
  min-width: 0;

  margin: 0;

  overflow: hidden;

  color: var(--shopify-orders-text-strong);

  font-size: 19px;
  line-height: 1.15;

  font-weight: 850;
  letter-spacing: -0.035em;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-orders-modal__close {
  appearance: none;

  width: 34px;
  height: 34px;

  flex: 0 0 34px;

  padding: 0;

  display: grid;
  place-items: center;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface);
  color: var(--shopify-orders-text-strong);

  cursor: pointer;

  box-shadow: none;

  transition:
    background-color var(--shopify-orders-fast),
    border-color var(--shopify-orders-fast),
    transform var(--shopify-orders-fast);
}

.shopify-orders-modal__close svg {
  width: 16px;
  height: 16px;
}

.shopify-orders-modal__close:hover {
  border-color: var(--shopify-orders-border-extra);
  background: var(--shopify-orders-surface-2);

  transform: translateY(-1px);
}

/* =========================================================
   MODAL · CONTENIDO
   ========================================================= */

.shopify-orders-modal__body {
  width: 100%;
  min-width: 0;
  min-height: 0;

  flex: 1;

  overflow-y: auto;
  overflow-x: hidden;

  background: var(--shopify-orders-bg);

  scrollbar-width: thin;
  scrollbar-color:
    var(--shopify-orders-border-strong)
    transparent;
}

.shopify-orders-modal__body::-webkit-scrollbar {
  width: 7px;
}

.shopify-orders-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.shopify-orders-modal__body::-webkit-scrollbar-thumb {
  background: var(--shopify-orders-border-strong);
  border-radius: 999px;
}

body.shopify-orders-modal-open {
  overflow: hidden;
}

/* =========================================================
   DETALLE GENERAL
   ========================================================= */

.shopify-orders-detail {
  width: 100%;
  min-width: 0;

  padding: 12px;

  display: flex;
  flex-direction: column;

  gap: 9px;

  background: var(--shopify-orders-bg);
}

/* =========================================================
   DETALLE · ENCABEZADO DEL PEDIDO
   ========================================================= */

.shopify-orders-detail-hero {
  width: 100%;
  min-width: 0;

  min-height: 76px;

  padding: 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 16px;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-md);

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-hero__main {
  min-width: 0;

  flex: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;
}

.shopify-orders-detail-hero__main > div:first-child {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-orders-detail-hero__main > div:first-child > span {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 800;
}

.shopify-orders-detail-hero__main > div:first-child > strong {
  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 19px;
  line-height: 1.15;

  font-weight: 850;
  letter-spacing: -0.035em;

  font-variant-numeric: tabular-nums;

  overflow-wrap: anywhere;
}

.shopify-orders-detail-hero__statuses {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;

  flex-wrap: wrap;

  gap: 5px;
}

.shopify-orders-detail-hero > .shopify-orders-button {
  flex: 0 0 auto;
}

/* =========================================================
   DETALLE · DISTRIBUCIÓN
   ========================================================= */

.shopify-orders-detail-grid {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  align-items: stretch;
}

/* =========================================================
   TARJETAS DEL DETALLE
   ========================================================= */

.shopify-orders-detail-card {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-md);

  background: var(--shopify-orders-surface);

  box-shadow: none;
}

.shopify-orders-detail-card.is-full {
  grid-column: 1 / -1;
}

.shopify-orders-detail-card > header {
  width: 100%;
  min-height: 52px;

  flex: 0 0 auto;

  padding: 10px 12px;

  display: flex;
  align-items: center;

  gap: 8px;

  border-bottom: 1px solid var(--shopify-orders-border-strong);

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-card > header > svg {
  width: 16px;
  height: 16px;

  color: var(--shopify-orders-text-strong);
}

.shopify-orders-detail-card > header h3 {
  min-width: 0;

  margin: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 12px;
  line-height: 1.2;

  font-weight: 850;

  overflow-wrap: anywhere;
}

/* =========================================================
   CAMPOS DEL DETALLE
   ========================================================= */

.shopify-orders-detail-fields {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));
}

.shopify-orders-detail-field {
  min-width: 0;
  min-height: 58px;

  padding: 9px 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 5px;

  border-right: 1px solid var(--shopify-orders-border);
  border-bottom: 1px solid var(--shopify-orders-border);

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-fields
.shopify-orders-detail-field:nth-child(2n) {
  border-right: 0;
}

.shopify-orders-detail-fields
.shopify-orders-detail-field:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.shopify-orders-detail-field > span {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 800;
}

.shopify-orders-detail-field > strong {
  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 850;

  overflow-wrap: anywhere;
}

.shopify-orders-detail-field.is-highlight {
  background: var(--shopify-orders-surface-2);
}

.shopify-orders-detail-field.is-danger > strong {
  color: var(--shopify-orders-danger);
}

.shopify-orders-detail-field.is-success > strong {
  color: var(--shopify-orders-success);
}

/* =========================================================
   DIRECCIONES
   ========================================================= */

.shopify-orders-address {
  width: 100%;
  min-width: 0;

  flex: 1;

  padding: 12px;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 6px;

  background: var(--shopify-orders-surface);
}

.shopify-orders-address > strong {
  color: var(--shopify-orders-text-strong);

  font-size: 11px;
  line-height: 1.3;

  font-weight: 850;

  overflow-wrap: anywhere;
}

.shopify-orders-address > span {
  min-width: 0;

  display: inline-flex;
  align-items: flex-start;

  gap: 6px;

  color: var(--shopify-orders-muted);

  font-size: 10px;
  line-height: 1.4;

  font-weight: 700;

  overflow-wrap: anywhere;
}

.shopify-orders-address > span svg {
  width: 13px;
  height: 13px;

  margin-top: 1px;
}

.shopify-orders-address__company,
.shopify-orders-address__phone {
  color: var(--shopify-orders-text) !important;
}

/* =========================================================
   PRODUCTOS DEL DETALLE
   ========================================================= */

.shopify-orders-detail-products {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-product {
  width: 100%;
  min-width: 0;

  min-height: 72px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    88px
    minmax(115px, 0.45fr)
    minmax(115px, 0.45fr);

  align-items: stretch;

  border-bottom: 1px solid var(--shopify-orders-border);

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-product:last-child {
  border-bottom: 0;
}

.shopify-orders-detail-product > div {
  min-width: 0;

  padding: 10px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 4px;

  border-right: 1px solid var(--shopify-orders-border);
}

.shopify-orders-detail-product > div:last-child {
  border-right: 0;
}

.shopify-orders-detail-product__main > strong {
  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 850;

  overflow-wrap: anywhere;
}

.shopify-orders-detail-product__main > span,
.shopify-orders-detail-product__main > small {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.35;

  font-weight: 700;

  overflow-wrap: anywhere;
}

.shopify-orders-detail-product__quantity > span,
.shopify-orders-detail-product__price > span,
.shopify-orders-detail-product__subtotal > span {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 750;
}

.shopify-orders-detail-product__quantity > strong,
.shopify-orders-detail-product__price > strong,
.shopify-orders-detail-product__subtotal > strong {
  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 850;

  font-variant-numeric: tabular-nums;

  overflow-wrap: anywhere;
}

/* =========================================================
   LISTAS DEL DETALLE
   ========================================================= */

.shopify-orders-detail-list {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-list__item {
  width: 100%;
  min-width: 0;

  min-height: 62px;

  padding: 10px 11px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-bottom: 1px solid var(--shopify-orders-border);

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-list__item:last-child {
  border-bottom: 0;
}

.shopify-orders-detail-list__item.is-column {
  flex-direction: column;
  align-items: stretch;

  gap: 10px;
}

.shopify-orders-detail-list__item > div:not(.shopify-orders-detail-list__head) {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-orders-detail-list__item > div > strong {
  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 850;

  overflow-wrap: anywhere;
}

.shopify-orders-detail-list__item > div > span,
.shopify-orders-detail-list__item > div > small {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.35;

  font-weight: 700;

  overflow-wrap: anywhere;
}

.shopify-orders-detail-list__item > strong {
  flex: 0 0 auto;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.3;

  font-weight: 850;

  font-variant-numeric: tabular-nums;

  white-space: nowrap;
}

.shopify-orders-detail-list__head {
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;
}

.shopify-orders-detail-list__head > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 4px;
}

.shopify-orders-detail-list__head > strong {
  flex: 0 0 auto;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  font-weight: 850;
}

/* =========================================================
   SEGUIMIENTO DE ENVÍOS
   ========================================================= */

.shopify-orders-tracking {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 6px;
}

.shopify-orders-tracking__item {
  min-width: 0;

  padding: 9px;

  display: grid;

  grid-template-columns:
    18px
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 8px;

  border: 1px solid var(--shopify-orders-border);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface-2);
}

.shopify-orders-tracking__item > svg {
  width: 15px;
  height: 15px;

  color: var(--shopify-orders-text-strong);
}

.shopify-orders-tracking__item > div {
  min-width: 0;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shopify-orders-tracking__item strong {
  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  font-weight: 850;
}

.shopify-orders-tracking__item span {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  font-weight: 700;
}

.shopify-orders-tracking__item a {
  display: inline-flex;
  align-items: center;

  gap: 5px;

  color: var(--shopify-orders-text-strong);

  font-size: 9px;
  font-weight: 850;

  text-decoration: underline;
  text-underline-offset: 2px;

  white-space: nowrap;
}

.shopify-orders-tracking__item a:hover {
  color: var(--shopify-orders-info);
}

.shopify-orders-tracking__item a svg {
  width: 12px;
  height: 12px;
}

/* =========================================================
   TOTALES DEL PEDIDO
   ========================================================= */

.shopify-orders-detail-totals {
  width: 100%;
  min-width: 0;

  display: flex;
  flex-direction: column;

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-totals
.shopify-orders-detail-field {
  min-height: 40px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-right: 0;
  border-bottom: 1px solid var(--shopify-orders-border);
}

.shopify-orders-detail-totals
.shopify-orders-detail-field > span {
  flex: 1 1 auto;
}

.shopify-orders-detail-totals
.shopify-orders-detail-field > strong {
  flex: 0 0 auto;

  text-align: right;
  font-variant-numeric: tabular-nums;
}

.shopify-orders-detail-total-final {
  min-height: 55px;

  padding: 11px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  background: var(--shopify-orders-surface-2);
}

.shopify-orders-detail-total-final > span {
  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  font-weight: 850;
}

.shopify-orders-detail-total-final > strong {
  color: var(--shopify-orders-text-strong);

  font-size: 15px;
  line-height: 1.2;

  font-weight: 900;
  letter-spacing: -0.025em;

  font-variant-numeric: tabular-nums;

  overflow-wrap: anywhere;
  text-align: right;
}

/* =========================================================
   MENSAJES VACÍOS
   ========================================================= */

.shopify-orders-detail-empty {
  min-height: 88px;

  padding: 18px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 8px;

  color: var(--shopify-orders-muted);

  text-align: center;

  background: var(--shopify-orders-surface);
}

.shopify-orders-detail-empty svg {
  width: 18px;
  height: 18px;
}

.shopify-orders-detail-empty span {
  max-width: 440px;

  color: var(--shopify-orders-muted);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 700;
}

/* =========================================================
   NOTAS
   ========================================================= */

.shopify-orders-detail-note {
  margin: 0;

  padding: 12px;

  color: var(--shopify-orders-text);

  font-size: 10px;
  line-height: 1.6;

  font-weight: 700;

  white-space: pre-wrap;
  overflow-wrap: anywhere;

  background: var(--shopify-orders-surface);
}

/* =========================================================
   CARGA DEL DETALLE
   ========================================================= */

.shopify-orders-detail-loading {
  min-height: 360px;

  padding: 24px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 10px;

  color: var(--shopify-orders-muted);

  text-align: center;
}

.shopify-orders-detail-loading span {
  max-width: 360px;

  color: var(--shopify-orders-muted);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 700;
}

/* =========================================================
   MERCADO PAGO · SECCIÓN PRINCIPAL
   ========================================================= */

.shopify-orders-mp {
  width: 100%;
  min-width: 0;

  grid-column: 1 / -1;
}

.shopify-orders-mp > header {
  display: flex;
  align-items: center;

  gap: 8px;

  flex-wrap: wrap;
}

.shopify-orders-mp > header h3 {
  flex: 1 1 auto;

  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 12px;
  line-height: 1.2;

  font-weight: 850;
}

.shopify-orders-mp__status {
  width: fit-content;

  min-height: 24px;

  padding: 4px 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--shopify-orders-success-border);
  border-radius: 5px;

  background: var(--shopify-orders-success-soft);
  color: var(--shopify-orders-success);

  font-size: 9px;
  line-height: 1.2;

  font-weight: 850;
}

/* =========================================================
   MERCADO PAGO · CONTENIDO
   ========================================================= */

.shopify-orders-mp__content {
  width: 100%;
  min-width: 0;

  padding: 10px;

  display: flex;
  flex-direction: column;

  gap: 9px;

  background: var(--shopify-orders-bg);
}

/* =========================================================
   MERCADO PAGO · RESUMEN
   ========================================================= */

.shopify-orders-mp__summary {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 7px;
}

.shopify-orders-mp__metric {
  min-width: 0;
  min-height: 88px;

  padding: 12px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 7px;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-md);

  background: var(--shopify-orders-surface);

  box-shadow: none;

  transition:
    background-color var(--shopify-orders-normal),
    border-color var(--shopify-orders-normal),
    transform var(--shopify-orders-normal);
}

.shopify-orders-mp__metric:hover {
  border-color: var(--shopify-orders-border-extra);

  background: var(--shopify-orders-surface-2);

  transform: translateY(-1px);
}

.shopify-orders-mp__metric-heading {
  min-width: 0;

  display: flex;
  align-items: center;

  gap: 6px;

  color: var(--shopify-orders-muted);
}

.shopify-orders-mp__metric-heading > svg {
  width: 15px;
  height: 15px;

  color: var(--shopify-orders-text-strong);
}

.shopify-orders-mp__metric-heading > span,
.shopify-orders-mp__metric > span {
  min-width: 0;

  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.3;

  font-weight: 800;
}

.shopify-orders-mp__metric > strong {
  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 18px;
  line-height: 1.15;

  font-weight: 850;
  letter-spacing: -0.035em;

  font-variant-numeric: tabular-nums;

  overflow-wrap: anywhere;
}

.shopify-orders-mp__metric > strong.is-negative {
  color: var(--shopify-orders-danger);
}

.shopify-orders-mp__metric.is-net {
  border-color: var(--shopify-orders-success-border);

  background: var(--shopify-orders-success-soft);
}

.shopify-orders-mp__metric.is-net
.shopify-orders-mp__metric-heading > span,
.shopify-orders-mp__metric.is-net
.shopify-orders-mp__metric-heading > svg,
.shopify-orders-mp__metric.is-net > strong {
  color: var(--shopify-orders-success);
}

/* =========================================================
   MERCADO PAGO · DESGLOSE
   ========================================================= */

.shopify-orders-mp__breakdown {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap: 9px;

  align-items: stretch;
}

.shopify-orders-mp__group {
  min-width: 0;

  display: flex;
  flex-direction: column;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-md);

  background: var(--shopify-orders-surface);

  overflow: hidden;
}

.shopify-orders-mp__group > h4 {
  min-height: 49px;

  margin: 0;

  padding: 12px;

  display: flex;
  align-items: center;

  border-bottom: 1px solid var(--shopify-orders-border-strong);

  background: var(--shopify-orders-surface-2);

  color: var(--shopify-orders-text-strong);

  font-size: 11px;
  line-height: 1.25;

  font-weight: 850;
}

.shopify-orders-mp__group-content {
  min-width: 0;

  flex: 1;

  display: flex;
  flex-direction: column;

  background: var(--shopify-orders-surface);
}

/* =========================================================
   MERCADO PAGO · FILAS
   ========================================================= */

.shopify-orders-mp__row {
  width: 100%;
  min-width: 0;

  min-height: 43px;

  padding: 10px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;

  border-bottom: 1px solid var(--shopify-orders-border);

  background: var(--shopify-orders-surface);

  transition:
    background-color var(--shopify-orders-fast);
}

.shopify-orders-mp__row:hover {
  background: var(--shopify-orders-surface-2);
}

.shopify-orders-mp__row:last-child {
  border-bottom: 0;
}

.shopify-orders-mp__row-label {
  min-width: 0;

  flex: 1;

  display: flex;
  flex-direction: column;

  gap: 3px;
}

.shopify-orders-mp__row-label > span,
.shopify-orders-mp__row > span {
  min-width: 0;

  color: var(--shopify-orders-text);

  font-size: 10px;
  line-height: 1.45;

  font-weight: 750;

  overflow-wrap: anywhere;
}

.shopify-orders-mp__row-label > small {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.35;

  font-weight: 650;

  overflow-wrap: anywhere;
}

.shopify-orders-mp__row > strong {
  flex: 0 0 auto;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 850;

  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.shopify-orders-mp__row > strong.is-negative {
  color: var(--shopify-orders-danger);
}

.shopify-orders-mp__row > strong.is-positive {
  color: var(--shopify-orders-success);
}

/* =========================================================
   MERCADO PAGO · SUBTOTALES
   ========================================================= */

.shopify-orders-mp__subtotal {
  width: 100%;
  min-width: 0;

  min-height: 48px;

  margin-top: auto;

  padding: 11px 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 12px;

  border-top: 1px solid var(--shopify-orders-border-strong);

  background: var(--shopify-orders-surface-2);
}

.shopify-orders-mp__subtotal > span {
  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 850;
}

.shopify-orders-mp__subtotal > strong {
  flex: 0 0 auto;

  color: var(--shopify-orders-text-strong);

  font-size: 12px;
  line-height: 1.3;

  font-weight: 900;

  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   MERCADO PAGO · SIN CARGOS
   ========================================================= */

.shopify-orders-mp__no-charges {
  margin: 0;

  padding: 18px 12px;

  color: var(--shopify-orders-muted);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 700;
}

/* =========================================================
   MERCADO PAGO · INFORMACIÓN DEL PAGO
   ========================================================= */

.shopify-orders-mp__footer {
  width: 100%;
  min-width: 0;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-md);

  overflow: hidden;

  background: var(--shopify-orders-surface);
}

.shopify-orders-mp__footer > div {
  min-width: 0;
  min-height: 66px;

  padding: 11px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 5px;

  border-right: 1px solid var(--shopify-orders-border);
}

.shopify-orders-mp__footer > div:last-child {
  border-right: 0;
}

.shopify-orders-mp__footer > div > span {
  color: var(--shopify-orders-muted);

  font-size: 9px;
  line-height: 1.25;

  font-weight: 800;
}

.shopify-orders-mp__footer > div > strong {
  min-width: 0;

  color: var(--shopify-orders-text-strong);

  font-size: 10px;
  line-height: 1.35;

  font-weight: 850;
  font-variant-numeric: tabular-nums;

  overflow-wrap: anywhere;
}

/* =========================================================
   MERCADO PAGO · LIQUIDACIÓN AUSENTE
   ========================================================= */

.shopify-orders-mp__empty {
  min-width: 0;

  margin: 10px;

  padding: 14px;

  display: flex;
  align-items: flex-start;

  gap: 9px;

  border: 1px solid var(--shopify-orders-border-strong);
  border-radius: var(--shopify-orders-radius-sm);

  background: var(--shopify-orders-surface-2);
  color: var(--shopify-orders-muted);
}

.shopify-orders-mp__empty svg {
  width: 17px;
  height: 17px;

  color: var(--shopify-orders-text-strong);
}

.shopify-orders-mp__empty > span {
  min-width: 0;

  color: var(--shopify-orders-text);

  font-size: 10px;
  line-height: 1.5;

  font-weight: 700;
}

/* =========================================================
   ANIMACIONES DEL MODAL
   ========================================================= */

@keyframes shopifyOrdersBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes shopifyOrdersModalIn {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE · ESCRITORIO COMPACTO
   ========================================================= */

@media (max-width: 1360px) {
  .shopify-orders-metrics {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .shopify-orders-metric {
    padding: 10px;
  }

  .shopify-orders-metric > div > strong {
    font-size: 15px;
  }

  .shopify-orders-detail-product {
    grid-template-columns:
      minmax(0, 1fr)
      75px
      minmax(105px, 0.45fr)
      minmax(105px, 0.45fr);
  }
}

/* =========================================================
   RESPONSIVE · NOTEBOOK
   ========================================================= */

@media (max-width: 1180px) {
  .shopify-orders-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .shopify-orders-filters {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .shopify-orders-mp__footer {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .shopify-orders-mp__footer > div:nth-child(2n) {
    border-right: 0;
  }

  .shopify-orders-mp__footer > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--shopify-orders-border);
  }

  .shopify-orders-detail-product {
    grid-template-columns:
      minmax(0, 1fr)
      76px
      minmax(100px, 0.45fr)
      minmax(100px, 0.45fr);
  }
}

/* =========================================================
   RESPONSIVE · TABLET
   ========================================================= */

@media (max-width: 900px) {
  .shopify-orders-page {
    padding: 14px;
    gap: 11px;
  }

  .shopify-orders-head__content {
    align-items: flex-start;
    flex-direction: column;

    gap: 12px;
  }

  .shopify-orders-head__actions {
    width: 100%;

    justify-content: flex-start;
  }

  .shopify-orders-toolbar {
    flex-wrap: wrap;
  }

  .shopify-orders-search {
    max-width: none;
  }

  .shopify-orders-filters {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .shopify-orders-detail-grid {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-detail-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .shopify-orders-detail-hero__main {
    align-items: flex-start;
  }

  .shopify-orders-detail-hero > .shopify-orders-button {
    align-self: flex-start;
  }

  .shopify-orders-mp__breakdown {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-mp__summary {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .shopify-orders-mp__metric > strong {
    font-size: 15px;
  }

  .shopify-orders-pagination {
    flex-wrap: wrap;
  }
}

/* =========================================================
   RESPONSIVE · MÓVIL
   ========================================================= */

@media (max-width: 640px) {
  .shopify-orders-page {
    padding: 10px;
    gap: 10px;
  }

  .shopify-orders-head__identity {
    align-items: flex-start;
    gap: 9px;
  }

  .shopify-orders-head__icon {
    width: 36px;
    height: 36px;

    flex-basis: 36px;
  }

  .shopify-orders-head__icon svg {
    width: 17px;
    height: 17px;
  }

  .shopify-orders-head h1 {
    font-size: 23px;
  }

  .shopify-orders-head p {
    font-size: 10px;
  }

  .shopify-orders-head__actions {
    display: grid;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .shopify-orders-head__actions
  .shopify-orders-button {
    min-width: 0;
    width: 100%;

    white-space: normal;
    text-align: center;
  }

  .shopify-orders-sync-status {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopify-orders-sync-status__result {
    justify-content: flex-start;
  }

  .shopify-orders-metrics {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 6px;
  }

  .shopify-orders-metric {
    min-height: 82px;

    padding: 9px;

    gap: 7px;
  }

  .shopify-orders-metric__icon {
    width: 29px;
    height: 29px;

    flex-basis: 29px;
  }

  .shopify-orders-metric__icon svg {
    width: 14px;
    height: 14px;
  }

  .shopify-orders-metric > div > span {
    font-size: 8px;
  }

  .shopify-orders-metric > div > strong {
    font-size: 14px;
  }

  .shopify-orders-toolbar {
    align-items: stretch;
    flex-direction: column;

    gap: 7px;
  }

  .shopify-orders-toolbar > .shopify-orders-button {
    width: 100%;
  }

  .shopify-orders-filters {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-filters__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .shopify-orders-filters__actions
  .shopify-orders-button {
    width: 100%;
  }

  .shopify-orders-pagination {
    align-items: stretch;
    flex-direction: column;

    gap: 10px;
  }

  .shopify-orders-pagination__summary {
    text-align: center;
  }

  .shopify-orders-pagination__actions {
    justify-content: space-between;
  }

  .shopify-orders-modal {
    padding: 0;
  }

  .shopify-orders-modal__dialog {
    width: 100%;
    height: 100dvh;

    max-height: 100dvh;

    border: 0;
    border-radius: 0;
  }

  .shopify-orders-modal__head {
    min-height: 60px;
    padding: 10px;
  }

  .shopify-orders-modal__head h2 {
    font-size: 17px;
  }

  .shopify-orders-detail {
    padding: 8px;
    gap: 7px;
  }

  .shopify-orders-detail-hero {
    gap: 10px;
  }

  .shopify-orders-detail-hero__main {
    flex-direction: column;
    align-items: flex-start;
  }

  .shopify-orders-detail-hero__statuses {
    justify-content: flex-start;
  }

  .shopify-orders-detail-hero > .shopify-orders-button {
    width: 100%;
    align-self: stretch;
  }

  .shopify-orders-detail-fields {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-detail-fields
  .shopify-orders-detail-field {
    border-right: 0;
    border-bottom: 1px solid var(--shopify-orders-border);
  }

  .shopify-orders-detail-fields
  .shopify-orders-detail-field:last-child {
    border-bottom: 0;
  }

  .shopify-orders-detail-product {
    grid-template-columns:
      minmax(0, 1fr)
      85px;
  }

  .shopify-orders-detail-product__main {
    grid-column: 1;
  }

  .shopify-orders-detail-product__quantity {
    grid-column: 2;
  }

  .shopify-orders-detail-product__price {
    grid-column: 1;

    border-top: 1px solid var(--shopify-orders-border);
  }

  .shopify-orders-detail-product__subtotal {
    grid-column: 2;

    border-top: 1px solid var(--shopify-orders-border);
  }

  .shopify-orders-detail-product
  > div:nth-child(2) {
    border-right: 0;
  }

  .shopify-orders-mp__content {
    padding: 8px;
    gap: 7px;
  }

  .shopify-orders-mp__summary {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-mp__metric {
    min-height: 76px;
    padding: 10px;
  }

  .shopify-orders-mp__metric > strong {
    font-size: 17px;
  }

  .shopify-orders-mp__breakdown {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-mp__row {
    gap: 8px;

    padding: 10px;
  }

  .shopify-orders-mp__row > strong {
    font-size: 9px;
  }

  .shopify-orders-mp__subtotal {
    padding: 10px;
  }

  .shopify-orders-mp__subtotal > strong {
    font-size: 11px;
  }

  .shopify-orders-mp__footer {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-mp__footer > div {
    border-right: 0;
    border-bottom: 1px solid var(--shopify-orders-border);
  }

  .shopify-orders-mp__footer > div:last-child {
    border-bottom: 0;
  }

  .shopify-orders-tracking__item {
    grid-template-columns:
      18px
      minmax(0, 1fr);
  }

  .shopify-orders-tracking__item > a {
    grid-column: 1 / -1;
    justify-self: start;

    margin-left: 26px;
  }
}

/* =========================================================
   RESPONSIVE · MÓVIL PEQUEÑO
   ========================================================= */

@media (max-width: 390px) {
  .shopify-orders-page {
    padding: 8px;
  }

  .shopify-orders-head__actions {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-metrics {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-metric {
    min-height: 72px;
  }

  .shopify-orders-pagination__actions {
    display: grid;

    grid-template-columns:
      1fr auto 1fr;

    gap: 4px;
  }

  .shopify-orders-pagination__button {
    min-width: 0;

    padding: 5px;
  }

  .shopify-orders-pagination__current {
    min-width: 70px;

    font-size: 8px;
  }

  .shopify-orders-detail-product {
    grid-template-columns:
      minmax(0, 1fr);
  }

  .shopify-orders-detail-product > div {
    grid-column: 1 !important;

    border-right: 0;
    border-bottom: 1px solid var(--shopify-orders-border);
  }

  .shopify-orders-detail-product > div:last-child {
    border-bottom: 0;
  }

  .shopify-orders-detail-list__item {
    align-items: flex-start;
    flex-direction: column;

    gap: 8px;
  }

  .shopify-orders-detail-list__item > strong {
    align-self: flex-end;
  }

  .shopify-orders-detail-list__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* =========================================================
   ACCESIBILIDAD · MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .shopify-orders-host *,
  .shopify-orders-host *::before,
  .shopify-orders-host *::after,
  .shopify-orders-modal,
  .shopify-orders-modal *,
  .shopify-orders-modal *::before,
  .shopify-orders-modal *::after {
    scroll-behavior: auto !important;

    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;

    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   FIN PARTE 2 DE 2
   WIRTZ HUB · SHOPIFY · PEDIDOS
   ========================================================= */
