html body .ecom-table-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.06);
}

html body .ecom-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

html body .ecom-table-toolbar-left,
html body .ecom-table-toolbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

html body .ecom-table-toolbar-right { margin-left: auto; }

html body .ecom-table-toolbar-label,
html body .ecom-table-toolbar-text {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

html body .ecom-entries-select,
html body .ecom-table-search {
  height: 42px;
  min-height: 42px;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: #1e293b;
  font-size: 12px;
  box-shadow: none;
}

html body .ecom-entries-select {
  min-width: 62px;
  padding: 2px 24px 2px 8px;
  border-color: #cbd5e1;
}

html body .ecom-table-search {
  width: 320px;
  max-width: 42vw;
  padding: 4px 10px;
}

html body .ecom-directory-search-button {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #e51b23;
  box-shadow: 0 8px 16px rgba(229, 27, 35, .22);
  color: #fff;
  flex: 0 0 42px;
}

html body .ecom-table-responsive { overflow-x: auto; }

html body .ecom-table {
  width: 100%;
  min-width: 40rem;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

html body .ecom-table thead { background: #eaf0f8 !important; }

html body .ecom-table thead th,
html body .ecom-table thead th button {
  height: 46px;
  padding: 12px 18px;
  background: transparent !important;
  color: #334155 !important;
  border: 0;
  border-bottom: 1px solid #d8e0ea;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  white-space: nowrap;
}

html body .ecom-table thead th button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 0;
  cursor: pointer;
  color: #334155 !important;
}

html body .ecom-sort-icon {
  width: 12px;
  height: 14px;
  flex: none;
}

html body .ecom-sort-icon path {
  fill: #94a3b8;
}

html body .ecom-sort-icon.asc .up,
html body .ecom-sort-icon.desc .down {
  fill: #28358f;
}

html body .ecom-table td {
  height: 58px;
  padding: 12px 18px !important;
  color: #111827;
  background: #fff;
  border-bottom: 1px solid #e5eaf1;
  font-size: 14px;
  vertical-align: middle;
}

html body .ecom-table tbody tr:nth-child(even) td { background: #f8fafc; }
html body .ecom-table tbody tr:hover td { background: #f1f6ff; }

html body .ecom-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: linear-gradient(90deg, #eef1fb, #e7f6fc);
  border-top: 1px solid #dce5f0;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

html body .ecom-pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

html body .ecom-page-link {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #28358f;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

html body .ecom-page-link.active {
  color: #fff !important;
  background: #28358f !important;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(229, 27, 35, .22);
}

html body .ecom-page-link:disabled,
html body .ecom-page-link.disabled {
  color: #a3aab7;
  cursor: default;
  box-shadow: none;
  background: transparent;
}

html body .ecom-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

html body .ecom-action-icon,
html body .ecom-row-actions a,
html body .ecom-row-actions button,
html body .ecom-table td:last-child > a,
html body .ecom-table td:last-child > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  margin: 0 3px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0;
  line-height: 0;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 3px 9px rgba(16, 26, 54, .07);
}

html body .ecom-table td:last-child > a:not(:has(i)),
html body .ecom-table td:last-child > button:not(:has(i)),
html body .ecom-row-actions a:not(:has(i)),
html body .ecom-row-actions button:not(:has(i)) {
  width: auto;
  min-width: 34px;
  padding: 0 10px;
  font-size: 12px;
  line-height: 1;
}

html body .ecom-action-icon i,
html body .ecom-row-actions i,
html body .ecom-table td:last-child > a i,
html body .ecom-table td:last-child > button i {
  font-size: 13px;
  line-height: 1;
}

html body .ecom-action-icon,
html body .ecom-row-actions a,
html body .ecom-row-actions button,
html body .ecom-table td:last-child > a,
html body .ecom-table td:last-child > button {
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

html body .ecom-action-icon:hover,
html body .ecom-row-actions a:hover,
html body .ecom-row-actions button:hover,
html body .ecom-table td:last-child > a:hover,
html body .ecom-table td:last-child > button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(41, 38, 62, .12);
}

html body .ecom-action-view { color: #079bd3 !important; background: #e5f6fc !important; border-color: #b7e4f5 !important; }
html body .ecom-action-view:hover { color: #067eab !important; background: #d7f1fa !important; }
html body .ecom-action-edit { color: #28358f !important; background: #e8ebf8 !important; border-color: #c9d0ee !important; }
html body .ecom-action-edit:hover { color: #17245f !important; background: #dde2f4 !important; }
html body .ecom-action-delete { color: #e51b23 !important; background: #ffe8e9 !important; border-color: #f8c9cc !important; }
html body .ecom-action-delete:hover { color: #bd141b !important; background: #ffd6d8 !important; }
html body .ecom-action-save,
html body .ecom-action-approve { color: #047857 !important; background: #ecfdf5 !important; border-color: #a7f3d0 !important; }
html body .ecom-action-approve:hover,
html body .ecom-action-save:hover { color: #065f46 !important; background: #d1fae5 !important; }
html body .ecom-action-reject { color: #c2410c !important; background: #fff7ed !important; border-color: #fed7aa !important; }
html body .ecom-action-reject:hover { color: #9a3412 !important; background: #ffedd5 !important; }
html body .ecom-action-update { color: #b45309 !important; background: #fffbeb !important; border-color: #fde68a !important; }
html body .ecom-action-update:hover { color: #92400e !important; background: #fef3c7 !important; }
html body .ecom-action-pay { color: #6d28d9 !important; background: #f5f3ff !important; border-color: #ddd6fe !important; }
html body .ecom-action-pay:hover { color: #5b21b6 !important; background: #ede9fe !important; }

html body .ecom-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

html body .ecom-status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

html body .ecom-status-success { color: #0369a1; background: #e0f2fe; }
html body .ecom-status-danger { color: #dc2626; background: #fee2e2; }
html body .ecom-status-pending { color: #9a6700; background: #fff4d6; }
html body .ecom-status-approved { color: #047857; background: #d1fae5; }
html body .ecom-status-blocked { color: #1e293b; background: #e2e8f0; }
html body .ecom-status-rejected { color: #be123c; background: #ffe4e6; }
html body .ecom-status-active { color: #0369a1; background: #e0f2fe; }
html body .ecom-status-inactive { color: #475569; background: #f1f5f9; }
html body .ecom-status-draft { color: #4338ca; background: #e0e7ff; }
html body .ecom-status-ship { color: #1d4ed8; background: #dbeafe; }
html body .ecom-status-refund { color: #6d28d9; background: #ede9fe; }
html body .ecom-status-info { color: #28358f; background: #e8ebf8; }

html body .offer-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff !important;
}

html body .offer-state.is-on { background: #14532d !important; }
html body .offer-state.is-off { background: #7f1d1d !important; }

button.is-busy {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

button.is-busy::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #0f172a;
  animation: admin-btn-spin 0.7s linear infinite;
}

html body .bg-brand.is-busy::after,
html body .bg-slate-900.is-busy::after,
html body .ecom-action-icon.is-busy::after {
  color: #fff;
}

html body .ecom-action-update.is-busy::after { color: #b45309; }
html body .ecom-action-delete.is-busy::after { color: #dc2626; }
html body .ecom-action-approve.is-busy::after { color: #15803d; }
html body .ecom-action-reject.is-busy::after { color: #c2410c; }
html body .ecom-action-edit.is-busy::after { color: #28358f; }
html body .ecom-action-pay.is-busy::after { color: #6d28d9; }

@keyframes admin-btn-spin { to { transform: rotate(360deg); } }

.admin-toaster {
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.admin-toast {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow: hidden;
  padding: 12px 36px 14px 12px;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.18);
  pointer-events: auto;
  animation: admin-toast-in 0.22s ease-out;
}

.admin-toast.is-leaving {
  animation: admin-toast-out 0.28s ease-in forwards;
}

.admin-toast__icon {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

.admin-toast.is-success .admin-toast__icon { color: #15803d; }
.admin-toast.is-error .admin-toast__icon { color: #dc2626; }
.admin-toast.is-info .admin-toast__icon { color: #1d4ed8; }

.admin-toast__copy { min-width: 0; }
.admin-toast__copy strong { display: block; font-size: 14px; font-weight: 700; line-height: 1.3; }
.admin-toast__copy p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: #475569; }

.admin-toast__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.admin-toast__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  transform-origin: left center;
  animation: admin-toast-bar 3.8s linear forwards;
}

.admin-toast.is-success .admin-toast__bar { background: #15803d; }
.admin-toast.is-error .admin-toast__bar { background: #dc2626; }
.admin-toast.is-info .admin-toast__bar { background: #1d4ed8; }

@keyframes admin-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes admin-toast-out {
  to { opacity: 0; transform: translateX(16px); }
}

@keyframes admin-toast-bar {
  from { transform: scaleX(1); }
  to { transform: scaleX(0); }
}
