/* Desktop counterpart to the shared mobile bottom navigation. */
.uc-shopping-chrome { display: none; }

@media (min-width: 1024px) {
  body.uc-shopping-desktop { padding-left: 104px; padding-top: 104px; }
  .uc-shopping-chrome { display: block; }
  .uc-shopping-logo { position: fixed; z-index: 90; left: 24px; top: 20px; width: 64px; height: 64px; }
  .uc-shopping-logo img { display: block; width: 64px; height: 64px; }
  .uc-shopping-search, .uc-shopping-desktop #search-bar-container {
    position: fixed; z-index: 90; left: 50%; top: 20px; bottom: auto;
    transform: translateX(-50%); width: min(512px, calc(100vw - 220px)); max-width: none;
    min-height: 64px; display: flex; align-items: center; gap: 18px; padding: 0 25px;
    border: 1px solid #fff; border-radius: 999px; background: #fff; color: #64748b;
    box-shadow: 0 16px 48px rgb(15 23 42 / 13%), 0 2px 8px rgb(15 23 42 / 3%);
    font-size: 14px; text-decoration: none;
  }
  .uc-shopping-search:hover { color: #0f172a; }
  .uc-shopping-search:focus-visible, .uc-shopping-logo:focus-visible, .uc-shopping-rail a:focus-visible { outline: 2px solid #64748b; outline-offset: 4px; }
  .uc-shopping-desktop #search-bar-container input { min-width: 0; }
  .uc-shopping-desktop #search-bar-container > i { margin-left: 0; }
  .uc-shopping-rail { position: fixed; z-index: 89; left: 24px; top: 120px; bottom: 28px; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
  .uc-shopping-group { display: flex; flex-direction: column; gap: 6px; padding: 7px; border: 1px solid #fff; border-radius: 32px; background: #fff; box-shadow: 0 12px 36px rgb(15 23 42 / 12%), 0 2px 6px rgb(15 23 42 / 3%); }
  .uc-shopping-rail a { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #94a3b8; text-decoration: none; }
  .uc-shopping-rail a > i { font-size: 20px; }
  .uc-shopping-rail a:hover, .uc-shopping-rail a[aria-current="page"] { color: #0f172a; }
  .uc-shopping-rail a > span { position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); padding: 8px 12px; border-radius: 8px; background: #0f172a; color: #fff; font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; }
  .uc-shopping-rail a:hover > span, .uc-shopping-rail a:focus-visible > span { opacity: 1; visibility: visible; }
  .uc-shopping-utilities { margin-top: auto; }
  .uc-shopping-rail .uc-shopping-account { background: #e2e8f0; border: 2px solid #fff; color: #0f172a; }
  .uc-shopping-avatar { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; font-size: 13px; font-weight: 600; }
  .uc-shopping-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .uc-shopping-avatar i { font-size: 20px; }
  .uc-shopping-account .uc-notification-count { position: absolute; top: -2px; right: -2px; }
  .uc-desktop-cart-count { position: absolute; right: -2px; top: -1px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid white; border-radius: 999px; background: #0f172a; color: white; font-size: 9px; line-height: 13px; text-align: center; }
  .uc-desktop-cart-count[hidden] { display: none; }
  /* Retain the existing currency control on pages that provide the shared header. */
  .uc-shopping-desktop header:has(.uc-desktop-header) { position: static; height: 0; border: 0; box-shadow: none; background: transparent; }
  .uc-shopping-desktop .uc-desktop-header-row > a, .uc-shopping-desktop .uc-desktop-header-row > div:nth-child(2) { display: none; }
  .uc-shopping-desktop .uc-desktop-actions { position: fixed; z-index: 91; top: 32px; right: 32px; }
  .uc-shopping-desktop .uc-desktop-actions > a { display: none; }
  .uc-shopping-desktop #top-header, .uc-shopping-desktop > header:not(:has(.uc-desktop-header)) { position: relative; top: auto; z-index: 1; }
  .uc-shopping-desktop #store-search-form { top: 94px; }

  /* Order history cards use the available desktop canvas. */
  .uc-orders-page > main { max-width: 1600px; padding-inline: 24px; }
  .uc-orders-page #track-form, .uc-orders-page #orderDetails,
  .uc-orders-page #empty-state, .uc-orders-page #errorMessage { max-width: 672px; }
  .uc-orders-page #orderHistoryList, .uc-orders-page #orderSkeleton {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  }
  .uc-orders-page #orderHistoryList > *, .uc-orders-page #orderSkeleton > * { margin: 0; min-width: 0; }
  .uc-orders-page .uc-order-card, .uc-orders-page #orderSkeleton > div {
    display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 16px; border: 1px solid #e5e7eb; border-radius: 24px;
  }
  .uc-orders-page .uc-order-card { text-decoration: none; }
  .uc-orders-page .uc-order-card:focus-visible { outline: 3px solid #1c74cf; outline-offset: 4px; }
  .uc-orders-page .uc-order-image, .uc-orders-page #orderSkeleton > div > div:last-child {
    order: -1; display: grid; place-items: center; width: 100%; height: 160px;
    margin: 0 0 20px; border-radius: 16px; background: #f8fafc;
  }
  .uc-orders-page .uc-order-image img { width: 120px; height: 120px; }
  .uc-orders-page .uc-order-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .uc-orders-page .uc-order-copy h4 { font-size: 14px; }
  .uc-orders-page .uc-order-track {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9;
    color: #374151; font-size: 12px; font-weight: 600;
  }
  .uc-orders-page #orderSkeleton > div > div:first-child { width: 75%; }
  .uc-orders-page #orderSkeleton > div::after { content: ''; height: 17px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
  .uc-orders-page #orderSkeleton > .uc-order-skeleton-extra { display: flex; }
}

/* Extra loading cards complete the desktop row and stay hidden on mobile. */
.uc-order-track, .uc-order-skeleton-extra { display: none; }

@media (min-width: 1024px) and (max-height: 720px) {
  .uc-shopping-rail { top: 100px; bottom: 16px; }
  .uc-shopping-rail a { width: 42px; height: 42px; }
}
