/* Standalone order tracking page styles. */
#trackModal.modal {
  --track-primary: #0e766e;
  --track-secondary: #32a99a;
  --track-accent: #73cbb9;
  --track-muted: #61736e;
  --track-surface: #f4f8f6;
  --track-card: #ffffff;
  --track-border: rgba(14, 118, 110, 0.14);
}
#trackModal.modal .modal-dialog {
  width: auto;
  max-width: min(920px, calc(100vw - 32px));
}
#trackModal.modal .modal-content {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(9, 47, 41, 0.25);
}
#trackModal.modal .modal-header {
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 22px 26px;
  border: 0;
  background:
    radial-gradient(circle at 12% 125%, rgba(135, 222, 197, 0.2), transparent 30%),
    linear-gradient(115deg, #084f49, #0e766e 52%, #169b8c);
  color: #fff;
}
#trackModal.modal .modal-header::after {
  position: absolute;
  z-index: -1;
  top: -64px;
  left: 24%;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 24px rgba(255, 255, 255, 0.035), 0 0 0 50px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}
#trackModal.modal .track-modal__heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}
#trackModal.modal .track-modal__icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 20px rgba(4, 44, 39, 0.16);
  color: #fff;
  font-size: 1.15rem;
}
#trackModal.modal .modal-title {
  margin: 0;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.35;
}
#trackModal.modal .track-modal__subtitle {
  margin: 4px 0 0;
  color: rgba(241, 255, 250, 0.8);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.5;
}
#trackModal.modal .btn-close {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 10px;
  border-radius: 11px;
  filter: brightness(0) invert(1);
  opacity: 0.78;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
#trackModal.modal .btn-close:hover,
#trackModal.modal .btn-close:focus-visible {
  background-color: rgba(255, 255, 255, 0.16);
  opacity: 1;
}
#trackModal.modal .modal-body {
  padding: 24px 26px;
  background: #f6f9f7;
}
#trackModal.modal .modal-body label {
  color: var(--home-ink);
}
#trackModal.modal .track-modal__lookup {
  padding: 19px;
  border: 1px solid #e0ece6;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f9fcfa);
  box-shadow: 0 8px 24px rgba(21, 53, 46, 0.045);
}
#trackModal.modal .track-modal__field {
  direction: rtl;
  text-align: right;
}
#trackModal.modal .track-modal__label-row {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}
#trackModal.modal .track-modal__label-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: #e9f5f0;
  color: var(--home-primary);
}
#trackModal.modal .track-modal__label-row .form-label {
  display: block;
  margin-bottom: 2px !important;
  font-size: 0.99rem;
  font-weight: 850;
}
#trackModal.modal .track-modal__label-row small {
  display: block;
  color: #778780;
  font-size: 0.81rem;
  line-height: 1.55;
}
#trackModal.modal .track-modal__input-wrap {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 5px 13px;
  border: 1px solid #d7e5de;
  border-radius: 14px;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(16, 35, 31, 0.025);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#trackModal.modal .track-modal__input-wrap:focus-within {
  border-color: var(--home-primary);
  box-shadow: 0 0 0 4px rgba(14, 118, 110, 0.11);
}
#trackModal.modal .track-modal__input-wrap > i {
  flex: 0 0 auto;
  color: #6c9385;
  font-size: 1.05rem;
}
#trackModal.modal .form-control#track-code {
  min-width: 0;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  color: var(--home-ink);
  box-shadow: none;
  font-size: 1.05rem;
  font-weight: 750;
  text-align: right;
  direction: rtl;
}
#trackModal.modal .form-control#track-code:focus {
  border: 0;
  box-shadow: none;
}
#trackModal.modal .form-control#track-code::placeholder {
  color: #9aa8a2;
  font-size: 0.9rem;
  font-weight: 500;
}
#trackModal.modal .track-modal__input-caption {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 8px;
  background: #f0f6f3;
  color: #61776e;
  font-size: 0.72rem;
  font-weight: 700;
}
#trackModal.modal input#track-code::-webkit-inner-spin-button,
#trackModal.modal input#track-code::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}
#trackModal.modal input#track-code {
  appearance: textfield;
}
#trackModal.modal #track-error[style*="display: none"] {
  display: none !important;
}
#trackModal.modal #track-error:not([style*="display: none"]) {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 15px;
  border: 1px solid #f1cccc;
  border-radius: 12px;
  background: #fff6f5;
  color: #a53333;
  font-weight: 700;
}
#trackModal.modal #track-result {
  margin-top: 18px;
}
#trackModal.modal #track-result.is-loading {
  opacity: 0.74;
  transition: opacity 0.2s ease;
}
#trackModal.modal .modal-footer {
  gap: 10px;
  padding: 16px 26px 20px;
  border-top: 1px solid #e9efec;
  background: #fff;
}
#trackModal.modal .modal-footer .btn {
  min-height: 44px;
  padding: 10px 19px;
  border-radius: 11px;
  font-weight: 800;
}
#trackModal.modal .modal-footer .btn {
  display: inline-flex;
  min-width: 112px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
#trackModal.modal .modal-footer .btn:hover {
  transform: translateY(-1px);
}
#trackModal.modal .modal-footer .btn-primary {
  border-color: var(--home-primary);
  background: var(--home-primary);
  color: #fff;
}
#trackModal.modal .modal-footer .btn-primary {
  min-width: 154px;
  box-shadow: 0 6px 16px rgba(14, 118, 110, 0.2);
}
#trackModal.modal .modal-footer .btn-secondary {
  border-color: #e1e9e5;
  background: #f3f6f4;
  color: #53665e;
}
#trackModal.modal .modal-footer .btn-secondary:hover {
  border-color: #d2ded8;
  background: #eaf0ed;
  color: #334840;
}
#trackModal.modal .modal-footer .btn-primary:hover {
  border-color: var(--home-primary-dark);
  background: var(--home-primary-dark);
}
#trackModal.modal .modal-footer .btn-primary:hover {
  box-shadow: 0 8px 19px rgba(14, 118, 110, 0.26);
}
#trackModal.modal .track-result-card {
  border-color: var(--home-line);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(21, 53, 46, 0.08);
}
#trackModal.modal .track-result-card::before {
  background: radial-gradient(circle at top right, rgba(50, 169, 154, 0.13), transparent 60%);
}
#trackModal.modal .track-status.is-processing,
#trackModal.modal .track-status.is-washing,
#trackModal.modal .track-status.is-ready {
  background: #e7f4f0;
  color: #17675e;
  box-shadow: none;
}
#trackModal.modal .track-progress,
#trackModal.modal .track-card,
#trackModal.modal .track-timeline,
#trackModal.modal .track-details-grid > div,
#trackModal.modal .track-products > * {
  border-color: var(--home-line);
}
#trackModal.modal .track-card__title,
#trackModal.modal .track-detail__label,
#trackModal.modal .track-timeline__title {
  color: var(--home-primary-dark);
}
#trackModal.modal .track-result-card .track-card--details {
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: linear-gradient(160deg, #fff, #fbfdfc);
  box-shadow: 0 12px 30px rgba(21, 53, 46, 0.055);
}
#trackModal.modal .track-result-card .track-card--details .track-card__title {
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e7efeb;
  font-size: 1.12rem;
  letter-spacing: 0;
}
#trackModal.modal .track-result-card .track-card--details .track-card__title::after {
  height: 2px;
  background: linear-gradient(90deg, rgba(14, 118, 110, 0.34), rgba(14, 118, 110, 0.04));
}
#trackModal.modal .track-result-card .track-card--details .track-card__title i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: #e7f4ef;
  box-shadow: none;
  color: var(--home-primary);
}
#trackModal.modal .track-result-card .track-code-card {
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid #cfe6dc;
  border-radius: 15px;
  background: linear-gradient(110deg, #edf7f2, #f8fbf9);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
#trackModal.modal .track-result-card .track-code-card:hover {
  border-color: #9fcfbe;
  box-shadow: 0 8px 20px rgba(14, 118, 110, 0.1);
}
#trackModal.modal .track-result-card .track-code-card__info {
  min-width: 0;
  gap: 11px;
  color: var(--home-primary);
}
#trackModal.modal .track-result-card .track-code-card__info > i {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--home-primary);
  box-shadow: 0 3px 10px rgba(14, 118, 110, 0.08);
}
#trackModal.modal .track-result-card .track-code-card__value {
  display: block;
  overflow-wrap: anywhere;
  color: #174f46;
  font-size: 1.12rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
#trackModal.modal .track-result-card .code-copy {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #d5e8e0;
  border-radius: 12px;
  background: #fff;
  color: var(--home-primary);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
#trackModal.modal .track-result-card .code-copy:hover {
  transform: translateY(-1px);
  border-color: #a8d3c4;
  background: #f2faf6;
}
#trackModal.modal .track-result-card .track-details-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}
#trackModal.modal .track-result-card .track-detail {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #e2ece7;
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#trackModal.modal .track-result-card .track-detail:hover {
  border-color: #c7dfd5;
  box-shadow: 0 5px 15px rgba(21, 53, 46, 0.045);
}
#trackModal.modal .track-result-card .track-detail__label {
  gap: 7px;
  color: #75857f;
  font-size: 0.78rem;
  font-weight: 700;
}
#trackModal.modal .track-result-card .track-detail__label i {
  width: 24px;
  height: 24px;
  display: inline-grid;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 8px;
  background: #edf6f2;
  color: var(--home-primary);
  font-size: 0.75rem;
}
#trackModal.modal .track-result-card .track-detail__value {
  margin-top: 7px;
  color: #213b34;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
#trackModal.modal .track-result-card .track-detail--engagement {
  display: flex;
  align-items: center;
}
#trackModal.modal .track-result-card .track-detail__group--engagement {
  width: 100%;
  margin: 0;
  gap: 9px;
}
#trackModal.modal .track-result-card .customer-engagement-card {
  width: 100%;
  padding-inline-start: 11px;
  gap: 10px;
}
#trackModal.modal .track-result-card .customer-engagement-card__value {
  font-size: 1.8rem;
  text-shadow: none;
}
#trackModal.modal .track-result-card .customer-engagement-card__label {
  color: #52675f;
  font-size: 0.77rem;
}
#trackModal.modal .track-result-card .customer-engagement-card__text {
  color: #344d44;
  font-size: 0.84rem;
}
#trackModal.modal .track-result-card .track-detail__icon.customer-history-trigger {
  align-self: flex-start;
  padding: 4px 0;
  color: var(--home-primary);
  font-weight: 750;
}
#trackModal.modal .track-result-card .track-detail--full {
  grid-column: 1 / -1;
}
#trackModal.modal .track-result-card .track-detail--full .track-detail__value {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f5f9f7;
  font-weight: 600;
}
#trackModal.modal .track-result-card .track-card--totals {
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: linear-gradient(160deg, #fff, #fbfdfc);
  box-shadow: 0 12px 30px rgba(21, 53, 46, 0.055);
}
#trackModal.modal .track-result-card .track-card--totals .track-card__title {
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e7efeb;
  font-size: 1.12rem;
  letter-spacing: 0;
}
#trackModal.modal .track-result-card .track-card--totals .track-card__title::after {
  height: 2px;
  background: linear-gradient(90deg, rgba(14, 118, 110, 0.34), rgba(14, 118, 110, 0.04));
}
#trackModal.modal .track-result-card .track-card--totals .track-card__title i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: #e7f4ef;
  box-shadow: none;
  color: var(--home-primary);
}
#trackModal.modal .track-result-card .track-card--items {
  padding: 22px;
  border: 1px solid var(--home-line);
  border-radius: 20px;
  background: linear-gradient(160deg, #fff, #fbfdfc);
  box-shadow: 0 12px 30px rgba(21, 53, 46, 0.055);
}
#trackModal.modal .track-result-card .track-card--items .track-card__title {
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #e7efeb;
  font-size: 1.12rem;
  letter-spacing: 0;
}
#trackModal.modal .track-result-card .track-card--items .track-card__title::after {
  height: 2px;
  background: linear-gradient(90deg, rgba(14, 118, 110, 0.34), rgba(14, 118, 110, 0.04));
}
#trackModal.modal .track-result-card .track-card--items .track-card__title i {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  background: #e7f4ef;
  box-shadow: none;
  color: var(--home-primary);
}
#trackModal.modal .track-result-card .track-products {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
#trackModal.modal .track-result-card .track-product-card {
  min-width: 0;
  gap: 11px;
  padding: 14px 15px;
  border: 1px solid #e1ebe6;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(16, 35, 31, 0.035);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
#trackModal.modal .track-result-card .track-product-card:hover {
  transform: translateY(-1px);
  border-color: #bfdccf;
  box-shadow: 0 8px 18px rgba(14, 118, 110, 0.08);
}
#trackModal.modal .track-result-card .track-product-card.alt {
  border-color: #e1ebe6;
  background: #fff;
}
#trackModal.modal .track-result-card .track-product-card > .d-flex {
  min-width: 0;
  align-items: center !important;
  gap: 12px;
}
#trackModal.modal .track-result-card .track-product-card > .d-flex > div {
  min-width: 0;
}
#trackModal.modal .track-result-card .track-product-card__name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #24463b;
  font-size: 0.98rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#trackModal.modal .track-result-card .track-product-card__name i {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  margin: 0 !important;
  border-radius: 9px;
  background: #edf6f2;
  color: var(--home-primary);
  font-size: 0.82rem;
}
#trackModal.modal .track-result-card .track-product-card > .d-flex > .badge {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #e2ece7;
  border-radius: 10px;
  background: #f5f9f7 !important;
  color: #61756c !important;
  font-size: 0.77rem;
  font-weight: 750;
  white-space: nowrap;
}
#trackModal.modal .track-result-card .track-product-card > .d-flex > .badge i {
  color: #688a7d;
}
#trackModal.modal .track-result-card .track-product-card > .text-muted.small {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-inline-start: 38px;
  color: #778780 !important;
  font-size: 0.82rem;
  line-height: 1.5;
}
#trackModal.modal .track-result-card .track-product-card > .text-muted.small i {
  color: #7b9c8e;
}
#trackModal.modal .track-result-card .track-product-card > .fw-bold.text-success {
  align-self: flex-start;
  margin-inline-start: 38px;
  padding: 6px 10px;
  border: 1px solid #d8ebe2;
  border-radius: 9px;
  background: #f0f8f4;
  color: #17675e !important;
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}
#trackModal.modal .track-result-card .track-product-card > .fw-bold.text-success i {
  margin-inline-end: 5px;
  color: #29836c;
}
#trackModal.modal .track-result-card .track-product-empty {
  padding: 18px;
  border: 1px dashed #cddfd6;
  border-radius: 14px;
  background: #f7faf8;
  color: #6d7f76;
  font-size: 0.9rem;
  line-height: 1.7;
  text-align: center;
}
#trackModal.modal .track-result-card .track-product-empty i {
  color: var(--home-primary);
}
#trackModal.modal .track-result-card .track-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
#trackModal.modal .track-result-card .track-totals .totals-row {
  min-width: 0;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e2ece7;
  border-radius: 13px;
  background: #fff;
  color: #52665e;
  font-size: 0.91rem;
  font-weight: 700;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#trackModal.modal .track-result-card .track-totals .totals-row:hover {
  border-color: #c7dfd5;
  box-shadow: 0 5px 15px rgba(21, 53, 46, 0.045);
}
#trackModal.modal .track-result-card .track-totals .totals-row + .totals-row {
  border-top: 1px solid #e2ece7;
}
#trackModal.modal .track-result-card .totals-row__main {
  min-width: 0;
  align-items: center;
  gap: 8px;
}
#trackModal.modal .track-result-card .totals-row__label {
  min-width: 0;
  gap: 8px;
  color: #52665e;
}
#trackModal.modal .track-result-card .totals-row__label > i {
  display: inline-grid;
  width: 29px;
  height: 29px;
  flex: 0 0 29px;
  place-items: center;
  border-radius: 9px;
  background: #edf6f2;
  color: var(--home-primary);
  font-size: 0.82rem;
}
#trackModal.modal .track-result-card .totals-row > b {
  gap: 4px;
  color: #24463b;
  font-size: 0.96rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#trackModal.modal .track-result-card .totals-row > b .currency {
  color: #778780;
  font-size: 0.76rem;
  font-weight: 650;
}
#trackModal.modal .track-result-card .totals-row__badge {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  margin-inline-start: 0;
  border-radius: 8px;
  font-size: 0.72rem;
}
#trackModal.modal .track-result-card .totals-row__badge:hover,
#trackModal.modal .track-result-card .totals-row__badge:focus {
  box-shadow: 0 5px 12px rgba(14, 118, 110, 0.14);
}
#trackModal.modal .track-result-card .totals-row__badge.badge-discount {
  border-color: #f2d5d3;
  background: #fff1f0;
  color: #b34037;
}
#trackModal.modal .track-result-card .totals-row__badge.badge-delivery {
  border-color: #cce5e3;
  background: #edf8f7;
  color: #18766e;
}
#trackModal.modal .track-result-card .totals-row__badge.badge-paid,
#trackModal.modal .track-result-card .totals-row__badge.badge-settled {
  border-color: #cce8d9;
  background: #edf8f1;
  color: #28734e;
}
#trackModal.modal .track-result-card .totals-row__badge.badge-remaining {
  border-color: #f0dfb6;
  background: #fff8e8;
  color: #9a6b14;
}
#trackModal.modal .track-result-card .totals-row__badge.badge-total {
  border-color: #cde4dc;
  background: #eaf5f0;
  color: #17675e;
}
#trackModal.modal .track-result-card .totals-row.total-final {
  grid-column: 1 / -1;
  min-height: 72px;
  margin: 2px 0;
  padding: 14px 17px;
  border: 1px solid #a9d7c8;
  border-radius: 15px;
  background: linear-gradient(110deg, #e7f5ef, #f2faf6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
#trackModal.modal .track-result-card .totals-row.total-final .totals-row__label {
  color: #14594e;
  font-size: 1rem;
  font-weight: 850;
}
#trackModal.modal .track-result-card .totals-row.total-final .totals-row__label > i {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 11px;
  background: #d5eee4;
  color: #0e766e;
  font-size: 0.95rem;
}
#trackModal.modal .track-result-card .totals-row.total-final > b {
  color: #0b6257;
  font-size: 1.22rem;
  font-weight: 900;
}
#trackModal.modal .track-result-card .totals-row.total-final > b .currency {
  color: #3f7568;
  font-size: 0.82rem;
}
#trackModal.modal .track-result-card .totals-info {
  color: #538277;
  line-height: 1;
}
#trackModal.modal .track-result-card .totals-info:hover,
#trackModal.modal .track-result-card .totals-info:focus-visible {
  color: #0e766e;
}
#trackModal.modal .track-result-card .track-timeline {
  padding: 18px;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
}
#trackModal.modal .track-result-card .track-progress {
  border-color: rgba(14, 118, 110, 0.14);
  background: #edf7f3;
}
#trackModal.modal .track-result-card .track-progress__header {
  color: var(--home-ink);
}
#trackModal.modal .track-result-card .track-progress__label i {
  background: #dcefe9;
  color: var(--home-primary);
}
#trackModal.modal .track-result-card .track-progress__value {
  color: var(--home-primary-dark);
}
#trackModal.modal .track-result-card .track-progress__bar {
  background: #dfece7;
}
#trackModal.modal .track-result-card .track-progress__fill {
  background: linear-gradient(90deg, #0e766e, #56b8a5);
  box-shadow: 0 5px 14px rgba(14, 118, 110, 0.2);
}
#trackModal.modal .track-result-card .track-progress__meta {
  color: var(--home-muted);
}
#trackModal.modal .track-result-card .order-status-timeline-min {
  gap: 14px;
  padding-right: 56px;
}
#trackModal.modal .track-result-card .order-status-timeline-min .line {
  right: 21px;
  top: 22px;
  bottom: 22px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    #1b9a83 calc(var(--progress, 0) * 1%),
    #e2ece7 calc(var(--progress, 0) * 1%)
  );
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item {
  --stage-border: #e1eae6;
  --stage-border-strong: #b8ded2;
  --stage-info-border: #e6eeea;
  --stage-info-border-strong: #cce5dc;
  --stage-icon-color: #80928b;
  --stage-label-color: #657770;
  padding-right: 0;
  min-height: 56px;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item .dot {
  top: 2px;
  right: -56px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--stage-border);
  border-radius: 14px;
  background: #f3f7f5;
  box-shadow: 0 5px 14px rgba(16, 35, 31, 0.06);
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.completed {
  --stage-border: #c6e7dc;
  --stage-info-border: #d9ebe4;
  --stage-icon-color: #18836f;
  --stage-label-color: #205c50;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.current {
  --stage-border: #0e766e;
  --stage-border-strong: #0e766e;
  --stage-info-border: #b7ded3;
  --stage-info-border-strong: #a3d5c8;
  --stage-icon-color: #fff;
  --stage-label-color: #0b514a;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.current .dot {
  border-color: #0e766e;
  background: linear-gradient(145deg, #149487, #0b625b);
  box-shadow: 0 8px 20px rgba(14, 118, 110, 0.23);
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.completed .dot {
  background: #e5f3ee;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item .dot .stage-icon {
  color: var(--stage-icon-color);
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item .info {
  min-height: 56px;
  padding: 10px 14px;
  border-color: var(--stage-info-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(16, 35, 31, 0.035);
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.completed .info,
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.current .info {
  border-color: var(--stage-info-border-strong);
  box-shadow: 0 6px 17px rgba(14, 118, 110, 0.07);
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item .info .label {
  color: var(--stage-label-color);
  font-size: 0.98rem;
  line-height: 1.5;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.completed .info .label > i {
  color: #18836f;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.current .info .label > i {
  color: #0e766e;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item .info .hint {
  display: inline-block;
  margin-top: 5px;
  color: #82918b !important;
  font-size: 0.8rem;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item.current .info .hint {
  color: #467a6c !important;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item .info .current-badge {
  margin-top: 7px;
  border: 1px solid #c8e5da;
  background: #e8f4ef;
  box-shadow: none;
  color: #17675e;
  font-size: 0.75rem;
}
#trackModal.modal .track-result-card .order-status-timeline-min .tl-item .info .current-badge i {
  color: #17675e;
}


@media (max-width: 575.98px) {#trackModal.modal .track-result-card .track-card--details {
    padding: 17px 14px;
    border-radius: 17px;
  }
#trackModal.modal .track-result-card .track-card--totals {
    padding: 17px 14px;
    border-radius: 17px;
  }
#trackModal.modal .track-result-card .track-details-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
#trackModal.modal .track-result-card .track-totals {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
#trackModal.modal .track-result-card .track-detail--engagement {
    grid-column: auto;
  }
#trackModal.modal .track-result-card .track-detail--full {
    grid-column: auto;
  }
#trackModal.modal .track-result-card .track-code-card {
    gap: 8px;
    padding: 10px;
  }
#trackModal.modal .track-result-card .track-code-card__info {
    gap: 8px;
  }
#trackModal.modal .track-result-card .track-code-card__value {
    font-size: 1rem;
  }
}

@media (max-width: 680px) {#trackModal.modal .modal-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    margin: 0;
  }
#trackModal.modal .modal-content {
    min-height: 100%;
    border: 0;
    border-radius: 0;
  }
#trackModal.modal .modal-header,
#trackModal.modal .modal-body,
#trackModal.modal .modal-footer {
    padding-inline: 18px;
  }
#trackModal.modal .modal-header {
    padding-block: 17px;
  }
#trackModal.modal .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-block: 20px;
  }
#trackModal.modal .modal-footer {
    flex: 0 0 auto;
    flex-wrap: wrap;
    padding-block: 13px calc(14px + env(safe-area-inset-bottom));
  }
#trackModal.modal .track-modal__icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    border-radius: 14px;
    font-size: 1rem;
  }
#trackModal.modal .track-modal__heading {
    gap: 11px;
  }
#trackModal.modal .modal-title {
    font-size: 1.16rem;
  }
#trackModal.modal .track-modal__subtitle {
    font-size: 0.76rem;
  }
#trackModal.modal .track-modal__lookup {
    padding: 15px;
    border-radius: 16px;
  }
#trackModal.modal .track-modal__input-wrap {
    min-height: 54px;
  }
#trackModal.modal .modal-footer .btn {
    flex: 1 1 auto;
  }
#trackModal.modal .modal-footer .btn-primary {
    flex-grow: 1.4;
  }
#trackModal.modal .modal-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

#trackModal.modal .track-paymob-action {
display: grid;
gap: 9px;
margin-top: 16px;
}

#trackModal.modal .track-paymob-button {
display: flex;
min-height: 54px;
align-items: center;
justify-content: center;
gap: 10px;
padding: 12px 16px;
border: 0;
border-radius: 14px;
background: linear-gradient(110deg, #0b675f, #159b87);
box-shadow: 0 8px 20px rgba(14, 118, 110, 0.2);
color: #fff;
font: inherit;
font-weight: 850;
transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

#trackModal.modal .track-paymob-button:hover:not(:disabled) {
transform: translateY(-1px);
box-shadow: 0 11px 24px rgba(14, 118, 110, 0.27);
}

#trackModal.modal .track-paymob-button:disabled {
cursor: wait;
opacity: 0.75;
}

#trackModal.modal .track-paymob-button strong {
margin-inline-start: auto;
white-space: nowrap;
}

#trackModal.modal .track-paymob-action > small {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
color: #6b7d75;
font-size: 0.78rem;
}